代码更新
This commit is contained in:
@@ -46,6 +46,7 @@ public class PrintServiceImpl implements PrintService {
|
||||
JSONObject jo = new JSONObject();
|
||||
WQLObject printTab = WQLObject.getWQLObject("pdm_bi_printinfo");
|
||||
WQLObject custTab = WQLObject.getWQLObject("md_cs_customerbase");
|
||||
WQLObject subTab = WQLObject.getWQLObject("pdm_bi_subpackagerelation");
|
||||
|
||||
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_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");
|
||||
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 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");
|
||||
//保质期
|
||||
|
||||
Reference in New Issue
Block a user