|
@@ -100,10 +100,15 @@ public class IotMaintainServiceImpl implements IotMaintainService {
|
|
|
|
|
|
@Override
|
|
|
public void approvalMaintain(Long businessKey, Integer bpmStatus) {
|
|
|
+ //通过
|
|
|
+ IotMaintainDO maintainDO = iotMaintainMapper.selectById(businessKey);
|
|
|
if (bpmStatus ==2 ){
|
|
|
-
|
|
|
+ maintainDO.setAuditStatus(FailureAuditStatusEnum.APPROVE.getStatus());
|
|
|
+ iotMaintainMapper.updateById(maintainDO);
|
|
|
} else if (bpmStatus ==3 ){
|
|
|
-
|
|
|
+ //不通过
|
|
|
+ maintainDO.setAuditStatus(FailureAuditStatusEnum.REJECT.getStatus());
|
|
|
+ iotMaintainMapper.updateById(maintainDO);
|
|
|
}
|
|
|
}
|
|
|
|