|
@@ -617,7 +617,6 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
}else{
|
|
|
addBo.setPublicClassHours(goodsVo.getPublicClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP ));
|
|
|
}
|
|
|
-
|
|
|
return addBo;
|
|
|
}
|
|
|
private String getCertificateCode(){
|
|
@@ -997,10 +996,10 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
//二维码
|
|
|
String qrTxt = CERTIFICATE_HOST+"pages/certificate/index?code="+entity.getCode();
|
|
|
QRCodeWriter qrCodeWriter = new QRCodeWriter();
|
|
|
- BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 150, 150);
|
|
|
+ BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
|
- g.drawImage(qrImage, 1233, 175, 150, 150, null);
|
|
|
+ g.drawImage(qrImage, 1213, 155, 180, 180, null);
|
|
|
// 完成模板修改
|
|
|
g.dispose();
|
|
|
// 获取新文件的地址
|
|
@@ -1092,10 +1091,10 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
//二维码
|
|
|
String qrTxt = CERTIFICATE_HOST+"pages/certificate/index?code="+entity.getCode();
|
|
|
QRCodeWriter qrCodeWriter = new QRCodeWriter();
|
|
|
- BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 150, 150);
|
|
|
+ BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
|
- g.drawImage(qrImage, 1233, 175, 150, 150, null);
|
|
|
+ g.drawImage(qrImage, 1213, 155, 180, 180, null);
|
|
|
// 完成模板修改
|
|
|
g.dispose();
|
|
|
// 获取新文件的地址
|