瀏覽代碼

Merge remote-tracking branch 'remotes/origin/dev-1.1' into dev

# Conflicts:
#	src/main/java/com/chinaitop/depot/storage/utils/ExcelExporter.java
ZeroLiYi 1 年之前
父節點
當前提交
f71113bdda

+ 4 - 1
src/main/java/com/chinaitop/depot/storage/mapper/GrainSituationCardMapper.xml

@@ -850,7 +850,10 @@
850 850
       silo_grain_height = #{siloGrainHeight,jdbcType=DECIMAL},
851 851
       packaged_count = #{packagedCount,jdbcType=INTEGER},
852 852
       average_weight = #{averageWeight,jdbcType=DECIMAL},
853
-      check_record_ids = #{checkRecordIds,jdbcType=VARCHAR}
853
+      check_record_ids = #{checkRecordIds,jdbcType=VARCHAR},
854
+        in_financial_verification= #{inFinancialVerification,jdbcType=VARCHAR},
855
+      out_financial_verification=#{outFinancialVerification,jdbcType=VARCHAR},
856
+        excess_loss_quantity=#{excessLossQuantity,jdbcType=DECIMAL}
854 857
     where id = #{id,jdbcType=INTEGER}
855 858
   </update>
856 859
 </mapper>

+ 3 - 0
src/main/java/com/chinaitop/depot/storage/utils/ExcelExporter.java

@@ -27,6 +27,7 @@ public class ExcelExporter {
27 27
             int rowIndex;
28 28
             rowIndex= 1;
29 29
             // 设置主标题并居中
30
+            Row titleRow = sheet.createRow(rowIndex++);
30 31
 
31 32
             Row headerRow = sheet.createRow(0);
32 33
             CellStyle headerCellStyle = workbook.createCellStyle();
@@ -103,6 +104,8 @@ public class ExcelExporter {
103 104
                 }
104 105
             }
105 106
 
107
+            rowIndex++; // 新增一行用于标题
108
+
106 109
             // 处理 GrainSituationCardWarehouseRecord 数据之前的表头
107 110
             rowIndex++; // 新增一行作为记录变更的表头行
108 111
             columnIndex = 0; // 重置列索引