代码更新
This commit is contained in:
@@ -71,11 +71,6 @@ public class PrintServiceImpl implements PrintService {
|
|||||||
String product_name = box_jo.getString("product_name");
|
String product_name = box_jo.getString("product_name");
|
||||||
//规格: 厚度*幅宽
|
//规格: 厚度*幅宽
|
||||||
String width = box_jo.getString("thickness")+"*"+box_jo.getString("width");
|
String width = box_jo.getString("thickness")+"*"+box_jo.getString("width");
|
||||||
//批号
|
|
||||||
String pcsn = box_jo.getString("date_of_production");
|
|
||||||
if (ObjectUtil.isNotEmpty(pcsn)) {
|
|
||||||
pcsn = pcsn.replaceAll("[[\\s-:punct:]]", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
//入库日期:取此箱子中最晚的入库日期
|
//入库日期:取此箱子中最晚的入库日期
|
||||||
JSONObject jsonInbound= subTab.query("package_box_sn = '" + box_no + "' order by date_of_fg_inbound DESC").uniqueResult(0);
|
JSONObject jsonInbound= subTab.query("package_box_sn = '" + box_no + "' order by date_of_fg_inbound DESC").uniqueResult(0);
|
||||||
@@ -85,6 +80,11 @@ public class PrintServiceImpl implements PrintService {
|
|||||||
//生产日期:取此箱子中最晚的生产日期
|
//生产日期:取此箱子中最晚的生产日期
|
||||||
JSONObject jsonProduction = subTab.query("package_box_sn = '" + box_no + "' order by date_of_production DESC").uniqueResult(0);
|
JSONObject jsonProduction = subTab.query("package_box_sn = '" + box_no + "' order by date_of_production DESC").uniqueResult(0);
|
||||||
String date_of_production = jsonProduction.getString("date_of_production");
|
String date_of_production = jsonProduction.getString("date_of_production");
|
||||||
|
//批号
|
||||||
|
String pcsn = jsonProduction.getString("date_of_production");
|
||||||
|
if (ObjectUtil.isNotEmpty(pcsn)) {
|
||||||
|
pcsn = pcsn.replaceAll("[[\\s-:punct:]]", "");
|
||||||
|
}
|
||||||
//卷数
|
//卷数
|
||||||
String quanlity_in_box = box_jo.getString("quanlity_in_box");
|
String quanlity_in_box = box_jo.getString("quanlity_in_box");
|
||||||
//保质期
|
//保质期
|
||||||
|
|||||||
Reference in New Issue
Block a user