|
|
|
@ -62,13 +62,13 @@ public class HighOrderPreServiceImpl implements HighOrderPreService { |
|
|
|
|
criteria.andPreUserPhoneEqualTo(MapUtils.getString(map, "userPhone")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(map,"createTimeS")) |
|
|
|
|
&& StringUtils.isNotBlank(MapUtils.getString(map,"createTimeE"))) { |
|
|
|
|
criteria.andCreateTimeBetween( |
|
|
|
|
DateUtil.format(MapUtils.getString(map,"createTimeS") , "yyyy-MM-dd HH:mm:ss") , |
|
|
|
|
DateUtil.format(MapUtils.getString(map,"createTimeE") , "yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
======= |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (MapUtils.getString(map, "preOrderNo") != null) { |
|
|
|
|
criteria.andPreOrderNoLike("%" + MapUtils.getString(map, "preOrderNo") + "%"); |
|
|
|
|
} |
|
|
|
@ -77,13 +77,6 @@ public class HighOrderPreServiceImpl implements HighOrderPreService { |
|
|
|
|
criteria.andPreUserNameLike("%" + MapUtils.getString(map, "preUserName") + "%"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MapUtils.getString(map , "createTimeS") !=null && MapUtils.getString(map , "createTimeE") != null) { |
|
|
|
|
criteria.andCreateTimeBetween( |
|
|
|
|
DateUtil.format(MapUtils.getString(map , "createTimeS") , "yyyy-MM-dd HH:mm:ss") , |
|
|
|
|
DateUtil.format(MapUtils.getString(map , "createTimeE") , "yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
>>>>>>> 635a7e3af19c875fe2f81995c7898dd251b70d32 |
|
|
|
|
} |
|
|
|
|
return highOrderPreMapper.selectByExample(example); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -92,6 +85,17 @@ public class HighOrderPreServiceImpl implements HighOrderPreService { |
|
|
|
|
return highOrderPreMapper.selectByPrimaryKey(orderId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public HighOrderPre getPreByOrderId(Long orderId) { |
|
|
|
|
HighOrderPreExample example = new HighOrderPreExample(); |
|
|
|
|
example.createCriteria().andOrderIdEqualTo(orderId); |
|
|
|
|
List<HighOrderPre> list = highOrderPreMapper.selectByExample(example); |
|
|
|
|
if (list.size() > 0) { |
|
|
|
|
return list.get(0); |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public HighOrderPre findByOrderNo(String orderNo) { |
|
|
|
|
return null; |
|
|
|
@ -99,11 +103,8 @@ public class HighOrderPreServiceImpl implements HighOrderPreService { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void insertOrderPre(HighOrderPre highOrderPre) { |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
highOrderPre.setCreateTime(new Date()); |
|
|
|
|
highOrderPre.setUpdateTime(new Date()); |
|
|
|
|
======= |
|
|
|
|
>>>>>>> 635a7e3af19c875fe2f81995c7898dd251b70d32 |
|
|
|
|
highOrderPreMapper.insert(highOrderPre); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|