From 7e3d4837b8464c32c4c25f40eb01222a8759eeb9 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 13 三月 2019 10:57:56 +0800 Subject: [PATCH] 删除PidOrder相关代码 --- fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java index 63fc1fa..0d2c9f1 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java @@ -14,9 +14,11 @@ import com.yeshi.fanli.dao.mybatis.order.LostOrderMapper; import com.yeshi.fanli.dao.order.LostOrderDao; -import com.yeshi.fanli.dao.order.PidOrderDao; +import com.yeshi.fanli.entity.bus.user.HongBaoV2; import com.yeshi.fanli.entity.bus.user.LostOrder; import com.yeshi.fanli.entity.bus.user.Order; +import com.yeshi.fanli.service.inter.order.CommonOrderService; +import com.yeshi.fanli.service.inter.order.HongBaoOrderService; import com.yeshi.fanli.service.inter.order.LostOrderService; import com.yeshi.fanli.service.inter.order.OrderService; import com.yeshi.fanli.util.Constant; @@ -29,10 +31,10 @@ private OrderService orderService; @Resource - private LostOrderDao lostOrderDao; + private HongBaoOrderService hongBaoOrderService; @Resource - private PidOrderDao pidOrderDao; + private LostOrderDao lostOrderDao; @Resource private LostOrderMapper lostOrderMapper; @@ -65,7 +67,7 @@ } // 鏌ヨ鏄惁涓哄垎浜禋璁㈠崟 - if (pidOrderDao.list("from PidOrder p where p.orderId=?", new Serializable[] { orderId }).size() > 0) + if (hongBaoOrderService.countByOrderNoAndHongBaoType(orderId, HongBaoV2.TYPE_SHARE_GOODS) > 0) return -5; WriteLock lostOrderwriteLock = lostOrderLock.writeLock(); @@ -277,19 +279,17 @@ public long countQuery(String key, Integer state, Integer handleType) { return lostOrderMapper.countQuery(key, state, handleType); } - - + @Override - public List<Map<String, Object>> countLostNum( Integer dateType, Integer resultCode, - String year, String startTime, String endTime) throws Exception { + public List<Map<String, Object>> countLostNum(Integer dateType, Integer resultCode, String year, String startTime, + String endTime) throws Exception { return lostOrderMapper.countLostNum(dateType, resultCode, year, startTime, endTime); } - - + @Override - public List<Map<String, Object>> countAppealMoney( Integer dateType, String year, String startTime, - String endTime) throws Exception { + public List<Map<String, Object>> countAppealMoney(Integer dateType, String year, String startTime, String endTime) + throws Exception { return lostOrderMapper.countAppealMoney(dateType, year, startTime, endTime); } - + } -- Gitblit v1.8.0