From a9db4f2b35fe73e79fd695ef4192e771671c0de1 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期六, 15 二月 2020 00:54:55 +0800
Subject: [PATCH] 加入组织隶属功能
---
WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java b/WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java
index b0fa067..070f126 100644
--- a/WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java
+++ b/WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java
@@ -1,11 +1,11 @@
package com.java110.web.smo.notice.impl;
import com.alibaba.fastjson.JSONObject;
-import com.java110.common.constant.PrivilegeCodeConstant;
-import com.java110.common.constant.ServiceConstant;
-import com.java110.common.util.Assert;
+import com.java110.utils.constant.PrivilegeCodeConstant;
+import com.java110.utils.constant.ServiceConstant;
+import com.java110.utils.util.Assert;
import com.java110.core.context.IPageData;
-import com.java110.web.core.AbstractComponentSMO;
+import com.java110.core.component.AbstractComponentSMO;
import com.java110.web.smo.notice.IEditNoticeSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
@@ -29,14 +29,14 @@
//super.validatePageInfo(pd);
Assert.hasKeyAndValue(paramIn, "noticeId", "鍏憡ID涓嶈兘涓虹┖");
-Assert.hasKeyAndValue(paramIn, "title", "蹇呭~锛岃濉啓鏍囬");
-Assert.hasKeyAndValue(paramIn, "noticeTypeCd", "蹇呭~锛岃閫夋嫨鍏憡绫诲瀷");
-Assert.hasKeyAndValue(paramIn, "context", "蹇呭~锛岃濉啓鍏憡鍐呭");
-Assert.hasKeyAndValue(paramIn, "startTime", "蹇呴�夛紝璇峰~鍐欏紑濮嬫椂闂� 2019-01-02");
+ Assert.hasKeyAndValue(paramIn, "title", "蹇呭~锛岃濉啓鏍囬");
+ Assert.hasKeyAndValue(paramIn, "noticeTypeCd", "蹇呭~锛岃閫夋嫨鍏憡绫诲瀷");
+ Assert.hasKeyAndValue(paramIn, "context", "蹇呭~锛岃濉啓鍏憡鍐呭");
+ Assert.hasKeyAndValue(paramIn, "startTime", "蹇呴�夛紝璇峰~鍐欏紑濮嬫椂闂� 2019-01-02");
+ Assert.hasKeyAndValue(paramIn, "communityId", "璇锋眰鎶ユ枃涓湭鍖呭惈灏忓尯ID");
-
- super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_COMMUNITY);
+ super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.HAS_LIST_NOTICE);
}
@@ -44,7 +44,7 @@
protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) {
ResponseEntity<String> responseEntity = null;
super.validateStoreStaffCommunityRelationship(pd, restTemplate);
-
+ paramIn.put("userId", pd.getUserId());
responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
ServiceConstant.SERVICE_API_URL + "/api/notice.updateNotice",
HttpMethod.POST);
--
Gitblit v1.8.0