瀏覽代碼

优化代码

wuxw 1 年之前
父節點
當前提交
c54b38935d

+ 11 - 0
java110-bean/src/main/java/com/java110/dto/integral/IntegralGiftDetailDto.java

@@ -21,6 +21,9 @@ public class IntegralGiftDetailDto extends PageDto implements Serializable {
     private String detailId;
 
     private String userName;
+    private String userNameLike;
+
+
 
     private String configId;
 
@@ -137,4 +140,12 @@ public class IntegralGiftDetailDto extends PageDto implements Serializable {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getUserNameLike() {
+        return userNameLike;
+    }
+
+    public void setUserNameLike(String userNameLike) {
+        this.userNameLike = userNameLike;
+    }
 }

+ 4 - 4
java110-db/src/main/resources/mapper/acct/IntegralGiftDetailV1ServiceDaoImplMapper.xml

@@ -40,8 +40,8 @@
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>
-        <if test="userName !=null and userName != ''">
-            and t.user_name= #{userName}
+        <if test="userNameLike !=null and userNameLike != ''">
+            and t.user_name concat('%', #{userNameLike},'%')
         </if>
 
         <if test="configId !=null and configId != ''">
@@ -132,8 +132,8 @@
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>
-        <if test="userName !=null and userName != ''">
-            and t.user_name= #{userName}
+        <if test="userNameLike !=null and userNameLike != ''">
+            and t.user_name concat('%', #{userNameLike},'%')
         </if>
 
         <if test="configId !=null and configId != ''">