1
This commit is contained in:
parent
c146d42c8c
commit
88dab0293f
@ -495,17 +495,18 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
* @param reqVO 请求对象
|
* @param reqVO 请求对象
|
||||||
**/
|
**/
|
||||||
@Override
|
@Override
|
||||||
public void updateRepair(DlRepairTicketsReqVO reqVO){
|
public void updateRepair(DlRepairTicketsReqVO reqVO) {
|
||||||
// 指派的时候看下是不是已经有人接单了
|
// 指派的时候看下是不是已经有人接单了----vinjor-m 服务顾问指派,不需要判断是否已有人接单
|
||||||
int update = baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>()
|
int update = baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>()
|
||||||
.set(DlRepairTickets::getNowRepairId, reqVO.getNowRepairId())
|
.set(DlRepairTickets::getNowRepairId, reqVO.getNowRepairId())
|
||||||
.set(DlRepairTickets::getNowRepairName, reqVO.getNowRepairName())
|
.set(DlRepairTickets::getNowRepairName, reqVO.getNowRepairName())
|
||||||
.and(item -> {
|
//工单状态设置为---施工中
|
||||||
item.eq(DlRepairTickets::getId, reqVO.getId())
|
.set(DlRepairTickets::getTicketsStatus, TicketsStatusEnum.WORKING.getCode())
|
||||||
.eq(DlRepairTickets::getTicketsWorkStatus, "01");
|
//维修状态设置为待接单
|
||||||
})
|
.set(DlRepairTickets::getTicketsWorkStatus, TicketsWorkStatusEnum.WAITING_RECEIVING.getCode())
|
||||||
|
.and(item -> item.eq(DlRepairTickets::getId, reqVO.getId()))
|
||||||
);
|
);
|
||||||
if (update != 1){
|
if (update != 1) {
|
||||||
throw exception0(500, "工单已开始");
|
throw exception0(500, "工单已开始");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user