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

重构部分功能模块

parent da9c8e8e
Pipeline #2322 failed with stages
......@@ -60,11 +60,27 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
super.doListBefore(query, model, context);
}
@Override
protected int doListAfter(MatterDatumEntity query, Map<String, Object> model, Context context) throws AppException {
int recommendCount = paramService.getParamIntValue(ParamKey.MATTER_DATUM_RECOMMEND_COUNT);
model.put("recommendCount", recommendCount);
return 1;
@RequestMapping(value = {"addPubdatum"}, method = {RequestMethod.POST, RequestMethod.GET})
public String addPubdatum(Long[] ids, Long matterId, Long siteId) {
Map<String, Object> model = new HashMap();
int code = VALUE_RESULT_SUCCESS;
String busiDesc = "添加公共库";
try {
Rest<String> rest = this.service.addPubdatum(ids, matterId, siteId, getContext());
model.put(MESSAGE_INFO, rest.getMsg());
this.recordSysLog(this.request, rest.getMsg());
} catch (Exception var7) {
code = VALUE_RESULT_FAILURE;
this.doException(this.request, busiDesc, model, var7);
}
JSONObject ret = new JSONObject();
ret.put("code", Integer.valueOf(code));
ret.put("msg", model.remove(MESSAGE_INFO));
ret.put("data", model);
return ret.toJSONString();
}
@RequestMapping(value = {"recommend"}, method = {RequestMethod.POST, RequestMethod.GET})
......
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