更新
This commit is contained in:
parent
618c7868b3
commit
359d12dcd7
@ -201,11 +201,11 @@ public class DlRepairTitemController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据工单ID统计班组完成进度
|
||||
*
|
||||
* @author AI
|
||||
* @date 2025/11/18
|
||||
* @param ticketId 工单ID
|
||||
* @description : 根据工单ID统计班组完成进度
|
||||
* @author xyc
|
||||
* @date 17:15 2025/11/18
|
||||
* @param [ticketId]
|
||||
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
|
||||
**/
|
||||
@GetMapping("/teamProgress")
|
||||
@Operation(summary = "根据工单ID统计班组完成进度")
|
||||
@ -214,12 +214,11 @@ public class DlRepairTitemController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据班组查询班组下工时项目的完成情况
|
||||
*
|
||||
* @author AI
|
||||
* @date 2025/11/18
|
||||
* @param ticketId 工单ID
|
||||
* @param workType 班组编码(工种类型)
|
||||
* @description : 根据班组查询班组下工时项目的完成情况
|
||||
* @author xyc
|
||||
* @date 17:15 2025/11/18
|
||||
* @param [ticketId, workType]
|
||||
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
|
||||
**/
|
||||
@GetMapping("/teamProjectStatus")
|
||||
@Operation(summary = "根据班组查询班组下工时项目的完成情况")
|
||||
|
||||
@ -1314,7 +1314,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
RepairRecords record = finishedRecordMap.get(item.getId());
|
||||
if (record != null) {
|
||||
vo.setFinished(true);
|
||||
vo.setFinishTime(record.getCreateTime());
|
||||
vo.setFinishTime(DateUtil.date(record.getCreateTime()));
|
||||
vo.setFinisherId(record.getDealUserId());
|
||||
vo.setFinisherName(record.getDealUserName());
|
||||
} else {
|
||||
@ -1375,7 +1375,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
String repairItemId = record.getRepairItemId();
|
||||
RepairRecords exist = finishedRecordMap.get(repairItemId);
|
||||
if (exist == null || (record.getCreateTime() != null && exist.getCreateTime() != null
|
||||
&& record.getCreateTime().after(exist.getCreateTime()))) {
|
||||
&& DateUtil.date(record.getCreateTime()).after(DateUtil.date(exist.getCreateTime())))) {
|
||||
finishedRecordMap.put(repairItemId, record);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user