海外平台-数据全英文化

This commit is contained in:
2025-09-29 11:35:58 +08:00
parent 66e49673df
commit 6fb36de2c3
4 changed files with 9 additions and 2 deletions

View File

@ -31,4 +31,7 @@ public class PcsStationReq extends StationReq {
@ApiModelProperty(value = "分段类型",hidden = true)
String stationName;
@ApiModelProperty(value = "中英切换-查询字段")
private String lang;
}

View File

@ -733,6 +733,9 @@ public class OpenStationServiceImpl implements OpenStationService {
String segmentType = req.getSegmentType();
String name = "";
String summary = DefineConstant.SUMMARY;
if(RedisKeyConstant.User.EN_US.equals(req.getLang())){
summary = DefineConstant.SUMMARY_EN;
}
if(CommonConstant.SEGMENT.equals(segmentType)){
List<EarningsCalculateData> resultList = new ArrayList<>();
BigDecimal chargeTip = BigDecimal.ZERO;

View File

@ -319,7 +319,8 @@ public class OpenStationController {
@PostMapping("/getElecMeterList")
@ApiOperation(value = "获取多电站累计充放电量数据(不分页)")
public DataResult<Object> getElecMeterList(@RequestBody PcsStationReq req) {
public DataResult<Object> getElecMeterList(@RequestBody PcsStationReq req,HttpServletRequest request) {
req.setLang(request.getHeader(RedisKeyConstant.User.LANG));
Object obj = openStationService.getElecMeterList(req);
return DataResult.success(obj);
}

View File

@ -26,7 +26,7 @@ public interface DefineConstant {
String SHARP = "";
String SUMMARY = "汇总";
String SUMMARY_EN = "summary";
String SUMMARY_EN = "Summary";
String SUMMARY_DATA_STATION = "电站汇总数据";