add:区域查询

This commit is contained in:
zhangzhiqiang
2023-04-14 11:35:27 +08:00
parent 729f61216a
commit e1d40f7884
2 changed files with 3 additions and 3 deletions

View File

@@ -189,14 +189,14 @@ public class RegionServiceImpl implements RegionService{
jsonMst.put("value", json.getString("value"));
jsonMst.put("label", json.getString("label"));
// 查询子类
JSONArray DtlArr = WQL.getWO("QSCH_REGION_01").addParam("flag", "3").addParam("product_area", json.getString("value")).process().getResultJSONArray(0);
JSONArray DtlArr =WQLObject.getWQLObject("st_ivt_sectattr").query("product_area = '"+json.getString("label")+"' and is_used = '" + 1 + "' and is_delete = '0'").getResultJSONArray(0);
if(DtlArr.size() > 0) {
JSONArray sect_ja = new JSONArray();
for(int j = 0; j < DtlArr.size(); j++) {
JSONObject json2 = DtlArr.getJSONObject(j);
JSONObject sect_cas = new JSONObject();
sect_cas.put("value", json2.getString("region_code"));
sect_cas.put("label", json2.getString("region_name"));
sect_cas.put("value", json2.getString("sect_code"));
sect_cas.put("label", json2.getString("sect_name"));
sect_ja.add(sect_cas);
}
jsonMst.put("children", sect_ja);