Browse Source

优化代码

Your Name 2 years ago
parent
commit
e151995dc6

+ 1 - 1
java110-db/src/main/resources/mapper/user/NotepadV1ServiceDaoImplMapper.xml

@@ -26,7 +26,7 @@
         from notepad t
         left join t_dict td on td.table_name = 'notepad' and td.table_columns = 'note_type' and td.status_cd = t.note_type
         <if test="communityId !=null and communityId != ''">
-             left join building_owner bo on t.obj_id = bo.owner_id and bo.status_cd = '0'
+             left join building_owner bo on t.obj_id = bo.member_id and bo.status_cd = '0'
         </if>
         where 1 =1
         <if test="communityId !=null and communityId != ''">

+ 1 - 0
service-user/src/main/java/com/java110/user/cmd/notepad/ListNotepadCmd.java

@@ -58,6 +58,7 @@ public class ListNotepadCmd extends Cmd {
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         super.validatePageInfo(reqJson);
+        Assert.hasKeyAndValue(reqJson,"communityId","未包含小区ID");
     }
 
     @Override