|
|
|
@ -9126,21 +9126,23 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
*/ |
|
|
|
|
private DistributionLoadscanEntity updateSignDistributionLoadscanEntity(DistributionLoadscanEntity loadscanEntity, BladeUser user, DistributionParcelListEntity parcelListEntity) { |
|
|
|
|
String now = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date()); |
|
|
|
|
loadscanEntity.setSigningTime(now); |
|
|
|
|
loadscanEntity.setSignforState(2); |
|
|
|
|
loadscanEntity.setOneClick(1); |
|
|
|
|
loadscanEntity.setOneQclick(1); |
|
|
|
|
loadscanEntity.setIsInsert(2); |
|
|
|
|
loadscanEntity.setReceivedQuantity(parcelListEntity.getQuantity()); |
|
|
|
|
loadscanEntity.setSigningUser(user.getNickName()); |
|
|
|
|
loadscanEntity.setSigningUserId(user.getUserId()); |
|
|
|
|
loadscanEntity.setSignforType(LoadScanSigningTypeStatusConstant.sijiqianshou.getValue()); |
|
|
|
|
loadscanEntity.setSignforState(LoadScanSigningStatusConstant.weiqianshou.getValue()); |
|
|
|
|
DistributionLoadscanEntity distributionLoadscanEntity = new DistributionLoadscanEntity(); |
|
|
|
|
distributionLoadscanEntity.setId(loadscanEntity.getId()); |
|
|
|
|
distributionLoadscanEntity.setSigningTime(now); |
|
|
|
|
distributionLoadscanEntity.setSignforState(2); |
|
|
|
|
distributionLoadscanEntity.setOneClick(1); |
|
|
|
|
distributionLoadscanEntity.setOneQclick(1); |
|
|
|
|
distributionLoadscanEntity.setIsInsert(2); |
|
|
|
|
distributionLoadscanEntity.setReceivedQuantity(parcelListEntity.getQuantity()); |
|
|
|
|
distributionLoadscanEntity.setSigningUser(user.getNickName()); |
|
|
|
|
distributionLoadscanEntity.setSigningUserId(user.getUserId()); |
|
|
|
|
distributionLoadscanEntity.setSignforType(LoadScanSigningTypeStatusConstant.sijiqianshou.getValue()); |
|
|
|
|
distributionLoadscanEntity.setSignforState(LoadScanSigningStatusConstant.weiqianshou.getValue()); |
|
|
|
|
if (loadscanEntity.getLoadedNub().equals(loadscanEntity.getReceivedQuantity())) { |
|
|
|
|
loadscanEntity.setSignforState(LoadScanSigningStatusConstant.yiqianshou.getValue()); |
|
|
|
|
distributionLoadscanEntity.setSignforState(LoadScanSigningStatusConstant.yiqianshou.getValue()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return loadscanEntity; |
|
|
|
|
return distributionLoadscanEntity; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|