|
|
@@ -76,7 +76,13 @@ public class LabRiskPlanAbnormalGroupServiceImpl implements ILabRiskPlanAbnormal
|
|
|
JSONArray sensorList = JSONObject.parseArray(b.getSensorJson());
|
|
|
for(int x=0;x<sensorList.size();x++){
|
|
|
JSONObject jsonObj=sensorList.getJSONObject(x);
|
|
|
- sensorStr.append(jsonObj.get("describe")+":"+jsonObj.get("value")+""+jsonObj.get("unit")==null?"":jsonObj.get("unit")+" ");
|
|
|
+ String unit = jsonObj.get("unit")+"";
|
|
|
+ if(StringUtils.isNotNull(unit)){
|
|
|
+ sensorStr.append(jsonObj.get("describe")+":"+jsonObj.get("value")+""+jsonObj.get("unit")+" ");
|
|
|
+ }else{
|
|
|
+ sensorStr.append(jsonObj.get("describe")+":"+jsonObj.get("value")+" ");
|
|
|
+ }
|
|
|
+// sensorStr.append(jsonObj.get("describe")+":"+jsonObj.get("value")+""+jsonObj.get("unit")==null?"":jsonObj.get("unit")+" ");
|
|
|
if(StringUtils.isNotNull(jsonObj.get("funNum")) && (jsonObj.get("funNum")+"").equals("huoyan")){
|
|
|
if(!a.getClosePlan()){
|
|
|
a.setClosePlan(true);
|