feat:app角标统计

koumen
dearLin 2026-04-01 15:29:50 +08:00
parent feb79c9153
commit 77f3c6a716
10 changed files with 32 additions and 11 deletions

View File

@ -1,5 +1,6 @@
package com.zcloud.primeport.web.app; package com.zcloud.primeport.web.app;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.SingleResponse; import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.primeport.api.VehicleApplyServiceI; import com.zcloud.primeport.api.VehicleApplyServiceI;
import com.zcloud.primeport.dto.clientobject.AppCountCO; import com.zcloud.primeport.dto.clientobject.AppCountCO;
@ -8,6 +9,8 @@ import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "App统计角标") @Api(tags = "App统计角标")
@RequestMapping("/${application.gateway}/appStatisticsCorner") @RequestMapping("/${application.gateway}/appStatisticsCorner")
@RestController @RestController
@ -15,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
public class AppCountController { public class AppCountController {
private final VehicleApplyServiceI vehicleApplyService; private final VehicleApplyServiceI vehicleApplyService;
@RequestMapping("/getAppCount") @RequestMapping("/getAppCount")
public SingleResponse<AppCountCO> getAppCount() { public MultiResponse<AppCountCO> getAppCount() {
return vehicleApplyService.getAppCount(); return vehicleApplyService.getAppCount();
} }
} }

View File

@ -28,6 +28,6 @@ public interface VehicleApplyCoConvertor {
List<FgsVehicleCountCo> converCOsToDtos(List<FgsVehicleCountDto> vehicleApplyDOs); List<FgsVehicleCountCo> converCOsToDtos(List<FgsVehicleCountDto> vehicleApplyDOs);
VehicleApplyCO converDOToCO(VehicleApplyDO vehicleApplyDO); VehicleApplyCO converDOToCO(VehicleApplyDO vehicleApplyDO);
AppCountCO converAppCountDTOToAppCountCO(AppCountDTO appCountDTO); List<AppCountCO> converAppCountDTOsToAppCountCOs(List<AppCountDTO> appCountDTO);
} }

View File

@ -1,5 +1,6 @@
package com.zcloud.primeport.command.query; package com.zcloud.primeport.command.query;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse; import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse; import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@ -96,11 +97,11 @@ public class VehicleApplyQueryExe {
} }
public SingleResponse<AppCountCO> getAppCount() { public MultiResponse<AppCountCO> getAppCount() {
Map<String, Object> parmas = new HashMap<>(); Map<String, Object> parmas = new HashMap<>();
parmas.put("userId", AuthContext.getUserId()); parmas.put("userId", AuthContext.getUserId());
AppCountDTO appCountDTO = vehicleApplyRepository.getAppCount(parmas); List<AppCountDTO> appCountDTO = vehicleApplyRepository.getAppCount(parmas);
return SingleResponse.of(vehicleApplyCoConvertor.converAppCountDTOToAppCountCO(appCountDTO)); return MultiResponse.of(vehicleApplyCoConvertor.converAppCountDTOsToAppCountCOs(appCountDTO));
} }
} }

View File

@ -1,5 +1,6 @@
package com.zcloud.primeport.service; package com.zcloud.primeport.service;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse; import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse; import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@ -162,7 +163,7 @@ public class VehicleApplyServiceImpl implements VehicleApplyServiceI {
} }
@Override @Override
public SingleResponse<AppCountCO> getAppCount() { public MultiResponse<AppCountCO> getAppCount() {
return vehicleApplyQueryExe.getAppCount(); return vehicleApplyQueryExe.getAppCount();
} }
} }

View File

@ -1,5 +1,6 @@
package com.zcloud.primeport.api; package com.zcloud.primeport.api;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse; import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse; import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.primeport.domain.model.VehicleApplyE; import com.zcloud.primeport.domain.model.VehicleApplyE;
@ -48,6 +49,6 @@ public interface VehicleApplyServiceI {
Map<String, Object> checkLicenceNoBlack(String licenceNo); Map<String, Object> checkLicenceNoBlack(String licenceNo);
SingleResponse<AppCountCO> getAppCount(); MultiResponse<AppCountCO> getAppCount();
} }

View File

@ -1,9 +1,13 @@
package com.zcloud.primeport.persistence.dataobject; package com.zcloud.primeport.persistence.dataobject;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data @Data
public class AppCountDTO { @NoArgsConstructor
public class AppCountDTO implements Serializable {
private String type; private String type;
private String belongType; private String belongType;
private Long auditUserId; private Long auditUserId;

View File

@ -133,5 +133,13 @@ public class VehicleApplyDO extends BaseDO {
@ApiModelProperty(value = "检查部门名称", name = "checkDepartmentName") @ApiModelProperty(value = "检查部门名称", name = "checkDepartmentName")
@TableField(exist = false) @TableField(exist = false)
private String checkDepartmentName; private String checkDepartmentName;
@TableField(exist = false)
private String type;
@TableField(exist = false)
private String belongType;
@TableField(exist = false)
private int waitAuditCount;
} }

View File

@ -12,6 +12,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -32,6 +33,6 @@ public interface VehicleApplyMapper extends BaseMapper<VehicleApplyDO> {
VehicleApplyDO getInfoById(Long id); VehicleApplyDO getInfoById(Long id);
AppCountDTO getAppCount(@Param("params") Map<String, Object> parmas); List<AppCountDTO> getAppCount(@Param("params") Map<String, Object> parmas);
} }

View File

@ -7,6 +7,7 @@ import com.zcloud.primeport.persistence.dataobject.FgsVehicleCountDto;
import com.zcloud.primeport.persistence.dataobject.VehicleApplyDO; import com.zcloud.primeport.persistence.dataobject.VehicleApplyDO;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -24,6 +25,6 @@ public interface VehicleApplyRepository extends BaseRepository<VehicleApplyDO> {
VehicleApplyDO getInfoById(Long id); VehicleApplyDO getInfoById(Long id);
AppCountDTO getAppCount(Map<String, Object> parmas); List<AppCountDTO> getAppCount(Map<String, Object> parmas);
} }

View File

@ -23,6 +23,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -86,7 +87,7 @@ public class VehicleApplyRepositoryImpl extends BaseRepositoryImpl<VehicleApplyM
} }
@Override @Override
public AppCountDTO getAppCount(Map<String, Object> parmas) { public List<AppCountDTO> getAppCount(Map<String, Object> parmas) {
return vehicleApplyMapper.getAppCount(parmas); return vehicleApplyMapper.getAppCount(parmas);
} }
} }