Browse Source

张丁 修复目标措施负责人未带出的bug

zhangding 3 years ago
parent
commit
e8a1855b65

+ 2 - 1
master/src/main/java/com/ruoyi/project/plant/controller/TTargetmeasuresController.java

@@ -303,8 +303,9 @@ public class TTargetmeasuresController extends BaseController
                         String[] responsibles={};
                         if(m.getResponsible()!=null){
                             responsibles= m.getResponsible().split(",");
+                            m.setResponsiblesNum(responsibles.length * 16);
                         }
-                        m.setResponsiblesNum(responsibles.length * 16);
+
                         String responsiblesName = "";
                         for (int i = 0; i < responsibles.length; i++) {
                             String name ="";

+ 1 - 1
master/src/main/resources/freeMaker/measuresFMaker.ftl

@@ -157,7 +157,7 @@
 							</td>
 							<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:10.48%; word-wrap:break-word; word-break:break-all;">
 								<p style="margin:0pt; orphans:0; text-align:center; widows:0">
-									<span style="font-family:SimSun; font-size:8pt">${(measure.responsible0)!""}</span>
+									<span style="font-family:SimSun; font-size:8pt">${(measure.responsible)!""}</span>
 								</p>
 							</td>
 							<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:11.68%">