Commit ab1835f9 by 吕明尚

Merge branch 'refs/heads/dev' into test

parents ff703c2f be37419d
...@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.*;
import share.common.annotation.Log; import share.common.annotation.Log;
import share.common.core.controller.BaseController; import share.common.core.controller.BaseController;
import share.common.core.domain.AjaxResult; import share.common.core.domain.AjaxResult;
import share.common.core.domain.R;
import share.common.core.page.TableDataInfo; import share.common.core.page.TableDataInfo;
import share.common.enums.BusinessType; import share.common.enums.BusinessType;
import share.common.utils.poi.ExcelUtil; import share.common.utils.poi.ExcelUtil;
...@@ -36,6 +37,12 @@ public class EquityMembersOrderConfigController extends BaseController { ...@@ -36,6 +37,12 @@ public class EquityMembersOrderConfigController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/query")
public R<List<EquityMembersOrderConfig>> query() {
List<EquityMembersOrderConfig> list = equityMembersOrderConfigService.selectEquityMembersOrderConfigList(null);
return R.ok(list);
}
/** /**
* 导出权益会员订单配置列表 * 导出权益会员订单配置列表
*/ */
......
package share.web.controller.system; package share.web.controller.system;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -109,4 +110,14 @@ public class EquityMembersOrderController extends BaseController { ...@@ -109,4 +110,14 @@ public class EquityMembersOrderController extends BaseController {
public R<Boolean> cancelPay(@RequestParam("equityOrderNo") String equityOrderNo) { public R<Boolean> cancelPay(@RequestParam("equityOrderNo") String equityOrderNo) {
return R.ok(equityMembersOrderService.cancelPay(equityOrderNo)); return R.ok(equityMembersOrderService.cancelPay(equityOrderNo));
} }
/**
* 获取订单详细信息
*/
@ApiOperation(value = "通过订单编号查询订单")
@GetMapping(value = "/{equityOrderNo}")
public R<EquityMembersOrderVo> queryEquityMembersOrderInfoByNo(@PathVariable("equityOrderNo") String equityOrderNo) {
return R.ok(equityMembersOrderService.queryEquityMembersOrderInfoByNo(equityOrderNo));
}
} }
...@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.*;
import share.common.annotation.Log; import share.common.annotation.Log;
import share.common.core.controller.BaseController; import share.common.core.controller.BaseController;
import share.common.core.domain.AjaxResult; import share.common.core.domain.AjaxResult;
import share.common.core.domain.R;
import share.common.core.page.TableDataInfo; import share.common.core.page.TableDataInfo;
import share.common.enums.BusinessType; import share.common.enums.BusinessType;
import share.common.utils.poi.ExcelUtil; import share.common.utils.poi.ExcelUtil;
...@@ -36,6 +37,14 @@ public class RechargeConfController extends BaseController { ...@@ -36,6 +37,14 @@ public class RechargeConfController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/query")
public R<List<RechargeConf>> query() {
List<RechargeConf> list = rechargeConfService.selectRechargeConfList(null);
return R.ok(list);
}
/** /**
* 导出充值配置列表 * 导出充值配置列表
*/ */
......
package share.web.controller.system; package share.web.controller.system;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -109,4 +110,13 @@ public class RechargeController extends BaseController { ...@@ -109,4 +110,13 @@ public class RechargeController extends BaseController {
public R<Boolean> cancelPay(@RequestParam("rechargeNo") String rechargeNo) { public R<Boolean> cancelPay(@RequestParam("rechargeNo") String rechargeNo) {
return R.ok(rechargeService.cancelPay(rechargeNo)); return R.ok(rechargeService.cancelPay(rechargeNo));
} }
/**
* 获取订单详细信息
*/
@ApiOperation(value = "通过订单编号查询订单")
@GetMapping(value = "/{rechargeNo}")
public R<RechargeVo> queryRechargeInfoByNo(@PathVariable("rechargeNo") String rechargeNo) {
return R.ok(rechargeService.queryRechargeInfoByNo(rechargeNo));
}
} }
...@@ -72,4 +72,6 @@ public interface EquityMembersOrderService extends IService<EquityMembersOrder> ...@@ -72,4 +72,6 @@ public interface EquityMembersOrderService extends IService<EquityMembersOrder>
Boolean cancelPay(String equityOrderNo); Boolean cancelPay(String equityOrderNo);
EquityMembersOrder getByEquityOrderNo(String equityOrderNo); EquityMembersOrder getByEquityOrderNo(String equityOrderNo);
EquityMembersOrderVo queryEquityMembersOrderInfoByNo(String equityOrderNo);
} }
...@@ -72,4 +72,6 @@ public interface RechargeService extends IService<Recharge> { ...@@ -72,4 +72,6 @@ public interface RechargeService extends IService<Recharge> {
Boolean cancelPay(String rechargeNo); Boolean cancelPay(String rechargeNo);
Recharge getByRechargeNo(String rechargeNo); Recharge getByRechargeNo(String rechargeNo);
RechargeVo queryRechargeInfoByNo(String rechargeNo);
} }
...@@ -210,6 +210,14 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde ...@@ -210,6 +210,14 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
return getOne(lqw); return getOne(lqw);
} }
@Override
public EquityMembersOrderVo queryEquityMembersOrderInfoByNo(String equityOrderNo) {
EquityMembersOrder en = getByEquityOrderNo(equityOrderNo);
EquityMembersOrderVo vo = new EquityMembersOrderVo();
BeanUtils.copyProperties(en, vo);
return vo;
}
private EquityMembersOrder generatEquityMembersOrder(CreateEquityMembersRequest request, SConsumer user) { private EquityMembersOrder generatEquityMembersOrder(CreateEquityMembersRequest request, SConsumer user) {
EquityMembersOrder equityMembersOrder = new EquityMembersOrder(); EquityMembersOrder equityMembersOrder = new EquityMembersOrder();
BeanUtils.copyProperties(request, equityMembersOrder); BeanUtils.copyProperties(request, equityMembersOrder);
......
...@@ -195,6 +195,14 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i ...@@ -195,6 +195,14 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
return getOne(lqw); return getOne(lqw);
} }
@Override
public RechargeVo queryRechargeInfoByNo(String rechargeNo) {
Recharge byRechargeNo = getByRechargeNo(rechargeNo);
RechargeVo vo = new RechargeVo();
BeanUtils.copyProperties(byRechargeNo, vo);
return vo;
}
private void extracted(Recharge recharge) { private void extracted(Recharge recharge) {
//新增会员钱包 //新增会员钱包
RechargeConf rechargeConf = rechargeConfService.selectRechargeConfById(recharge.getRechargeConfId()); RechargeConf rechargeConf = rechargeConfService.selectRechargeConfById(recharge.getRechargeConfId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment