opt:打印功能子卷号优化

This commit is contained in:
2026-10-15 17:29:59 +08:00
parent d4a36385bb
commit 30b4d2d4b8

View File

@@ -153,11 +153,11 @@ public class PrintServiceImpl implements PrintService {
OutputStreamWriter write = new OutputStreamWriter(new FileOutputStream(file), "utf-8");
BufferedWriter bw = new BufferedWriter(write);
if ("1".equals(is_single_roll_single_box)) {
// if ("1".equals(is_single_roll_single_box)) {
bw.write("bz_print_no,package_box_sn1,package_box_sn2,sale_order_name,product_description,product_name,width,pcsn,date_of_FG_inbound,box_weight,date_of_production,quanlity_in_box,quality_guaran_period,nspector,storage_conditions,container_name,weight,customer_name,customer_description,thickness,mass_per_unit_area,length,box_type,sap_pcsn,box_length,box_width,box_high,material_type,joint_type\n");
} else {
bw.write("bz_print_no,package_box_sn1,package_box_sn2,sale_order_name,product_description,product_name,width,pcsn,date_of_FG_inbound,box_weight,date_of_production,quanlity_in_box,quality_guaran_period,nspector,storage_conditions,weight,customer_name,customer_description,thickness,mass_per_unit_area,length,box_type,sap_pcsn,box_length,box_width,box_high,material_type,joint_type\n");
}
// } else {
// bw.write("bz_print_no,package_box_sn1,package_box_sn2,sale_order_name,product_description,product_name,width,pcsn,date_of_FG_inbound,box_weight,date_of_production,quanlity_in_box,quality_guaran_period,nspector,storage_conditions,weight,customer_name,customer_description,thickness,mass_per_unit_area,length,box_type,sap_pcsn,box_length,box_width,box_high,material_type,joint_type\n");
// }
bw.write(bz_print_no + ","
+ package_box_sn1 + ","
@@ -174,7 +174,7 @@ public class PrintServiceImpl implements PrintService {
+ quality_guaran_period + ","
+ nspector + ","
+ storage_conditions + ","
+ ("1".equals(is_single_roll_single_box) ? container_name + "," : "")
+ ("1".equals(is_single_roll_single_box) ? container_name + "," : ",")
+ NumberUtil.round(weight, 2).toString() + "KG,"
+ box_jo.getString("customer_name") + ","
+ box_jo.getString("customer_description") + ","