rev:大屏修改
This commit is contained in:
@@ -45,16 +45,20 @@ public class LmsToBigScreenServiceImpl implements LmsToBigScreenService {
|
||||
|
||||
@Override
|
||||
public JSONArray getStructInfo(JSONObject jo) {
|
||||
JSONArray rows = WQLObject.getWQLObject("st_ivt_structattr").query("sect_code = 'ZC01'").getResultJSONArray(0);
|
||||
JSONArray rows = WQLObject.getWQLObject("st_ivt_structattr").query("sect_code IN ('ZC01','KTP01','ZZ01','PD01')").getResultJSONArray(0);
|
||||
JSONArray data = new JSONArray();
|
||||
for (int i = 0; i < rows.size(); i++) {
|
||||
JSONObject row = rows.getJSONObject(i);
|
||||
JSONObject json = new JSONObject();
|
||||
String struct_code = row.getString("struct_code");
|
||||
json.put("struct_code", struct_code);
|
||||
json.put("struct_status", "0");
|
||||
String storagevehicle_code = row.getString("storagevehicle_code");
|
||||
if (StrUtil.isNotEmpty(storagevehicle_code)) {
|
||||
json.put("storagevehicle_code", storagevehicle_code);
|
||||
if (storagevehicle_code.startsWith("KTP")){
|
||||
json.put("struct_status", "1");
|
||||
}
|
||||
String struct_id = row.getString("struct_id");
|
||||
JSONArray array = WQL
|
||||
.getWO("QST_STRUCTATTR")
|
||||
@@ -70,6 +74,7 @@ public class LmsToBigScreenServiceImpl implements LmsToBigScreenService {
|
||||
json.put("sale_order_name", object.getString("sale_order_name"));
|
||||
json.put("quanlity_in_box", object.getString("quanlity_in_box"));
|
||||
json.put("box_weight", object.getString("box_weight"));
|
||||
json.put("struct_status", "2");
|
||||
JSONArray detail = new JSONArray();
|
||||
for (int j = 0; j < array.size(); j++) {
|
||||
JSONObject dtl = array.getJSONObject(j);
|
||||
|
||||
Reference in New Issue
Block a user