代码更新

This commit is contained in:
2022-12-01 10:23:48 +08:00
parent b4f1ee22c2
commit 0781e71d48
8 changed files with 25 additions and 12 deletions

View File

@@ -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);
}
}

View File

@@ -42,5 +42,5 @@ public interface UserStorService {
/**
* 获取人员对应下拉框 多级下拉框
*/
JSONObject getSect();
JSONObject getSect(JSONObject whereJson);
}

View File

@@ -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();

View File

@@ -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