Quellcode durchsuchen

时间不能用 != ''来判断

吴学文 vor 6 Jahren
Ursprung
Commit
e1f82a2395

+ 1 - 1
WebService/src/main/java/com/java110/web/smo/notice/impl/EditNoticeSMOImpl.java

@@ -44,7 +44,7 @@ Assert.hasKeyAndValue(paramIn, "startTime", "必选,请填写开始时间 2019
     protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) {
     protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) {
         ResponseEntity<String> responseEntity = null;
         ResponseEntity<String> responseEntity = null;
         super.validateStoreStaffCommunityRelationship(pd, restTemplate);
         super.validateStoreStaffCommunityRelationship(pd, restTemplate);
-
+        paramIn.put("userId", pd.getUserId());
         responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
         responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
                 ServiceConstant.SERVICE_API_URL + "/api/notice.updateNotice",
                 ServiceConstant.SERVICE_API_URL + "/api/notice.updateNotice",
                 HttpMethod.POST);
                 HttpMethod.POST);

+ 5 - 5
java110-db/src/main/resources/mapper/notice/NoticeServiceDaoImplMapper.xml

@@ -28,7 +28,7 @@ where 1 =1
 <if test="context !=null and context != ''">
 <if test="context !=null and context != ''">
    and t.context= #{context}
    and t.context= #{context}
 </if> 
 </if> 
-<if test="startTime !=null and startTime != ''">
+<if test="startTime !=null">
    and t.start_time= #{startTime}
    and t.start_time= #{startTime}
 </if> 
 </if> 
 <if test="communityId !=null and communityId != ''">
 <if test="communityId !=null and communityId != ''">
@@ -65,7 +65,7 @@ notice_type_cd,context,start_time,status_cd,community_id,title,b_id,user_id,noti
 <if test="context !=null and context != ''">
 <if test="context !=null and context != ''">
    and t.context= #{context}
    and t.context= #{context}
 </if> 
 </if> 
-<if test="startTime !=null and startTime != ''">
+<if test="startTime !=null">
    and t.start_time= #{startTime}
    and t.start_time= #{startTime}
 </if> 
 </if> 
 <if test="communityId !=null and communityId != ''">
 <if test="communityId !=null and communityId != ''">
@@ -99,7 +99,7 @@ where 1 =1
 <if test="context !=null and context != ''">
 <if test="context !=null and context != ''">
    and t.context= #{context}
    and t.context= #{context}
 </if> 
 </if> 
-<if test="startTime !=null and startTime != ''">
+<if test="startTime !=null">
    and t.start_time= #{startTime}
    and t.start_time= #{startTime}
 </if> 
 </if> 
 <if test="statusCd !=null and statusCd != ''">
 <if test="statusCd !=null and statusCd != ''">
@@ -141,7 +141,7 @@ where 1 =1
 <if test="context !=null and context != ''">
 <if test="context !=null and context != ''">
 , t.context= #{context}
 , t.context= #{context}
 </if> 
 </if> 
-<if test="startTime !=null and startTime != ''">
+<if test="startTime !=null">
 , t.start_time= #{startTime}
 , t.start_time= #{startTime}
 </if> 
 </if> 
 <if test="communityId !=null and communityId != ''">
 <if test="communityId !=null and communityId != ''">
@@ -173,7 +173,7 @@ where 1 =1
 <if test="context !=null and context != ''">
 <if test="context !=null and context != ''">
    and t.context= #{context}
    and t.context= #{context}
 </if> 
 </if> 
-<if test="startTime !=null and startTime != ''">
+<if test="startTime !=null">
    and t.start_time= #{startTime}
    and t.start_time= #{startTime}
 </if> 
 </if> 
 <if test="statusCd !=null and statusCd != ''">
 <if test="statusCd !=null and statusCd != ''">