|
@@ -133,7 +133,7 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("rest")
|
|
@PostMapping("rest")
|
|
- @ApiOperation("重置多项质检")
|
|
|
|
|
|
+ @ApiOperation(value = "重置多项质检", hidden = true)
|
|
public R rest(@RequestBody DeviceQualityDto.Rest rest) {
|
|
public R rest(@RequestBody DeviceQualityDto.Rest rest) {
|
|
SysDictRedis sysDictRedis1 = SysDictUtils.get(DictEnum.DEVICE_QUALITY_STATUS.getKey(), DictSonEnum.DEVICE_QUALITY_STATUS_QUALIFIED.getKey());
|
|
SysDictRedis sysDictRedis1 = SysDictUtils.get(DictEnum.DEVICE_QUALITY_STATUS.getKey(), DictSonEnum.DEVICE_QUALITY_STATUS_QUALIFIED.getKey());
|
|
SysDictRedis sysDictRedis2 = SysDictUtils.get(DictEnum.DEVICE_FACTORY_STATUS.getKey(), DictSonEnum.DEVICE_FACTORY_STATUS_CAN_SHIPPED.getKey());
|
|
SysDictRedis sysDictRedis2 = SysDictUtils.get(DictEnum.DEVICE_FACTORY_STATUS.getKey(), DictSonEnum.DEVICE_FACTORY_STATUS_CAN_SHIPPED.getKey());
|
|
@@ -207,22 +207,7 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("getQrCode")
|
|
|
|
- @ApiOperation("获取二维码")
|
|
|
|
- public R<String> getQrCode(@RequestBody DeviceQualityDto.Qrcode qrcode) {
|
|
|
|
- String deviceId = qrcode.getDeviceId().toString();
|
|
|
|
- String base64 = QRCodeUtils.create(deviceId, 400, 400, "back1.png", deviceId).base64();
|
|
|
|
- return R.ok(base64);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @PostMapping("exportQrCode")
|
|
|
|
- @ApiOperation("导出二维码")
|
|
|
|
- public void exportQrCode(@RequestBody DeviceQualityDto.Qrcode qrcode) {
|
|
|
|
- String deviceId = qrcode.getDeviceId().toString();
|
|
|
|
- QRCodeUtils.create(deviceId, 400, 400, "back1.png", deviceId).download(deviceId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation("质检结果通知")
|
|
|
|
|
|
+ @ApiOperation(value = "质检结果通知", hidden = true)
|
|
@PostMapping("qualityResultBack")
|
|
@PostMapping("qualityResultBack")
|
|
public R qualityResultBack(@RequestBody DeviceQualityDto.QualityResultBack qualityResultBack) {
|
|
public R qualityResultBack(@RequestBody DeviceQualityDto.QualityResultBack qualityResultBack) {
|
|
Long deviceId = qualityResultBack.getDeviceId();
|
|
Long deviceId = qualityResultBack.getDeviceId();
|
|
@@ -254,4 +239,19 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("getQrCode")
|
|
|
|
+ @ApiOperation("获取二维码")
|
|
|
|
+ public R<String> getQrCode(@RequestBody DeviceQualityDto.Qrcode qrcode) {
|
|
|
|
+ String deviceId = qrcode.getDeviceId().toString();
|
|
|
|
+ String base64 = QRCodeUtils.create(deviceId, 400, 400, "back1.png", deviceId).base64();
|
|
|
|
+ return R.ok(base64);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("exportQrCode")
|
|
|
|
+ @ApiOperation("导出二维码")
|
|
|
|
+ public void exportQrCode(@RequestBody DeviceQualityDto.Qrcode qrcode) {
|
|
|
|
+ String deviceId = qrcode.getDeviceId().toString();
|
|
|
|
+ QRCodeUtils.create(deviceId, 400, 400, "back1.png", deviceId).download(deviceId);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|