|
|
|
@@ -37,18 +37,19 @@ |
|
|
|
<result column="credit_locked" property="creditLocked"/> |
|
|
|
<result column="cash_out_number" jdbcType="INTEGER" property="cashOutNumber"/> |
|
|
|
<result column="cash_out_count" jdbcType="INTEGER" property="cashOutCount"/> |
|
|
|
<result column="cash_out_last_time" jdbcType="TIMESTAMP" property="cashOutLastTime"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`img_url`,`name`,`link_phone`,`create_date`,`update_date`,`car_vendor_type`,`car_params`,`status`,`link_person`, |
|
|
|
`business_id`,`sub_business_id`,`shop_type`,`brand`,`type`,`is_public`,email,`title`,`cover_picture`,`is_admin`,`bill_setting`,`qr_code`, |
|
|
|
`introduction`,`action_desc`,`is_del`,`talk_user_main`,`talk_user_aux`,link_line_phone,credit_locked,cash_out_number,cash_out_count |
|
|
|
`introduction`,`action_desc`,`is_del`,`talk_user_main`,`talk_user_aux`,link_line_phone,credit_locked,cash_out_number,cash_out_count,cash_out_last_time |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="allColumnsVo"> |
|
|
|
m.`id`,m.`tenant_id`,m.`parent_tenant_id`,m.`img_url`,m.`name`,m.`link_phone`,m.`create_date`,m.`update_date`,m.`car_vendor_type`,m.`car_params`,m.`status`,m.`link_person`, |
|
|
|
m.`business_id`,m.`sub_business_id`,m.`shop_type`,m.`brand`,m.`type`,m.`is_public`,m.email,m.`title`,m.`cover_picture`,m.`is_admin`,m.`bill_setting`,m.`qr_code`, |
|
|
|
m.`introduction`,m.`action_desc`,m.`is_del`,m.`talk_user_main`,m.`talk_user_aux`,m.link_line_phone,r.rental_start_date,r.rental_end_date,cash_out_number,cash_out_count |
|
|
|
m.`introduction`,m.`action_desc`,m.`is_del`,m.`talk_user_main`,m.`talk_user_aux`,m.link_line_phone,r.rental_start_date,r.rental_end_date,m.cash_out_number,m.cash_out_count,m.cash_out_last_time |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -616,7 +617,7 @@ |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="reduceCash" parameterType="com.iformall.domain.po.WxMerchant"> |
|
|
|
update wx_merchant set cash_out_number = cash_out_number-#{cashOutNumber}, cash_out_count = cash_out_count+1 where id = #{id} |
|
|
|
update wx_merchant set cash_out_number = cash_out_number-#{cashOutNumber}, cash_out_count = cash_out_count+1,cash_out_last_time = now() where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="increaseCashCount" parameterType="com.iformall.domain.po.WxMerchant"> |
|
|
|
|