开始施工-施工中-施工完成 100%

This commit is contained in:
xiaofajia 2024-10-19 11:06:45 +08:00
parent d1c037907b
commit 4ad6d6835b
2 changed files with 11 additions and 5 deletions

View File

@ -26,7 +26,10 @@ public enum TicketsWorkStatusEnum {
/** /**
* 已完成 * 已完成
*/ */
END("03","已完成"); END("03","已完成"),
/** 待终检 */
END_CHECK("05", "待终检");
/** /**
* 角色code * 角色code

View File

@ -557,10 +557,13 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
public void updateStatus(DlRepairTicketsRespVO respVO){ public void updateStatus(DlRepairTicketsRespVO respVO){
if(StringUtils.isNotEmpty(respVO.getTicketsWorkStatus())){ if(StringUtils.isNotEmpty(respVO.getTicketsWorkStatus())){
// 更新工单主表 // 更新工单主表
baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>() LambdaUpdateWrapper<DlRepairTickets> wrapper = new LambdaUpdateWrapper<>();
.set(DlRepairTickets::getTicketsWorkStatus, respVO.getTicketsWorkStatus()) wrapper.eq(DlRepairTickets::getId, respVO.getId());
.eq(DlRepairTickets::getId, respVO.getId()) wrapper.set(DlRepairTickets::getTicketsWorkStatus, respVO.getTicketsWorkStatus());
); if (ObjectUtil.isNotEmpty(respVO.getIsFinish())){
wrapper.set(DlRepairTickets::getIsFinish, respVO.getIsFinish());
}
baseMapper.update(wrapper);
} }
if(null!=respVO.getItem() && StringUtils.isNotEmpty(respVO.getItem().getItemStatus())){ if(null!=respVO.getItem() && StringUtils.isNotEmpty(respVO.getItem().getItemStatus())){
// 更新工单子表 // 更新工单子表