Просмотр исходного кода

优化 公告显示不全问题

wuxw лет назад: 5
Родитель
Сommit
db1c8b3aa8

+ 8 - 0
java110-bean/src/main/java/com/java110/dto/activities/ActivitiesDto.java

@@ -20,6 +20,7 @@ public class ActivitiesDto extends PageDto implements Serializable {
     private String title;
     private String readCount;
     private String userName;
+    private String staffName;
     private String userId;
     private String activitiesId;
     private String typeCd;
@@ -31,6 +32,13 @@ public class ActivitiesDto extends PageDto implements Serializable {
     private String headerImg;
     private String state;
 
+    public String getStaffName() {
+        return staffName;
+    }
+
+    public void setStaffName(String staffName) {
+        this.staffName = staffName;
+    }
 
     private Date createTime;
 

+ 4 - 4
java110-db/src/main/resources/mapper/community/ActivitiesServiceDaoImplMapper.xml

@@ -155,8 +155,8 @@
         <if test="readCount !=null and readCount != ''">
             and t.read_count= #{readCount}
         </if>
-        <if test="userName !=null and userName != ''">
-            and t.user_name= #{userName}
+        <if test="staffName !=null and staffName != ''">
+            and t.user_name= #{staffName}
         </if>
 
         <if test="activitiesId !=null and activitiesId != ''">
@@ -268,8 +268,8 @@
         <if test="readCount !=null and readCount != ''">
             and t.read_count= #{readCount}
         </if>
-        <if test="userName !=null and userName != ''">
-            and t.user_name= #{userName}
+        <if test="staffName !=null and staffName != ''">
+            and t.user_name= #{staffName}
         </if>
         <if test="activitiesId !=null and activitiesId != ''">
             and t.activities_id= #{activitiesId}