Commit 243de086 authored by chenzhao's avatar chenzhao

Merge branch 'developer' of http://39.98.45.134:8090/moa/amos-boot-biz into developer

parents 46d38213 7b6da3fa
package com.yeejoin.amos.boot.module.jxiop.api.dto; package com.yeejoin.amos.boot.module.jxiop.api.dto;
import lombok.Data; import lombok.Data;
import org.springframework.util.ObjectUtils;
import java.util.Date; import java.util.Date;
...@@ -42,8 +43,17 @@ public class IndexDto { ...@@ -42,8 +43,17 @@ public class IndexDto {
private String displayName; private String displayName;
private String pictureName; private String pictureName;
private String title; private String title;
private String timeString="";
//对于创建时间进行处理用于列表排序 //对于创建时间进行处理用于列表排序
public String getTimeString(){ public String getTimeString(){
return getCreatedTime().replace("-","").replace(" ","").replace(":",""); String timeString = "";
if(!ObjectUtils.isEmpty(getCreatedTime())){
timeString =getCreatedTime().replace("-","").replace(" ","").replace(":","");
} }
return timeString;
}
public void setTimeString(String timeString){
this.timeString = timeString;
}
} }
...@@ -9,6 +9,8 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -9,6 +9,8 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -151,5 +153,5 @@ public class StationBasic extends BaseEntity { ...@@ -151,5 +153,5 @@ public class StationBasic extends BaseEntity {
private String boosterGatewayId; private String boosterGatewayId;
//地图偏移量 //地图偏移量
@TableField(value = "title_pos",typeHandler = FastjsonTypeHandler.class) @TableField(value = "title_pos",typeHandler = FastjsonTypeHandler.class)
private List<Double> titlePos; private List<BigDecimal> titlePos;
} }
...@@ -34,7 +34,8 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato ...@@ -34,7 +34,8 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
Object getIndicatoralueTotal(String gateway,String indicator); Object getIndicatoralueTotal(String gateway,String indicator);
List<Map<String, String>> getFanConfigPower(@Param("gatewayId") String gatewayId); List<Map<String, String>> getFanConfigPower(@Param("gatewayId") String gatewayId,
@Param("equipmentNum") String equipmentNum);
List<Map<String, String>> getBoosterStationInfo(@Param("gatewayId") String gatewayId); List<Map<String, String>> getBoosterStationInfo(@Param("gatewayId") String gatewayId);
......
...@@ -86,7 +86,14 @@ ...@@ -86,7 +86,14 @@
equipment_specific_name as equipmentSpecificName, equipment_specific_name as equipmentSpecificName,
gateway_id as gatewayId gateway_id as gatewayId
from fan_config_power from fan_config_power
where gateway_id = #{gatewayId} <where>
<if test="equipmentNum != null and equipmentNum != ''">
and equipment_number = #{equipmentNum}
</if>
<if test="gatewayId != null and gatewayId != ''">
and gateway_id = #{gatewayId}
</if>
</where>
</select> </select>
<select id="getBoosterStationInfo" resultType="java.util.Map"> <select id="getBoosterStationInfo" resultType="java.util.Map">
......
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