Commit 67e52d3c by 吕明尚

Merge branch 'refs/heads/dev' into test

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