谭斌 hace 2 años
padre
commit
fdb1b8387e

+ 1 - 0
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -339,6 +339,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
     }
 
     @Override
+    @ApiOperation("通用集合查询")
     public R<List<DeviceInfoDto.Vo>> listCommon(DeviceInfoDto.ListCommon dto) {
         String deviceSearch = dto.getDeviceSearch();
         QueryWrapper<DeviceInfo> queryWrapper = new MybatisPlusQuery().eqWrapper(dto.getVo(), DeviceInfo.class).buildQW();

+ 2 - 2
device-api/src/main/java/com/xy/service/DeviceInfoService.java

@@ -65,7 +65,7 @@ public interface DeviceInfoService {
      * @return
      */
     @PostMapping("list")
-    R<List<DeviceInfoDto.Vo>> list(DeviceInfoDto.ListDto dto);
+    R<List<DeviceInfoDto.Vo>> list(@RequestBody @Validated DeviceInfoDto.ListDto dto);
 
     /**
      * 通用列表查询
@@ -74,7 +74,7 @@ public interface DeviceInfoService {
      * @return
      */
     @PostMapping("listCommon")
-    R<List<DeviceInfoDto.Vo>> listCommon(DeviceInfoDto.ListCommon dto);
+    R<List<DeviceInfoDto.Vo>> listCommon(@RequestBody @Validated DeviceInfoDto.ListCommon dto);
 
     /**
      * 更新商户线路