| | |
| | | List<Integer> hongBaoTypeList = new ArrayList<>(); |
| | | hongBaoTypeList.add(HongBaoV2.TYPE_ZIGOU); |
| | | |
| | | if (riskType == 1) { |
| | | if (riskType == 1) {//同商品 |
| | | listGoodsId = commonOrderCountService.getSameGoodsOrderByUidAndHongBaoType(hongBaoTypeList, uid, |
| | | Integer.parseInt(configService.getValue(ConfigKeyEnum.adminMinSameGoodsOrderCount.getKey(), acceptData.getSystem()))); |
| | | if (listGoodsId == null || listGoodsId.isEmpty()) { |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无同商品订单")); |
| | | return; |
| | | } |
| | | } else if (riskType == 2) { |
| | | } else if (riskType == 2) {//同店铺 |
| | | listShopId = commonOrderCountService.getSameShopOrderByUidAndHongBaoType(hongBaoTypeList, uid, |
| | | Integer.parseInt(configService.getValue(ConfigKeyEnum.adminMinSameShopOrderCount.getKey(), acceptData.getSystem()))); |
| | | if (listShopId == null || listShopId.isEmpty()) { |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无同店铺订单")); |
| | | return; |
| | | } |
| | | } else if (riskType == 3) { |
| | | } else if (riskType == 3) {//高额返利 |
| | | money = OrderConstant.BIG_ORDER_MONEY; |
| | | minTime = new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24 * 180L); |
| | | } |