|
|
@@ -133,17 +133,24 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
ws.setPoliticalStatu(isr.getPoliticalStatu());
|
|
|
ws.setNationality(isr.getNationality());
|
|
|
ws.setPhone(isr.getPhone());
|
|
|
+ ws.setOprovince(isr.getOprovince());
|
|
|
+ ws.setOcity(isr.getOcity());
|
|
|
+ ws.setOdistrict(isr.getOdistrict());
|
|
|
ws.setOprovinceId(isr.getOprovinceId());
|
|
|
ws.setOcityId(isr.getOcityId());
|
|
|
ws.setOdistrictId(isr.getOdistrictId());
|
|
|
ws.setProvinceId(isr.getProvinceId());
|
|
|
ws.setCityId(isr.getCityId());
|
|
|
ws.setDistrictId(isr.getDistrictId());
|
|
|
+ ws.setProvince(isr.getProvince());
|
|
|
+ ws.setCity(isr.getCity());
|
|
|
+ ws.setDistrict(isr.getDistrict());
|
|
|
ws.setAddress(isr.getAddress());
|
|
|
ws.setTrafficMethod(isr.getTrafficMethod());
|
|
|
ws.setArrive(isr.getArrive());
|
|
|
ws.setArrvieDate(isr.getArrvieDate());
|
|
|
ws.setArriveTime(isr.getArriveTime());
|
|
|
+ ws.setArriveTimeId(isr.getArriveTimeId());
|
|
|
ws.setZipCode(isr.getZipCode());
|
|
|
ws.setRegisterOntime(isr.getRegisterOntime());
|
|
|
//ws.setAmountPayable(isr.getAmountPayable());
|
|
|
@@ -154,8 +161,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
|
|
|
//region 家庭成员数据
|
|
|
List<WelcomeFamily> wfs = new ArrayList<>();
|
|
|
- if (isr.getFamilys() != null && isr.getFamilys().size() > 0) {
|
|
|
- for (InsertFamilyRequest family : isr.getFamilys()) {
|
|
|
+ if (isr.getFvs() != null && isr.getFvs().size() > 0) {
|
|
|
+ for (InsertFamilyRequest family : isr.getFvs()) {
|
|
|
if(!(StringUtils.hasText(family.getFamilyShip()) && StringUtils.hasText(family.getName())
|
|
|
&& StringUtils.hasText(family.getWorkUnit()) && StringUtils.hasText(family.getPhone()))){
|
|
|
return CommonResult.fail("家庭成员信息不能为空!");
|
|
|
@@ -173,8 +180,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
|
|
|
//region 陪同人员数据
|
|
|
List<WelcomeAccompany> was = new ArrayList<>();
|
|
|
- if (isr.getAccompanys() != null && isr.getAccompanys().size() > 0) {
|
|
|
- for (InsertAccompanyRequest accompany : isr.getAccompanys()) {
|
|
|
+ if (isr.getAvs() != null && isr.getAvs().size() > 0) {
|
|
|
+ for (InsertAccompanyRequest accompany : isr.getAvs()) {
|
|
|
if(!(StringUtils.hasText(accompany.getName()) && StringUtils.hasText(accompany.getPhone()))){
|
|
|
return CommonResult.fail("陪同人员信息不能为空!");
|
|
|
}
|
|
|
@@ -275,17 +282,24 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
student.setPoliticalStatu(usr.getPoliticalStatu());
|
|
|
student.setNationality(usr.getNationality());
|
|
|
student.setPhone(usr.getPhone());
|
|
|
+ student.setOprovince(usr.getOprovince());
|
|
|
+ student.setOcity(usr.getOcity());
|
|
|
+ student.setOdistrict(usr.getOdistrict());
|
|
|
student.setOprovinceId(usr.getOprovinceId());
|
|
|
student.setOcityId(usr.getOcityId());
|
|
|
student.setOdistrictId(usr.getOdistrictId());
|
|
|
student.setProvinceId(usr.getProvinceId());
|
|
|
student.setCityId(usr.getCityId());
|
|
|
student.setDistrictId(usr.getDistrictId());
|
|
|
+ student.setProvince(usr.getProvince());
|
|
|
+ student.setCity(usr.getCity());
|
|
|
+ student.setDistrict(usr.getDistrict());
|
|
|
student.setAddress(usr.getAddress());
|
|
|
student.setTrafficMethod(usr.getTrafficMethod());
|
|
|
student.setArrive(usr.getArrive());
|
|
|
student.setArrvieDate(usr.getArrvieDate());
|
|
|
student.setArriveTime(usr.getArriveTime());
|
|
|
+ student.setArriveTimeId(usr.getArriveTimeId());
|
|
|
student.setZipCode(usr.getZipCode());
|
|
|
student.setRegisterOntime(usr.getRegisterOntime());
|
|
|
//ws.setAmountPayable(isr.getAmountPayable());
|
|
|
@@ -1358,6 +1372,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
// 寝室总数
|
|
|
int dormitoryTotal = welcomeDormitoryService.count(new QueryWrapper<>());
|
|
|
|
|
|
+ int payCount=welcomeStudentService.payCount();
|
|
|
// 已入住寝室数
|
|
|
LambdaQueryWrapper<WelcomeDormitory> wrapper=new LambdaQueryWrapper<>();
|
|
|
wrapper.ne(WelcomeDormitory::getStatus,2);
|
|
|
@@ -1367,12 +1382,16 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
LocalDateTime end = start.plusDays(1);
|
|
|
DateTimeFormatter dateTimeFormatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
Integer visitorTotal=welcomeVisitorService.countTotal(start,end);
|
|
|
+ Integer carTotal = welcomeVisitorService.carTotal();
|
|
|
|
|
|
StudentOverviewVo vo = new StudentOverviewVo();
|
|
|
+ vo.setEnrollmentTotal(6532);
|
|
|
vo.setStudentTotal(studentTotal);
|
|
|
+ vo.setPayCount(payCount);
|
|
|
vo.setDormitoryTotal(dormitoryTotal);
|
|
|
vo.setCheckInTotal(count);
|
|
|
vo.setVisitorTotal(visitorTotal);
|
|
|
+ vo.setCarTotal(carTotal);
|
|
|
|
|
|
return CommonResult.ok(vo);
|
|
|
}
|