feat(): 补充分支合并遗漏代码

dev
lishiwei 2026-07-20 09:10:30 +08:00
parent f7b904591e
commit 5f3d891cef
5 changed files with 7 additions and 3 deletions

View File

@ -59,6 +59,9 @@ public class KeyProjectCameraQueryExe {
if(KeyProjectCameraTypeEnum.MOBILE_CAMERA.getCode().equals(cameraListCmd.getCameraType())){
pageResponse = keyProjectCameraRepository.listMobileCameraAll(params);
}
if(KeyProjectCameraTypeEnum.ALL_CAMERA.getCode().equals(cameraListCmd.getCameraType())){
pageResponse = keyProjectCameraRepository.listAllCamera(params);
}
List<CameraInfoCO> examCenterCOS = keyProjectCameraCoConvertor.converCameraDOsToCOs(pageResponse.getData());
pageResponse.setPageSize(examCenterCOS.size());
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());

View File

@ -20,7 +20,7 @@ public class CameraInfoCO implements Serializable {
@ApiModelProperty(value = "摄像头id")
private String cameraId;
//摄像头类型,1:固定摄像头,2:移动摄像头
@ApiModelProperty(value = "摄像头类型,1:固定摄像头,2:移动摄像头")
@ApiModelProperty(value = "摄像头类型,0:查全部,1:固定摄像头,2:移动摄像头")
private Integer cameraType;
@ApiModelProperty(value = "摄像头名称")

View File

@ -26,7 +26,7 @@ public class CameraListCmd extends PageQuery {
* - `le`:
* - `ne`: SQL!=
*/
@ApiModelProperty(value = "摄像头类型,1:固定摄像头,2:移动摄像头")
@ApiModelProperty(value = "摄像头类型,0:查全部,1:固定摄像头,2:移动摄像头")
@NotNull(message = "摄像头类型不能为空")
private Integer cameraType;

View File

@ -7,6 +7,7 @@ import lombok.Getter;
*/
@Getter
public enum KeyProjectCameraTypeEnum {
ALL_CAMERA(0, "全部摄像头"),
FIXED_CAMERA(1, "固定摄像头"),
MOBILE_CAMERA(2, "移动摄像头");

View File

@ -20,7 +20,7 @@ public class CameraInfoDO implements Serializable {
@ApiModelProperty(value = "摄像头id")
private String cameraId;
//摄像头类型,1:固定摄像头,2:移动摄像头
@ApiModelProperty(value = "摄像头类型,1:固定摄像头,2:移动摄像头")
@ApiModelProperty(value = "摄像头类型,0:查全部,1:固定摄像头,2:移动摄像头")
private Integer cameraType;
@ApiModelProperty(value = "摄像头名称")