|
@@ -91,14 +91,14 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
|
|
|
|
@PostMapping("getQrCode")
|
|
|
@ApiOperation("获取二维码")
|
|
|
- public R<String> getQrCode(DeviceQualityDto.Save save) {
|
|
|
+ public R<String> getQrCode(@RequestBody DeviceQualityDto.Save save) {
|
|
|
String base64 = QRCodeUtils.create(save.getDeviceId().toString(), 200, 200).base64();
|
|
|
return R.ok(base64);
|
|
|
}
|
|
|
|
|
|
@PostMapping("exportQrCode")
|
|
|
@ApiOperation("导出二维码")
|
|
|
- public void exportQrCode(DeviceQualityDto.Save save) {
|
|
|
+ public void exportQrCode(@RequestBody DeviceQualityDto.Save save) {
|
|
|
QRCodeUtils.create(save.getDeviceId().toString(), 200, 200).download(save.getDeviceId().toString());
|
|
|
}
|
|
|
|