Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -62,8 +62,8 @@ public class UserStorController {
|
||||
@PostMapping("/getSect")
|
||||
@Log("获取人员对应下拉框-多级下拉框")
|
||||
@ApiOperation("获取人员对应下拉框-多级下拉框")
|
||||
public ResponseEntity<Object> getSect() {
|
||||
return new ResponseEntity<>(userStorService.getSect(),HttpStatus.OK);
|
||||
public ResponseEntity<Object> getSect(@RequestBody JSONObject whereJson) {
|
||||
return new ResponseEntity<>(userStorService.getSect(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,5 +42,5 @@ public interface UserStorService {
|
||||
/**
|
||||
* 获取人员对应下拉框 多级下拉框
|
||||
*/
|
||||
JSONObject getSect();
|
||||
JSONObject getSect(JSONObject whereJson);
|
||||
}
|
||||
|
||||
@@ -122,13 +122,14 @@ public class UserStorServiceImpl implements UserStorService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getSect() {
|
||||
public JSONObject getSect(JSONObject whereJson) {
|
||||
/*
|
||||
* 获取人员对应仓库下拉框公共方法 多级下拉框
|
||||
*/
|
||||
JSONArray new_ja = new JSONArray();
|
||||
HashMap<String, String> stor_map = new HashMap<>();
|
||||
stor_map.put("flag", "2");
|
||||
stor_map.put("stor_id", whereJson.getString("stor_id"));
|
||||
|
||||
//获取人员对应的仓库
|
||||
String in_stor_id = this.getInStor();
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
输入.is_reversed TYPEAS s_string
|
||||
输入.blurry TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
输入.stor_id TYPEAS s_string
|
||||
|
||||
|
||||
[临时表]
|
||||
@@ -100,6 +101,9 @@
|
||||
ENDOPTION
|
||||
OPTION 输入.in_stor_id <> ""
|
||||
stor.stor_id in 输入.in_stor_id
|
||||
ENDOPTION
|
||||
OPTION 输入.stor_id <> ""
|
||||
stor.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
|
||||
@@ -97,6 +97,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
map.put("begin_time", MapUtil.getStr(whereJson, "begin_time"));
|
||||
map.put("end_time", MapUtil.getStr(whereJson, "end_time"));
|
||||
map.put("sap_pcsn", MapUtil.getStr(whereJson, "sap_pcsn"));
|
||||
map.put("stor_id", MapUtil.getStr(whereJson, "stor_id"));
|
||||
map.put("canuse_qty", "0");
|
||||
|
||||
if (StrUtil.isNotEmpty(map.get("material_code"))) {
|
||||
@@ -744,7 +745,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("sale_order_name", dtl.getString("source_bill_code"));
|
||||
jsonMap.put("sect_id", "");
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
|
||||
JSONObject jsonOneIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonOneIvt)) throw new BadRequestException("库存不足");
|
||||
@@ -820,9 +821,10 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("pcsn", dtl.getString("pcsn"));
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
|
||||
JSONObject jsonIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonIvt)) throw new BadRequestException("此物料批次库存不存在");
|
||||
if (ObjectUtil.isEmpty(jsonIvt)) throw new BadRequestException("库存不足");
|
||||
|
||||
double canuse_qty = jsonIvt.getDoubleValue("canuse_qty");
|
||||
jsonIvt.put("change_qty", canuse_qty + "");
|
||||
@@ -953,7 +955,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("sale_order_name", dtl.getString("source_bill_code"));
|
||||
jsonMap.put("sect_id", "");
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
|
||||
JSONObject jsonOneIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonOneIvt)) throw new BadRequestException("库存不足");
|
||||
@@ -1029,9 +1031,10 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
jsonMap.put("flag", "1");
|
||||
jsonMap.put("material_id", dtl.getString("material_id"));
|
||||
jsonMap.put("pcsn", dtl.getString("pcsn"));
|
||||
jsonMap.put("sect_id", whereJson.getString("sect_id"));
|
||||
|
||||
JSONObject jsonIvt = WQL.getWO("ST_OUTIVT01").addParamMap(jsonMap).process().uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonIvt)) throw new BadRequestException("此物料批次库存不存在");
|
||||
if (ObjectUtil.isEmpty(jsonIvt)) throw new BadRequestException("库存不足");
|
||||
|
||||
double canuse_qty = jsonIvt.getDoubleValue("canuse_qty");
|
||||
jsonIvt.put("change_qty", canuse_qty + "");
|
||||
|
||||
@@ -479,6 +479,10 @@
|
||||
mater.material_name like 输入.material_code)
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.stor_id <> ""
|
||||
attr.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.sap_pcsn <> ""
|
||||
sub.sap_pcsn like 输入.sap_pcsn
|
||||
ENDOPTION
|
||||
|
||||
Reference in New Issue
Block a user