不合格检验单收回后二次回写到货检验单调整
This commit is contained in:
parent
4a16562e90
commit
adfef3a109
|
@ -673,7 +673,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
|
|||
testResMap.put(map.getOrDefault("code", "") + "", map.getOrDefault("pk_defdoc", "") + "");
|
||||
}
|
||||
}
|
||||
UFDouble qualifiednum = oldVo.getQualifiednum(); // ÊýÁ¿
|
||||
UFDouble qualifiednum = oldVo.getNchecknum(); // ÊýÁ¿
|
||||
String vbatch = (oldVo.getVbatch() != null) ? oldVo.getVbatch() : "";// 批次号
|
||||
oldVo.setQualifiednum(UFDouble.ZERO_DBL);
|
||||
DhjydSlave0VO vo0 = new DhjydSlave0VO();
|
||||
|
@ -775,9 +775,9 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
|
|||
DhjydSlave0VO[] newVOs = new DhjydSlave0VO[checkDetailVOs.length + unPassVOs.length];
|
||||
// 删掉原来的
|
||||
for (int j = 0; j < checkDetailVOs.length; j++) {
|
||||
DhjydSlave0VO dhjydSlave0VO = checkDetailVOs[j];
|
||||
dhjydSlave0VO.setStatus(VOStatus.DELETED);
|
||||
newVOs[0] = dhjydSlave0VO;
|
||||
DhjydSlave0VO checkDetailInfo = checkDetailVOs[j];
|
||||
checkDetailInfo.setStatus(VOStatus.DELETED);
|
||||
newVOs[j] = checkDetailInfo;
|
||||
}
|
||||
// 添加新的
|
||||
for (int j = 0; j < unPassVOs.length; j++) {
|
||||
|
@ -785,7 +785,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
|
|||
dhjydSlave0VO.setStatus(VOStatus.NEW);
|
||||
dhjydSlave0VO.setPrimaryKey(null);
|
||||
dhjydSlave0VO.setAttributeValue("pk_chekbill_b", null);
|
||||
newVOs[j + 1] = dhjydSlave0VO;
|
||||
newVOs[checkDetailVOs.length + j] = dhjydSlave0VO;
|
||||
}
|
||||
masterVO.setChildren(DhjydSlave0VO.class, newVOs);
|
||||
AggDhjydMasterVO[] saveVOs = dao.update(masterVO);
|
||||
|
|
Loading…
Reference in New Issue