ソースを参照

病理送检附件默认添加一个实验

陈长荣 2 ヶ月 前
コミット
09d7b73d56

+ 4 - 0
jfcloud-gene-biz/src/main/java/com/github/jfcloud/gene/sample/service/biz/SamplePathologicalServiceImpl.java

@@ -163,6 +163,10 @@ public class SamplePathologicalServiceImpl extends ServiceImpl<SamplePathologica
 
         //实验
         List<PreExperimentVo> experiments = pathologicalVo.getExperiments();
+        if (pathologicalVo.getPreExperiment() && experiments.isEmpty()) {
+            //默认添加一个实验
+            experiments.add(new PreExperimentVo());
+        }
         AtomicInteger experimentIndex = new AtomicInteger(0);
         experiments.forEach(item -> {
             item.setTitle("实验" + Convert.numberToChinese(experimentIndex.incrementAndGet(), false));

+ 11 - 11
jfcloud-gene-biz/src/main/resources/ftlTemplate/animalPathological.ftl

@@ -3352,7 +3352,7 @@
 												</v:shape>
 											</w:pict>
 										<#else >
-											<w:t xml:space="preserve">                             </w:t>
+											<w:t xml:space="preserve">         </w:t>
 										</#if>
 									</w:r>
 									<w:r>
@@ -6834,7 +6834,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="3625" w:type="dxa"/>
+									<w:tcW w:w="4125" w:type="dxa"/>
 									<w:tcBorders>
 										<w:top w:val="nil"/>
 										<w:bottom w:val="nil"/>
@@ -6881,7 +6881,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="2422" w:type="dxa"/>
+									<w:tcW w:w="1692" w:type="dxa"/>
 									<w:gridSpan w:val="2"/>
 									<w:tcBorders>
 										<w:left w:val="nil"/>
@@ -6942,7 +6942,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="3625" w:type="dxa"/>
+									<w:tcW w:w="4125" w:type="dxa"/>
 									<w:tcBorders>
 										<w:top w:val="nil"/>
 										<w:bottom w:val="nil"/>
@@ -6993,7 +6993,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="2422" w:type="dxa"/>
+									<w:tcW w:w="1692" w:type="dxa"/>
 									<w:gridSpan w:val="2"/>
 									<w:tcBorders>
 										<w:left w:val="nil"/>
@@ -7054,7 +7054,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="3625" w:type="dxa"/>
+									<w:tcW w:w="4125" w:type="dxa"/>
 									<w:tcBorders>
 										<w:top w:val="nil"/>
 										<w:bottom w:val="nil"/>
@@ -7134,7 +7134,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="2422" w:type="dxa"/>
+									<w:tcW w:w="1692" w:type="dxa"/>
 									<w:gridSpan w:val="2"/>
 									<w:tcBorders>
 										<w:left w:val="nil"/>
@@ -7254,7 +7254,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="3625" w:type="dxa"/>
+									<w:tcW w:w="4125" w:type="dxa"/>
 									<w:tcBorders>
 										<w:top w:val="nil"/>
 										<w:bottom w:val="nil"/>
@@ -7340,7 +7340,7 @@
 							</w:tc>
 							<w:tc>
 								<w:tcPr>
-									<w:tcW w:w="2422" w:type="dxa"/>
+									<w:tcW w:w="1692" w:type="dxa"/>
 									<w:gridSpan w:val="2"/>
 									<w:tcBorders>
 										<w:left w:val="nil"/>
@@ -7662,7 +7662,7 @@
 									<w:tcW w:w="8505" w:type="dxa"/>
 									<w:gridSpan w:val="4"/>
 								</w:tcPr>
-								${item.syjg!}
+								${item.syjg!'<w:p />'}
 							</w:tc>
 						</w:tr>
 						</#list>
@@ -9384,7 +9384,7 @@
 					<w:semiHidden/>
 					<w:qFormat/>
 					<w:rPr>
-						<w:rFonts w:ascii="宋体" w:eastAsia="宋体" w:hAnsi="宋体" w:cs="宋体"/>
+						<w:rFonts w:ascii="Times New Roman" w:eastAsia="宋体" w:hAnsi="Times New Roman"/>
 						<w:sz w:val="19"/>
 						<w:szCs w:val="19"/>
 					</w:rPr>