feat:app角标统计
parent
feb79c9153
commit
77f3c6a716
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.primeport.web.app;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.api.VehicleApplyServiceI;
|
||||
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.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "App统计角标")
|
||||
@RequestMapping("/${application.gateway}/appStatisticsCorner")
|
||||
@RestController
|
||||
|
|
@ -15,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
public class AppCountController {
|
||||
private final VehicleApplyServiceI vehicleApplyService;
|
||||
@RequestMapping("/getAppCount")
|
||||
public SingleResponse<AppCountCO> getAppCount() {
|
||||
public MultiResponse<AppCountCO> getAppCount() {
|
||||
return vehicleApplyService.getAppCount();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@ public interface VehicleApplyCoConvertor {
|
|||
List<FgsVehicleCountCo> converCOsToDtos(List<FgsVehicleCountDto> vehicleApplyDOs);
|
||||
VehicleApplyCO converDOToCO(VehicleApplyDO vehicleApplyDO);
|
||||
|
||||
AppCountCO converAppCountDTOToAppCountCO(AppCountDTO appCountDTO);
|
||||
List<AppCountCO> converAppCountDTOsToAppCountCOs(List<AppCountDTO> appCountDTO);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.primeport.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
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<>();
|
||||
parmas.put("userId", AuthContext.getUserId());
|
||||
AppCountDTO appCountDTO = vehicleApplyRepository.getAppCount(parmas);
|
||||
return SingleResponse.of(vehicleApplyCoConvertor.converAppCountDTOToAppCountCO(appCountDTO));
|
||||
List<AppCountDTO> appCountDTO = vehicleApplyRepository.getAppCount(parmas);
|
||||
return MultiResponse.of(vehicleApplyCoConvertor.converAppCountDTOsToAppCountCOs(appCountDTO));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.primeport.service;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
|
@ -162,7 +163,7 @@ public class VehicleApplyServiceImpl implements VehicleApplyServiceI {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse<AppCountCO> getAppCount() {
|
||||
public MultiResponse<AppCountCO> getAppCount() {
|
||||
return vehicleApplyQueryExe.getAppCount();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.primeport.api;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.primeport.domain.model.VehicleApplyE;
|
||||
|
|
@ -48,6 +49,6 @@ public interface VehicleApplyServiceI {
|
|||
|
||||
Map<String, Object> checkLicenceNoBlack(String licenceNo);
|
||||
|
||||
SingleResponse<AppCountCO> getAppCount();
|
||||
MultiResponse<AppCountCO> getAppCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
package com.zcloud.primeport.persistence.dataobject;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class AppCountDTO {
|
||||
@NoArgsConstructor
|
||||
public class AppCountDTO implements Serializable {
|
||||
private String type;
|
||||
private String belongType;
|
||||
private Long auditUserId;
|
||||
|
|
|
|||
|
|
@ -133,5 +133,13 @@ public class VehicleApplyDO extends BaseDO {
|
|||
@ApiModelProperty(value = "检查部门名称", name = "checkDepartmentName")
|
||||
@TableField(exist = false)
|
||||
private String checkDepartmentName;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String type;
|
||||
@TableField(exist = false)
|
||||
private String belongType;
|
||||
@TableField(exist = false)
|
||||
private int waitAuditCount;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -32,6 +33,6 @@ public interface VehicleApplyMapper extends BaseMapper<VehicleApplyDO> {
|
|||
|
||||
VehicleApplyDO getInfoById(Long id);
|
||||
|
||||
AppCountDTO getAppCount(@Param("params") Map<String, Object> parmas);
|
||||
List<AppCountDTO> getAppCount(@Param("params") Map<String, Object> parmas);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import com.zcloud.primeport.persistence.dataobject.FgsVehicleCountDto;
|
|||
import com.zcloud.primeport.persistence.dataobject.VehicleApplyDO;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -24,6 +25,6 @@ public interface VehicleApplyRepository extends BaseRepository<VehicleApplyDO> {
|
|||
|
||||
VehicleApplyDO getInfoById(Long id);
|
||||
|
||||
AppCountDTO getAppCount(Map<String, Object> parmas);
|
||||
List<AppCountDTO> getAppCount(Map<String, Object> parmas);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import lombok.RequiredArgsConstructor;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -86,7 +87,7 @@ public class VehicleApplyRepositoryImpl extends BaseRepositoryImpl<VehicleApplyM
|
|||
}
|
||||
|
||||
@Override
|
||||
public AppCountDTO getAppCount(Map<String, Object> parmas) {
|
||||
public List<AppCountDTO> getAppCount(Map<String, Object> parmas) {
|
||||
return vehicleApplyMapper.getAppCount(parmas);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue