基础分类字段清理

This commit is contained in:
2023-03-24 10:10:55 +08:00
parent 761bae5a9d
commit 4676c418b0

View File

@@ -206,11 +206,11 @@ public class ClassstandardServiceImpl implements ClassstandardService {
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
JSONArray ja = new JSONArray(); JSONArray ja = new JSONArray();
String pid = (String) whereJson.get("pid"); String pid = (String) whereJson.get("pid");
String base_data_type = (String) whereJson.get("base_data_type"); // String base_data_type = (String) whereJson.get("base_data_type");
String where = ""; String where = "";
if (!StrUtil.isEmpty(base_data_type)) { // if (!StrUtil.isEmpty(base_data_type)) {
where = "AND base_data_type = '" + base_data_type + "'"; // where = "AND base_data_type = '" + base_data_type + "'";
} // }
if (pid == null || pid.equals("0")) { if (pid == null || pid.equals("0")) {
ja = WQLObject.getWQLObject("MD_PB_ClassStandard").query("(parent_class_id = '0' OR parent_class_id is null) and is_delete = '0' " + where + " order by class_id").getResultJSONArray(0); ja = WQLObject.getWQLObject("MD_PB_ClassStandard").query("(parent_class_id = '0' OR parent_class_id is null) and is_delete = '0' " + where + " order by class_id").getResultJSONArray(0);
} else { } else {