桩开放注册,支付宝开放最低5元充值
This commit is contained in:
parent
97dfc60a6c
commit
0fa49ff845
@ -98,10 +98,10 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//插入redis 桩的编号
|
//插入redis 桩的编号
|
||||||
// HashSet<String> noSet = new HashSet<>();
|
HashSet<String> noSet = new HashSet<>();
|
||||||
// noSet.add(serialNumber);
|
noSet.add(serialNumber);
|
||||||
// powerPileService.addPileWhitelist(chargingStationId, noSet);
|
powerPileService.addPileWhitelist(chargingStationId, noSet);
|
||||||
return AjaxResult.success(null);
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addXhpcTerminal(String name, Long chargingStationId, Long rateModelId, String serialNumber, Long chargingPileId, int i, int number) {
|
private void addXhpcTerminal(String name, Long chargingStationId, Long rateModelId, String serialNumber, Long chargingPileId, int i, int number) {
|
||||||
@ -163,7 +163,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
|||||||
powerPileService.addPileWhitelist(chargingStationId, noSet);
|
powerPileService.addPileWhitelist(chargingStationId, noSet);
|
||||||
}
|
}
|
||||||
xhpcChargingPileMapper.updaeXhpcChargingPile(xhpcChargingPile);
|
xhpcChargingPileMapper.updaeXhpcChargingPile(xhpcChargingPile);
|
||||||
return AjaxResult.success(null);
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -73,9 +73,9 @@ public class AlipayPaymentController {
|
|||||||
if (StringUtils.isEmpty(amount)) {
|
if (StringUtils.isEmpty(amount)) {
|
||||||
return AjaxResult.error(HttpStatus.NOT_NULL, "充值金额不能为空");
|
return AjaxResult.error(HttpStatus.NOT_NULL, "充值金额不能为空");
|
||||||
}else{
|
}else{
|
||||||
// if(new BigDecimal(5).compareTo(new BigDecimal(amount))==1){
|
if(new BigDecimal(5).compareTo(new BigDecimal(amount))==1){
|
||||||
// return AjaxResult.error(HttpStatus.NOT_NULL, "充值金额不能少于5元");
|
return AjaxResult.error(HttpStatus.NOT_NULL, "充值金额不能少于5元");
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
//用户信息id
|
//用户信息id
|
||||||
String userId = StringUtils.valueOf(map.get("userId"));
|
String userId = StringUtils.valueOf(map.get("userId"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user