代码更新
This commit is contained in:
@@ -46,6 +46,7 @@ public class PrintServiceImpl implements PrintService {
|
|||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
WQLObject printTab = WQLObject.getWQLObject("pdm_bi_printinfo");
|
WQLObject printTab = WQLObject.getWQLObject("pdm_bi_printinfo");
|
||||||
WQLObject custTab = WQLObject.getWQLObject("md_cs_customerbase");
|
WQLObject custTab = WQLObject.getWQLObject("md_cs_customerbase");
|
||||||
|
WQLObject subTab = WQLObject.getWQLObject("pdm_bi_subpackagerelation");
|
||||||
|
|
||||||
String box_no = whereJson.getString("box_no");
|
String box_no = whereJson.getString("box_no");
|
||||||
|
|
||||||
@@ -68,17 +69,22 @@ public class PrintServiceImpl implements PrintService {
|
|||||||
String product_description = box_jo.getString("product_description");
|
String product_description = box_jo.getString("product_description");
|
||||||
//物料号
|
//物料号
|
||||||
String product_name = box_jo.getString("product_name");
|
String product_name = box_jo.getString("product_name");
|
||||||
//规格
|
//规格: 厚度*幅宽
|
||||||
String width = box_jo.getString("width");
|
String width = box_jo.getString("thickness")+"*"+box_jo.getString("width");
|
||||||
//批号
|
//批号
|
||||||
String pcsn = box_jo.getString("date_of_production");
|
String pcsn = box_jo.getString("date_of_production");
|
||||||
|
if (ObjectUtil.isNotEmpty(pcsn)) {
|
||||||
|
pcsn = pcsn.replaceAll("[[\\s-:punct:]]", "");
|
||||||
|
}
|
||||||
|
|
||||||
//入库日期
|
//入库日期:取此箱子中最晚的入库日期
|
||||||
String date_of_FG_inbound = box_jo.getString("date_of_fg_inbound");
|
JSONObject jsonInbound= subTab.query("package_box_sn = '" + box_no + "' order by date_of_fg_inbound DESC").uniqueResult(0);
|
||||||
|
String date_of_FG_inbound = jsonInbound.getString("date_of_fg_inbound");
|
||||||
//毛重
|
//毛重
|
||||||
String box_weight = NumberUtil.round(box_jo.getString("box_weight"),2).toString();
|
String box_weight = NumberUtil.round(box_jo.getString("box_weight"),2).toString();
|
||||||
//生产日期
|
//生产日期:取此箱子中最晚的生产日期
|
||||||
String date_of_production = box_jo.getString("date_of_production");
|
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 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