封顶金额

This commit is contained in:
邱贞招 2025-03-27 17:47:10 +08:00
parent 2cab5d0b73
commit a08075b702
2 changed files with 12 additions and 1 deletions

View File

@ -180,13 +180,19 @@ public class AppController extends BaseController
* 获取运营区详细信息 * 获取运营区详细信息
*/ */
@GetMapping(value = "/area/{areaId}") @GetMapping(value = "/area/{areaId}")
public AjaxResult getInfo(@PathVariable("areaId") Long areaId) public AjaxResult getInfo(@PathVariable("areaId") Long areaId, Long ruleId)
{ {
if(areaId == null){ if(areaId == null){
logger.info("没有传入areaId参数【areaId={}】",areaId); logger.info("没有传入areaId参数【areaId={}】",areaId);
return error("请传areaId参数"+"【areaId="+areaId+""); return error("请传areaId参数"+"【areaId="+areaId+"");
} }
EtOperatingArea area = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId); EtOperatingArea area = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
if(ruleId != null){
EtFeeRule etFeeRule = etFeeRuleService.selectEtFeeRuleByRuleId(ruleId);
if(etFeeRule!=null){
area.setCappedAmount(etFeeRule.getCappedAmount());
}
}
return success(area); return success(area);
} }

View File

@ -238,4 +238,9 @@ public class EtOperatingArea extends BaseEntityPlus implements Serializable
/** 禁停区数*/ /** 禁停区数*/
@TableField(exist = false) @TableField(exist = false)
private Integer bannedRidingAreaNum; private Integer bannedRidingAreaNum;
/** 封顶金额*/
@TableField(exist = false)
private BigDecimal cappedAmount;
} }