fix(SensorDevice): 移除传感器设备查询中的验证注解
parent
ddef372648
commit
07f618d91f
|
|
@ -91,7 +91,7 @@ public class SensorDeviceController {
|
|||
|
||||
@ApiOperation("可视化大屏-传感器设备查询")
|
||||
@PostMapping("/screenList")
|
||||
public PageResponse<SensorDeviceScreenCO> screenList(@Validated @RequestBody SensorDeviceScreenQry qry) {
|
||||
public PageResponse<SensorDeviceScreenCO> screenList(@RequestBody SensorDeviceScreenQry qry) {
|
||||
return sensorDeviceService.screenList(qry);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,5 @@ public class SensorDeviceScreenQry extends PageQuery {
|
|||
@ApiModelProperty(value = "港区,1:秦皇岛港区,2:秦皇岛东,3:秦皇岛西", name = "portArea")
|
||||
private Integer portArea;
|
||||
|
||||
@AssertTrue(message = "企业id和港区至少传一个")
|
||||
public boolean isCorpinfoIdOrPortAreaPresent() {
|
||||
return corpinfoId != null || portArea != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue