Преглед изворни кода

调整益寿缘处方图片布局

cgp пре 2 недеља
родитељ
комит
fbe87569d8

+ 5 - 5
fs-service/src/main/java/com/fs/his/service/impl/PrescriptionImageServiceImpl.java

@@ -231,14 +231,14 @@ public class PrescriptionImageServiceImpl implements PrescriptionImageService {
 
         if (StringUtils.isNotBlank(param.getDoctorNo())) {
             int x = 727;
-            int y = 1705;
+            int y = 1905;
             int maxWidth = 760;
             drawMultiLineText(pen, param.getDoctorNo(), x, y, maxWidth);
         }
 
         if (StringUtils.isNotBlank(param.getDoctorTitle())) {
-            int x = 290;
-            int y = 1879;
+            int x = 282;
+            int y = 2079;
             int maxWidth = 760;
             drawMultiLineText(pen, param.getDoctorTitle(), x, y, maxWidth);
         }
@@ -535,7 +535,7 @@ public class PrescriptionImageServiceImpl implements PrescriptionImageService {
                 BufferedImage doctorSign = downloadSignatureImage(param.getUrl());
                 if (doctorSign != null) {
                     Image scaledSign = doctorSign.getScaledInstance(120, 80, Image.SCALE_SMOOTH);
-                    pen.drawImage(scaledSign, 202, 1642, null);
+                    pen.drawImage(scaledSign, 202, 1842, null);
                 }
             } catch (Exception e) {
                 log.error("加载医师签名失败: {}", param.getUrl(), e);
@@ -548,7 +548,7 @@ public class PrescriptionImageServiceImpl implements PrescriptionImageService {
                 BufferedImage pharmacistSign = downloadSignatureImage("https://ysy-1329817240.cos.ap-guangzhou.myqcloud.com/ysy/20251028/ed509381390049c9ad2a17e95d8b8732.png");
                 if (pharmacistSign != null) {
                     Image scaledSign = pharmacistSign.getScaledInstance(120, 80, Image.SCALE_SMOOTH);
-                    pen.drawImage(scaledSign, 1076, 1828, null);
+                    pen.drawImage(scaledSign, 1076, 2028, null);
                 }
             } catch (Exception e) {
                 log.error("加载药师签名失败: {}", param.getDrugDoctorUrl(), e);