Commit c5a0d709 authored by zhangwanglin's avatar zhangwanglin

补卡审核

parent 4ce29477
...@@ -25,6 +25,7 @@ import com.hungraim.ltc.util.DateUtils; ...@@ -25,6 +25,7 @@ import com.hungraim.ltc.util.DateUtils;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import oracle.sql.DATE;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -375,8 +376,16 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -375,8 +376,16 @@ public class SrvTaskServiceImpl implements SrvTaskService {
chSrvTaskDetailDTO.setAuditRemark(auditingCardVO.getAuditRemark()); chSrvTaskDetailDTO.setAuditRemark(auditingCardVO.getAuditRemark());
chSrvTaskDetailDTO.setAuditDate(new Date()); chSrvTaskDetailDTO.setAuditDate(new Date());
chSrvTaskDetailDTO.setAuditor(auditingCardVO.getAuditor()); chSrvTaskDetailDTO.setAuditor(auditingCardVO.getAuditor());
if(auditingCardVO.getStatus() == 2) {
UpdateWrapper updateWrapper = new UpdateWrapper();
updateWrapper.eq("task_detail_id", auditingCardVO.getTaskDetailId());
updateWrapper.set("is_status", 0);
updateWrapper.set("LCD", new DATE());
chSrvPlanMapper.update(null, updateWrapper);
}
int result = chSrvTaskDetailMapper.updateById(chSrvTaskDetailDTO); int result = chSrvTaskDetailMapper.updateById(chSrvTaskDetailDTO);
if(result>0){ if(result>0){
return Result.success(); return Result.success();
}else { }else {
return Result.failed("补卡审核失败!"); return Result.failed("补卡审核失败!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment