Commit 88fb5570 authored by tianyiming's avatar tianyiming

feat: 增加气瓶分类枚举并处理信息情况和气瓶类别转换逻辑

parent 3e2e70ea
...@@ -2412,7 +2412,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl { ...@@ -2412,7 +2412,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
public JSONArray queryXK(String type) { public JSONArray queryXK(String type) {
JSONArray result = new JSONArray(); JSONArray result = new JSONArray();
if (null == type || "".equals(type)) { if (ObjectUtils.isEmpty(type)) {
List<DataDictionary> xkxm = dataDictionaryService.lambdaQuery() List<DataDictionary> xkxm = dataDictionaryService.lambdaQuery()
.and(wrapper -> wrapper.like(DataDictionary::getType, "XKXM") .and(wrapper -> wrapper.like(DataDictionary::getType, "XKXM")
.or() .or()
...@@ -2422,15 +2422,15 @@ public class ComprehensiveStatisticalAnalysisServiceImpl { ...@@ -2422,15 +2422,15 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
result = deployDictionary(xkxm); result = deployDictionary(xkxm);
} else { } else {
List<DataDictionary> childrenxkxm = new ArrayList<>(); List<DataDictionary> childrenxkxm = new ArrayList<>();
// if ("".equals(type)) { if ("null".equals(type)) {
// childrenxkxm = dataDictionaryService.lambdaQuery() childrenxkxm = dataDictionaryService.lambdaQuery()
// .likeRight(DataDictionary::getCode, "XK") .likeRight(DataDictionary::getCode, "XK")
// .isNotNull(DataDictionary::getTypeDesc) .isNotNull(DataDictionary::getTypeDesc)
// .eq(BaseEntity::getIsDelete, false).list(); .eq(BaseEntity::getIsDelete, false).list();
// } else { } else {
//
// }
childrenxkxm = dataDictionaryService.lambdaQuery().eq(DataDictionary::getTypeDesc, type).eq(BaseEntity::getIsDelete, false).list(); childrenxkxm = dataDictionaryService.lambdaQuery().eq(DataDictionary::getTypeDesc, type).eq(BaseEntity::getIsDelete, false).list();
}
result = deployDictionary(childrenxkxm); result = deployDictionary(childrenxkxm);
} }
// if (ValidationUtil.isEmpty(type)) { // if (ValidationUtil.isEmpty(type)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment