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