增加自动领取红包活动的开关字段,更新字段SQL
This commit is contained in:
parent
09f1056783
commit
7614ecc4f5
10
sql/v2.1.sql
10
sql/v2.1.sql
@ -807,8 +807,10 @@ CREATE TABLE `xhpc_activity_cash`
|
||||
`activity_name` varchar(200) DEFAULT NULL COMMENT '活动名称',
|
||||
`start_time` datetime DEFAULT NULL COMMENT '开始时间',
|
||||
`end_time` datetime DEFAULT NULL COMMENT '结束时间',
|
||||
`receive_count` int(9) DEFAULT NULL COMMENT '领取次数',
|
||||
`amount` decimal(4, 2) DEFAULT NULL COMMENT '红包金额',
|
||||
`receive_count` int(9) DEFAULT '0' COMMENT '领取次数',
|
||||
`auto_receive` smallint(2) DEFAULT '0' COMMENT '是否自动领取(0-否,1-是)',
|
||||
`auto_status` smallint(2) DEFAULT '0' COMMENT '是否自动发送完成(0-未完成,1-已完成)',
|
||||
`amount` decimal(4, 2) DEFAULT '0' COMMENT '红包金额',
|
||||
`app_user_list` text COMMENT 'C端用户ID(-1表示全部)',
|
||||
`com_user_list` text COMMENT '社区用户ID列表(-1表示全部)',
|
||||
`cus_user_list` text COMMENT 'B端用户ID列表(-1表示全部)',
|
||||
@ -835,8 +837,8 @@ CREATE TABLE `xhpc_activity_template`
|
||||
`discount_rate` decimal(4, 2) DEFAULT NULL COMMENT '优惠比率',
|
||||
`start_time` datetime DEFAULT NULL COMMENT '开始时间',
|
||||
`end_time` datetime DEFAULT NULL COMMENT '结束时间',
|
||||
`discount_count` smallint(4) DEFAULT NULL COMMENT '折扣次数',
|
||||
`mini_display` smallint(2) DEFAULT NULL COMMENT '小程序弹出次数',
|
||||
`discount_count` smallint(4) DEFAULT '0' COMMENT '折扣次数',
|
||||
`mini_display` smallint(2) DEFAULT '0' COMMENT '小程序弹出次数',
|
||||
`background_url` varchar(255) DEFAULT NULL COMMENT '活动背景图',
|
||||
`status` smallint(2) DEFAULT '0' COMMENT '状态(0-编辑未发布,1-已发布,2-已失效)',
|
||||
`del_flag` smallint(2) DEFAULT '0' COMMENT '删除标识(0-正常,2-删除)',
|
||||
|
||||
@ -123,6 +123,7 @@ public class AutoCashTask {
|
||||
}
|
||||
|
||||
cashDomain.setReceiveCount(recordDomainList.size());
|
||||
cashDomain.setAutoStatus(1);
|
||||
cashMapper.updateReceiveCountByActivityId(cashDomain);
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
|
||||
<update id="updateReceiveCountByActivityId">
|
||||
update xhpc_activity_cash
|
||||
set receive_count = #{receiveCount}
|
||||
set receive_count = #{receiveCount}, auto_status=#{autoStatus}
|
||||
where activity_id = #{activityId,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user