|
@@ -120,35 +120,51 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
baseProcess.setCurrentStatus("0");
|
|
baseProcess.setCurrentStatus("0");
|
|
|
|
|
|
QueryWrapper<BaseLocation> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<BaseLocation> queryWrapper = new QueryWrapper<>();
|
|
- queryWrapper.eq("vistit_type", vistitType).eq("farm_id", farmId).orderByAsc("location_type");
|
|
|
|
- List<BaseLocation> baseLocations = baseLocationMapper.selectList(queryWrapper);
|
|
|
|
- if (admissionType.equals("1")) {
|
|
|
|
- baseProcess.setAllLocation("场外," + destName);
|
|
|
|
- QueryWrapper<BaseLocation> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
- queryWrapper1.eq("farm_id", farmId).eq("vistit_type", vistitType).eq("location_type", 0);
|
|
|
|
- baseProcess.setAllLocationId(baseLocationMapper.selectOne(queryWrapper1).getId() + "," + destId);
|
|
|
|
- baseProcess.setAllLocationStatus("1,0");
|
|
|
|
|
|
+ if (vistitType.equals("5")) {
|
|
|
|
+ if (destId.equals("9")) {
|
|
|
|
+ baseProcess.setAllLocationStatus("1,0");
|
|
|
|
+ baseProcess.setAllLocation("场外,车辆初级洗消站");
|
|
|
|
+ baseProcess.setAllLocationId("26,9");
|
|
|
|
+ } else if (destId.equals("10")) {
|
|
|
|
+ baseProcess.setAllLocationId("9,10");
|
|
|
|
+ baseProcess.setAllLocation("车辆初级洗消站,车辆二级洗消站");
|
|
|
|
+ baseProcess.setAllLocationStatus("1,0");
|
|
|
|
+ } else if (destId.equals("11")) {
|
|
|
|
+ baseProcess.setAllLocationId("10,11");
|
|
|
|
+ baseProcess.setAllLocation("车辆二级洗消站,车辆三级洗消站");
|
|
|
|
+ baseProcess.setAllLocationStatus("1,0");
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- String allLocation = "";
|
|
|
|
- String allLocationId = "";
|
|
|
|
- String allLocationStatus = "";
|
|
|
|
- for (BaseLocation baseLocation : baseLocations) {
|
|
|
|
- if (baseLocation.getId() < Integer.parseInt(destId) || baseLocation.getId() >= 20) {
|
|
|
|
- allLocation = allLocation + baseLocation.getLocationName() + ",";
|
|
|
|
- allLocationId = allLocationId + baseLocation.getId() + ",";
|
|
|
|
- allLocationStatus = allLocationStatus + "0" + ",";
|
|
|
|
- }
|
|
|
|
- if (baseLocation.getId() == Integer.parseInt(destId)) {
|
|
|
|
- allLocation = allLocation + baseLocation.getLocationName();
|
|
|
|
- allLocationId = allLocationId + baseLocation.getId();
|
|
|
|
- allLocationStatus = allLocationStatus + "0";
|
|
|
|
|
|
+ queryWrapper.eq("vistit_type", vistitType).eq("farm_id", farmId).orderByAsc("location_type");
|
|
|
|
+ List<BaseLocation> baseLocations = baseLocationMapper.selectList(queryWrapper);
|
|
|
|
+ if (admissionType.equals("1")) {
|
|
|
|
+ baseProcess.setAllLocation("场外," + destName);
|
|
|
|
+ QueryWrapper<BaseLocation> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
+ queryWrapper1.eq("farm_id", farmId).eq("vistit_type", vistitType).eq("location_type", 0);
|
|
|
|
+ baseProcess.setAllLocationId(baseLocationMapper.selectOne(queryWrapper1).getId() + "," + destId);
|
|
|
|
+ baseProcess.setAllLocationStatus("1,0");
|
|
|
|
+ } else {
|
|
|
|
+ String allLocation = "";
|
|
|
|
+ String allLocationId = "";
|
|
|
|
+ String allLocationStatus = "";
|
|
|
|
+ for (BaseLocation baseLocation : baseLocations) {
|
|
|
|
+ if (baseLocation.getId() < Integer.parseInt(destId) || baseLocation.getId() >= 20) {
|
|
|
|
+ allLocation = allLocation + baseLocation.getLocationName() + ",";
|
|
|
|
+ allLocationId = allLocationId + baseLocation.getId() + ",";
|
|
|
|
+ allLocationStatus = allLocationStatus + "0" + ",";
|
|
|
|
+ }
|
|
|
|
+ if (baseLocation.getId() == Integer.parseInt(destId)) {
|
|
|
|
+ allLocation = allLocation + baseLocation.getLocationName();
|
|
|
|
+ allLocationId = allLocationId + baseLocation.getId();
|
|
|
|
+ allLocationStatus = allLocationStatus + "0";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ baseProcess.setAllLocation(allLocation);
|
|
|
|
+ baseProcess.setAllLocationId(allLocationId);
|
|
|
|
+ String[] split = allLocationStatus.split(",");
|
|
|
|
+ split[0] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + allLocationStatus.substring(1));
|
|
}
|
|
}
|
|
- baseProcess.setAllLocation(allLocation);
|
|
|
|
- baseProcess.setAllLocationId(allLocationId);
|
|
|
|
- String[] split = allLocationStatus.split(",");
|
|
|
|
- split[0] = "1";
|
|
|
|
- baseProcess.setAllLocationStatus(split[0] + allLocationStatus.substring(1));
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -533,7 +549,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
admissionVos = billPersonnelAdmissionMapper.admissionTail(queryWrapper);
|
|
admissionVos = billPersonnelAdmissionMapper.admissionTail(queryWrapper);
|
|
}
|
|
}
|
|
for (BillAdmissionVo admissionVo : admissionVos) {
|
|
for (BillAdmissionVo admissionVo : admissionVos) {
|
|
- admissionVo.setCommitCount(admissionVo.getPassCount()+admissionVo.getRefuseCount());
|
|
|
|
|
|
+ admissionVo.setCommitCount(admissionVo.getPassCount() + admissionVo.getRefuseCount());
|
|
}
|
|
}
|
|
return new Result(ResultCode.SUCCESS, admissionVos);
|
|
return new Result(ResultCode.SUCCESS, admissionVos);
|
|
}
|
|
}
|
|
@@ -702,13 +718,9 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
return new Result(10001, "修改失败!该申请已提前结束或者被拒绝", false);
|
|
return new Result(10001, "修改失败!该申请已提前结束或者被拒绝", false);
|
|
} else {
|
|
} else {
|
|
if (billPcr.getDestId() >= billPcr.getTestLocationId()) {
|
|
if (billPcr.getDestId() >= billPcr.getTestLocationId()) {
|
|
- if (billPcr.getBillStatus() != 0) {
|
|
|
|
- return new Result(10001, "该订单已通过,无需再次提交!", false);
|
|
|
|
- }//说明当前不是目的地
|
|
|
|
|
|
+ //说明当前不是目的地
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
billPcr.setBillStatus(1);
|
|
billPcr.setBillStatus(1);
|
|
billPcr.setPcrType(2);
|
|
billPcr.setPcrType(2);
|
|
billPcr.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
billPcr.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
@@ -771,17 +783,16 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
|
|
|
String status1 = baseProcess.getAllLocationStatus();
|
|
String status1 = baseProcess.getAllLocationStatus();
|
|
String[] split1 = status1.split(",");
|
|
String[] split1 = status1.split(",");
|
|
- split1[0] = "3";
|
|
|
|
- baseProcess.setAllLocationStatus(split1[0] + status1.substring(1));
|
|
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + status1.substring(3));
|
|
|
|
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
pcrMapper.updateById(billPcr);
|
|
pcrMapper.updateById(billPcr);
|
|
return new Result(10000, "修改成功!", true);
|
|
return new Result(10000, "修改成功!", true);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (billPcr.getBillStatus() != 0) {
|
|
|
|
- return new Result(10001, "该订单已通过,无需再次提交!", false);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
|
|
|
|
billPcr.setBillStatus(1);
|
|
billPcr.setBillStatus(1);
|
|
@@ -801,6 +812,12 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setProcessType(1);
|
|
baseProcess.setProcessType(1);
|
|
|
|
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status1.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + status1.substring(3));
|
|
|
|
+
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
pcrMapper.updateById(billPcr);
|
|
pcrMapper.updateById(billPcr);
|
|
return new Result(10000, "修改成功!", true);
|
|
return new Result(10000, "修改成功!", true);
|
|
@@ -978,9 +995,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
String start = sdf.format(billIsolate.getIsolateStartDate());
|
|
String start = sdf.format(billIsolate.getIsolateStartDate());
|
|
String now = sdf.format(new Date());
|
|
String now = sdf.format(new Date());
|
|
int res = now.compareTo(end);
|
|
int res = now.compareTo(end);
|
|
- if (billIsolate.getBillStatus() != 0) {
|
|
|
|
- return new Result(10001, "该订单已通过,无需再次提交!", false);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if (res > 0) {//当前时间晚于隔离结束时间
|
|
if (res > 0) {//当前时间晚于隔离结束时间
|
|
if (baseProcess.getDestId().equals(billIsolate.getIsolateLocationId()) || baseProcess.getDestId() >= 13) {
|
|
if (baseProcess.getDestId().equals(billIsolate.getIsolateLocationId()) || baseProcess.getDestId() >= 13) {
|
|
//目的地就是当前隔离地点
|
|
//目的地就是当前隔离地点
|
|
@@ -1030,8 +1045,12 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
Date endDate = sdf1.parse(now);
|
|
Date endDate = sdf1.parse(now);
|
|
cal1.setTime(startDate);
|
|
cal1.setTime(startDate);
|
|
cal2.setTime(endDate);
|
|
cal2.setTime(endDate);
|
|
- long days = (cal2.getTimeInMillis() - cal1.getTimeInMillis()) / (1000 * 3600 * 24);
|
|
|
|
- billIsolate.setIsolateRealDayNum(Long.toString(days));
|
|
|
|
|
|
+ long days = (startDate.getTime() - endDate.getTime()) / (1000 * 3600);
|
|
|
|
+ Integer l1 = (Integer.parseInt(String.valueOf(days / 24)));
|
|
|
|
+ long l = l1 % 24;
|
|
|
|
+ String num = l1.toString() + "天" + l + "分钟";
|
|
|
|
+// long days = (cal2.getTimeInMillis() - cal1.getTimeInMillis()) / (1000 * 3600 * 24);
|
|
|
|
+ billIsolate.setIsolateRealDayNum(num);
|
|
billIsolate.setBillStatus(2);
|
|
billIsolate.setBillStatus(2);
|
|
billIsolate.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
billIsolate.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
billIsolate.setPassUserId(TokenSign.getMemberIdByJwtToken(httpServletRequest));
|
|
billIsolate.setPassUserId(TokenSign.getMemberIdByJwtToken(httpServletRequest));
|
|
@@ -1214,7 +1233,6 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setProcessType(1);
|
|
baseProcess.setProcessType(1);
|
|
|
|
|
|
- baseProcess.setAllLocationStatus("2,2,2");
|
|
|
|
} else {
|
|
} else {
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation() + "," + baseLocation.getNextLocation());
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation() + "," + baseLocation.getNextLocation());
|
|
@@ -1290,6 +1308,13 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
billDry.setPhone(billClean.getPhone());
|
|
billDry.setPhone(billClean.getPhone());
|
|
billDry.setCarNum(billClean.getCarNum());
|
|
billDry.setCarNum(billClean.getCarNum());
|
|
billDry.setImgStatus(0);
|
|
billDry.setImgStatus(0);
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split = status1.split(",");
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
dryMapper.insert(billDry);
|
|
dryMapper.insert(billDry);
|
|
}
|
|
}
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
@@ -1303,7 +1328,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
- billClean.setImgStatus(0);
|
|
|
|
|
|
+ billClean.setImgStatus(1);
|
|
|
|
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation());
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation());
|
|
@@ -1311,9 +1336,35 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
String status = baseProcess.getCurrentStatus();
|
|
String status = baseProcess.getCurrentStatus();
|
|
String substring = status.substring(0, status.length() - 1);
|
|
String substring = status.substring(0, status.length() - 1);
|
|
|
|
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split = status1.split(",");
|
|
|
|
+ if (billClean.getTestLocationId() == 12) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 13) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "2";
|
|
|
|
+ split[2] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + "," + split[2] + status1.substring(5));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 15 || billClean.getTestLocationId() == 16) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+
|
|
baseProcess.setCurrentStatus(substring + "2");
|
|
baseProcess.setCurrentStatus(substring + "2");
|
|
baseProcess.setProcessType(2);
|
|
baseProcess.setProcessType(2);
|
|
- baseProcess.setAllLocationStatus("2,3,0,0,0");
|
|
|
|
|
|
+
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
cleanMapper.updateById(billClean);
|
|
cleanMapper.updateById(billClean);
|
|
return new Result(10000, "修改成功!", true);
|
|
return new Result(10000, "修改成功!", true);
|
|
@@ -1338,6 +1389,9 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
if (billClean.getTestLocationId() == 15 || billClean.getDestId() == 16) {
|
|
if (billClean.getTestLocationId() == 15 || billClean.getDestId() == 16) {
|
|
baseProcess.setAllLocationStatus("2,2,0");
|
|
baseProcess.setAllLocationStatus("2,2,0");
|
|
}
|
|
}
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ baseProcess.setAllLocationStatus("2,1");
|
|
|
|
+ }
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
cleanMapper.updateById(billClean);
|
|
cleanMapper.updateById(billClean);
|
|
return new Result(10000, "修改成功!", true);
|
|
return new Result(10000, "修改成功!", true);
|
|
@@ -1356,7 +1410,26 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
- billClean.setImgStatus(0);
|
|
|
|
|
|
+ billClean.setImgStatus(1);
|
|
|
|
+
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split = status1.split(",");
|
|
|
|
+ if (billClean.getTestLocationId() == 12) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 13) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "2";
|
|
|
|
+ split[2] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + "," + split[2] + status1.substring(5));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
cleanMapper.updateById(billClean);
|
|
cleanMapper.updateById(billClean);
|
|
@@ -1466,6 +1539,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
clean.setPhone(billClean.getPhone());
|
|
clean.setPhone(billClean.getPhone());
|
|
clean.setCarNum(billClean.getCarNum());
|
|
clean.setCarNum(billClean.getCarNum());
|
|
clean.setImgStatus(0);
|
|
clean.setImgStatus(0);
|
|
|
|
+ baseProcess.setAllLocationStatus("2,1,0");
|
|
cleanMapper.insert(clean);
|
|
cleanMapper.insert(clean);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1480,7 +1554,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
- billClean.setImgStatus(0);
|
|
|
|
|
|
+ billClean.setImgStatus(1);
|
|
|
|
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation());
|
|
baseProcess.setCurrentLocation(baseProcess.getCurrentLocation());
|
|
@@ -1488,6 +1562,31 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
String status = baseProcess.getCurrentStatus();
|
|
String status = baseProcess.getCurrentStatus();
|
|
String substring = status.substring(0, status.length() - 1);
|
|
String substring = status.substring(0, status.length() - 1);
|
|
|
|
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split = status1.split(",");
|
|
|
|
+ if (billClean.getTestLocationId() == 12) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 13) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "2";
|
|
|
|
+ split[2] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + "," + split[2] + status1.substring(5));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 15) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+
|
|
baseProcess.setCurrentStatus(substring + "2");
|
|
baseProcess.setCurrentStatus(substring + "2");
|
|
baseProcess.setProcessType(2);
|
|
baseProcess.setProcessType(2);
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
@@ -1511,6 +1610,14 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
String substring = status.substring(0, status.length() - 1);
|
|
String substring = status.substring(0, status.length() - 1);
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setProcessType(1);
|
|
baseProcess.setProcessType(1);
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 15) {
|
|
|
|
+ baseProcess.setAllLocationStatus("2,1,0");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ baseProcess.setAllLocationStatus("2,1,0");
|
|
|
|
+ }
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
dryMapper.updateById(billClean);
|
|
dryMapper.updateById(billClean);
|
|
return new Result(10000, "修改成功!", true);
|
|
return new Result(10000, "修改成功!", true);
|
|
@@ -1529,7 +1636,33 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setTestLocationId(baseLocation.getId());
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setCheckDate(sdf.parse(sdf.format(new Date())));
|
|
- billClean.setImgStatus(0);
|
|
|
|
|
|
+ billClean.setImgStatus(1);
|
|
|
|
+
|
|
|
|
+ String status1 = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split = status1.split(",");
|
|
|
|
+ if (billClean.getTestLocationId() == 12) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 13) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "2";
|
|
|
|
+ split[2] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + "," + split[2] + status1.substring(5));
|
|
|
|
+ }
|
|
|
|
+ if (billClean.getTestLocationId() == 15) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (billClean.getTestLocationId() == 17) {
|
|
|
|
+ split[0] = "2";
|
|
|
|
+ split[1] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split[0] + "," + split[1] + status1.substring(3));
|
|
|
|
+ }
|
|
|
|
|
|
processMapper.updateById(baseProcess);
|
|
processMapper.updateById(baseProcess);
|
|
dryMapper.updateById(billClean);
|
|
dryMapper.updateById(billClean);
|