|
@@ -1962,12 +1962,12 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
|
|
|
stateDo.setCreateuserid(inOper.getOperUser().getId());
|
|
|
stateDo.setCreateusername(inOper.getOperUser().getName());
|
|
|
// entity.setIncompletetime(itpDoPa.getInspectioncomplatetime());
|
|
|
- assembleUpdateNodeState(stateDo, inOper, complateTime);
|
|
|
+ assembleUpdateNodeState(stateDo, inOper, complateTime, false);
|
|
|
|
|
|
nodeStateBo.getInsertList().add(stateDo);
|
|
|
} else {
|
|
|
// stateDo.setIncompletetime(itpDoPa.getInspectioncomplatetime());
|
|
|
- assembleUpdateNodeState(stateDo, inOper, complateTime);
|
|
|
+ assembleUpdateNodeState(stateDo, inOper, complateTime, true);
|
|
|
|
|
|
nodeStateBo.getUpdateList().add(stateDo);
|
|
|
}
|
|
@@ -1992,27 +1992,31 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
|
|
|
* @param inOper
|
|
|
* @param complateTime
|
|
|
*/
|
|
|
- private void assembleUpdateNodeState(ZhcxItpProjectNodeStateDo entity, InsideOperDto inOper, Date complateTime) {
|
|
|
+ private void assembleUpdateNodeState(ZhcxItpProjectNodeStateDo entity, InsideOperDto inOper, Date complateTime, boolean recordExistsFlag) {
|
|
|
entity.setModifydate(inOper.getOperTime());
|
|
|
entity.setModifyuserid(inOper.getOperUser().getId());
|
|
|
entity.setModifyusername(inOper.getOperUser().getName());
|
|
|
//取消
|
|
|
- if("10".equals(inOper.getOperType())) {
|
|
|
+ if((!recordExistsFlag || ObjectUtil.isEmpty(entity.getInstate())) && "10".equals(inOper.getOperType())) {
|
|
|
entity.setInstate("40");
|
|
|
+ entity.setIntimes(inOper.getInspection().getInspectioncount());
|
|
|
}
|
|
|
//拒收
|
|
|
if("20".equals(inOper.getOperType())) {
|
|
|
entity.setInstate("20");
|
|
|
+ entity.setIntimes(inOper.getInspection().getInspectioncount());
|
|
|
}
|
|
|
|
|
|
//接收
|
|
|
if("50".equals(inOper.getOperType())) {
|
|
|
entity.setInstate("10");
|
|
|
+ entity.setIntimes(inOper.getInspection().getInspectioncount());
|
|
|
}
|
|
|
|
|
|
//有条件接收
|
|
|
if ("60".equals(inOper.getOperType())) {
|
|
|
entity.setInstate("30");
|
|
|
+ entity.setIntimes(inOper.getInspection().getInspectioncount());
|
|
|
}
|
|
|
|
|
|
//接收
|
|
@@ -2023,8 +2027,6 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
|
|
|
else if ("60".equals(inOper.getOperType())) {
|
|
|
entity.setIncompletetime(complateTime);
|
|
|
}
|
|
|
-
|
|
|
- entity.setIntimes(inOper.getInspection().getInspectioncount());
|
|
|
}
|
|
|
|
|
|
}
|