Authored by zhaoqing

限定商品支持小程序

... ... @@ -16,7 +16,7 @@ public interface ProductLimitUserHelpMapper {
List<LimitProductHelpUser> selectHelpInfoByUidAndCode(@Param("list") List<Integer> uidList, @Param("limitProductCode") String limitProductCode);
Integer selectExistHelpInfo(@Param("helpUserId") String helpUserId, @Param("limitProductCode") String limitProductCode);
Integer selectExistHelpInfo(@Param("userId") Integer userId, @Param("helpUserId") String helpUserId, @Param("limitProductCode") String limitProductCode);
void addShareInfo(LimitProductHelpUser limitProductHelpUser);
}
... ...
... ... @@ -50,6 +50,6 @@
<select id="selectExistHelpInfo" resultType="java.lang.Integer">
select count(1) FROM limit_product_help_user
where help_user_id = #{helpUserId,jdbcType=INTEGER} AND limit_product_code = #{limitProductCode,jdbcType=VARCHAR}
where user_id = #{userId,jdbcType=INTEGER} AND help_user_id = #{helpUserId,jdbcType=VARCHAR} AND limit_product_code = #{limitProductCode,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -186,6 +186,7 @@ public class DrawlineUserQueueServiceImpl implements IDrawlineUserQueueService {
//先判断是否是首次,根据活动ID查询是否只有一条数据
List<DrawlineUserQueue> drawlineUserQueueList = drawlineUserQueueDAO.selectByTypeAndActivityIds(String.valueOf(activityId), 1);
if (drawlineUserQueueList.size() == 1){
logger.info("addDrawlineUserQueue: push message param : uid is{}, productName is{}, limitProductCode is{}",uid, productName, limitProductCode);
iSendLimitCodeMessage.queueSuccess(String.valueOf(uid), 4, productName, limitProductCode);
}
logger.info("addDrawlineUserQueue: return. drawlineUserQueueReqBO is {}, sort is {}", drawlineUserQueueReqBO, sort);
... ... @@ -346,7 +347,7 @@ public class DrawlineUserQueueServiceImpl implements IDrawlineUserQueueService {
// (9)批量查询用户的中奖信息,并将用户的中奖信息转成MAP
Map<String, DrawlineLuckyUser> drawlineLuckyUserMap = drawlineList2MapService.getDrawlineLuckyUserMap(activityId, uidList);
// (10)查询马甲信息
// (10)查询马甲信息
Map<Integer, DrawlineVirtualUser> drawlineVirtualUserMap = drawlineList2MapService.getDrawlineVirtualUserMap(uidList);
// (11)获取用户信息, 将用户的基础信息转换成MAP,
... ...
... ... @@ -105,7 +105,7 @@ public class ProductLimitUserHelpServiceImpl implements IProductLimitUserHelpSer
@Override
public Boolean judgeHelpUserExist(LimitProductHelpUserRequestBO limitProductHelpUserRequestBO) {
Integer count = productLimitUserHelpMapper.selectExistHelpInfo(limitProductHelpUserRequestBO.getHelpUserId(),limitProductHelpUserRequestBO.getLimitProductCode());
Integer count = productLimitUserHelpMapper.selectExistHelpInfo(limitProductHelpUserRequestBO.getUserId(),limitProductHelpUserRequestBO.getHelpUserId(),limitProductHelpUserRequestBO.getLimitProductCode());
if (count > 0){
return true;
}
... ...