代码合并-多仓库
This commit is contained in:
@@ -52,4 +52,18 @@ public class UserStorController {
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/getUserStor")
|
||||
@Log("获取人员对应下拉框-普通下拉框")
|
||||
@ApiOperation("获取人员对应下拉框-普通下拉框")
|
||||
public ResponseEntity<Object> getUserStor() {
|
||||
return new ResponseEntity<>(userStorService.getUserStor(),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/getSect")
|
||||
@Log("获取人员对应下拉框-多级下拉框")
|
||||
@ApiOperation("获取人员对应下拉框-多级下拉框")
|
||||
public ResponseEntity<Object> getSect() {
|
||||
return new ResponseEntity<>(userStorService.getSect(),HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,4 +34,13 @@ public interface UserStorService {
|
||||
*/
|
||||
void save(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 获取人员对应下拉框 普通下拉框
|
||||
*/
|
||||
JSONArray getUserStor();
|
||||
|
||||
/**
|
||||
* 获取人员对应下拉框 多级下拉框
|
||||
*/
|
||||
JSONObject getSect();
|
||||
}
|
||||
|
||||
@@ -51,6 +51,13 @@ public class SectattrServiceImpl implements SectattrService {
|
||||
}
|
||||
map.put("flag", "1");
|
||||
map.put("stor_id", (String) whereJson.get("stor_id"));
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_SECT_ATTR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "update_time desc");
|
||||
return jo;
|
||||
}
|
||||
@@ -254,5 +261,4 @@ public class SectattrServiceImpl implements SectattrService {
|
||||
json.put("update_time", now);
|
||||
WQLObject.getWQLObject("st_ivt_structattr").update(json," sect_id = '" + sect_id + "'");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,6 +57,13 @@ public class StructattrServiceImpl implements StructattrService {
|
||||
map.put("stor_id", (String) whereJson.get("stor_id"));
|
||||
map.put("sect_id", (String) whereJson.get("sect_id"));
|
||||
map.put("lock_type", (String) whereJson.get("lock_type"));
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_STRUCT_ATTR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "struct_code asc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,13 @@ public class StructivtServiceImpl implements StructivtService {
|
||||
if (StrUtil.isNotEmpty(sap_pcsn)) {
|
||||
map.put("sap_pcsn", "%" + sap_pcsn + "%");
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jsonObject = WQL.getWO("QST_STRUCTIVT001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ivt.instorage_time desc");
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
@@ -76,4 +76,128 @@ public class UserStorServiceImpl implements UserStorService {
|
||||
WQLObject.getWQLObject("st_ivt_userstor").insert(user_stor);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONArray getUserStor() {
|
||||
/*
|
||||
* 获取人员对应仓库下拉框公共方法 普通下拉框
|
||||
*/
|
||||
String currentUserId = SecurityUtils.getCurrentUserId().toString();
|
||||
|
||||
WQLObject userStorTab = WQLObject.getWQLObject("st_ivt_userstor");
|
||||
WQLObject storTab = WQLObject.getWQLObject("st_ivt_bsrealstorattr");
|
||||
|
||||
JSONArray userStorArr = userStorTab.query("user_id = '" + currentUserId + "'").getResultJSONArray(0);
|
||||
int size = userStorArr.size();
|
||||
// 将仓库id拼成字符串
|
||||
String stor_id = "";
|
||||
|
||||
for (int i = 0; i < userStorArr.size(); i++) {
|
||||
JSONObject json = userStorArr.getJSONObject(i);
|
||||
|
||||
if (size == 1) {
|
||||
// 如果只有一条记录
|
||||
stor_id = "('"+json.getString("stor_id")+"')";
|
||||
} else {
|
||||
if (i == 0) {
|
||||
// 第一条记录拼接
|
||||
stor_id = "('"+ json.getString("stor_id")+ "','";
|
||||
} else {
|
||||
if ((size -1 ) == i) {
|
||||
// 最后一条记录拼接
|
||||
stor_id += json.getString("stor_id") + "')";
|
||||
} else {
|
||||
stor_id += json.getString("stor_id") + "','";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 查询仓库下拉框
|
||||
JSONArray resultJSONArray = new JSONArray();
|
||||
if (ObjectUtil.isNotEmpty(userStorArr)) {
|
||||
resultJSONArray = storTab.query("is_delete = '0' and is_used = '1' and stor_id in" + stor_id).getResultJSONArray(0);
|
||||
}
|
||||
return resultJSONArray;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getSect() {
|
||||
/*
|
||||
* 获取人员对应仓库下拉框公共方法 多级下拉框
|
||||
*/
|
||||
JSONArray new_ja = new JSONArray();
|
||||
HashMap<String, String> stor_map = new HashMap<>();
|
||||
stor_map.put("flag", "2");
|
||||
|
||||
//获取人员对应的仓库
|
||||
String in_stor_id = this.getInStor();
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) stor_map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONArray stor_ja = WQL.getWO("QST_STOR_ATTR").addParamMap(stor_map).process().getResultJSONArray(0);
|
||||
for (int i = 0; i < stor_ja.size(); i++) {
|
||||
JSONObject stor_jo = stor_ja.getJSONObject(i);
|
||||
JSONObject stor_cas = new JSONObject();
|
||||
stor_cas.put("value", stor_jo.getString("stor_id"));
|
||||
stor_cas.put("label", stor_jo.getString("stor_name"));
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("flag", "2");
|
||||
map.put("stor_id", stor_jo.getString("stor_id"));
|
||||
// map.put("sect_type_attr", (String) whereJson.get("sect_type_attr"));
|
||||
JSONArray ja = WQL.getWO("QST_SECT_ATTR").addParamMap(map).process().getResultJSONArray(0);
|
||||
if (ja.size() > 0) {
|
||||
JSONArray sect_ja = new JSONArray();
|
||||
for (int j = 0; j < ja.size(); j++) {
|
||||
JSONObject sect_jo = ja.getJSONObject(j);
|
||||
JSONObject sect_cas = new JSONObject();
|
||||
sect_cas.put("value", sect_jo.getString("sect_id"));
|
||||
sect_cas.put("label", sect_jo.getString("sect_name"));
|
||||
sect_ja.add(sect_cas);
|
||||
}
|
||||
stor_cas.put("children", sect_ja);
|
||||
}
|
||||
new_ja.add(stor_cas);
|
||||
}
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("content", new_ja);
|
||||
return jo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库拼接公共方法
|
||||
* @return in_stor_id /
|
||||
*/
|
||||
public String getInStor() {
|
||||
String currentUserId = SecurityUtils.getCurrentUserId().toString();
|
||||
WQLObject userStorTab = WQLObject.getWQLObject("st_ivt_userstor");
|
||||
|
||||
JSONArray userStorArr = userStorTab.query("user_id = '" + currentUserId + "'").getResultJSONArray(0);
|
||||
int size = userStorArr.size();
|
||||
// 将仓库id拼成字符串
|
||||
String in_stor_id = "";
|
||||
|
||||
for (int i = 0; i < userStorArr.size(); i++) {
|
||||
JSONObject json = userStorArr.getJSONObject(i);
|
||||
|
||||
if (size == 1) {
|
||||
// 如果只有一条记录
|
||||
in_stor_id = "('"+json.getString("stor_id")+"')";
|
||||
} else {
|
||||
if (i == 0) {
|
||||
// 第一条记录拼接
|
||||
in_stor_id = "('"+ json.getString("stor_id")+ "','";
|
||||
} else {
|
||||
if ((size -1 ) == i) {
|
||||
// 最后一条记录拼接
|
||||
in_stor_id += json.getString("stor_id") + "')";
|
||||
} else {
|
||||
in_stor_id += json.getString("stor_id") + "','";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return in_stor_id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,10 +13,11 @@
|
||||
#################################################
|
||||
## 表字段对应输入参数
|
||||
#################################################
|
||||
输入.flag TYPEAS s_string
|
||||
输入.search TYPEAS s_string
|
||||
输入.flag TYPEAS s_string
|
||||
输入.search TYPEAS s_string
|
||||
输入.stor_id TYPEAS s_string
|
||||
输入.sect_type_attr TYPEAS s_string
|
||||
输入.sect_type_attr TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -58,9 +59,15 @@
|
||||
sect.sect_name like 输入.search
|
||||
)
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.stor_id <> ""
|
||||
sect.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
sect.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
输入.is_attachment TYPEAS s_string
|
||||
输入.is_reversed TYPEAS s_string
|
||||
输入.blurry TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -96,6 +97,9 @@
|
||||
ENDOPTION
|
||||
OPTION 输入.is_reversed <> ""
|
||||
stor.is_reversed = 输入.is_reversed
|
||||
ENDOPTION
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
stor.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
输入.stor_id TYPEAS s_string
|
||||
输入.pcsn TYPEAS s_string
|
||||
输入.sap_pcsn TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
@@ -49,6 +50,7 @@
|
||||
attr.sect_id,
|
||||
attr.sect_code,
|
||||
attr.sect_name,
|
||||
attr.stor_name,
|
||||
point.point_code,
|
||||
point.point_name,
|
||||
mater.material_code,
|
||||
@@ -90,6 +92,11 @@
|
||||
OPTION 输入.stor_id <> ""
|
||||
attr.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
attr.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
输入.is_used TYPEAS s_string
|
||||
输入.is_delete TYPEAS s_string
|
||||
输入.have_vehicle TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
@@ -72,6 +73,10 @@
|
||||
OPTION 输入.lock_type = "1"
|
||||
(struct.storagevehicle_code is null or struct.storagevehicle_code = '')
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
struct.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -19,6 +19,7 @@ import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.sch.service.PointService;
|
||||
import org.nl.wms.st.inbill.service.InchargeService;
|
||||
import org.nl.wms.st.inbill.service.StorPublicService;
|
||||
@@ -57,6 +58,12 @@ public class InchargeServiceImpl implements InchargeService {
|
||||
map.put("bill_type", MapUtil.getStr(whereJson, "bill_type"));
|
||||
if (ObjectUtil.isNotEmpty(bill_code)) map.put("bill_code","%"+bill_code + "%");
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject json = WQL.getWO("QST_IVT_INCHARGE").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ios.input_time DESC");
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.pdm.service.DeviceService;
|
||||
import org.nl.wms.pdm.service.dto.DeviceDto;
|
||||
import org.nl.wms.st.inbill.service.OutChargeService;
|
||||
@@ -55,6 +56,7 @@ public class OutChargeServiceImpl implements OutChargeService {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("flag", "15");
|
||||
map.put("bill_status", MapUtil.getStr(whereJson, "bill_status"));
|
||||
map.put("stor_id", MapUtil.getStr(whereJson, "stor_id"));
|
||||
if (ObjectUtil.isNotEmpty(bill_code)) map.put("bill_code", bill_code + "%");
|
||||
if (ObjectUtil.isNotEmpty(vehicle_code)) map.put("vehicle_code", vehicle_code + "%");
|
||||
if (ObjectUtil.isNotEmpty(material_code)) map.put("material_code", material_code + "%");
|
||||
@@ -64,6 +66,12 @@ public class OutChargeServiceImpl implements OutChargeService {
|
||||
if (ObjectUtil.isNotEmpty(start_region_code)) map.put("start_region_code", start_region_code + "%");
|
||||
if (ObjectUtil.isNotEmpty(end_region_code)) map.put("end_region_code", end_region_code + "%");
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject json = WQL.getWO("QST_IVT_RAWASSISTISTOR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ios.bill_code DESC");
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import org.nl.wms.basedata.st.service.StorattrService;
|
||||
import org.nl.wms.basedata.st.service.StructattrService;
|
||||
import org.nl.wms.basedata.st.service.dto.StorattrDto;
|
||||
import org.nl.wms.basedata.st.service.dto.StructattrDto;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.sch.manage.AbstractAcsTask;
|
||||
import org.nl.wms.sch.service.PointService;
|
||||
import org.nl.wms.sch.service.TaskService;
|
||||
@@ -83,6 +84,12 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
||||
map.put("end_time", end_time);
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_RAWASSISTISTOR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "bill_code desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
输入.stor_id TYPEAS s_string
|
||||
输入.create_mode TYPEAS s_string
|
||||
输入.bill_type TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -81,6 +82,10 @@
|
||||
ios.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
ios.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
@@ -30,6 +30,7 @@
|
||||
输入.material_code TYPEAS s_string
|
||||
输入.sect_id TYPEAS s_string
|
||||
输入.sql_str TYPEAS f_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -85,6 +86,11 @@
|
||||
OPTION 输入.end_time <> ""
|
||||
ios.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
ios.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
@@ -595,6 +601,11 @@
|
||||
OPTION 输入.end_time <> ""
|
||||
ios.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
ios.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -15,6 +15,7 @@ import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||
import org.nl.wms.st.inbill.service.StorPublicService;
|
||||
import org.nl.wms.st.instor.service.ChangeService;
|
||||
@@ -50,6 +51,13 @@ public class ChangeServiceImpl implements ChangeService {
|
||||
if (StrUtil.isNotEmpty(map.get("buss_type"))) {
|
||||
map.put("buss_type", whereJson.get("buss_type") + "%");
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_CHANGE").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "bill_code desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.st.inbill.service.StorPublicService;
|
||||
import org.nl.wms.st.instor.service.CheckService;
|
||||
import org.nl.wms.st.instor.task.HandMoveStorAcsTask;
|
||||
@@ -47,6 +48,13 @@ public class CheckServiceImpl implements CheckService {
|
||||
if (StrUtil.isNotEmpty(map.get("buss_type"))) {
|
||||
map.put("buss_type", whereJson.get("buss_type") + "%");
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_CHECK").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "check_code desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||
import org.nl.wms.sch.tasks.OutTask;
|
||||
import org.nl.wms.st.inbill.service.CheckOutBillService;
|
||||
@@ -52,6 +53,13 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
|
||||
if (StrUtil.isNotEmpty(map.get("buss_type"))) {
|
||||
map.put("buss_type", whereJson.get("buss_type") + "%");
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_HANDMOVESTOR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "bill_code desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
输入.struct_code TYPEAS s_string
|
||||
输入.ids TYPEAS f_string
|
||||
输入.deptIds TYPEAS f_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
@@ -95,6 +96,11 @@
|
||||
OPTION 输入.end_time <> ""
|
||||
cg.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
cg.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
输入.ids TYPEAS f_string
|
||||
输入.storagevehicle_code TYPEAS s_string
|
||||
输入.deptIds TYPEAS f_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
@@ -103,6 +104,10 @@
|
||||
checkmst.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
checkmst.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
输入.struct_code TYPEAS s_string
|
||||
输入.ids TYPEAS f_string
|
||||
输入.deptIds TYPEAS f_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
@@ -111,6 +112,11 @@
|
||||
OPTION 输入.end_time <> ""
|
||||
move.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
move.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -22,6 +22,7 @@ import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.ext.mes.service.impl.LmsToMesServiceImpl;
|
||||
import org.nl.wms.ext.sap.service.impl.LmsToSapServiceImpl;
|
||||
import org.nl.wms.pda.mps.eum.RegionTypeEnum;
|
||||
@@ -78,6 +79,13 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
if (StrUtil.isNotEmpty(map.get("material_code"))) {
|
||||
map.put("material_code", "%" + map.get("material_code") + "%");
|
||||
}
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_CHECKOUTBILL").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "bill_code desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
输入.box_no TYPEAS s_string
|
||||
输入.canuse_qty TYPEAS s_string
|
||||
输入.sap_pcsn TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
@@ -114,6 +115,10 @@
|
||||
ios.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
ios.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -15,6 +15,7 @@ import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.ext.mes.service.impl.LmsToMesServiceImpl;
|
||||
import org.nl.wms.ext.sap.service.impl.LmsToSapServiceImpl;
|
||||
import org.nl.wms.st.returns.service.InAndOutReturnService;
|
||||
@@ -53,6 +54,12 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
|
||||
if (!ObjectUtil.isEmpty(material_search)) map.put("material_search", "%" + material_search + "%");
|
||||
if (!ObjectUtil.isEmpty(box_no)) map.put("box_no", "%" + box_no + "%");
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject jo = WQL.getWO("QST_IVT_INANDOUTRETRUN").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "mst.input_time desc");
|
||||
return jo;
|
||||
|
||||
|
||||
@@ -31,9 +31,7 @@
|
||||
输入.iostorinv_id TYPEAS s_string
|
||||
输入.ids TYPEAS f_string
|
||||
输入.box_no TYPEAS s_string
|
||||
|
||||
|
||||
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -124,6 +122,10 @@
|
||||
)
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
mst.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -14,6 +14,7 @@ import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.basedata.master.service.ClassstandardService;
|
||||
import org.nl.wms.basedata.master.service.MaterialbaseService;
|
||||
import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
||||
import org.nl.wms.statistics.service.IostordailyService;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -42,6 +43,7 @@ public class IostordailyServiceImpl implements IostordailyService {
|
||||
String class_idStr = MapUtil.getStr(whereJson, "class_idStr");
|
||||
HashMap<String, String> map = new HashMap<>(whereJson);
|
||||
map.put("flag", "1");
|
||||
map.put("stor_id", MapUtil.getStr(whereJson, "stor_id"));
|
||||
//处理物料当前节点的所有子节点
|
||||
if (!StrUtil.isEmpty(material_type_id)) {
|
||||
map.put("material_type_id", material_type_id);
|
||||
@@ -57,6 +59,13 @@ public class IostordailyServiceImpl implements IostordailyService {
|
||||
map.put("material_code", "%" + material_code + "%");
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(pcsn)) map.put("pcsn", "%" + pcsn + "%");
|
||||
|
||||
//获取人员对应的仓库
|
||||
UserStorServiceImpl userStorService = new UserStorServiceImpl();
|
||||
String in_stor_id = userStorService.getInStor();
|
||||
|
||||
if (ObjectUtil.isNotEmpty(in_stor_id)) map.put("in_stor_id",in_stor_id);
|
||||
|
||||
JSONObject json = WQL.getWO("SendReceiveQuery").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "da.sect_date desc");
|
||||
|
||||
return json;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
输入.material_code TYPEAS s_string
|
||||
输入.classIds TYPEAS f_string
|
||||
输入.pcsn TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -117,6 +118,10 @@
|
||||
class.class_id in 输入.classIds
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
stor.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user