1
This commit is contained in:
parent
6148f263af
commit
e02e370fbb
@ -154,5 +154,16 @@ public class DlRepairTitemController {
|
||||
return CommonResult.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查某工单维修项目进度
|
||||
* @author vinjor-M
|
||||
* @date 10:57 2024/11/5
|
||||
* @param ticketId 工单id
|
||||
**/
|
||||
@GetMapping("/getProjList")
|
||||
@Operation(summary = "查某工单维修项目进度")
|
||||
public CommonResult<?> getProjList(@RequestParam("ticketId") String ticketId){
|
||||
return success(dlRepairTitemService.getProjList(ticketId));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,4 +74,13 @@ public interface DlRepairTitemService extends IService<DlRepairTitem> {
|
||||
* @date 16:11 2024/10/31
|
||||
**/
|
||||
void updateRepairItem(List<DlRepairTitem> itemList);
|
||||
|
||||
/**
|
||||
* 查某工单维修项目进度
|
||||
* @author vinjor-M
|
||||
* @date 10:58 2024/11/5
|
||||
* @param ticketId 工单ID
|
||||
* @return java.util.List<cn.iocoder.yudao.module.tickets.entity.DlRepairTitem>
|
||||
**/
|
||||
List<DlRepairTitem> getProjList(String ticketId);
|
||||
}
|
||||
|
@ -141,6 +141,23 @@ public class DlRepairTitemServiceImpl extends ServiceImpl<DlRepairTitemMapper, D
|
||||
//重新计划工单价格
|
||||
repairTicketsService.computeTicket(itemList.get(0).getTicketId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 查某工单维修项目进度
|
||||
*
|
||||
* @param ticketId 工单ID
|
||||
* @return java.util.List<cn.iocoder.yudao.module.tickets.entity.DlRepairTitem>
|
||||
* @author vinjor-M
|
||||
* @date 10:58 2024/11/5
|
||||
**/
|
||||
@Override
|
||||
public List<DlRepairTitem> getProjList(String ticketId) {
|
||||
LambdaQueryWrapper<DlRepairTitem> queryWrapper = new LambdaQueryWrapper<DlRepairTitem>()
|
||||
.eq(DlRepairTitem::getTicketId,ticketId)
|
||||
.eq(DlRepairTitem::getItemType,"01")
|
||||
.orderByDesc(DlRepairTitem::getItemStatus);
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user