feat(): 补充分支合并遗漏代码
parent
f7b904591e
commit
5f3d891cef
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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 = "摄像头名称")
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import lombok.Getter;
|
|||
*/
|
||||
@Getter
|
||||
public enum KeyProjectCameraTypeEnum {
|
||||
ALL_CAMERA(0, "全部摄像头"),
|
||||
FIXED_CAMERA(1, "固定摄像头"),
|
||||
MOBILE_CAMERA(2, "移动摄像头");
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = "摄像头名称")
|
||||
|
|
|
|||
Loading…
Reference in New Issue