终端数量不能大于8
This commit is contained in:
parent
530ecd5b98
commit
73a46e080a
@ -50,6 +50,11 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
||||
@Transactional
|
||||
public AjaxResult addXhpcChargingPile(XhpcChargingPile xhpcChargingPile) {
|
||||
|
||||
|
||||
if(xhpcChargingPile.getGunNumber() !=null || xhpcChargingPile.getGunNumber()>9){
|
||||
return AjaxResult.error("终端数量不能大于8");
|
||||
}
|
||||
|
||||
Long chargingStationId = xhpcChargingPile.getChargingStationId();
|
||||
//获取计费模型id
|
||||
Map<String, Object> stringObjectMap = xhpcChargingPileMapper.selectXhpcChargingStationById(chargingStationId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user