修改区域公司

dev-discount
袁野 2 years ago
parent 7191e75722
commit ee3170150f
  1. 20
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java

@ -3085,17 +3085,23 @@ public class HighOrderServiceImpl implements HighOrderService {
if (MapUtils.getLong(map , "agentId") != null) { if (MapUtils.getLong(map , "agentId") != null) {
criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "agentId")); criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "agentId"));
} else { } else {
criteria.andIdentificationCodeIsNotNull(); criteria.andIdentificationCodeIsNotNull().andIdentificationCodeNotEqualTo(60L);
} }
List<HighOrder> list = highOrderMapper.selectByExample(example); List<HighOrder> list = highOrderMapper.selectByExample(example);
for (HighOrder order : list) { if (list.size() > 0) {
HighUser user = highUserService.findByUserId(order.getIdentificationCode()); for (HighOrder order : list) {
order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm")); HighUser user = highUserService.findByUserId(order.getIdentificationCode());
List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId()); order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType())); List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
order.setAgentName(user.getName()); order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
if (user != null) {
order.setAgentName(user.getName());
} else {
order.setAgentName("暂无推广人");
}
}
} }
return list; return list;

Loading…
Cancel
Save