| | |
| | | import com.yeshi.fanli.service.inter.order.CommonOrderService;
|
| | | import com.yeshi.fanli.service.inter.order.HongBaoOrderService;
|
| | | import com.yeshi.fanli.service.inter.taobao.TaoBaoPunishOrderService;
|
| | | import com.yeshi.fanli.service.inter.user.UserAccountService;
|
| | | import com.yeshi.fanli.service.inter.user.UserExtraTaoBaoInfoService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | @Service
|
| | | public class TaoBaoPunishOrderServiceImpl implements TaoBaoPunishOrderService {
|
| | |
| | |
|
| | | @Resource
|
| | | private UserInfoService userInfoService;
|
| | | |
| | | @Resource
|
| | | private UserAccountService userAccountService;
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | |
| | | Set<String> specialIdSets = new HashSet<>();
|
| | | Set<Long> uidSets = new HashSet<>();
|
| | |
|
| | | for (TaoBaoPunishOrder order : orderList) {
|
| | | if (!StringUtil.isNullOrEmpty(order.getRelationId()))
|
| | | relationIdSets.add(order.getRelationId());
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(order.getSpecialId()))
|
| | | specialIdSets.add(order.getSpecialId());
|
| | |
|
| | | doPunishOrder(order, uidSets);
|
| | | }
|
| | | // for (TaoBaoPunishOrder order : orderList) {
|
| | | // if (!StringUtil.isNullOrEmpty(order.getRelationId()))
|
| | | // relationIdSets.add(order.getRelationId());
|
| | | //
|
| | | // if (!StringUtil.isNullOrEmpty(order.getSpecialId()))
|
| | | // specialIdSets.add(order.getSpecialId());
|
| | | //
|
| | | // doPunishOrder(order, uidSets);
|
| | | // }
|
| | |
|
| | | for (Iterator<String> its = relationIdSets.iterator(); its.hasNext();) {
|
| | | String relationId = its.next();
|
| | |
| | |
|
| | | for (Iterator<Long> its = uidSets.iterator(); its.hasNext();) {
|
| | | Long uid = its.next();
|
| | | userInfoService.forbiddenUser(uid, "产生违规订单自动封禁");
|
| | | userAccountService.forbiddenUserAll(uid, "产生违规订单自动封禁");
|
| | | }
|
| | |
|
| | | }
|