|
@@ -405,7 +405,7 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
Object newObject = getNewObject(nextId, billPcr.getDestName(), billPcr.getDestId(), billPcr.getAdmissionUserName(),
|
|
|
billPcr.getAdmissionUserId(), billPcr.getVistitDate(), billPcr.getSubDate(),
|
|
|
billPcr.getProcessId(), billPcr.getFarmId(), billPcr.getTestLocation(), billPcr.getTestLocationId(),
|
|
|
- billPcr.getVistitType(),billPcr.getPhone());
|
|
|
+ billPcr.getVistitType(),billPcr.getPhone(),billPcr.getDepartureName(),billPcr.getDepartureId());
|
|
|
System.out.println("这里是pcr通过的下一个流程id:" + nextId);
|
|
|
if (nextId == 0) {
|
|
|
int index = allLocationId.indexOf(baseLocation.getId());
|
|
@@ -582,7 +582,7 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
|
|
|
public static Object getNewObject(Integer id, String destName, Integer destId, String admissionUserName, Integer admissionUserId
|
|
|
, LocalDateTime vistitDate, LocalDateTime subDate, Integer processId, Integer farmId, String testLocation
|
|
|
- , Integer testLocationId,Integer vistitType,String phone) {
|
|
|
+ , Integer testLocationId,Integer vistitType,String phone,String departureName,Integer departureId) {
|
|
|
if (id == 1) {
|
|
|
//采样
|
|
|
BillSampling billSampling = new BillSampling();
|
|
@@ -598,6 +598,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billSampling.setTestLocationId(testLocationId);
|
|
|
billSampling.setProcessId(processId);
|
|
|
billSampling.setFarmId(String.valueOf(farmId));
|
|
|
+ billSampling.setDepartureName(departureName);
|
|
|
+ billSampling.setDepartureId(departureId);
|
|
|
return billSampling;
|
|
|
}
|
|
|
if (id == 2) {
|
|
@@ -614,6 +616,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billPcr.setFarmId(farmId);
|
|
|
billPcr.setTestLocationId(testLocationId);
|
|
|
billPcr.setTestLocation(testLocation);
|
|
|
+ billPcr.setDepartureName(departureName);
|
|
|
+ billPcr.setDepartureId(departureId);
|
|
|
return billPcr;
|
|
|
}
|
|
|
if (id == 3) {
|
|
@@ -630,6 +634,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billPcr.setFarmId(farmId);
|
|
|
billPcr.setTestLocationId(testLocationId);
|
|
|
billPcr.setTestLocation(testLocation);
|
|
|
+ billPcr.setDepartureName(departureName);
|
|
|
+ billPcr.setDepartureId(departureId);
|
|
|
return billPcr;
|
|
|
}
|
|
|
if (id == 4) {
|
|
@@ -646,6 +652,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billPcr.setFarmId(farmId);
|
|
|
billPcr.setIsolateLocation(testLocation);
|
|
|
billPcr.setIsolateLocationId(testLocationId);
|
|
|
+ billPcr.setDepartureName(departureName);
|
|
|
+ billPcr.setDepartureId(departureId);
|
|
|
return billPcr;
|
|
|
}
|
|
|
if (id == 5) {
|
|
@@ -662,6 +670,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billPcr.setFarmId(farmId);
|
|
|
billPcr.setTestLocationId(testLocationId);
|
|
|
billPcr.setTestLocation(testLocation);
|
|
|
+ billPcr.setDepartureName(departureName);
|
|
|
+ billPcr.setDepartureId(departureId);
|
|
|
return billPcr;
|
|
|
}
|
|
|
if (id == 6) {
|
|
@@ -679,6 +689,8 @@ public class BillPcrServiceImpl extends ServiceImpl<BillPcrMapper, BillPcr> impl
|
|
|
billCleanBefore.setTestLocationId(testLocationId);
|
|
|
billCleanBefore.setProcessId(processId);
|
|
|
billCleanBefore.setFarmId(String.valueOf(farmId));
|
|
|
+ billCleanBefore.setDepartureName(departureName);
|
|
|
+ billCleanBefore.setDepartureId(departureId);
|
|
|
return billCleanBefore;
|
|
|
}
|
|
|
return null;
|