Browse Source

缴费赠送优惠券 功能开发完成

wuxw 2 years ago
parent
commit
ead504f063

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/couponPropertyUser/CouponPropertyUserDto.java

@@ -20,6 +20,7 @@ public class CouponPropertyUserDto extends PageDto implements Serializable {
 
     private String couponName;
     private String toType;
+    private String toTypeName;
     private String validityDay;
     private String couponId;
     private String userName;
@@ -150,4 +151,12 @@ public class CouponPropertyUserDto extends PageDto implements Serializable {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getToTypeName() {
+        return toTypeName;
+    }
+
+    public void setToTypeName(String toTypeName) {
+        this.toTypeName = toTypeName;
+    }
 }

+ 2 - 1
java110-db/src/main/resources/mapper/acct/CouponPropertyUserV1ServiceDaoImplMapper.xml

@@ -20,8 +20,9 @@
         select t.coupon_name,t.coupon_name couponName,t.to_type,t.to_type toType,t.validity_day,t.validity_day
         validityDay,t.status_cd,t.status_cd statusCd,t.coupon_id,t.coupon_id couponId,t.user_name,t.user_name
         userName,t.user_id,t.user_id couponUserId,t.cpp_id,t.cpp_id cppId,t.tel,t.state,t.stock,t.community_id,t.community_id
-        communityId,t.value
+        communityId,t.value,td.`name` toTypeName
         from coupon_property_user t
+        left join t_dict td on td.status_cd = t.to_type and td.table_name = 'coupon_property_pool' and td.table_columns = 'to_type'
         where 1 =1
         <if test="couponName !=null and couponName != ''">
             and t.coupon_name= #{couponName}