Commit ada675ae authored by 赵啸非's avatar 赵啸非

添加水印图片

parent c3ecc9b8
...@@ -98,31 +98,6 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro ...@@ -98,31 +98,6 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
} }
@PostMapping("list/exclude")
public String excludeList(CertificateIndustryEntity query) {
Map<String, Object> model = new HashMap<>();
JSONObject ret = new JSONObject();
String busiDesc = "查询" + this.getModuleDesc();
Long id = query.getId();
int code = VALUE_RESULT_SUCCESS;
try {
Set<Long> idSet = new HashSet<>();
idSet.add(query.getId());
List<CertificateIndustryEntity> collect = this.service.find(new CertificateIndustryQuery()).stream().map(item -> {
if (idSet.contains(item.getId())) return null;
return item;
}).filter(f -> f != null).collect(Collectors.toList());
model.put("result", collect);
recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) {
code = VALUE_RESULT_FAILURE;
this.doException(request, busiDesc, model, e);
}
ret.put(KEY_RESULT_DATA, model);
ret.put(KEY_RESULT_CODE, code);
return ret.toJSONString();
}
/** /**
* 获取站点下拉树列表 * 获取站点下拉树列表
...@@ -137,7 +112,7 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro ...@@ -137,7 +112,7 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
try { try {
List<CertificateIndustryEntity> list = this.service.find(new CertificateIndustryQuery()); List<CertificateIndustryEntity> list = this.service.find(new CertificateIndustryQuery());
List<CertificateIndustryTreeSelect> treeSelects = this.service.buildCertificateIndustryTreeSelect(list); List<CertificateIndustryTreeSelect> treeSelects = this.service.buildCertificateIndustryTreeSelect(list);
model.put("result", treeSelects); model.put("data", treeSelects);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
code = VALUE_RESULT_FAILURE; code = VALUE_RESULT_FAILURE;
......
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