|
@@ -904,7 +904,9 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
}
|
|
}
|
|
|
|
|
|
private String drawPicOneBuild(CertificatePhotoVo entity){
|
|
private String drawPicOneBuild(CertificatePhotoVo entity){
|
|
- Font font = new Font("宋体", Font.BOLD, 60);// 添加字体的属性设置 微软雅黑
|
|
|
|
|
|
+ String tenantId = ToolsUtils.getTenantId();
|
|
|
|
+ Integer size = "779352047136603".equals(tenantId)?60:20;
|
|
|
|
+ Font font = new Font("宋体", Font.BOLD, size);// 添加字体的属性设置 微软雅黑
|
|
String imgName = null;
|
|
String imgName = null;
|
|
try {
|
|
try {
|
|
// 加载本地图片
|
|
// 加载本地图片
|
|
@@ -918,7 +920,6 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
// 设置文本样式
|
|
// 设置文本样式
|
|
g.setFont(font);
|
|
g.setFont(font);
|
|
g.setColor(Color.BLACK);
|
|
g.setColor(Color.BLACK);
|
|
- String tenantId = ToolsUtils.getTenantId();
|
|
|
|
if ("779352047136603".equals(tenantId)){
|
|
if ("779352047136603".equals(tenantId)){
|
|
g.drawString(entity.getCode(), 570, 1850);
|
|
g.drawString(entity.getCode(), 570, 1850);
|
|
g.drawString(entity.getRealname(), 680, 1020);
|
|
g.drawString(entity.getRealname(), 680, 1020);
|
|
@@ -954,7 +955,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
if ("779352047136603".equals(tenantId)){
|
|
if ("779352047136603".equals(tenantId)){
|
|
- g.drawImage(qrImage, 395, 1914, 300, 300 , null);
|
|
|
|
|
|
+ g.drawImage(qrImage, 395, 1914,300,300, null);
|
|
}else {
|
|
}else {
|
|
g.drawImage(qrImage, 128, 660, 120, 120, null);
|
|
g.drawImage(qrImage, 128, 660, 120, 120, null);
|
|
}
|
|
}
|