1
This commit is contained in:
parent
28ebcfc6dc
commit
de264c529a
@ -317,9 +317,9 @@ public class DlRepairTicketsController {
|
|||||||
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
|
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
|
||||||
**/
|
**/
|
||||||
@GetMapping("/getBossNum")
|
@GetMapping("/getBossNum")
|
||||||
@Operation(summary = "从总检的角度差维修中、已完成的工单数量")
|
@Operation(summary = "从总检的角度查维修中、已完成的工单数量")
|
||||||
public CommonResult<?> getBossNum() {
|
public CommonResult<?> getBossNum(String selectType) {
|
||||||
return success(dlRepairTicketsService.getBossNum());
|
return success(dlRepairTicketsService.getBossNum(selectType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -172,7 +172,7 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
|
|||||||
* @date 11:30 2024/10/24
|
* @date 11:30 2024/10/24
|
||||||
* @return java.util.Map<java.lang.String,java.lang.Integer>
|
* @return java.util.Map<java.lang.String,java.lang.Integer>
|
||||||
**/
|
**/
|
||||||
Map<String,Integer> getBossNum();
|
Map<String,Integer> getBossNum(String selectType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务顾问通知客户取车
|
* 服务顾问通知客户取车
|
||||||
|
@ -1404,10 +1404,11 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
* @date 11:30 2024/10/24
|
* @date 11:30 2024/10/24
|
||||||
**/
|
**/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Integer> getBossNum() {
|
public Map<String, Integer> getBossNum(String selectType) {
|
||||||
Map<String, Integer> rtnMap = new HashMap<>();
|
Map<String, Integer> rtnMap = new HashMap<>();
|
||||||
int workingNum = 0;
|
int workingNum = 0;
|
||||||
int doneNum = 0;
|
int doneNum = 0;
|
||||||
|
|
||||||
List<DlRepairTickets> repairTickets = this.list();
|
List<DlRepairTickets> repairTickets = this.list();
|
||||||
if (!repairTickets.isEmpty()) {
|
if (!repairTickets.isEmpty()) {
|
||||||
Map<String, List<DlRepairTickets>> ifFinishMap = repairTickets.stream().collect(Collectors.groupingBy(DlRepairTickets::getIsFinish));
|
Map<String, List<DlRepairTickets>> ifFinishMap = repairTickets.stream().collect(Collectors.groupingBy(DlRepairTickets::getIsFinish));
|
||||||
|
Loading…
Reference in New Issue
Block a user