Merge branch 'repair' of http://122.51.230.86:3000/dianliang/lanan-system into repair
This commit is contained in:
commit
1d190df750
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
* 服务顾问通知客户取车
|
||||
|
@ -1405,10 +1405,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));
|
||||
|
Loading…
Reference in New Issue
Block a user