Commit 69db9929 authored by wujiang's avatar wujiang

修改分析指标项

parent ecef59d9
...@@ -78,6 +78,7 @@ public class IdxBizFanWeightController extends BaseController { ...@@ -78,6 +78,7 @@ public class IdxBizFanWeightController extends BaseController {
List<IdxBizFanWeight> formattedDates = list.stream().map(e-> { List<IdxBizFanWeight> formattedDates = list.stream().map(e-> {
e.setValue(e.getValue()!=null?Float.parseFloat(new DecimalFormat("0.000").format(e.getValue())):null); e.setValue(e.getValue()!=null?Float.parseFloat(new DecimalFormat("0.000").format(e.getValue())):null);
e.setValueS(e.getValue()!=null?new DecimalFormat("0.000").format(e.getValue()):null);
switch(e.getType()){ switch(e.getType()){
case "1": case "1":
e.setType("片区"); e.setType("片区");
...@@ -95,7 +96,6 @@ public class IdxBizFanWeightController extends BaseController { ...@@ -95,7 +96,6 @@ public class IdxBizFanWeightController extends BaseController {
e.setType("变量"); e.setType("变量");
break; break;
} }
return e; return e;
} }
).collect(Collectors.toList()); ).collect(Collectors.toList());
...@@ -313,8 +313,10 @@ public class IdxBizFanWeightController extends BaseController { ...@@ -313,8 +313,10 @@ public class IdxBizFanWeightController extends BaseController {
for (IdxBizFanWeight listdatum : listdata) { for (IdxBizFanWeight listdatum : listdata) {
for (IdxBizFanWeight idxBizPvWeight : list) { for (IdxBizFanWeight idxBizPvWeight : list) {
listdatum.setValue(formattedNum); listdatum.setValue(formattedNum);
listdatum.setFlag(null);
if (idxBizPvWeight.getSequenceNbr().equals(listdatum.getSequenceNbr())) { if (idxBizPvWeight.getSequenceNbr().equals(listdatum.getSequenceNbr())) {
listdatum.setValue(Float.valueOf(value.get("data").toString())); listdatum.setValue(Float.valueOf(value.get("data").toString()));
listdatum.setFlag("是");
break; break;
} }
} }
......
...@@ -83,6 +83,7 @@ public class IdxBizPvWeightController extends BaseController { ...@@ -83,6 +83,7 @@ public class IdxBizPvWeightController extends BaseController {
List<IdxBizPvWeight> formattedDates = list.stream().map(e-> { List<IdxBizPvWeight> formattedDates = list.stream().map(e-> {
e.setValue(e.getValue()!=null?Float.parseFloat(new DecimalFormat("0.000").format(e.getValue())):null); e.setValue(e.getValue()!=null?Float.parseFloat(new DecimalFormat("0.000").format(e.getValue())):null);
e.setValueS(e.getValue()!=null?new DecimalFormat("0.000").format(e.getValue()):null);
switch(e.getType()){ switch(e.getType()){
case "1": case "1":
e.setType("片区"); e.setType("片区");
...@@ -320,8 +321,10 @@ public class IdxBizPvWeightController extends BaseController { ...@@ -320,8 +321,10 @@ public class IdxBizPvWeightController extends BaseController {
for (IdxBizPvWeight listdatum : listdata) { for (IdxBizPvWeight listdatum : listdata) {
for (IdxBizPvWeight idxBizPvWeight : list) { for (IdxBizPvWeight idxBizPvWeight : list) {
listdatum.setValue(formattedNum); listdatum.setValue(formattedNum);
listdatum.setFlag(null);
if (idxBizPvWeight.getSequenceNbr().equals(listdatum.getSequenceNbr())) { if (idxBizPvWeight.getSequenceNbr().equals(listdatum.getSequenceNbr())) {
listdatum.setValue(Float.valueOf(value.get("data").toString())); listdatum.setValue(Float.valueOf(value.get("data").toString()));
listdatum.setFlag("是");
break; break;
} }
} }
......
...@@ -140,8 +140,10 @@ public class TDBigScreenAnalyseController extends BaseController { ...@@ -140,8 +140,10 @@ public class TDBigScreenAnalyseController extends BaseController {
StationBasic stationBasic = stationBasicMapper.selectById(stationCode); StationBasic stationBasic = stationBasicMapper.selectById(stationCode);
stationCode = stationBasic.getFanGatewayId(); stationCode = stationBasic.getFanGatewayId();
} else if (StrUtil.isNotEmpty(station)) { } else if (StrUtil.isNotEmpty(station)) {
//由于命名不统一
StationBasic stationBasic = stationBasicMapper.selectOne(new LambdaQueryWrapper<StationBasic>() StationBasic stationBasic = stationBasicMapper.selectOne(new LambdaQueryWrapper<StationBasic>()
.like(StationBasic::getStationName, station.substring(0, station.length() - 1))); .eq(StationBasic::getStationName, station.substring(0, station.length() - 1)+'场')
.or().eq(StationBasic::getStationName, station.substring(0, station.length() - 1)+'站'));
stationCode = stationBasic.getFanGatewayId(); stationCode = stationBasic.getFanGatewayId();
} }
if (StrUtil.isNotEmpty(areaCode)) { if (StrUtil.isNotEmpty(areaCode)) {
......
package com.yeejoin.amos.boot.module.jxiop.biz.entity; package com.yeejoin.amos.boot.module.jxiop.biz.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -64,6 +66,12 @@ public class IdxBizFanWeight { ...@@ -64,6 +66,12 @@ public class IdxBizFanWeight {
*/ */
@TableField("VALUE") @TableField("VALUE")
private Float value; private Float value;
/**
* 权重值字符串
*/
@TableField(exist=false)
private String valueS;
/** /**
* orgCode * orgCode
...@@ -71,6 +79,7 @@ public class IdxBizFanWeight { ...@@ -71,6 +79,7 @@ public class IdxBizFanWeight {
@TableField("ORG_CODE") @TableField("ORG_CODE")
private String orgCode; private String orgCode;
@TableField(exist=false)
private String Symbol_key; @TableField(value = "FLAG", updateStrategy=FieldStrategy.IGNORED)
private String flag;
} }
package com.yeejoin.amos.boot.module.jxiop.biz.entity; package com.yeejoin.amos.boot.module.jxiop.biz.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
...@@ -65,6 +66,12 @@ public class IdxBizPvWeight { ...@@ -65,6 +66,12 @@ public class IdxBizPvWeight {
*/ */
@TableField("VALUE") @TableField("VALUE")
private Float value; private Float value;
/**
* 权重值字符串
*/
@TableField(exist=false)
private String valueS;
/** /**
* orgCode * orgCode
...@@ -72,6 +79,6 @@ public class IdxBizPvWeight { ...@@ -72,6 +79,6 @@ public class IdxBizPvWeight {
@TableField("ORG_CODE") @TableField("ORG_CODE")
private String orgCode; private String orgCode;
@TableField(exist=false) @TableField(value = "FLAG", updateStrategy=FieldStrategy.IGNORED)
private String Symbol_key; private String flag;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment