海外平台-数据全英文化
This commit is contained in:
@ -31,4 +31,7 @@ public class PcsStationReq extends StationReq {
|
||||
|
||||
@ApiModelProperty(value = "分段类型",hidden = true)
|
||||
String stationName;
|
||||
|
||||
@ApiModelProperty(value = "中英切换-查询字段")
|
||||
private String lang;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ public interface DefineConstant {
|
||||
String SHARP = "尖";
|
||||
|
||||
String SUMMARY = "汇总";
|
||||
String SUMMARY_EN = "summary";
|
||||
String SUMMARY_EN = "Summary";
|
||||
|
||||
String SUMMARY_DATA_STATION = "电站汇总数据";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user