|
|
|
@ -3086,51 +3086,51 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
@Override |
|
|
|
|
public List<HighOrder> orderListByAgentId(Map<String, Object> map) throws Exception { |
|
|
|
|
|
|
|
|
|
HighOrderExample example = new HighOrderExample(); |
|
|
|
|
HighOrderExample.Criteria criteria = example.createCriteria(); |
|
|
|
|
|
|
|
|
|
criteria.andOrderStatusEqualTo(3); |
|
|
|
|
|
|
|
|
|
/* if (MapUtils.getLong(map , "agentId") != null) { |
|
|
|
|
criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "agentId")); |
|
|
|
|
} else { |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
criteria.andIdentificationCodeIsNotNull(); |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
List<HighOrder> list = highOrderMapper.selectByExample(example); |
|
|
|
|
|
|
|
|
|
/* for (HighOrder order : list) { |
|
|
|
|
HighUser user = highUserService.findByUserId(order.getIdentificationCode()); |
|
|
|
|
order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm")); |
|
|
|
|
List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId()); |
|
|
|
|
order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType())); |
|
|
|
|
order.setAgentName(user.getName()); |
|
|
|
|
}*/ |
|
|
|
|
======= |
|
|
|
|
criteria.andIdentificationCodeIsNotNull().andIdentificationCodeNotEqualTo(60L); |
|
|
|
|
} |
|
|
|
|
if (MapUtils.getLong(map , "code") != null) { |
|
|
|
|
criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "code")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<HighOrder> list = highOrderMapper.selectByExample(example); |
|
|
|
|
|
|
|
|
|
if (list.size() > 0) { |
|
|
|
|
for (HighOrder order : list) { |
|
|
|
|
HighUser user = highUserService.findByUserId(order.getIdentificationCode()); |
|
|
|
|
order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm")); |
|
|
|
|
List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId()); |
|
|
|
|
order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType())); |
|
|
|
|
if (user != null) { |
|
|
|
|
order.setAgentName(user.getName()); |
|
|
|
|
} else { |
|
|
|
|
order.setAgentName("暂无推广人"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
>>>>>>> dev_yy |
|
|
|
|
|
|
|
|
|
return list; |
|
|
|
|
// HighOrderExample example = new HighOrderExample();
|
|
|
|
|
// HighOrderExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
//
|
|
|
|
|
// criteria.andOrderStatusEqualTo(3);
|
|
|
|
|
//
|
|
|
|
|
// /* if (MapUtils.getLong(map , "agentId") != null) {
|
|
|
|
|
// criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "agentId"));
|
|
|
|
|
// } else {
|
|
|
|
|
//<<<<<<< HEAD
|
|
|
|
|
// criteria.andIdentificationCodeIsNotNull();
|
|
|
|
|
// }*/
|
|
|
|
|
//
|
|
|
|
|
// List<HighOrder> list = highOrderMapper.selectByExample(example);
|
|
|
|
|
//
|
|
|
|
|
// /* for (HighOrder order : list) {
|
|
|
|
|
// HighUser user = highUserService.findByUserId(order.getIdentificationCode());
|
|
|
|
|
// order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
|
|
|
|
|
// List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
|
|
|
|
|
// order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
|
|
|
|
|
// order.setAgentName(user.getName());
|
|
|
|
|
// }*/
|
|
|
|
|
//=======
|
|
|
|
|
// criteria.andIdentificationCodeIsNotNull().andIdentificationCodeNotEqualTo(60L);
|
|
|
|
|
// }
|
|
|
|
|
// if (MapUtils.getLong(map , "code") != null) {
|
|
|
|
|
// criteria.andIdentificationCodeEqualTo(MapUtils.getLong(map , "code"));
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// List<HighOrder> list = highOrderMapper.selectByExample(example);
|
|
|
|
|
//
|
|
|
|
|
// if (list.size() > 0) {
|
|
|
|
|
// for (HighOrder order : list) {
|
|
|
|
|
// HighUser user = highUserService.findByUserId(order.getIdentificationCode());
|
|
|
|
|
// order.setTime(DateUtil.date2String(order.getCreateTime() , "MM月dd日 HH:mm"));
|
|
|
|
|
// List<HighChildOrder> childOrder = getChildOrderByOrder(order.getId());
|
|
|
|
|
// order.setGoodsTypeName("购买:" + GoodsType.getNameByType(childOrder.get(0).getGoodsType()));
|
|
|
|
|
// if (user != null) {
|
|
|
|
|
// order.setAgentName(user.getName());
|
|
|
|
|
// } else {
|
|
|
|
|
// order.setAgentName("暂无推广人");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//>>>>>>> dev_yy
|
|
|
|
|
//
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|