|
@@ -99,7 +99,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
* 聚邻社顶级商户
|
|
* 聚邻社顶级商户
|
|
*/
|
|
*/
|
|
public static final String JLS_MERC_CODE = "10168";
|
|
public static final String JLS_MERC_CODE = "10168";
|
|
- private final CloudWalkApiService cloudWalkApiService;
|
|
|
|
|
|
+ private final CloudWalkApiService cloudWalkApiService;
|
|
private final AlgorithmService algorithmService;
|
|
private final AlgorithmService algorithmService;
|
|
private final CountApiService countApiService;
|
|
private final CountApiService countApiService;
|
|
private final TyApiService tyApiService;
|
|
private final TyApiService tyApiService;
|
|
@@ -1206,6 +1206,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
QueryWrapper<DeviceInfo> queryWrapper = new MybatisPlusQuery().eqWrapper(vo == null ? new DeviceInfoDto.Vo() : vo, DeviceInfo.class).buildQW();
|
|
QueryWrapper<DeviceInfo> queryWrapper = new MybatisPlusQuery().eqWrapper(vo == null ? new DeviceInfoDto.Vo() : vo, DeviceInfo.class).buildQW();
|
|
// List<Long> placeLineIds = dto.getPlaceLineIds();
|
|
// List<Long> placeLineIds = dto.getPlaceLineIds();
|
|
List<Long> deviceIds = dto.getDeviceIds();
|
|
List<Long> deviceIds = dto.getDeviceIds();
|
|
|
|
+ List<Long> mercIds = dto.getMercIds();
|
|
List<String> columnList = dto.getColumnList();
|
|
List<String> columnList = dto.getColumnList();
|
|
// if (CollUtil.isNotEmpty(placeLineIds)) {
|
|
// if (CollUtil.isNotEmpty(placeLineIds)) {
|
|
// queryWrapper.in(LambdaUtils.getUnderlineCaseName(DeviceInfo::getPlaceLineId), placeLineIds);
|
|
// queryWrapper.in(LambdaUtils.getUnderlineCaseName(DeviceInfo::getPlaceLineId), placeLineIds);
|
|
@@ -1224,6 +1225,9 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
if (CollUtil.isNotEmpty(deviceIds)) {
|
|
if (CollUtil.isNotEmpty(deviceIds)) {
|
|
queryWrapper.in(LambdaUtils.getUnderlineCaseName(DeviceInfo::getDeviceId), deviceIds);
|
|
queryWrapper.in(LambdaUtils.getUnderlineCaseName(DeviceInfo::getDeviceId), deviceIds);
|
|
}
|
|
}
|
|
|
|
+ if (CollUtil.isNotEmpty(mercIds)) {
|
|
|
|
+ queryWrapper.in(LambdaUtils.getUnderlineCaseName(DeviceInfo::getMercId), mercIds);
|
|
|
|
+ }
|
|
return R.ok(copy(DeviceInfoDto.Vo.class, list(queryWrapper)));
|
|
return R.ok(copy(DeviceInfoDto.Vo.class, list(queryWrapper)));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2090,6 +2094,12 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
return R.ok(copy);
|
|
return R.ok(copy);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("检查设备是否开启重力配置")
|
|
|
|
+ @Override
|
|
|
|
+ public R<Boolean> checkWeightOpen(DevicePartDto.CheckWeightOpenDTO dto) {
|
|
|
|
+ return R.ok(devicePartService.checkWeightOpen(dto));
|
|
|
|
+ }
|
|
|
|
+
|
|
@PostMapping("nfcActive")
|
|
@PostMapping("nfcActive")
|
|
@ApiOperation("nfc设备激活")
|
|
@ApiOperation("nfc设备激活")
|
|
public R<Boolean> nfcActive(@RequestBody @Validated ActiveDeviceDTO dto) {
|
|
public R<Boolean> nfcActive(@RequestBody @Validated ActiveDeviceDTO dto) {
|