修改车辆BMS数据显示
This commit is contained in:
parent
c0c72bc3ca
commit
00aee1ccfa
@ -44,6 +44,8 @@ public class SecurityUtils
|
|||||||
public static String getToken(HttpServletRequest request)
|
public static String getToken(HttpServletRequest request)
|
||||||
{
|
{
|
||||||
String token = ServletUtils.getRequest().getHeader(CacheConstants.HEADER);
|
String token = ServletUtils.getRequest().getHeader(CacheConstants.HEADER);
|
||||||
|
System.out.println("=============token=============="+token);
|
||||||
|
System.out.println("=============token=============="+token);
|
||||||
if (StringUtils.isNotEmpty(token) && token.startsWith(CacheConstants.TOKEN_PREFIX))
|
if (StringUtils.isNotEmpty(token) && token.startsWith(CacheConstants.TOKEN_PREFIX))
|
||||||
{
|
{
|
||||||
token = token.replace(CacheConstants.TOKEN_PREFIX, "");
|
token = token.replace(CacheConstants.TOKEN_PREFIX, "");
|
||||||
|
|||||||
@ -80,7 +80,6 @@ public class XhpcRealTimeOrderController extends BaseController {
|
|||||||
@GetMapping("/timeBmsList")
|
@GetMapping("/timeBmsList")
|
||||||
public TableDataInfo timeBmsList(@RequestParam Long chargingOrderId)
|
public TableDataInfo timeBmsList(@RequestParam Long chargingOrderId)
|
||||||
{
|
{
|
||||||
startPage();
|
|
||||||
List<Map<String,Object>> list = xhpcRealTimeOrderService.timeBmsList(chargingOrderId);
|
List<Map<String,Object>> list = xhpcRealTimeOrderService.timeBmsList(chargingOrderId);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -137,6 +137,7 @@ public class XhpcRealTimeOrderServiceImpl extends BaseService implements IXhpcRe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Map<String, Object>> timeBmsList(Long chargingOrderId) {
|
public List<Map<String, Object>> timeBmsList(Long chargingOrderId) {
|
||||||
|
startPage();
|
||||||
return xhpcRealTimeOrderMapper.timeBmsList(chargingOrderId);
|
return xhpcRealTimeOrderMapper.timeBmsList(chargingOrderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,6 +178,7 @@ public class XhpcRealTimeOrderServiceImpl extends BaseService implements IXhpcRe
|
|||||||
if(cacheBmsReqChargerOutputData !=null){
|
if(cacheBmsReqChargerOutputData !=null){
|
||||||
XhpcRealTimeOrderBms xhpcRealTimeOrderBms = new XhpcRealTimeOrderBms();
|
XhpcRealTimeOrderBms xhpcRealTimeOrderBms = new XhpcRealTimeOrderBms();
|
||||||
BeanUtils.copyProperties(cacheBmsReqChargerOutputData, xhpcRealTimeOrderBms);
|
BeanUtils.copyProperties(cacheBmsReqChargerOutputData, xhpcRealTimeOrderBms);
|
||||||
|
xhpcRealTimeOrderBms.setCreateTime(new Date());
|
||||||
Integer bmsEstRemainingTime = cacheBmsReqChargerOutputData.getBmsEstRemainingTime();
|
Integer bmsEstRemainingTime = cacheBmsReqChargerOutputData.getBmsEstRemainingTime();
|
||||||
Integer chargingTimeSummary = cacheBmsReqChargerOutputData.getChargingTimeSummary();
|
Integer chargingTimeSummary = cacheBmsReqChargerOutputData.getChargingTimeSummary();
|
||||||
if (bmsEstRemainingTime > 60) {
|
if (bmsEstRemainingTime > 60) {
|
||||||
|
|||||||
@ -239,6 +239,9 @@
|
|||||||
<if test="null != bmsChargingCurrent ">
|
<if test="null != bmsChargingCurrent ">
|
||||||
bms_charging_current,
|
bms_charging_current,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="null != monoBatteryVolt ">
|
||||||
|
mono_battery_volt,
|
||||||
|
</if>
|
||||||
<if test="null != soc ">
|
<if test="null != soc ">
|
||||||
soc,
|
soc,
|
||||||
</if>
|
</if>
|
||||||
@ -286,6 +289,9 @@
|
|||||||
<if test="null != bmsChargingCurrent ">
|
<if test="null != bmsChargingCurrent ">
|
||||||
#{bmsChargingCurrent},
|
#{bmsChargingCurrent},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="null != monoBatteryVolt ">
|
||||||
|
#{monoBatteryVolt},
|
||||||
|
</if>
|
||||||
<if test="null != soc ">
|
<if test="null != soc ">
|
||||||
#{soc},
|
#{soc},
|
||||||
</if>
|
</if>
|
||||||
@ -722,11 +728,11 @@
|
|||||||
bms_current_request as bmsCurrentRequest,
|
bms_current_request as bmsCurrentRequest,
|
||||||
bms_charging_mod as bmsChargingMod,
|
bms_charging_mod as bmsChargingMod,
|
||||||
bms_charging_volt as bmsChargingVolt,
|
bms_charging_volt as bmsChargingVolt,
|
||||||
bms_charging_current as gunLineTemperature,
|
bms_charging_current as bmsChargingCurrent,
|
||||||
mono_battery_volt as monoBatteryVolt,
|
mono_battery_volt as monoBatteryVolt,
|
||||||
soc as soc,
|
soc as soc,
|
||||||
bms_est_remaining_time as bmsEstRemainingTime,
|
bms_est_remaining_time as bmsEstRemainingTime,
|
||||||
pileVoltageOutput as pileVoltageOutput,
|
pile_voltage_output as pileVoltageOutput,
|
||||||
pile_current_output as pileCurrentOutput,
|
pile_current_output as pileCurrentOutput,
|
||||||
charging_time_summary as chargingTimeSummary,
|
charging_time_summary as chargingTimeSummary,
|
||||||
mono_battery_volt_groupId as monoBatteryVoltGroupId,
|
mono_battery_volt_groupId as monoBatteryVoltGroupId,
|
||||||
|
|||||||
@ -30,6 +30,9 @@ public class XhpcCommonPaymentController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/settingConfig")
|
@GetMapping("/settingConfig")
|
||||||
public R settingConfig(Integer status, String tenantId) {
|
public R settingConfig(Integer status, String tenantId) {
|
||||||
|
System.out.println("==================获取支付配置========================");
|
||||||
|
System.out.println("==================获取支付配置========status==============="+status);
|
||||||
|
System.out.println("==================获取支付配置========tenantId================"+tenantId);
|
||||||
return R.ok(xhpcCommonPayment.getXhpcSettingConfigTenantId(status, tenantId));
|
return R.ok(xhpcCommonPayment.getXhpcSettingConfigTenantId(status, tenantId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -251,6 +251,7 @@ public class XhpcAppUserController extends BaseController {
|
|||||||
tenantId="000000";
|
tenantId="000000";
|
||||||
}
|
}
|
||||||
R r = settingConfigService.settingConfig(2, tenantId);
|
R r = settingConfigService.settingConfig(2, tenantId);
|
||||||
|
System.out.println("======================r========================="+r.getCode());
|
||||||
if(r !=null && r.getCode()==200){
|
if(r !=null && r.getCode()==200){
|
||||||
Map<String, Object> map = (Map<String, Object>)r.getData();
|
Map<String, Object> map = (Map<String, Object>)r.getData();
|
||||||
/** 初始化 **/
|
/** 初始化 **/
|
||||||
@ -285,7 +286,7 @@ public class XhpcAppUserController extends BaseController {
|
|||||||
if (response.isSuccess()) {
|
if (response.isSuccess()) {
|
||||||
System.out.println("调用成功");
|
System.out.println("调用成功");
|
||||||
} else {
|
} else {
|
||||||
return AjaxResult.error("获取失败");
|
return AjaxResult.error("获取失败!");
|
||||||
}
|
}
|
||||||
return AjaxResult.success(response);
|
return AjaxResult.success(response);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -208,8 +208,6 @@ public class XhpcAppUserServiceImpl extends BaseService implements IXhpcAppUserU
|
|||||||
String phone = StringUtils.valueOf(map.get("phone"));
|
String phone = StringUtils.valueOf(map.get("phone"));
|
||||||
String type = StringUtils.valueOf(map.get("type"));
|
String type = StringUtils.valueOf(map.get("type"));
|
||||||
String tenantId = StringUtils.valueOf(map.get("tenantId"));
|
String tenantId = StringUtils.valueOf(map.get("tenantId"));
|
||||||
logger.info("<<<<<<<<<<code>>>>>>>>>>>>"+code);
|
|
||||||
logger.info("<<<<<<<<<<tenantId>>>>>>>>>>>>"+tenantId);
|
|
||||||
if("18123374652".equals(phone) && "123456".equals(code)){
|
if("18123374652".equals(phone) && "123456".equals(code)){
|
||||||
if("1".equals(type)){
|
if("1".equals(type)){
|
||||||
return appLogin(phone, "1", "ot6ul4nlSC5ZZOC4rTLS5hedFTGk", tenantId);
|
return appLogin(phone, "1", "ot6ul4nlSC5ZZOC4rTLS5hedFTGk", tenantId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user