封顶金额
This commit is contained in:
parent
2cab5d0b73
commit
a08075b702
|
@ -180,13 +180,19 @@ public class AppController extends BaseController
|
|||
* 获取运营区详细信息
|
||||
*/
|
||||
@GetMapping(value = "/area/{areaId}")
|
||||
public AjaxResult getInfo(@PathVariable("areaId") Long areaId)
|
||||
public AjaxResult getInfo(@PathVariable("areaId") Long areaId, Long ruleId)
|
||||
{
|
||||
if(areaId == null){
|
||||
logger.info("没有传入areaId参数:【areaId={}】",areaId);
|
||||
return error("请传areaId参数"+"【areaId="+areaId+"】");
|
||||
}
|
||||
EtOperatingArea area = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
|
||||
if(ruleId != null){
|
||||
EtFeeRule etFeeRule = etFeeRuleService.selectEtFeeRuleByRuleId(ruleId);
|
||||
if(etFeeRule!=null){
|
||||
area.setCappedAmount(etFeeRule.getCappedAmount());
|
||||
}
|
||||
}
|
||||
return success(area);
|
||||
}
|
||||
|
||||
|
|
|
@ -238,4 +238,9 @@ public class EtOperatingArea extends BaseEntityPlus implements Serializable
|
|||
/** 禁停区数*/
|
||||
@TableField(exist = false)
|
||||
private Integer bannedRidingAreaNum;
|
||||
|
||||
/** 封顶金额*/
|
||||
@TableField(exist = false)
|
||||
private BigDecimal cappedAmount;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user