Commit c9db4055 by 吕明尚

Merge branch 'refs/heads/test'

parents bb0c2821 67e52d3c
...@@ -238,4 +238,4 @@ mqtt: ...@@ -238,4 +238,4 @@ mqtt:
device-op-last-time: -5 device-op-last-time: -5
device-gateway-last-report-time: -10 device-gateway-last-report-time: -10
api: api:
domain: https://www.coujio.com domain: https://coujiao.pseer.com
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,7 @@ import share.common.core.domain.AjaxResult; ...@@ -8,6 +8,7 @@ import share.common.core.domain.AjaxResult;
import share.common.core.domain.R; 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.enums.YesNoEnum;
import share.common.utils.poi.ExcelUtil; import share.common.utils.poi.ExcelUtil;
import share.system.domain.RechargeConf; import share.system.domain.RechargeConf;
import share.system.service.RechargeConfService; import share.system.service.RechargeConfService;
...@@ -33,6 +34,7 @@ public class RechargeConfController extends BaseController { ...@@ -33,6 +34,7 @@ public class RechargeConfController extends BaseController {
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(RechargeConf rechargeConf) { public TableDataInfo list(RechargeConf rechargeConf) {
startPage(); startPage();
rechargeConf.setEnable(YesNoEnum.yes.getIndex().toString());
List<RechargeConf> list = rechargeConfService.selectRechargeConfList(rechargeConf); List<RechargeConf> list = rechargeConfService.selectRechargeConfList(rechargeConf);
return getDataTable(list); return getDataTable(list);
} }
......
...@@ -235,4 +235,4 @@ mqtt: ...@@ -235,4 +235,4 @@ mqtt:
device-op-last-time: -5 device-op-last-time: -5
device-gateway-last-report-time: -10 device-gateway-last-report-time: -10
api: api:
domain: https://www.coujio.com domain: https://coujiao.pseer.com
...@@ -222,7 +222,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i ...@@ -222,7 +222,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
BigDecimal balance = recharge.getRechargeAmount().add(rechargeConf.getGiveAmount()); BigDecimal balance = recharge.getRechargeAmount().add(rechargeConf.getGiveAmount());
consumerWallet.setBalance(balance); consumerWallet.setBalance(balance);
} else { } else {
consumerWallet.setBalance(new BigDecimal(0)); consumerWallet.setBalance(recharge.getRechargeAmount());
} }
if (rechargeConf.getGiveType().contains(GiveTypeEnum.DURATION.getIndex())) { if (rechargeConf.getGiveType().contains(GiveTypeEnum.DURATION.getIndex())) {
consumerWallet.setRemainingDuration(rechargeConf.getGiveDuration()); consumerWallet.setRemainingDuration(rechargeConf.getGiveDuration());
......
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