|
@@ -59,6 +59,8 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
private BillPersonnelAdmissionMapper admissionMapper;
|
|
private BillPersonnelAdmissionMapper admissionMapper;
|
|
@Autowired
|
|
@Autowired
|
|
private ConfigurationMapper configurationMapper;
|
|
private ConfigurationMapper configurationMapper;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ExistMapper existMapper;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result listAll(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
public Result listAll(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
@@ -194,16 +196,42 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result commitClean(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) throws ParseException {
|
|
|
|
- String result = paramsMap.get("result");// 结果
|
|
|
|
- String farmId = paramsMap.get("farmId");
|
|
|
|
- String id = paramsMap.get("id");
|
|
|
|
- String date = paramsMap.get("date");
|
|
|
|
|
|
+ public Result commitClean(HttpServletRequest httpServletRequest,String farmId, String id, String date, String result
|
|
|
|
+ , MultipartFile img1, MultipartFile img2, MultipartFile img3) throws ParseException, IOException {
|
|
|
|
+
|
|
|
|
+ String s1 = "";
|
|
|
|
+ String s2 = "";
|
|
|
|
+ String s3 = "";
|
|
|
|
+ if (ObjectUtil.isNotEmpty(img1)) {
|
|
|
|
+ if (uploadImage.getImageCom(img1).equals("上传失败")) {
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return new Result(10001, "图片1上传失败", false);
|
|
|
|
+ }
|
|
|
|
+ s1 = uploadImage.uploadImg(img1);
|
|
|
|
+ }
|
|
|
|
+ if (ObjectUtil.isNotEmpty(img2)) {
|
|
|
|
+ if (uploadImage.getImageCom(img2).equals("上传失败")) {
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return new Result(10001, "图片2上传失败", false);
|
|
|
|
+ }
|
|
|
|
+ s2 = "," + uploadImage.uploadImg(img2);
|
|
|
|
+ }
|
|
|
|
+ if (ObjectUtil.isNotEmpty(img3)) {
|
|
|
|
+ if (uploadImage.getImageCom(img3).equals("上传失败")) {
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return new Result(10001, "图片3上传失败", false);
|
|
|
|
+ }
|
|
|
|
+ s3 = "," + uploadImage.uploadImg(img3);
|
|
|
|
+ }
|
|
|
|
+ String s = s1 + s2 + s3 ;
|
|
|
|
+
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
if (StringUtils.isBlank(date)) {
|
|
if (StringUtils.isBlank(date)) {
|
|
date = sdf.format(new Date());
|
|
date = sdf.format(new Date());
|
|
}
|
|
}
|
|
BillClean billClean = cleanMapper.selectById(id);//某条洗消记录
|
|
BillClean billClean = cleanMapper.selectById(id);//某条洗消记录
|
|
|
|
+ billClean.setImgUrl(s);
|
|
|
|
+ billClean.setImgStatus(1);
|
|
|
|
|
|
QueryWrapper<BaseProcess> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<BaseProcess> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.eq("farm_id", farmId).eq("id", billClean.getProcessId());
|
|
queryWrapper.eq("farm_id", farmId).eq("id", billClean.getProcessId());
|
|
@@ -217,6 +245,11 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
queryWrapper3.eq("farm_id", farmId);
|
|
queryWrapper3.eq("farm_id", farmId);
|
|
Configuration configuration = configurationMapper.selectOne(queryWrapper3);
|
|
Configuration configuration = configurationMapper.selectOne(queryWrapper3);
|
|
|
|
|
|
|
|
+ QueryWrapper<Exist> existQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ existQueryWrapper.eq("farm_id", farmId);
|
|
|
|
+ Exist exist = existMapper.selectOne(existQueryWrapper);//判断是否有二级洗消站
|
|
|
|
+
|
|
|
|
+
|
|
if (billClean.getBillStatus() != 0) {
|
|
if (billClean.getBillStatus() != 0) {
|
|
return new Result(10001, "该订单已通过,无需再次提交!", false);
|
|
return new Result(10001, "该订单已通过,无需再次提交!", false);
|
|
}
|
|
}
|
|
@@ -231,53 +264,79 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
billClean.setCheckDate(sdf.parse(date));
|
|
billClean.setCheckDate(sdf.parse(date));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
billClean.setPassDate(sdf.parse(sdf.format(new Date())));
|
|
|
|
|
|
- if (baseLocation.getId() == 1 && baseProcess.getDestId() > 2) {
|
|
|
|
- //生成pcr检测申请
|
|
|
|
- BillPcr billPcr = new BillPcr();
|
|
|
|
- billPcr.setPcrType(0);
|
|
|
|
- billPcr.setPhone(billClean.getPhone());
|
|
|
|
- billPcr.setVistitType(billClean.getVistitType());
|
|
|
|
- billPcr.setDestName(billClean.getDestName());
|
|
|
|
- billPcr.setDestId(billClean.getDestId());
|
|
|
|
- billPcr.setAdmissionUserName(billClean.getAdmissionUserName());
|
|
|
|
- billPcr.setAdmissionUserId(billClean.getAdmissionUserId());
|
|
|
|
- billPcr.setVistitDate(billClean.getVistitDate());
|
|
|
|
- billPcr.setSubDate(LocalDateTime.now());
|
|
|
|
- billPcr.setBillStatus(0);
|
|
|
|
- billPcr.setProcessId(billClean.getProcessId());
|
|
|
|
- billPcr.setFarmId(billClean.getFarmId());
|
|
|
|
- billPcr.setTestLocation("人员二级洗消站");
|
|
|
|
- billPcr.setTestLocationId(3);
|
|
|
|
- billPcr.setQualifiedDate(configuration.getPcr());
|
|
|
|
- pcrMapper.insert(billPcr);
|
|
|
|
|
|
+ if (exist.getExist() == 0) {
|
|
|
|
+ if (baseLocation.getId() == 1 && baseProcess.getDestId() > 2) {
|
|
|
|
+ //生成pcr检测申请
|
|
|
|
+ BillPcr billPcr = new BillPcr();
|
|
|
|
+ billPcr.setPcrType(0);
|
|
|
|
+ billPcr.setPhone(billClean.getPhone());
|
|
|
|
+ billPcr.setVistitType(billClean.getVistitType());
|
|
|
|
+ billPcr.setDestName(billClean.getDestName());
|
|
|
|
+ billPcr.setDestId(billClean.getDestId());
|
|
|
|
+ billPcr.setAdmissionUserName(billClean.getAdmissionUserName());
|
|
|
|
+ billPcr.setAdmissionUserId(billClean.getAdmissionUserId());
|
|
|
|
+ billPcr.setVistitDate(billClean.getVistitDate());
|
|
|
|
+ billPcr.setSubDate(LocalDateTime.now());
|
|
|
|
+ billPcr.setBillStatus(0);
|
|
|
|
+ billPcr.setProcessId(billClean.getProcessId());
|
|
|
|
+ billPcr.setFarmId(billClean.getFarmId());
|
|
|
|
+ billPcr.setTestLocation("人员二级洗消站");
|
|
|
|
+ billPcr.setTestLocationId(3);
|
|
|
|
+ billPcr.setQualifiedDate(configuration.getPcr());
|
|
|
|
+ pcrMapper.insert(billPcr);
|
|
|
|
|
|
- String status = baseProcess.getAllLocationStatus();
|
|
|
|
- String[] split1 = status.split(",");
|
|
|
|
- split1[0] = "2";
|
|
|
|
- split1[1] = "2";
|
|
|
|
- split1[2] = "2";
|
|
|
|
- split1[3] = "1";
|
|
|
|
- baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
|
|
- }
|
|
|
|
- if (baseLocation.getId() == 3) {
|
|
|
|
- //生成隔离申请
|
|
|
|
- BillIsolate isolate = new BillIsolate();
|
|
|
|
- isolate.setPhone(billClean.getPhone());
|
|
|
|
- isolate.setVistitType(billClean.getVistitType());
|
|
|
|
- isolate.setDestName(billClean.getDestName());
|
|
|
|
- isolate.setDestId(billClean.getDestId());
|
|
|
|
- isolate.setAdmissionUserName(billClean.getAdmissionUserName());
|
|
|
|
- isolate.setAdmissionUserId(billClean.getAdmissionUserId());
|
|
|
|
- isolate.setVistitDate(billClean.getVistitDate());
|
|
|
|
- isolate.setSubDate(billClean.getSubDate());
|
|
|
|
- isolate.setFarmId(billClean.getFarmId());
|
|
|
|
- isolate.setBillStatus(0);
|
|
|
|
- isolate.setIsolateDayNum("");
|
|
|
|
- isolate.setProcessId(billClean.getProcessId());
|
|
|
|
- isolate.setIsolateLocation(baseLocation.getLocationName());
|
|
|
|
- isolate.setIsolateLocationId(baseLocation.getId());
|
|
|
|
- isolateMapper.insert(isolate);
|
|
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
|
|
+ }
|
|
|
|
+ if (baseLocation.getId() == 3) {
|
|
|
|
+ //生成隔离申请
|
|
|
|
+ BillIsolate isolate = new BillIsolate();
|
|
|
|
+ isolate.setPhone(billClean.getPhone());
|
|
|
|
+ isolate.setVistitType(billClean.getVistitType());
|
|
|
|
+ isolate.setDestName(billClean.getDestName());
|
|
|
|
+ isolate.setDestId(billClean.getDestId());
|
|
|
|
+ isolate.setAdmissionUserName(billClean.getAdmissionUserName());
|
|
|
|
+ isolate.setAdmissionUserId(billClean.getAdmissionUserId());
|
|
|
|
+ isolate.setVistitDate(billClean.getVistitDate());
|
|
|
|
+ isolate.setSubDate(billClean.getSubDate());
|
|
|
|
+ isolate.setFarmId(billClean.getFarmId());
|
|
|
|
+ isolate.setBillStatus(0);
|
|
|
|
+ isolate.setIsolateDayNum("");
|
|
|
|
+ isolate.setProcessId(billClean.getProcessId());
|
|
|
|
+ isolate.setIsolateLocation(baseLocation.getLocationName());
|
|
|
|
+ isolate.setIsolateLocationId(baseLocation.getId());
|
|
|
|
+ isolateMapper.insert(isolate);
|
|
|
|
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (exist.getExist() == 1 && billClean.getDestId() >= 4 && baseLocation.getId() == 1) {
|
|
|
|
+ BillClean billClean1 = new BillClean();
|
|
|
|
+ billClean1.setVistitType(billClean.getVistitType());
|
|
|
|
+ billClean1.setDestName(billClean.getDestName());
|
|
|
|
+ billClean1.setDestId(billClean.getDestId());
|
|
|
|
+ billClean1.setAdmissionUserId(billClean.getAdmissionUserId());
|
|
|
|
+ billClean1.setAdmissionUserName(billClean.getAdmissionUserName());
|
|
|
|
+ billClean1.setVistitDate(billClean.getVistitDate());
|
|
|
|
+ billClean1.setSubDate(LocalDateTime.now());
|
|
|
|
+ billClean1.setFarmId(billClean.getFarmId());
|
|
|
|
+ billClean1.setBillStatus(0);
|
|
|
|
+ billClean1.setProcessId(billClean.getProcessId());
|
|
|
|
+ billClean1.setPhone(billClean.getPhone());
|
|
|
|
+ billClean1.setTestLocation("场内");
|
|
|
|
+ billClean1.setTestLocationId(4);
|
|
|
|
+ billCleanMapper.insert(billClean1);
|
|
String status = baseProcess.getAllLocationStatus();
|
|
String status = baseProcess.getAllLocationStatus();
|
|
String[] split1 = status.split(",");
|
|
String[] split1 = status.split(",");
|
|
split1[0] = "2";
|
|
split1[0] = "2";
|
|
@@ -287,6 +346,8 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if (baseLocation.getId() == 4) {
|
|
if (baseLocation.getId() == 4) {
|
|
QueryWrapper<BillPcr> queryWrapper1 = new QueryWrapper<>();
|
|
QueryWrapper<BillPcr> queryWrapper1 = new QueryWrapper<>();
|
|
queryWrapper1.eq("farm_id", farmId).eq("process_id", baseProcess.getId()).eq("test_location_id", 4);
|
|
queryWrapper1.eq("farm_id", farmId).eq("process_id", baseProcess.getId()).eq("test_location_id", 4);
|
|
@@ -310,14 +371,25 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
billPcr.setQualifiedDate(configuration.getPcr());
|
|
billPcr.setQualifiedDate(configuration.getPcr());
|
|
pcrMapper.insert(billPcr);
|
|
pcrMapper.insert(billPcr);
|
|
|
|
|
|
- String status = baseProcess.getAllLocationStatus();
|
|
|
|
- String[] split1 = status.split(",");
|
|
|
|
- split1[0] = "2";
|
|
|
|
- split1[1] = "2";
|
|
|
|
- split1[2] = "2";
|
|
|
|
- split1[3] = "2";
|
|
|
|
- split1[4] = "1";
|
|
|
|
- baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + status.substring(9));
|
|
|
|
|
|
+ if (exist.getExist() == 0) {
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "2";
|
|
|
|
+ split1[4] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + status.substring(9));
|
|
|
|
+ }else {
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "1";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
|
|
+ }
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
//生成隔离申请
|
|
//生成隔离申请
|
|
BillIsolate isolate = new BillIsolate();
|
|
BillIsolate isolate = new BillIsolate();
|
|
@@ -337,14 +409,25 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
isolate.setIsolateLocationId(baseLocation.getNextId());
|
|
isolate.setIsolateLocationId(baseLocation.getNextId());
|
|
isolateMapper.insert(isolate);
|
|
isolateMapper.insert(isolate);
|
|
|
|
|
|
- String status = baseProcess.getAllLocationStatus();
|
|
|
|
- String[] split1 = status.split(",");
|
|
|
|
- split1[0] = "2";
|
|
|
|
- split1[1] = "2";
|
|
|
|
- split1[2] = "2";
|
|
|
|
- split1[3] = "2";
|
|
|
|
- split1[4] = "2";
|
|
|
|
- baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + "," + "1");
|
|
|
|
|
|
+ if (exist.getExist()==0) {
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "2";
|
|
|
|
+ split1[4] = "2";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + "," + "1");
|
|
|
|
+ }else {
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "2";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + "1");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -411,6 +494,15 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
split1[4] = "3";
|
|
split1[4] = "3";
|
|
baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + status.substring(9));
|
|
baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + "," + split1[4] + status.substring(9));
|
|
}
|
|
}
|
|
|
|
+ if (exist.getExist() == 1 && baseProcess.getDestId() > 2) {
|
|
|
|
+ String status = baseProcess.getAllLocationStatus();
|
|
|
|
+ String[] split1 = status.split(",");
|
|
|
|
+ split1[0] = "2";
|
|
|
|
+ split1[1] = "2";
|
|
|
|
+ split1[2] = "2";
|
|
|
|
+ split1[3] = "3";
|
|
|
|
+ baseProcess.setAllLocationStatus(split1[0] + "," + split1[1] + "," + split1[2] + "," + split1[3] + status.substring(7));
|
|
|
|
+ }
|
|
|
|
|
|
baseProcess.setProcessType(2);
|
|
baseProcess.setProcessType(2);
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
baseProcess.setUpdateDate(baseProcess.getUpdateDate() + "," + sdf.format(new Date()));
|
|
@@ -446,17 +538,17 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
String substring = status.substring(0, status.length() - 1);
|
|
String substring = status.substring(0, status.length() - 1);
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
baseProcess.setCurrentStatus(substring + "1");
|
|
|
|
|
|
- String s = baseProcess.getAllLocationId();
|
|
|
|
- String[] split = s.split(",");
|
|
|
|
- Integer s2 = 0;
|
|
|
|
|
|
+ String ids = baseProcess.getAllLocationId();
|
|
|
|
+ String[] split = ids.split(",");
|
|
|
|
+ Integer s22 = 0;
|
|
for (int i = 0; i < split.length; i++) {
|
|
for (int i = 0; i < split.length; i++) {
|
|
if (Integer.parseInt(split[i]) == baseLocation.getId()) {
|
|
if (Integer.parseInt(split[i]) == baseLocation.getId()) {
|
|
- s2 = i;
|
|
|
|
|
|
+ s22 = i;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String status1 = baseProcess.getAllLocationStatus();
|
|
String status1 = baseProcess.getAllLocationStatus();
|
|
StringBuilder split1 = new StringBuilder(status1);
|
|
StringBuilder split1 = new StringBuilder(status1);
|
|
- split1.replace(s2, s2 + 1, "3");
|
|
|
|
|
|
+ split1.replace(s22, s22 + 1, "3");
|
|
baseProcess.setAllLocationStatus(split1.toString());
|
|
baseProcess.setAllLocationStatus(split1.toString());
|
|
|
|
|
|
if (baseProcess.getDestId() == 1) {
|
|
if (baseProcess.getDestId() == 1) {
|
|
@@ -682,6 +774,11 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
public Result goodsCarClean(HttpServletRequest httpServletRequest, String farmId, String id, String date, MultipartFile img1,
|
|
public Result goodsCarClean(HttpServletRequest httpServletRequest, String farmId, String id, String date, MultipartFile img1,
|
|
MultipartFile img2, MultipartFile img3, MultipartFile img4, MultipartFile img5, String type, String result
|
|
MultipartFile img2, MultipartFile img3, MultipartFile img4, MultipartFile img5, String type, String result
|
|
) throws ParseException, IOException {
|
|
) throws ParseException, IOException {
|
|
|
|
+
|
|
|
|
+ QueryWrapper<Exist> existQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ existQueryWrapper.eq("farm_id", farmId);
|
|
|
|
+ Exist exist = existMapper.selectOne(existQueryWrapper);//判断是否有二级洗消站
|
|
|
|
+
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
if (StringUtils.isBlank(date)) {
|
|
if (StringUtils.isBlank(date)) {
|
|
date = sdf.format(new Date());
|
|
date = sdf.format(new Date());
|
|
@@ -785,7 +882,8 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
}
|
|
}
|
|
|
|
|
|
//第一次通过生成洗消
|
|
//第一次通过生成洗消
|
|
- if (billClean.getTestLocationId() == 6) {
|
|
|
|
|
|
+ if (billClean.getTestLocationId() == 6 && exist.getExist() == 0) {
|
|
|
|
+
|
|
BillClean clean = new BillClean();
|
|
BillClean clean = new BillClean();
|
|
clean.setVistitType(billClean.getVistitType());
|
|
clean.setVistitType(billClean.getVistitType());
|
|
clean.setVistitDate(billClean.getVistitDate());
|
|
clean.setVistitDate(billClean.getVistitDate());
|
|
@@ -809,6 +907,13 @@ public class BillCleanServiceImpl extends ServiceImpl<BillCleanMapper, BillClean
|
|
baseProcess.setAllLocationStatus("2,2,1,0");
|
|
baseProcess.setAllLocationStatus("2,2,1,0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (billClean.getTestLocationId() == 6 && exist.getExist() == 1) {
|
|
|
|
+ if (baseProcess.getDestId() > 6) {
|
|
|
|
+ baseProcess.setAllLocationStatus("2,2,2");
|
|
|
|
+ } else {
|
|
|
|
+ baseProcess.setAllLocationStatus("2,2");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
if (billClean.getTestLocationId() == 7) {
|
|
if (billClean.getTestLocationId() == 7) {
|
|
//生成烘干申请
|
|
//生成烘干申请
|