From 1733331a5eb48badc89147621d5a067908fa7238 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期一, 15 六月 2020 16:05:13 +0800 Subject: [PATCH] 云发单 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudOrderServiceImpl.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudOrderServiceImpl.java index 962171c..1454a66 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudOrderServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudOrderServiceImpl.java @@ -60,7 +60,6 @@ } - @Transactional(rollbackFor = Exception.class) @Override public void cloudPayCloudSuccess(Long orderId) throws UserCloudOrderException{ UserCloudOrder cloudOrder = userCloudOrderMapper.selectForUpdate(orderId); @@ -73,6 +72,7 @@ UserCloudOrder updateOrder = new UserCloudOrder(); updateOrder.setState(true); updateOrder.setId(cloudOrder.getId()); + updateOrder.setDesc("鎴愬姛寮�閫�" + cloudOrder.getType().getDescShow()); updateOrder.setUpdateTime(new Date()); userCloudOrderMapper.updateByPrimaryKeySelective(updateOrder); @@ -113,4 +113,20 @@ public List<UserCloudOrder> getLasthourByUnpaid() { return userCloudOrderMapper.getLasthourByUnpaid(); } + + + @Override + public List<UserCloudOrder> query(int page, int count,String key, Integer state) { + return userCloudOrderMapper.query((page-1)* count, count, key, state); + } + + @Override + public long count(String key, Integer state) { + Long count = userCloudOrderMapper.count(key, state); + if (count == null) + count = 0L; + return count; + } + + } -- Gitblit v1.8.0