This commit is contained in:
Vinjor 2024-11-18 14:28:44 +08:00
parent 28ebcfc6dc
commit de264c529a
3 changed files with 6 additions and 5 deletions

View File

@ -317,9 +317,9 @@ public class DlRepairTicketsController {
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
**/
@GetMapping("/getBossNum")
@Operation(summary = "从总检的角度维修中、已完成的工单数量")
public CommonResult<?> getBossNum() {
return success(dlRepairTicketsService.getBossNum());
@Operation(summary = "从总检的角度维修中、已完成的工单数量")
public CommonResult<?> getBossNum(String selectType) {
return success(dlRepairTicketsService.getBossNum(selectType));
}
/**

View File

@ -172,7 +172,7 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
* @date 11:30 2024/10/24
* @return java.util.Map<java.lang.String,java.lang.Integer>
**/
Map<String,Integer> getBossNum();
Map<String,Integer> getBossNum(String selectType);
/**
* 服务顾问通知客户取车

View File

@ -1404,10 +1404,11 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
* @date 11:30 2024/10/24
**/
@Override
public Map<String, Integer> getBossNum() {
public Map<String, Integer> getBossNum(String selectType) {
Map<String, Integer> rtnMap = new HashMap<>();
int workingNum = 0;
int doneNum = 0;
List<DlRepairTickets> repairTickets = this.list();
if (!repairTickets.isEmpty()) {
Map<String, List<DlRepairTickets>> ifFinishMap = repairTickets.stream().collect(Collectors.groupingBy(DlRepairTickets::getIsFinish));