Authored by wangshusheng

修改活动发奖

... ... @@ -150,7 +150,7 @@
<update id="updateByActIdAndUid">
update drawline_lucky_user
set is_send_inbox = 1
set is_send_inbox = 1, update_time = UNIX_TIMESTAMP()
where status = 1 and user_type = 1
and activity_id = #{activityId,jdbcType=INTEGER}
and uid = #{uid,jdbcType=INTEGER}
... ... @@ -183,7 +183,7 @@
update drawline_lucky_user
set is_send_prize = 1
where status = 1 and user_type = 1
and activity_id = #{activityId,jdbcType=INTEGER},
and activity_id = #{activityId,jdbcType=INTEGER}
<if test="list != null and list.size() > 0">
and uid in
<foreach collection="list" item="item" open="(" close=")" separator=",">
... ...
... ... @@ -26,7 +26,7 @@ public class SendUserAwardTimer {
@Autowired
private ILuckyUserService luckyUserService;
@Scheduled(fixedDelay = 600 * 1000)
@Scheduled(fixedDelay = 300 * 1000)
public void sendAwardToLuckyUser() {
boolean execute = PropertiesUtil.getExecuteTask();
... ...
... ... @@ -248,6 +248,7 @@ public class LuckyUserServiceImpl implements ILuckyUserService {
productLimitCodeReq.setUid(drawlineLuckyUser.getUid());
productLimitCodeReq.setLimitProductCode(limitProductCode);
productLimitCodeReq.setBatchNo(batchNo);
req.add(productLimitCodeReq);
}
// 调promotion接口发放限购码奖励
logger.info("start invoke promotion.batchAddLimitCodeReceiveRecord, req param is: {}", req);
... ...