Commit 19bb4439 authored by 赵啸非's avatar 赵啸非

添加站点返回提示信息

parent f4714dfb
...@@ -124,7 +124,6 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M ...@@ -124,7 +124,6 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M
int success = 0; int success = 0;
int fail = 0; int fail = 0;
for (MatterEntity matterEntity : matterEntities) { for (MatterEntity matterEntity : matterEntities) {
Boolean bool = updateOrSave(matterEntity, siteId, context); Boolean bool = updateOrSave(matterEntity, siteId, context);
if (bool) { if (bool) {
......
...@@ -112,9 +112,10 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe ...@@ -112,9 +112,10 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
try { try {
Rest<String> rest = this.service.addMatterToSite(matterIds, siteId, getContext()); Rest<String> rest = this.service.addMatterToSite(matterIds, siteId, getContext());
jsonObject.put(KEY_RESULT_MSG, rest.getData()); jsonObject.put(KEY_RESULT_MSG, rest.getMsg());
jsonObject.put(KEY_RESULT_DATA, model); jsonObject.put(KEY_RESULT_DATA, model);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS); jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
this.recordSysLog(this.request, rest.getMsg());
} catch (Exception e) { } catch (Exception e) {
log.error("获取异常", e); log.error("获取异常", e);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE); jsonObject.put(KEY_RESULT_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