|
@@ -300,6 +300,25 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
return common;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public CommonEntity queryDropDownBoxData(List<CommonEntity> commonEntityList) {
|
|
|
+ Map<String,Object> retMap = new HashMap<>();
|
|
|
+ for (CommonEntity commonEntity : commonEntityList){
|
|
|
+ String tableName = (String) commonEntity.getBasicMap().get("tableName");
|
|
|
+ Map<String, Object> conditions = JSONObject.parseObject(JSON.toJSONString(commonEntity.getConditionMap()));
|
|
|
+ List<Long> list = new ArrayList<>();
|
|
|
+ list.add(0L);
|
|
|
+ conditions.put("del_flag",list);
|
|
|
+ List<Map<String,Object>> mapList = commonMapper.queryDropDownBoxData(tableName,conditions);
|
|
|
+ retMap.put(tableName,mapList);
|
|
|
+ }
|
|
|
+ CommonEntity commonEntity = new CommonEntity();
|
|
|
+ commonEntity.setResultMap(retMap);
|
|
|
+ return commonEntity;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public static String extractSubstring(String input, String identifier) {
|
|
|
int startIndex = input.indexOf(identifier);
|
|
|
if (startIndex == -1) {
|