多语言(英语、法语、西班牙语、德语、波兰语、阿拉伯语)处理
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.ho.business.config;
|
||||
|
||||
import com.ho.common.tools.annotation.NotSportEnOperation;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.RedisKeyConstant;
|
||||
import com.ho.common.tools.exception.BaseResponseCode;
|
||||
import com.ho.common.tools.exception.BusinessException;
|
||||
@ -36,8 +37,8 @@ public class NotSportEnOperationAspect {
|
||||
Method method = signature.getMethod();
|
||||
NotSportEnOperation notSportEnOperation = method.getAnnotation(NotSportEnOperation.class);
|
||||
if (null != notSportEnOperation) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
if(!CommonConstant.langTemp.ZH_CN.equals(lang)){
|
||||
throw new BusinessException(BaseResponseCode.EN_US_NOT_SUPPORT_OPERATION);
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ public class CabinController {
|
||||
@ApiOperation(value = "温度电压正太分布")
|
||||
@PostMapping("temperatureVoltageData")
|
||||
public DataResult<TemperatureVoltageResp> temperatureVoltageData(@RequestBody DeviceTreeReq vo, HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
TemperatureVoltageResp temperatureVoltageData = deviceService.getTemperatureVoltageData(vo);
|
||||
return DataResult.success(temperatureVoltageData);
|
||||
}
|
||||
|
||||
@ -188,7 +188,7 @@ public class DeviceController {
|
||||
@GetMapping("{stationId}")
|
||||
@ApiOperation(value = "查询电站下的设备列表")
|
||||
public DataResult<List<DeviceRespVO>> getDeviceByStationId(@PathVariable @Valid Integer stationId,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceList = deviceService.getDeviceByStationId(stationId,lang);
|
||||
return DataResult.success(deviceList);
|
||||
}
|
||||
@ -285,7 +285,7 @@ public class DeviceController {
|
||||
@ApiOperation(value = "树状结构设备(设备带接入点,告警页面专用)")
|
||||
@PostMapping("treeDevices")
|
||||
public DataResult<List<DevicePointResp>> treeDevices(@RequestBody DeviceStationReqVo deviceTypeReq,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceList = deviceService.selectAllDeviceAndSrcIdNotZero(deviceTypeReq.getStationId(),lang);
|
||||
List<DeviceRespVO> deviceRespVOS = deviceService.selectDeviceByStationId(deviceTypeReq.getStationId(),lang);
|
||||
Map<Integer, List<DeviceRespVO>> dataMap = deviceRespVOS.stream().collect(Collectors.groupingBy(DeviceRespVO::getId));
|
||||
@ -304,7 +304,7 @@ public class DeviceController {
|
||||
@ApiOperation(value = "树状结构设备(储能总览,设备列表页面专用)")
|
||||
@PostMapping("homePageTreeDevices")
|
||||
public DataResult<List<DevicePointResp>> homePageTreeDevices(@RequestBody DeviceTreeReq vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceRespVOS = deviceService.selectByIdAndSrcIdNotZero(vo.getStationId(),lang);
|
||||
List<DevicePointResp> treeDevices = new ArrayList<>();
|
||||
if (!deviceRespVOS.isEmpty()) {
|
||||
@ -316,7 +316,7 @@ public class DeviceController {
|
||||
@ApiOperation(value = "平铺过滤隐藏的真实设备(储能总览,设备列表页面APP专用)")
|
||||
@PostMapping("appHomePageDevices")
|
||||
public DataResult<List<DeviceRespVO>> appHomePageDevices(@RequestBody DeviceTreeReq vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceRespVOS = deviceService.selectByIdAndSrcIdNotZero(vo.getStationId(),lang);
|
||||
deviceRespVOS = deviceRespVOS.stream().filter(i -> i.getCategory() > CommonConstant.TWO).collect(Collectors.toList());
|
||||
return DataResult.success(deviceRespVOS);
|
||||
@ -325,7 +325,7 @@ public class DeviceController {
|
||||
@ApiOperation(value = "根据条件生成树状结构设备")
|
||||
@PostMapping("treeVirtualDevices")
|
||||
public DataResult<List<DevicePointResp>> treeVirtualDevices(@RequestBody DeviceTreeReq vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceRespVOS = deviceService.selectAllDeviceAndSrcIdNotZero(vo.getStationId(),lang);
|
||||
List<DevicePointResp> treeDevices = new ArrayList<>();
|
||||
if (null != deviceRespVOS && !deviceRespVOS.isEmpty()) {
|
||||
@ -341,7 +341,7 @@ public class DeviceController {
|
||||
@TokenIgnore
|
||||
@PostMapping("treeTrueDevices")
|
||||
public DataResult<List<DevicePointResp>> treeTrueDevices(@RequestBody DeviceTreeReq vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<DeviceRespVO> deviceRespVOS = deviceService.selectAllDeviceAndSrcIdNotZero(vo.getStationId(),lang);
|
||||
deviceRespVOS = deviceRespVOS.stream().filter(i -> CommonConstant.ZERO.equals(i.getVirtual())).collect(Collectors.toList());
|
||||
List<DeviceRespVO> deviceGroupRespVOS = deviceService.selectGroup(deviceRespVOS);
|
||||
|
||||
@ -65,7 +65,7 @@ public class DynamicConfigController {
|
||||
@PostMapping("queryCurveConfig")
|
||||
@ApiOperation(value = "查询曲线配置信息")
|
||||
public DataResult<List<CurveConfigQueryResp>> queryCurveConfig(@RequestBody DynamicConfigQuery vo, HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<CurveConfigQueryResp> result = dynamicConfigService.queryCurveConfig(vo);
|
||||
return DataResult.success(result);
|
||||
}
|
||||
@ -124,7 +124,7 @@ public class DynamicConfigController {
|
||||
@PostMapping("pointList")
|
||||
@ApiOperation(value = "查询配置信息")
|
||||
public DataResult<List<PointConfigResultResp>> pointList(@RequestBody PointConfigQuery vo, HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<PointConfigResultResp> resultRespList = dynamicConfigService.pointList(vo);
|
||||
return DataResult.success(resultRespList);
|
||||
}
|
||||
@ -132,7 +132,7 @@ public class DynamicConfigController {
|
||||
@PostMapping("pointListData")
|
||||
@ApiOperation(value = "配置点数据集合")
|
||||
public DataResult<List<PointConfigDataResp>> pointListData(@RequestBody PointConfigQuery vo, HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<PointConfigDataResp> pointConfigData = dynamicConfigService.getPointConfigData(vo);
|
||||
return DataResult.success(pointConfigData);
|
||||
}
|
||||
@ -177,17 +177,4 @@ public class DynamicConfigController {
|
||||
int count = dynamicConfigService.delDynamicConfigTitle(vo);
|
||||
return DataResult.success(count);
|
||||
}
|
||||
|
||||
@PostMapping("updatePointNameEn")
|
||||
@ApiOperation(value = "修改表中点名称英文")
|
||||
@TokenIgnore
|
||||
public DataResult updatePointNameEn(String tableName,String name,String nameEn) {
|
||||
int count = 0;
|
||||
if(StringUtil.isNotBlank(tableName)
|
||||
&&StringUtil.isNotBlank(name)
|
||||
&&StringUtil.isNotBlank(nameEn)){
|
||||
count = dynamicConfigService.updatePointNameEn(tableName,name,nameEn);
|
||||
}
|
||||
return DataResult.success(count);
|
||||
}
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ public class EarningsCalculateController {
|
||||
@ApiOperation(value = "获取月发电量报表")
|
||||
@TokenIgnore
|
||||
public DataResult<EarningsCalculateResp> getTotal(@RequestBody EarningsCalculateReq earningsCalculateReq,HttpServletRequest request){
|
||||
earningsCalculateReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
earningsCalculateReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
EarningsCalculateResp total = earningsCalculateService.getTotal(earningsCalculateReq,PAGE_LIST_TYPE);
|
||||
if( earningsCalculateReq != null && earningsCalculateReq.getStationId() != null ){
|
||||
Integer stationId = earningsCalculateReq.getStationId();
|
||||
@ -204,7 +204,7 @@ public class EarningsCalculateController {
|
||||
@PostMapping("/export")
|
||||
@ApiOperation(value = "导出")
|
||||
public void export(HttpServletRequest req, HttpServletResponse response, @RequestBody EarningsCalculateReq earningsCalculateReq) {
|
||||
String lang = req.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = req.getHeader(CommonConstant.LANG);
|
||||
earningsCalculateReq.setLang(lang);
|
||||
EarningsCalculateResp total = earningsCalculateService.getTotal(earningsCalculateReq,PAGE_LIST_TYPE);
|
||||
|
||||
@ -217,8 +217,18 @@ public class EarningsCalculateController {
|
||||
String fileName = "demo.xlsx";
|
||||
response.setHeader("Content-disposition", "attachment;filename=" +fileName);
|
||||
String path="template/earningsTemplate.xlsx";
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
if(CommonConstant.langTemp.EN_US.equals(lang)){
|
||||
path="template/earningsTemplateen_US.xlsx";
|
||||
}else if(CommonConstant.langTemp.FR_FR.equals(lang)){
|
||||
path="template/earningsTemplateen_FRA.xlsx";
|
||||
}else if(CommonConstant.langTemp.ES_ES.equals(lang)){
|
||||
path="template/earningsTemplateen_SPA.xlsx";
|
||||
}else if(CommonConstant.langTemp.DE_DE.equals(lang)){
|
||||
path="template/earningsTemplateen_DE.xlsx";
|
||||
}else if(CommonConstant.langTemp.PL_PL.equals(lang)){
|
||||
path="template/earningsTemplateen_PL.xlsx";
|
||||
}else if(CommonConstant.langTemp.AR_EG.equals(lang)){
|
||||
path="template/earningsTemplateen_ARA.xlsx";
|
||||
}
|
||||
//文件模板输入流
|
||||
InputStream inputStream = new ClassPathResource(path).getInputStream();
|
||||
@ -313,7 +323,7 @@ public class EarningsCalculateController {
|
||||
@PostMapping("/exportReport")
|
||||
@ApiOperation(value = "导出")
|
||||
public void exportReport(HttpServletRequest req, HttpServletResponse response, @RequestBody EarningsCalculateReq earningsCalculateReq) {
|
||||
String lang = req.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = req.getHeader(CommonConstant.LANG);
|
||||
earningsCalculateReq.setLang(lang);
|
||||
EarningsCalculateResp total = earningsCalculateService.getTotal(earningsCalculateReq,REPORT_LIST_TYPE);
|
||||
|
||||
@ -326,8 +336,18 @@ public class EarningsCalculateController {
|
||||
String fileName = "demo.xlsx";
|
||||
response.setHeader("Content-disposition", "attachment;filename=" +fileName);
|
||||
String path="template/earningsUserTemplate.xlsx";
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
if(CommonConstant.langTemp.EN_US.equals(lang)){
|
||||
path="template/earningsUserTemplateen_US.xlsx";
|
||||
}else if(CommonConstant.langTemp.FR_FR.equals(lang)){
|
||||
path="template/earningsUserTemplateen_FRA.xlsx";
|
||||
}else if(CommonConstant.langTemp.ES_ES.equals(lang)){
|
||||
path="template/earningsUserTemplateen_SPA.xlsx";
|
||||
}else if(CommonConstant.langTemp.DE_DE.equals(lang)){
|
||||
path="template/earningsUserTemplateen_DE.xlsx";
|
||||
}else if(CommonConstant.langTemp.PL_PL.equals(lang)){
|
||||
path="template/earningsUserTemplateen_Pl.xlsx";
|
||||
}else if(CommonConstant.langTemp.AR_EG.equals(lang)){
|
||||
path="template/earningsUserTemplateen_ARA.xlsx";
|
||||
}
|
||||
//文件模板输入流
|
||||
InputStream inputStream = new ClassPathResource(path).getInputStream();
|
||||
|
||||
@ -173,7 +173,7 @@ public class ElecPriceCurveController {
|
||||
@ApiOperation(value = "查询所有电价曲线模板")
|
||||
//@TokenIgnore
|
||||
public DataResult<List<ElecPriceData>> getAll(@RequestBody @Valid ElecPriceTemplateReqVO vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<ElecPriceTemplate> list = elecPriceCurveService.getAll(vo);
|
||||
List<ElecPriceData> resultList = new ArrayList<>();
|
||||
for (ElecPriceTemplate elecTemplate : list) {
|
||||
@ -189,14 +189,13 @@ public class ElecPriceCurveController {
|
||||
data.setBeginTime(elecTemplateSub.getBeginTime());
|
||||
data.setEndTime(elecTemplateSub.getEndTime());
|
||||
data.setType(elecTemplateSub.getType());
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
if(StringUtil.isNotBlank(data.getTemplateName())){
|
||||
data.setTemplateName(dynamicConfigService.getNameEn(data.getTemplateName()));
|
||||
}
|
||||
if(StringUtil.isNotBlank(data.getType())){
|
||||
data.setType(dynamicConfigService.getNameEn(data.getType()));
|
||||
}
|
||||
if(StringUtil.isNotBlank(data.getTemplateName())){
|
||||
data.setTemplateName(dynamicConfigService.getNameByLang(data.getTemplateName(),lang));
|
||||
}
|
||||
if(StringUtil.isNotBlank(data.getType())){
|
||||
data.setType(dynamicConfigService.getNameByLang(data.getType(),lang));
|
||||
}
|
||||
|
||||
resultList.add(data);
|
||||
}
|
||||
}
|
||||
@ -311,7 +310,7 @@ public class ElecPriceCurveController {
|
||||
@LogAnnotation(title = "电价曲线模板设置", action = "导出电价曲线数据")
|
||||
@HzPermission(PermissionConstant.STRATEGY_ELECURVE_EXPORT)
|
||||
public void exportExcel(@RequestBody BatchDeleteReq batchDeleteReq ,HttpServletResponse response,HttpServletRequest request){
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<Integer> ids = batchDeleteReq.getIds();
|
||||
if (ids == null || ids.isEmpty()){
|
||||
throw new BusinessException(BaseResponseCode.PLEASE_SELECT_ELECTRICITY_PRICE_TEMPLATE_DATA);
|
||||
@ -338,11 +337,9 @@ public class ElecPriceCurveController {
|
||||
}else {
|
||||
excel.setIsEnable(CommonConstant.NOT_IS_ENABlE);
|
||||
}
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
excel.setTemplateName(dynamicConfigService.getNameEn(excel.getTemplateName()));
|
||||
excel.setType(dynamicConfigService.getNameEn(excel.getType()));
|
||||
excel.setIsEnable(dynamicConfigService.getNameEn(excel.getIsEnable()));
|
||||
}
|
||||
excel.setTemplateName(dynamicConfigService.getNameByLang(excel.getTemplateName(),lang));
|
||||
excel.setType(dynamicConfigService.getNameByLang(excel.getType(),lang));
|
||||
excel.setIsEnable(dynamicConfigService.getNameByLang(excel.getIsEnable(),lang));
|
||||
excelList.add(excel);
|
||||
}
|
||||
}
|
||||
@ -422,7 +419,7 @@ public class ElecPriceCurveController {
|
||||
|
||||
/**
|
||||
* 组装json
|
||||
* @param earningsCalculateSubs
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
private String parseJson(EleRateFileVo vo){
|
||||
|
||||
@ -5,6 +5,7 @@ import com.ho.business.service.HisCurveRelateService;
|
||||
import com.ho.business.vo.req.modelType.ModelTypeQueryReq;
|
||||
import com.ho.business.vo.req.point.HisPointReqVo;
|
||||
import com.ho.common.tools.annotation.LogAnnotation;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.ContextConstant;
|
||||
import com.ho.common.tools.constant.RedisKeyConstant;
|
||||
import com.ho.common.tools.entity.SimpleUser;
|
||||
@ -56,7 +57,7 @@ public class HisCurveRelateController {
|
||||
String token = request.getHeader(RedisKeyConstant.User.ACCESS_TOKEN);
|
||||
SimpleUser user = redisService.getSimpleUserByToken(token);
|
||||
vo.setUserId(user.getUserId());
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
PageResult<HisCurveRelate> list = hisCurveRelateService.pageSelectAll(vo);
|
||||
return DataResult.success(list);
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ public class OpenStationController {
|
||||
public DataResult<List<NewRealTimeCurveVo>> dynamicRealtimeCurve(@RequestBody DynamicConfigQuery vo, HttpServletRequest request) {
|
||||
//默认隐藏曲线不显示
|
||||
vo.setIsHide(CommonConstant.ZERO);
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<NewRealTimeCurveVo> resList = stationHomeService.getDynamicRealtimeCurve(vo);
|
||||
//返回值的BigDecimal类型保留两位小数
|
||||
for (NewRealTimeCurveVo newRealTimeCurveVo : resList) {
|
||||
@ -187,7 +187,7 @@ public class OpenStationController {
|
||||
@PostMapping("/pcsTotalData")
|
||||
@ApiOperation(value = "数据总览")
|
||||
public DataResult<PcsTotalData> pcsTotalData(@RequestBody StationReq req,HttpServletRequest request) {
|
||||
req.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
req.setLang(request.getHeader(CommonConstant.LANG));
|
||||
if (req.getDeviceType() == null) {
|
||||
String deviceType = colCountService.getDeviceType(req.getStationId());
|
||||
req.setDeviceType(deviceType);
|
||||
@ -218,7 +218,7 @@ public class OpenStationController {
|
||||
@ApiOperation(value = "数据总览(取PCS计算)")
|
||||
@TokenIgnore
|
||||
public DataResult<PcsTotalData> getPcsTotalData(@RequestBody StationReq req,HttpServletRequest request) {
|
||||
req.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
req.setLang(request.getHeader(CommonConstant.LANG));
|
||||
if (req.getDeviceType() == null) {
|
||||
String deviceType = colCountService.getDeviceType(req.getStationId());
|
||||
if (null == deviceType) {
|
||||
@ -307,7 +307,7 @@ public class OpenStationController {
|
||||
//@LogAnnotation(title = "累计充放电量", action = "导出累计充放电量数据")
|
||||
//@HzPermission(value = {PermissionConstant.REMOTECONTROL_COMMAND_EXPORT,PermissionConstant.DATA_SHOW_EXPORT,PermissionConstant.REMOTECONTROL_COMMAND_EXPORT})
|
||||
public void exportExcel(@RequestBody @Valid PcsStationReq req, HttpServletResponse response,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
|
||||
//功能描述:把同一个表格多个sheet测试结果重新输出,
|
||||
openStationService.exportEleData(req, response,lang);
|
||||
@ -324,7 +324,7 @@ public class OpenStationController {
|
||||
@PostMapping("/getElecMeterList")
|
||||
@ApiOperation(value = "获取多电站累计充放电量数据(不分页)")
|
||||
public DataResult<Object> getElecMeterList(@RequestBody PcsStationReq req,HttpServletRequest request) {
|
||||
req.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
req.setLang(request.getHeader(CommonConstant.LANG));
|
||||
Object obj = openStationService.getElecMeterList(req);
|
||||
return DataResult.success(obj);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ public class PlanningCurveController {
|
||||
@ApiOperation(value = "模板列表查询")
|
||||
@TokenIgnore
|
||||
public DataResult getPlanningCurveTemplates(@RequestBody PlanningCurveTemplate template,HttpServletRequest request) {
|
||||
template.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
template.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<Map<String, Object>> planningCurveTemplates = planningService.getPlanningCurveTemplates(template);
|
||||
return DataResult.success(planningCurveTemplates);
|
||||
}
|
||||
@ -103,7 +103,7 @@ public class PlanningCurveController {
|
||||
@ApiOperation(value = "查看详情")
|
||||
@TokenIgnore
|
||||
public DataResult planningCurveTemplateDetail(@RequestBody PlanningCurveTemplate template,HttpServletRequest request) {
|
||||
template.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
template.setLang(request.getHeader(CommonConstant.LANG));
|
||||
if( template == null || template.getTemId() == null ){
|
||||
return DataResult.success();
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package com.ho.business.controller;
|
||||
|
||||
import com.ho.business.entity.PlanCurveOperationRecordReq;
|
||||
import com.ho.business.entity.PlanningCurveHistory;
|
||||
import com.ho.business.entity.PlanningIssueDevice;
|
||||
import com.ho.business.service.PlanningCurveIssueService;
|
||||
import com.ho.business.vo.resp.planningCurve.PlanningIssueQueryVo;
|
||||
@ -9,9 +8,9 @@ import com.ho.business.vo.resp.planningCurve.PlanningIssueVo;
|
||||
import com.ho.common.tools.annotation.HzPermission;
|
||||
import com.ho.common.tools.annotation.LogAnnotation;
|
||||
import com.ho.common.tools.annotation.TokenIgnore;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.ContextConstant;
|
||||
import com.ho.common.tools.constant.PermissionConstant;
|
||||
import com.ho.common.tools.constant.RedisKeyConstant;
|
||||
import com.ho.common.tools.exception.BaseResponseCode;
|
||||
import com.ho.common.tools.exception.BusinessException;
|
||||
import com.ho.common.tools.exception.DataResult;
|
||||
@ -41,7 +40,7 @@ public class PlanningCurveIssueController {
|
||||
@ApiOperation(value = "查询下发设备接口")
|
||||
@TokenIgnore
|
||||
public DataResult getIssueDevices(@RequestBody PlanningIssueDevice issueDevice, HttpServletRequest request) {
|
||||
issueDevice.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
issueDevice.setLang(request.getHeader(CommonConstant.LANG));
|
||||
return DataResult.success(issueService.getIssueDevices(issueDevice));
|
||||
}
|
||||
|
||||
@ -49,7 +48,7 @@ public class PlanningCurveIssueController {
|
||||
@ApiOperation(value = "查询计划曲线模板接口")
|
||||
@TokenIgnore
|
||||
public DataResult getTemplate(@RequestBody PlanningIssueDevice issueDevice,HttpServletRequest request) {
|
||||
issueDevice.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
issueDevice.setLang(request.getHeader(CommonConstant.LANG));
|
||||
return DataResult.success(issueService.getTemplate(issueDevice));
|
||||
}
|
||||
|
||||
@ -109,7 +108,7 @@ public class PlanningCurveIssueController {
|
||||
@ApiOperation(value = "查询计划曲线下发操作记录")
|
||||
@TokenIgnore
|
||||
public DataResult<List<PlanCurveOperationRecordReq>> getPlanCurveOperationList(@RequestBody String stationId,HttpServletRequest request){
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<PlanCurveOperationRecordReq> result = issueService.getPlanCurveOperationList(stationId,lang);
|
||||
return DataResult.success(result);
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ public class PointDemoController {
|
||||
@PostMapping("page")
|
||||
@ApiOperation(value = "点表列表,分页")
|
||||
public DataResult<PageResult<PointRespVO>> page(@RequestBody @Valid PointReq pointReq,HttpServletRequest request) {
|
||||
pointReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
pointReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
String name = pointReq.getName();
|
||||
if (name != null) {
|
||||
name = name.trim();
|
||||
@ -164,7 +164,7 @@ public class PointDemoController {
|
||||
@PostMapping("pointList")
|
||||
@ApiOperation(value = "点表列表,不分页")
|
||||
public DataResult<List<PointListRespVo>> pointList(@RequestBody @Valid PointReq pointReq,HttpServletRequest request) {
|
||||
pointReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
pointReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
String name = pointReq.getName();
|
||||
if (name != null) {
|
||||
name = name.trim();
|
||||
@ -177,7 +177,7 @@ public class PointDemoController {
|
||||
@PostMapping("queryPoint")
|
||||
@ApiOperation(value = "根据设备查询点表")
|
||||
public DataResult<List<QueryPointRespVo>> queryPoint(@RequestBody @Valid PointVo vo,HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<QueryPointRespVo> pointList = pointDemoService.queryPoint(vo);
|
||||
return DataResult.success(pointList);
|
||||
}
|
||||
@ -185,7 +185,7 @@ public class PointDemoController {
|
||||
@PostMapping("queryVirtualPoint")
|
||||
@ApiOperation(value = "根据设备查询虚拟点表")
|
||||
public DataResult<List<QueryPointRespVo>> queryVirtualPoint(@RequestBody @Valid PointVo vo,HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<QueryPointRespVo> pointList = pointDemoService.queryVirtualPoint(vo);
|
||||
return DataResult.success(pointList);
|
||||
}
|
||||
@ -243,15 +243,31 @@ public class PointDemoController {
|
||||
@LogAnnotation(title = "一体柜点表模块", action = "导出点表数据")
|
||||
//@HzPermission(value = {PermissionConstant.REMOTECONTROL_COMMAND_EXPORT,PermissionConstant.DATA_SHOW_EXPORT,PermissionConstant.REMOTECONTROL_COMMAND_EXPORT})
|
||||
public void exportExcel(@RequestBody @Valid PointReq pointReq, HttpServletResponse response,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
pointReq.setLang(lang);
|
||||
List<PointRespVO> pointList = pointDemoService.getPointList(pointReq);
|
||||
|
||||
String fileName = "点表";
|
||||
String sheetName = "data";
|
||||
String sheetName = "数据";
|
||||
try {
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
if(CommonConstant.langTemp.EN_US.equals(lang)){
|
||||
fileName = "point table";sheetName = "data";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespEnVO.class);
|
||||
}else if(CommonConstant.langTemp.FR_FR.equals(lang)){
|
||||
fileName = "Tableau des points";sheetName = "données";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespFraVO.class);
|
||||
}else if(CommonConstant.langTemp.ES_ES.equals(lang)){
|
||||
fileName = "Tabla de puntos";sheetName = "datos";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespSpaVO.class);
|
||||
}else if(CommonConstant.langTemp.AR_EG.equals(lang)){
|
||||
fileName = "نقطة الجدول";sheetName = "داتا";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespAraVO.class);
|
||||
}else if(CommonConstant.langTemp.DE_DE.equals(lang)){
|
||||
fileName = "Punkttabellen";sheetName = "Daten";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespDeVO.class);
|
||||
}else if(CommonConstant.langTemp.PL_PL.equals(lang)){
|
||||
fileName = "Tabela punktowa";sheetName = "Dane";
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespPlVO.class);
|
||||
}else{
|
||||
EasyExcelUtil.writeExcel(response, pointList, fileName, sheetName, PointRespVO.class);
|
||||
}
|
||||
@ -270,14 +286,14 @@ public class PointDemoController {
|
||||
@LogAnnotation(title = "一体柜点表模块", action = "导出历史数据")
|
||||
@HzPermission(PermissionConstant.DATA_HISCURVE_EXPORT)
|
||||
public void hisExportExcel(@RequestBody @Valid PointCurveReq pointCurveReq, HttpServletResponse response, HttpServletRequest request) {
|
||||
pointCurveReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
pointCurveReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
pointDemoService.getHisExportExcel(pointCurveReq, response);
|
||||
}
|
||||
|
||||
@PostMapping("pointCurve")
|
||||
@ApiOperation(value = "点表曲线")
|
||||
public DataResult<List<PointCurveResp>> pointCurve(@RequestBody @Valid PointCurveReq pointCurveReq, HttpServletRequest request) {
|
||||
pointCurveReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
pointCurveReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<PointCurveResp> pointCurveRespList = new ArrayList<>();
|
||||
//对开始结束时间进行处理 (对bug129)
|
||||
if (pointCurveReq.getBeginTime() != null) {
|
||||
@ -344,7 +360,7 @@ public class PointDemoController {
|
||||
@PostMapping("pointDataShowList")
|
||||
@ApiOperation(value = "点表真实数据展示(每个点位分开)")
|
||||
public DataResult<List<PageResult>> pointDataShowList(@RequestBody @Valid PointCurveReq pointCurveReq, HttpServletRequest request) {
|
||||
pointCurveReq.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
pointCurveReq.setLang(request.getHeader(CommonConstant.LANG));
|
||||
List<PageResult> pointCurveRespList = new ArrayList<>();
|
||||
//对传输过来的col集合进行判断是否大于10个
|
||||
if (pointCurveReq.getDeviceIdList().size() < 50) {
|
||||
|
||||
@ -10,6 +10,7 @@ import com.ho.business.service.EarningsCalculateService;
|
||||
import com.ho.business.vo.req.report.ReportReqVO;
|
||||
import com.ho.business.vo.resp.income.RevenueOverview;
|
||||
import com.ho.business.vo.resp.income.RevenueOverviewData;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.ContextConstant;
|
||||
import com.ho.common.tools.constant.RedisKeyConstant;
|
||||
import com.ho.common.tools.exception.DataResult;
|
||||
@ -93,7 +94,7 @@ public class RevenueOverviewController {
|
||||
@PostMapping("export")
|
||||
@ApiOperation(value = "导出")
|
||||
public void export(@RequestBody @Valid ReportReqVO vo, HttpServletResponse response, HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<RevenueOverviewData> revenueOverviewData = earningsCalculateService.getRevenueOverviewData(vo);
|
||||
RevenueOverview investment = earningsCalculateService.getInvestment(vo);
|
||||
//在内存操作,写到浏览器
|
||||
@ -106,8 +107,18 @@ public class RevenueOverviewController {
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + new String(fileName.getBytes("UTF-8")));
|
||||
//文件模板输入流
|
||||
String path="template/RevenueOverview.xlsx";
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
if(CommonConstant.langTemp.EN_US.equals(lang)){
|
||||
path="template/RevenueOverviewen_US.xlsx";
|
||||
}else if (CommonConstant.langTemp.FR_FR.equals(lang)){
|
||||
path="template/RevenueOverviewen_FRA.xlsx";
|
||||
}else if (CommonConstant.langTemp.ES_ES.equals(lang)){
|
||||
path="template/RevenueOverviewen_SPA.xlsx";
|
||||
}else if (CommonConstant.langTemp.DE_DE.equals(lang)){
|
||||
path="template/RevenueOverviewen_DE.xlsx";
|
||||
}else if (CommonConstant.langTemp.PL_PL.equals(lang)){
|
||||
path="template/RevenueOverviewen_PL.xlsx";
|
||||
}else if (CommonConstant.langTemp.AR_EG.equals(lang)){
|
||||
path="template/RevenueOverviewen_ARA.xlsx";
|
||||
}
|
||||
InputStream inputStream = new ClassPathResource(path).getInputStream();
|
||||
|
||||
|
||||
@ -21,6 +21,7 @@ import com.ho.business.vo.resp.station.NationStation;
|
||||
import com.ho.business.vo.resp.station.StationResp;
|
||||
import com.ho.business.vo.resp.station.StationStatus;
|
||||
import com.ho.common.tools.annotation.LogAnnotation;
|
||||
import com.ho.common.tools.annotation.NotSportEnOperation;
|
||||
import com.ho.common.tools.annotation.TokenIgnore;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.ContextConstant;
|
||||
@ -95,6 +96,7 @@ public class StationController {
|
||||
@ApiOperation(value = "新增电站接口")
|
||||
@LogAnnotation(title = "电站管理", action = "新增电站信息")
|
||||
//@HzPermission(PermissionConstant.SYS_STATIONMANAGE_ADD)
|
||||
@NotSportEnOperation
|
||||
public DataResult<Station> add(@RequestBody @Valid StationReqVO vo, HttpServletRequest request) {
|
||||
DataResult<Station> result = new DataResult<>();
|
||||
Station station = stationService.selectByName(vo.getName());
|
||||
@ -146,6 +148,7 @@ public class StationController {
|
||||
@PutMapping("update")
|
||||
@ApiOperation(value = "更新电站接口")
|
||||
@LogAnnotation(title = "电站管理", action = "更新电站信息")
|
||||
@NotSportEnOperation
|
||||
//@HzPermission(PermissionConstant.SYS_STATIONMANAGE_EDIT)
|
||||
public DataResult update(@RequestBody @Valid StationPutReqVO vo, HttpServletRequest request) {
|
||||
Station stationValue = stationService.selectById(vo.getId());
|
||||
@ -304,6 +307,7 @@ public class StationController {
|
||||
resp.setList(stationsList);
|
||||
return DataResult.success(resp);
|
||||
}
|
||||
user.setLang(request.getHeader(CommonConstant.LANG));
|
||||
resp = stationService.getNationStationList(user);
|
||||
return DataResult.success(resp);
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import com.ho.business.vo.req.device.DeviceTreeReq;
|
||||
import com.ho.business.vo.req.device.StrategyOverviewUserSetVo;
|
||||
import com.ho.business.vo.req.point.PointCurveReq;
|
||||
import com.ho.business.vo.resp.cabin.TemperatureVoltageResp;
|
||||
import com.ho.common.tools.constant.CommonConstant;
|
||||
import com.ho.common.tools.constant.ContextConstant;
|
||||
import com.ho.common.tools.constant.RedisKeyConstant;
|
||||
import com.ho.common.tools.entity.SimpleUser;
|
||||
@ -58,7 +59,7 @@ public class StrategyOverviewController {
|
||||
@PostMapping("cellVoltageAndTemperature")
|
||||
@ApiOperation("电芯电压/温度分布")
|
||||
public DataResult<TemperatureVoltageResp> getCellVoltageAndTemperature(@RequestBody @Valid DeviceTreeReq vo,HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
TemperatureVoltageResp temperatureVoltageResp = deviceService.getCellVoltageAndTemperature(vo);
|
||||
return DataResult.success(temperatureVoltageResp);
|
||||
}
|
||||
@ -66,7 +67,7 @@ public class StrategyOverviewController {
|
||||
@PostMapping("cellVoltageAndTemperatureNum")
|
||||
@ApiOperation("电芯电压/温度分布按序号")
|
||||
public DataResult<TemperatureVoltageResp> getCellVoltageAndTemperatureNum(@RequestBody @Valid DeviceTreeReq vo,HttpServletRequest request) {
|
||||
vo.setLang(request.getHeader(RedisKeyConstant.User.LANG));
|
||||
vo.setLang(request.getHeader(CommonConstant.LANG));
|
||||
TemperatureVoltageResp temperatureVoltageResp = deviceService.getCellVoltageAndTemperatureNum(vo);
|
||||
return DataResult.success(temperatureVoltageResp);
|
||||
}
|
||||
@ -90,12 +91,12 @@ public class StrategyOverviewController {
|
||||
@PostMapping("operatingStatistic2")
|
||||
@ApiOperation("运行统计(soc,soh)")
|
||||
public DataResult<List<OperatingStatistic>> getOperatingStatistic2(@RequestBody @Valid DeviceTreeReq vo,HttpServletRequest request) {
|
||||
String lang = request.getHeader(RedisKeyConstant.User.LANG);
|
||||
String lang = request.getHeader(CommonConstant.LANG);
|
||||
List<OperatingStatistic> list = deviceService.getOperatingStatistic2(vo.getStationId());
|
||||
//中英切换处理
|
||||
//多语言切换处理
|
||||
list.stream().forEach(s->{
|
||||
if(RedisKeyConstant.User.EN_US.equals(lang)){
|
||||
s.setName(dynamicConfigService.getNameEn(s.getName()));
|
||||
if(!CommonConstant.langTemp.ZH_CN.equals(lang)){
|
||||
s.setName(dynamicConfigService.getNameByLang(s.getName(),lang));
|
||||
}
|
||||
});
|
||||
return DataResult.success(list);
|
||||
|
||||
470
business-service/src/main/java/com/ho/business/task/Test.java
Normal file
470
business-service/src/main/java/com/ho/business/task/Test.java
Normal file
@ -0,0 +1,470 @@
|
||||
package com.ho.business.task;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
public class Test {
|
||||
static String json ="{\n" +
|
||||
" \"homePage\": {\n" +
|
||||
" \"home\": {\n" +
|
||||
" \"esiCab\": \"خزانة تخزين الطاقة المدمجة\",\n" +
|
||||
" \"gridCab\": \"خزانة توصيل الشبكة\",\n" +
|
||||
" \"grid\": \"توزيع الطاقة للمستخدمين\",\n" +
|
||||
" \"workStatus\": \"حالة التشغيل:\",\n" +
|
||||
" \"activePower\": \"إجمالي الطاقة النشطة (كيلوواط):\",\n" +
|
||||
" \"charge\": \"الشحن\",\n" +
|
||||
" \"disCharge\": \"التفريغ\",\n" +
|
||||
" \"standing\": \"خامل\",\n" +
|
||||
" \"load\": \"تحميل\",\n" +
|
||||
" \"gridCabSwitch\": \"مفتاح خزانة توصيل الشبكة:\",\n" +
|
||||
" \"dCCabin\": \"حجرة التيار المستمر\",\n" +
|
||||
" \"PCSCab\": \"حجرة PCS المدمجة المضغوطة\",\n" +
|
||||
" \"legend\": \"المثال\",\n" +
|
||||
" \"normal\": \"التشغيل العادي\",\n" +
|
||||
" \"fault\": \"الأعطلء\",\n" +
|
||||
" \"overhaul\": \"الصيانة\",\n" +
|
||||
" \"shutStan\": \"الاستعداد/الإغلاق\",\n" +
|
||||
" \"reactivePower\": \"الطاقة التفاعلية (كيلوواط):\",\n" +
|
||||
" \"totalV\": \"إجمالي الجهد (فولت):\",\n" +
|
||||
" \"current\": \"التيار (أمبير):\",\n" +
|
||||
" \"maxCellVol\": \"الجهد الأقصى للخلية:\",\n" +
|
||||
" \"minCellVol\": \"الجهد الأدنى للخلية:\",\n" +
|
||||
" \"shutdown\": \"الإغلاق\",\n" +
|
||||
" \"standby\": \"الاستعداد\",\n" +
|
||||
" \"run\": \"تشغيل\",\n" +
|
||||
" \"allActivePower\": \"إجمالي الطاقة النشطة (كيلوواط):\",\n" +
|
||||
" \"cabinet\": \"خزانة تخزين الطاقة\",\n" +
|
||||
" \"gridMeter\": \"عداد جانب الشبكة\",\n" +
|
||||
" \"photovoltaic\": \"الطاقة الكهروضوئية\",\n" +
|
||||
" \"battery\": \"البطارية\",\n" +
|
||||
" \"status\": \"الحالة:\",\n" +
|
||||
" \"busbar\": \"الناقل\",\n" +
|
||||
" \"dieselGenerator\": \"مولد الديزل\",\n" +
|
||||
" \"ammeter\": \"عداد الكهرباء\",\n" +
|
||||
" \"device\": \"المعدات\",\n" +
|
||||
" \"earning\": \"الإيرادات\",\n" +
|
||||
" \"alarm\": \"إنذار\",\n" +
|
||||
" \"policy\": \"استراتيجية\",\n" +
|
||||
" \"stationTopo\": \"توبولوجيا محطة الطاقة\",\n" +
|
||||
" \"deviceMonitor\": \"مراقبة المعدات\",\n" +
|
||||
" \"runCurve\": \"منحنيات التشغيل\",\n" +
|
||||
" \"chargeDisData\": \"بيانات الشحن والتفريغ\",\n" +
|
||||
" \"stationData\": \"بيانات محطة الطاقة\",\n" +
|
||||
" \"environmentalData\": \"بيانات التحكم البيئي\",\n" +
|
||||
" \"sevenDay\": \"آخر سبعة أيام\",\n" +
|
||||
" \"monthDay\": \"آخر شهر\",\n" +
|
||||
" \"monthThree\": \"آخر ثلاثة أشهر\",\n" +
|
||||
" \"yearDay\": \"العام الماضي\",\n" +
|
||||
" \"tip\": \"تذكير\",\n" +
|
||||
" \"loading\": \"تحميل الموارد...\",\n" +
|
||||
" \"power\": \"الطاقة (كيلوواط)\",\n" +
|
||||
" \"photovoltaicCharge\": \"الشحن الكهروضوئي\",\n" +
|
||||
" \"chargingandDischarging\": \"حجم الشحن والتفريغ\",\n" +
|
||||
" \"safeDaysUnit\": \"أيام التشغيل الآمن (أيام)\",\n" +
|
||||
" \"totalCapacity\": \"إجمالي السعة المركبة\",\n" +
|
||||
" \"systemConversionEfficiency\": \"كفاءة تحويل النظام\",\n" +
|
||||
" \"currentPower\": \"الطاقة الحالية\",\n" +
|
||||
" \"totalCharge\": \"إجمالي حجم الشحن\",\n" +
|
||||
" \"totalDischarge\": \"إجمالي حجم التفريغ\",\n" +
|
||||
" \"dailyCharge\": \"حجم الشحن اليومي\",\n" +
|
||||
" \"dailyDischarge\": \"حجم التفريغ اليومي\",\n" +
|
||||
" \"dayPhotovoltaic\": \"حجم التوليد الكهروضوئي\",\n" +
|
||||
" \"noData\": \"لا توجد بيانات\",\n" +
|
||||
" \"login\": \"تسجيل الدخول\",\n" +
|
||||
" \"account\": \"الحساب\",\n" +
|
||||
" \"password\": \"كلمة المرور\",\n" +
|
||||
" \"placeAccount\": \"يرجى إدخال رقم الحساب\",\n" +
|
||||
" \"placePassword\": \"يرجى إدخال كلمة المرور\",\n" +
|
||||
" \"noLogin\": \"الوظيفة غير متاحة مؤقتًا\",\n" +
|
||||
" \"station\": \"محطة الطاقة\",\n" +
|
||||
" \"electricityPrice\": \"سعر الكهرباء الوطنية\",\n" +
|
||||
" \"mine\": \"لي\",\n" +
|
||||
" \"on\": \"مجمع\",\n" +
|
||||
" \"off\": \"مجزأ\"\n" +
|
||||
" },\n" +
|
||||
" \"price\": {\n" +
|
||||
" \"elePriceQuery\": \"استفسار عن سعر الكهرباء\",\n" +
|
||||
" \"queryCriteria\": \"معايير البحث\",\n" +
|
||||
" \"sift\": \"تصفية\",\n" +
|
||||
" \"provinceRegion\": \"المناطق الإقليمية والبلدية\",\n" +
|
||||
" \"selectProvinceRegion\": \"اختر المناطق الإقليمية والبلدية\",\n" +
|
||||
" \"customerType\": \"مستهلك الكهرباء\",\n" +
|
||||
" \"selectEleCustomers\": \"يرجى تحديد مستهلك الكهرباء\",\n" +
|
||||
" \"eleType\": \"نظام/تصنيف إدارة الكهرباء\",\n" +
|
||||
" \"selectEleType\": \"يرجى تحديد نظام/تصنيف إدارة الكهرباء\",\n" +
|
||||
" \"volLevel\": \"مستوى الجهد\",\n" +
|
||||
" \"selectVoltageLevel\": \"يرجى تحديد مستوى الجهد\",\n" +
|
||||
" \"exeTime\": \"تاريخ التنفيذ\",\n" +
|
||||
" \"selectExeTime\": \"يرجى تحديد تاريخ التنفيذ\",\n" +
|
||||
" \"noData\": \"البيانات فارغة\",\n" +
|
||||
" \"eleLevel\": \"مستوى سعر الكهرباء\",\n" +
|
||||
" \"fsdd\": \"سعر الكهرباء حسب وقت الاستخدام\",\n" +
|
||||
" \"dietailUnit\": \"(يوان صيني/كيلوواط ساعة)\",\n" +
|
||||
" \"eleprice\": \"سعر الكهرباء\",\n" +
|
||||
" \"nonTime\": \"سعر الكهرباء غير مرتبطة بوقت الاستخدام\",\n" +
|
||||
" \"proxyPrice\": \"سعر شراء الكهرباء من الوكالة\",\n" +
|
||||
" \"transmission\": \"سعر نقل الكهرباء\",\n" +
|
||||
" \"attachPrice\": \"الأموال الحكومية والرسوم الإضافية\",\n" +
|
||||
" \"curve\": \"منحنى\",\n" +
|
||||
" \"list\": \"قائمة\",\n" +
|
||||
" \"noMoreData\": \"لا توجد بيانات أخرى متاحة\",\n" +
|
||||
" \"spike\": \"ذروة\",\n" +
|
||||
" \"speak\": \"قمة\",\n" +
|
||||
" \"regular\": \"عادية\",\n" +
|
||||
" \"lowValley\": \"وادي\",\n" +
|
||||
" \"deepValley\": \"وادي عميق\",\n" +
|
||||
" \"peakDifference\": \"أقصى فرق بين الذروة والوادي\",\n" +
|
||||
" \"peakDifferencePrice\": \"أقصى فرق في السعر بين الذروة والوادي\",\n" +
|
||||
" \"dayHighPrice\": \"أعلى السعر اليومي\",\n" +
|
||||
" \"dayLowtPrice\": \"أدنى السعر اليومي\",\n" +
|
||||
" \"historytrend\": \"الاتجاهات التاريخية\",\n" +
|
||||
" \"reset\": \"إعادة تعيين\",\n" +
|
||||
" \"sure\": \"تأكيد\",\n" +
|
||||
" \"sharp\": \"ذروة\",\n" +
|
||||
" \"peak\": \"قمة\",\n" +
|
||||
" \"flat\": \"عادية\",\n" +
|
||||
" \"valley\": \"وادي\"\n" +
|
||||
" },\n" +
|
||||
" \"mine\": {\n" +
|
||||
" \"accountSec\": \"أمان الحساب\",\n" +
|
||||
" \"aboutUs\": \"معلومات عنا\",\n" +
|
||||
" \"message\": \"إشعارات الرسائل\",\n" +
|
||||
" \"changeLanguage\": \"تبديل لغة\",\n" +
|
||||
" \"sysSetting\": \"إعدادات النظام\",\n" +
|
||||
" \"messageAlerts\": \"تنبيهات الرسائل\",\n" +
|
||||
" \"acceptMessageAlerts\": \"تلقي تنبيهات الرسائل\",\n" +
|
||||
" \"messageDetail\": \"تفاصيل الرسالة\",\n" +
|
||||
" \"closeMessage\": \"عند تعطيل هذه الميزة، سيظهر مؤشر الإشعار فقط عند تلقي الرسائل دون عرض المحتوى.\",\n" +
|
||||
" \"sound\": \"الصوت والاهتزاز\",\n" +
|
||||
" \"acceptSound\": \"تشغيل الصوت أو الاهتزاز عند استلام الرسالة\",\n" +
|
||||
" \"settingSound\": \"تعديل الصوت والاهتزاز في إعدادات النظام\",\n" +
|
||||
" \"update\": \"تذكير بتحديث البرنامج\",\n" +
|
||||
" \"updateAlerts\": \"تلقي إشعارات عند توفر إصدارات جديدة من البرنامج\",\n" +
|
||||
" \"noUpdate\": \"البرنامج المصغر أو إصدار H5 محدث بالفعل، لا داعي للتحقق من وجود تحديثات!\",\n" +
|
||||
" \"general\": \"عام\",\n" +
|
||||
" \"version\": \"الإصدار الحالي\",\n" +
|
||||
" \"Privacy\": \"سياسة الخصوصية\",\n" +
|
||||
" \"UserAgreement\": \"اتفاقية المستخدم\",\n" +
|
||||
" \"logOut\": \"تسجيل الخروج\",\n" +
|
||||
" \"notAva\": \"هذه الميزة غير متاحة حاليًا\",\n" +
|
||||
" \"setPassword\": \"الرجاء تعيين كلمة مرور تسجيل الدخول\",\n" +
|
||||
" \"passwordService\": \"تحديث كلمة المرور بانتظام لتعزيز الأمان\",\n" +
|
||||
" \"oldPassword\": \"كلمة المرور القديمة\",\n" +
|
||||
" \"inputOldPossword\": \"الرجاء إدخال كلمة المرور القديمة\",\n" +
|
||||
" \"newPassword\": \"كلمة المرور الجديدة\",\n" +
|
||||
" \"inputNewPassword\": \"الرجاء إدخال كلمة المرور الجديدة\",\n" +
|
||||
" \"surePassword\": \"تأكيد كلمة المرور\",\n" +
|
||||
" \"inputSurePassword\": \"يرجى تأكيد كلمة المرور\",\n" +
|
||||
" \"PasswordError\": \"يجب أن تتكون كلمات المرور من 6 إلى 12 حرفًا وتشتمل على مزيج من الأرقام والحروف (وليس أرقامًا فقط)\",\n" +
|
||||
" \"submit\": \"إرسال\",\n" +
|
||||
" \"resetSubmit\": \"يرجى إعادة إدخال كلمة المرور\",\n" +
|
||||
" \"passwordEqual\": \"كلمات المرور المدخلة غير متطابقة\",\n" +
|
||||
" \"tip\": \"تذكير\",\n" +
|
||||
" \"updateSuccess\": \"تم تغيير كلمة المرور بنجاح، يرجى تسجيل الدخول مرة أخرى.\",\n" +
|
||||
" \"inputError\": \"المعلومات التي أدخلتها غير صحيحة، يرجى تصحيحها وفقًا للمطالبات.\",\n" +
|
||||
" \"hoenergypower\": \"هونغتشنغ تخزين الطاقة\",\n" +
|
||||
" \"companyHomepage\": \"الصفحة الرئيسية للشركة\",\n" +
|
||||
" \"technicalServices\": \"الخدمات الفنية\",\n" +
|
||||
" \"termsOfService\": \"شروط الخدمة\",\n" +
|
||||
" \"downUpdate\": \"سواءًا تنزيل التحديثات؟\",\n" +
|
||||
" \"appTitle\": \"منصة إدارة تخزين الطاقة الذكية\",\n" +
|
||||
" \"lookDetail\": \"التحقق من التفاصيل\",\n" +
|
||||
" \"noMessage\": \"لا توجد أخبار حاليًا\",\n" +
|
||||
" \"sureRead\": \"تأكيد القراءة\",\n" +
|
||||
" \"cancel\": \"إلغاء\",\n" +
|
||||
" \"operateSuccess\": \"العملية ناجحة\",\n" +
|
||||
" \"messageReaded\": \"تمت قراءة هذه الرسالة، لا داعي لتكرار الإجراء\"\n" +
|
||||
" },\n" +
|
||||
" \"device\": {\n" +
|
||||
" \"inputNameQuery\": \"أدخل الاسم للبحث\",\n" +
|
||||
" \"query\": \"بحث\",\n" +
|
||||
" \"all\": \"جميع\",\n" +
|
||||
" \"queryResult\": \"نتائج البحث\",\n" +
|
||||
" \"pcsTopu\": \"مخطط طوبولوجيا PCS\",\n" +
|
||||
" \"totalAcReaPower\": \"إجمالي الطاقة النشطة/التفاعلية\",\n" +
|
||||
" \"timeGranularity\": \"دقة الوقت\",\n" +
|
||||
" \"deviceData\": \"بيانات المعدات\",\n" +
|
||||
" \"acPower\": \"الطاقة النشطة للتيار المتردد\",\n" +
|
||||
" \"acRecPower\": \"الطاقة التفاعلية للتيار المتردد\",\n" +
|
||||
" \"gridFrequency\": \"تردد الشبكة\",\n" +
|
||||
" \"abLineVol\": \"جهد خط AB\",\n" +
|
||||
" \"bcLineVol\": \"جهد خط BC\",\n" +
|
||||
" \"caLineVol\": \"جهد خط CA\",\n" +
|
||||
" \"acur\": \"تيار الطور A\",\n" +
|
||||
" \"bcur\": \"تيار الطور B\",\n" +
|
||||
" \"ccur\": \"تيار الطور C\",\n" +
|
||||
" \"DCPower\": \"طاقة التيار المستمر\",\n" +
|
||||
" \"DCVol\": \"جهد التيار المستمر\",\n" +
|
||||
" \"DCCurrent\": \"تيار التيار المستمر\",\n" +
|
||||
" \"acbreaker\": \"قاطع دائرة التيار المتردد\",\n" +
|
||||
" \"dcbreaker\": \"قاطع دائرة التيار المستمر\",\n" +
|
||||
" \"runState\": \"حالة التشغيل\",\n" +
|
||||
" \"rsState\": \"الحالة عن بُعد/المحلية\",\n" +
|
||||
" \"gridMode\": \"حالة التوصيل بالشبكة والانفصال عن الشبكة\",\n" +
|
||||
" \"deviceState\": \"حالة الجهاز\",\n" +
|
||||
" \"totalActivePower\": \"إجمالي الطاقة النشطة\",\n" +
|
||||
" \"totalReactivePower\": \"إجمالي الطاقة التفاعلية\",\n" +
|
||||
" \"local\": \"محلي\",\n" +
|
||||
" \"distance\": \"عن بُعد\",\n" +
|
||||
" \"grid\": \"متصل بالشبكة\",\n" +
|
||||
" \"offGrid\": \"غير متصل بالشبكة\",\n" +
|
||||
" \"standby\": \"الاستعداد\",\n" +
|
||||
" \"shutdown\": \"الإغلاق\",\n" +
|
||||
" \"run\": \"تشغيل\",\n" +
|
||||
" \"fault\": \"الأعطلء\",\n" +
|
||||
" \"charge\": \"الشحن\",\n" +
|
||||
" \"discharge\": \"التفريغ\",\n" +
|
||||
" \"standing\": \"خامل\",\n" +
|
||||
" \"localAutomatic\": \"تلقائي محلي\",\n" +
|
||||
" \"localManual\": \"يدوي محلي\",\n" +
|
||||
" \"timesArr\": [\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"1 دقيقة\",\n" +
|
||||
" \"value\": 1\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"5 دقيقة\",\n" +
|
||||
" \"value\": 5\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"10 دقيقة\",\n" +
|
||||
" \"value\": 10\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"15 دقيقة\",\n" +
|
||||
" \"value\": 15\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"20 دقيقة\",\n" +
|
||||
" \"value\": 20\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"label\": \"30 دقيقة\",\n" +
|
||||
" \"value\": 30\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"yx\": \"التحكم عن بعد\",\n" +
|
||||
" \"yc\": \"القياس عن بعد\",\n" +
|
||||
" \"data\": \"البيانات\",\n" +
|
||||
" \"noData\": \"لا توجد بيانات\",\n" +
|
||||
" \"loadText\": {\n" +
|
||||
" \"loadmore\": \"اسحب برفق\",\n" +
|
||||
" \"loading\": \"محاولة التحميل\",\n" +
|
||||
" \"nomore\": \"لا يوجد المزيد\"\n" +
|
||||
" },\n" +
|
||||
" \"clusterTotalVol\": \"إجمالي الجهد للمجموعة/SOC\",\n" +
|
||||
" \"runData\": \"بيانات التشغيل\",\n" +
|
||||
" \"cumCharge\": \"الشحن التراكمي\",\n" +
|
||||
" \"cumDischarge\": \"التفريغ التراكمي\",\n" +
|
||||
" \"avgTem\": \"متوسط درجة الحرارة\",\n" +
|
||||
" \"avgVol\": \"متوسط الجهد\",\n" +
|
||||
" \"maxCellVol\": \"الجهد الأقصى للخلية\",\n" +
|
||||
" \"minCellVol\": \"الجهد الأدنى للخلية\",\n" +
|
||||
" \"maxCellTem\": \"أعلى درجة حرارة للخلية\",\n" +
|
||||
" \"minCellTem\": \"أدنى درجة حرارة للخلية\",\n" +
|
||||
" \"maxvolDiff\": \"أقصى فرق جهد كهربائي\",\n" +
|
||||
" \"maxTemDiff\": \"أقصى فرق درجة حرارة\",\n" +
|
||||
" \"batteryGroupNum\": \"رقم حزمة البطارية\",\n" +
|
||||
" \"cellPostion\": \"موضع CELL\",\n" +
|
||||
" \"vol\": \"الجهد\",\n" +
|
||||
" \"volqua\": \"جودة الجهد الكهربائي\",\n" +
|
||||
" \"curqua\": \"جودة التيار\",\n" +
|
||||
" \"acRea\": \"الطاقة النشطة/الطاقة التفاعلية\",\n" +
|
||||
" \"avol\": \"جهد الطور A\",\n" +
|
||||
" \"bvol\": \"جهد الطور B\",\n" +
|
||||
" \"cvol\": \"جهد الطور C\",\n" +
|
||||
" \"zxygzdl\": \"إجمالي الطاقة النشطة الأمامية\",\n" +
|
||||
" \"dlj\": \"الطاقة (ذروة)\",\n" +
|
||||
" \"dlf\": \"الطاقة (قمة)\",\n" +
|
||||
" \"dlp\": \"الطاقة (عادية)\",\n" +
|
||||
" \"dlg\": \"الطاقة (وادي)\",\n" +
|
||||
" \"fxygzdl\": \"إجمالي الطاقة النشطة العكسية\",\n" +
|
||||
" \"hxyggl\": \"الطاقة النشطة للطور المركب\",\n" +
|
||||
" \"hxwggl\": \"الطاقة التفاعلية للطور المركب\",\n" +
|
||||
" \"hxglys\": \"معامل القدرة للطور المركبة\",\n" +
|
||||
" \"a\": \"الطور A\",\n" +
|
||||
" \"b\": \"الطور B\",\n" +
|
||||
" \"c\": \"الطور C\",\n" +
|
||||
" \"active\": \"الطاقة النشطة\",\n" +
|
||||
" \"reactive\": \"الطاقة التفاعلية\",\n" +
|
||||
" \"current\": \"تيار\",\n" +
|
||||
" \"EMU\": \"بيانات تشغيل خزانة توصيل الشبكة\",\n" +
|
||||
" \"on\": \"مجمع\",\n" +
|
||||
" \"off\": \"مجزأ\",\n" +
|
||||
" \"emuSwitchPosition\": \"موضع مفتاح خزانة توصيل الشبكة\",\n" +
|
||||
" \"emuRemoteOperation\": \"التشغيل عن بُعد لخزانة توصيل الشبكة\",\n" +
|
||||
" \"emuKnifePosition\": \"موضع مفتاح التأريض لخزانة توصيل الشبكة\",\n" +
|
||||
" \"online\": \"متصل\",\n" +
|
||||
" \"offline\": \"غير متصل\",\n" +
|
||||
" \"temConCabRunData\": \"بيانات تشغيل صندوق التحكم في درجة الحرارة\",\n" +
|
||||
" \"aTem\": \"درجة حرارة الطور A\",\n" +
|
||||
" \"bTem\": \"درجة حرارة الطور B\",\n" +
|
||||
" \"cTem\": \"درجة حرارة الطور C\",\n" +
|
||||
" \"dehumidifierRunData\": \"بيانات تشغيل مزيل الرطوبة\",\n" +
|
||||
" \"tem\": \"درجة الحرارة\",\n" +
|
||||
" \"hum\": \"الرطوبة\",\n" +
|
||||
" \"humStartValue\": \"قيمة بدء الرطوبة\",\n" +
|
||||
" \"humStopValue\": \"قيمة توقف الرطوبة\",\n" +
|
||||
" \"ammeterRunData\": \"بيانات تشغيل عداد الكهرباء\",\n" +
|
||||
" \"frequency\": \"التردد\",\n" +
|
||||
" \"perceptualPower\": \"الطاقة الحثية\",\n" +
|
||||
" \"CapacitivePower\": \"الطاقة السعوية\",\n" +
|
||||
" \"volRatio\": \"نسبة توزيع مقدار الجهد\",\n" +
|
||||
" \"maxVol\": \"الجهد الأقصى\",\n" +
|
||||
" \"minVol\": \"الجهد الأدنى\",\n" +
|
||||
" \"maxTem\": \"درجة الحرارة القصوى\",\n" +
|
||||
" \"minTem\": \"درجة الحرارة الدنيا\",\n" +
|
||||
" \"cellVolChart\": \"مخطط شريطي لجهد الخلية\",\n" +
|
||||
" \"cellTemChart\": \"مخطط شريطي لدرجة حرارة الخلية\",\n" +
|
||||
" \"volUnit\": \"الجهد/قطعة\",\n" +
|
||||
" \"temUnit\": \"درجة الحرارة/قطعة\",\n" +
|
||||
" \"num\": \"قطعة\",\n" +
|
||||
" \"stackTotalVol\": \"الجهد الكلي للمجموعة\",\n" +
|
||||
" \"leftTemCabin\": \"درجة حرارة المقصورة اليسرى\",\n" +
|
||||
" \"leftHubCabin\": \"رطوبة المقصورة اليسرى\",\n" +
|
||||
" \"rightTemCabin\": \"درجة حرارة المقصورة اليمنى\",\n" +
|
||||
" \"rightHubCabin\": \"رطوبة المقصورة اليمنى\",\n" +
|
||||
" \"stackCurrent\": \"تيار المجموعة\",\n" +
|
||||
" \"stackTotalCurrent\": \"التيار الكلي للمجموعة\",\n" +
|
||||
" \"stackSoc\": \"SOC المجموعة\",\n" +
|
||||
" \"CumulativeCharge\": \"طاقة الشحن التراكمية\",\n" +
|
||||
" \"CumulativeDischarge\": \"التفريغ التراكمي\",\n" +
|
||||
" \"zdz\": \"المقاومة الإيجابية للعزل\",\n" +
|
||||
" \"fdz\": \"المقاومة السلبية للعزل\",\n" +
|
||||
" \"rechargeCapacity\": \"طاقة الشحن المتاحة\",\n" +
|
||||
" \"dischargeCapacity\": \"طاقة التفريغ المتاحة\",\n" +
|
||||
" \"totalMaxVolData\": \"الضغط الإجمالي الأقصى للمجموعة\",\n" +
|
||||
" \"stackCell\": \"رقم المجموعة\",\n" +
|
||||
" \"totalMinVolData\": \"الضغط الإجمالي الأدنى للمجموعة\",\n" +
|
||||
" \"stackNum\": \"رقم مجموعة البطاريات\",\n" +
|
||||
" \"groupNum\": \"رقم حزمة البطارية\",\n" +
|
||||
" \"cellLocation\": \"موضع الخلية\",\n" +
|
||||
" \"historyData\": \"البيانات التاريخية\"\n" +
|
||||
" },\n" +
|
||||
" \"earning\": {\n" +
|
||||
" \"changeDischargePro\": \"نظرة عامة على شحن وتفريغ المشروع\",\n" +
|
||||
" \"capacity\": \"السعة المركبة\",\n" +
|
||||
" \"monthTotalCharge\": \"إجمالي طاقة الشحن لهذا الشهر\",\n" +
|
||||
" \"monthTotalDischarge\": \"إجمالي طاقة التفريغ لهذا الشهر\",\n" +
|
||||
" \"monthEff\": \"كفاءة تحويل النظام الشهرية\",\n" +
|
||||
" \"chargeVol\": \"الشحن التراكمي\",\n" +
|
||||
" \"dischargeVol\": \"التفريغ التراكمي\",\n" +
|
||||
" \"totalEff\": \"كفاءة تحويل النظام التراكمية\",\n" +
|
||||
" \"projectRevenue\": \"حالة إيرادات المشروع\",\n" +
|
||||
" \"monthTotalChargePrice\": \"إجمالي المبلغ لإجمالي حجم الشحن الشهري (يوان صيني)\",\n" +
|
||||
" \"monthTotalDisChargePrice\": \"إجمالي المبلغ لإجمالي حجم التفريغ الشهري (يوان صيني)\",\n" +
|
||||
" \"earnings\": \"الإيرادات (يوان صيني)\",\n" +
|
||||
" \"earningsDetail\": \"تفاصيل الإيرادات\",\n" +
|
||||
" \"charge\": \"الشحن\",\n" +
|
||||
" \"ele\": \"الطاقة (كيلوواط ساعة)\",\n" +
|
||||
" \"expend\": \"المصروفات (يوان صيني)\",\n" +
|
||||
" \"noChargeData\": \"لا توجد بيانات شحن متاحة\",\n" +
|
||||
" \"disCharge\": \"التفريغ\",\n" +
|
||||
" \"noDisChargeData\": \"لا توجد بيانات تفريغ متاحة\",\n" +
|
||||
" \"year\": \"سنة\",\n" +
|
||||
" \"month\": \"شهر\",\n" +
|
||||
" \"day\": \"يوم\",\n" +
|
||||
" \"hour\": \"ساعة\",\n" +
|
||||
" \"minute\": \"دقيقة\",\n" +
|
||||
" \"second\": \"ثوان\"\n" +
|
||||
" },\n" +
|
||||
" \"alarm\": {\n" +
|
||||
" \"sift\": \"تصفية\",\n" +
|
||||
" \"device\": \"المعدات المخصصة\",\n" +
|
||||
" \"placeSelect\": \"الرجاء تحديد\",\n" +
|
||||
" \"event\": \"الأحداث\",\n" +
|
||||
" \"level\": \"مستوى الإنذار\",\n" +
|
||||
" \"timeRange\": \"النطاق الزمني\",\n" +
|
||||
" \"placeholderDate\": \"يرجى تحديد النطاق الزمني\",\n" +
|
||||
" \"reset\": \"إعادة تعيين\",\n" +
|
||||
" \"sure\": \"تأكيد\",\n" +
|
||||
" \"noData\": \"البيانات فارغة\",\n" +
|
||||
" \"confirm\": \"مؤكد\",\n" +
|
||||
" \"noConfirmed\": \"غير مؤكد\",\n" +
|
||||
" \"alarmTypeList\": [\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"تنبيهات في الوقت الفعلي\"\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"تنبيهات تاريخية\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"loadText\": {\n" +
|
||||
" \"loadmore\": \"اسحب برفق\",\n" +
|
||||
" \"loading\": \"محاولة التحميل\",\n" +
|
||||
" \"nomore\": \"لا يوجد المزيد\"\n" +
|
||||
" },\n" +
|
||||
" \"allStation\": \"جميع محطات الطاقة\",\n" +
|
||||
" \"alarm\": \"إنذار\",\n" +
|
||||
" \"noDevice\": \"لا توجد بيانات معدات متاحة\",\n" +
|
||||
" \"placeholderInput\": \"يرجى إدخال محتوى الإنذار\",\n" +
|
||||
" \"status\": \"الحالة\",\n" +
|
||||
" \"station\": \"محطة الطاقة التابعة\",\n" +
|
||||
" \"alarmTime\": \"وقت الإنذار\",\n" +
|
||||
" \"confirmer\": \"تم التأكيد بواسطة\",\n" +
|
||||
" \"confirmTime\": \"وقت التأكيد\"\n" +
|
||||
" },\n" +
|
||||
" \"policy\": {\n" +
|
||||
" \"planCurve\": \"منحنى الجدول الزمني\",\n" +
|
||||
" \"planCurveTem\": \"قالب منحنى الجدول الزمني\",\n" +
|
||||
" \"IssueDevice\": \"جهاز إصدار الأوامر\",\n" +
|
||||
" \"operateOrNot\": \"سواء في التشغيل\",\n" +
|
||||
" \"socUplimit\": \"الحد الأعلى لـ SOC\",\n" +
|
||||
" \"socDownlimit\": \"الحد الأدنى لـ SOC\",\n" +
|
||||
" \"effectiveTime\": \"وقت السريان\",\n" +
|
||||
" \"selectEffectiveTime\": \"يرجى تحديد وقت السريان\",\n" +
|
||||
" \"distributeResult\": \"نتيجة الإصدار\",\n" +
|
||||
" \"notDelivered\": \"لم يتم الإصدار\",\n" +
|
||||
" \"commandDistribution\": \"إصدار الأوامر\",\n" +
|
||||
" \"controlDistribution\": \"إصدار التحكم\",\n" +
|
||||
" \"genSetting\": \"الإعدادات العامة\",\n" +
|
||||
" \"save\": \"حفظ\",\n" +
|
||||
" \"pleaseInputValue\": \"يرجى إدخال القيمة\",\n" +
|
||||
" \"pleaseInputPassword\": \"يرجى إدخال كلمة المرور\",\n" +
|
||||
" \"password\": \"كلمة المرور\",\n" +
|
||||
" \"policyTypeList\": [\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"إصدار الأوامر\"\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"الإعدادات العامة\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"radioList\": [\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"التشغيل\",\n" +
|
||||
" \"disabled\": false\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"لا تشغيل\",\n" +
|
||||
" \"disabled\": false\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"selectIssueDevice\": \"يرجى تحديد جهاز إصدار الأوامر\",\n" +
|
||||
" \"deliverErrorNewTip\": \"خطأ في تكوين التعيين أو لم يتم التكوين، يرجى التحقق وإعادة المحاولة!\",\n" +
|
||||
" \"passwordSuccess\": \"كلمة المرور صحيحة\",\n" +
|
||||
" \"passwordError\": \"كلمة المرور خاطئة\",\n" +
|
||||
" \"isOpen\": \"سواء تمكين\",\n" +
|
||||
" \"isClose\": \"سواء تعطيل\",\n" +
|
||||
" \"distributeSuccess\": \"نجح الإصدار\",\n" +
|
||||
" \"distributeFail\": \"فشل الإصدار\",\n" +
|
||||
" \"isNum\": \"يرجى التحقق من أن قيمة الإدخال رقمية\",\n" +
|
||||
" \"saveSuccess\": \"نجح الحفظ\",\n" +
|
||||
" \"saveError\": \"فشل الحفظ\",\n" +
|
||||
" \"delivered\": \"تم الإصدار\",\n" +
|
||||
" \"selectPlanCurveTem\": \"يرجى تحديد قالب منحنى الجدول الزمني\",\n" +
|
||||
" \"deliverErrorTip\": \"تتجاوز طاقة الشحن والتفريغ الطاقة المقدرة، يرجى التحقق من إعدادات منحنى الجدول الزمني!\",\n" +
|
||||
" \"deliverTip\": \"سواء تأكيد إصدار الأمر؟\"\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
||||
public static String compressJson(String jsonString) throws Exception {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
Object obj = mapper.readValue(jsonString, Object.class);
|
||||
return mapper.writeValueAsString(obj);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
System.out.println(compressJson(json));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user