Browse Source

fix bug

release_toaliyun_real
xiaohanzi 5 years ago
parent
commit
774d891c17
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml

+ 5
- 2
mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml View File

@@ -23,7 +23,10 @@
<result column="valid_days" jdbcType="INTEGER" property="validDays"/>

</resultMap>

<sql id="columns">
`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`title`,`send_type`,`conditions`,`status`,`create_date`,`update_date`,`send_sms`,`operator_id`
</sql>
<sql id="allColumns">
cs.id,cs.tenant_id,cs.parent_tenant_id,cs.coupon_id,cs.title,cs.send_type,cs.conditions,cs.status,cs.create_date,cs.update_date,
cs.conditions -> '$.merchantSend' as merchantSend,
@@ -100,7 +103,7 @@
</sql>

<select id="selectById" parameterType="java.util.HashMap" resultMap="BaseResultMap">
select <include refid="allColumns" /> from wx_coupon_send cs where cs.id = #{id} and cs.tenant_id = #{tenantId}
select <include refid="columns" /> from wx_coupon_send cs where cs.id = #{id} and cs.tenant_id = #{tenantId}
</select>
<delete id="deleteById" parameterType="java.util.HashMap">


Loading…
Cancel
Save