|
|
|
@ -24,27 +24,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="supplierId" column="supplier_id" /> |
|
|
|
<result property="supplierId" column="supplier_id" /> |
|
|
|
<result property="gatherFrequency" column="gather_frequency" /> |
|
|
|
<result property="gatherFrequency" column="gather_frequency" /> |
|
|
|
<result property="equImage" column="equ_image" /> |
|
|
|
<result property="equImage" column="equ_image" /> |
|
|
|
<result property="repairFrequency" column="repair_frequency" /> |
|
|
|
<result property="equNumber" column="equ_number" /> |
|
|
|
<result property="repairCost" column="repair_cost" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<result property="fanSpeed" column="fan_speed"/> |
|
|
|
|
|
|
|
<result property="cpuUtilization" column="cpu_utilization"/> |
|
|
|
|
|
|
|
<result property="memoryUtilization" column="memory_utilization"/> |
|
|
|
|
|
|
|
<result property="health" column="health"/> |
|
|
|
|
|
|
|
<result property="contWorkPeriod" column="cont_work_period"/> |
|
|
|
|
|
|
|
<association property="manufactureVO" columnPrefix="equ_manu_" autoMapping="true" /> |
|
|
|
<association property="manufactureVO" columnPrefix="equ_manu_" autoMapping="true" /> |
|
|
|
<association property="equTypeVO" columnPrefix="equ_type_" autoMapping="true" /> |
|
|
|
<association property="equTypeVO" columnPrefix="equ_type_" autoMapping="true" /> |
|
|
|
<collection property="temperatureList" javaType="java.util.ArrayList" ofType="java.lang.Float"> |
|
|
|
|
|
|
|
<result column="temperature_value"/> |
|
|
|
|
|
|
|
</collection> |
|
|
|
|
|
|
|
<collection property="involtageList" javaType="java.util.ArrayList" ofType="java.lang.Float"> |
|
|
|
|
|
|
|
<result column="involtage_value"/> |
|
|
|
|
|
|
|
</collection> |
|
|
|
|
|
|
|
<collection property="outvoltageList" javaType="java.util.ArrayList" ofType="java.lang.Float"> |
|
|
|
|
|
|
|
<result column="outvoltage_value"/> |
|
|
|
|
|
|
|
</collection> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <association property="manufacture" columnPrefix="equ_manu_" autoMapping="true" />--> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="EquMonitorResult" type="com.alops.system.domain.vo.EquMonitorVO"> |
|
|
|
<resultMap id="EquMonitorResult" type="com.alops.system.domain.vo.EquMonitorVO"> |
|
|
|
@ -57,19 +40,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="location" column="location" /> |
|
|
|
<result property="location" column="location" /> |
|
|
|
<result property="equType" column="equ_type" /> |
|
|
|
<result property="equType" column="equ_type" /> |
|
|
|
<result property="inCharge" column="in_charge" /> |
|
|
|
<result property="inCharge" column="in_charge" /> |
|
|
|
<result property="releaseDate" column="release_date" /> |
|
|
|
|
|
|
|
<result property="installDate" column="install_date" /> |
|
|
|
<result property="installDate" column="install_date" /> |
|
|
|
<result property="lifeCycle" column="life_cycle" /> |
|
|
|
<result property="lifeCycle" column="life_cycle" /> |
|
|
|
<result property="serviceTime" column="service_time" /> |
|
|
|
|
|
|
|
<result property="warranty" column="warranty" /> |
|
|
|
<result property="warranty" column="warranty" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createDate" column="create_date" /> |
|
|
|
<result property="createDate" column="create_date" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
|
|
|
|
<result property="updateDate" column="update_date" /> |
|
|
|
|
|
|
|
<result property="status" column="status" /> |
|
|
|
<result property="status" column="status" /> |
|
|
|
<result property="failureFrequency" column="failure_frequency" /> |
|
|
|
<result property="failureFrequency" column="failure_frequency" /> |
|
|
|
<result property="repairFrequency" column="repair_frequency" /> |
|
|
|
|
|
|
|
<result property="repairCost" column="repair_cost" /> |
|
|
|
|
|
|
|
<result property="fanSpeed" column="fan_speed"/> |
|
|
|
<result property="fanSpeed" column="fan_speed"/> |
|
|
|
<result property="cpuUtilization" column="cpu_utilization"/> |
|
|
|
<result property="cpuUtilization" column="cpu_utilization"/> |
|
|
|
<result property="memoryUtilization" column="memory_utilization"/> |
|
|
|
<result property="memoryUtilization" column="memory_utilization"/> |
|
|
|
@ -91,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquBaseVo"> |
|
|
|
<sql id="selectEquBaseVo"> |
|
|
|
select id, name, version, ip, manufacture, location, equ_type, in_charge, install_date, life_cycle, warranty, create_by, create_date, status, device_level, supplier_id from equ_base |
|
|
|
select id,equ_number, name, version, ip, manufacture, location, equ_type, in_charge, install_date, life_cycle, warranty, create_by, create_date, status, device_level, supplier_id from equ_base |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -115,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<!-- 查询列 --> |
|
|
|
<!-- 查询列 --> |
|
|
|
<sql id="selectEquBaseVo2"> |
|
|
|
<sql id="selectEquBaseVo2"> |
|
|
|
b.id AS id, |
|
|
|
b.id AS id, |
|
|
|
|
|
|
|
b.equ_number AS equNumber |
|
|
|
b.name AS name, |
|
|
|
b.name AS name, |
|
|
|
b.version AS version, |
|
|
|
b.version AS version, |
|
|
|
b.ip AS ip, |
|
|
|
b.ip AS ip, |
|
|
|
@ -131,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
b.status AS status, |
|
|
|
b.status AS status, |
|
|
|
b.device_level AS deviceLevel, |
|
|
|
b.device_level AS deviceLevel, |
|
|
|
g.health AS health |
|
|
|
g.health AS health |
|
|
|
|
|
|
|
|
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEquBaseList" parameterType="equBaseQueryDto" resultType="com.alops.system.domain.vo.queryEquBaseVO"> |
|
|
|
<select id="selectEquBaseList" parameterType="equBaseQueryDto" resultType="com.alops.system.domain.vo.queryEquBaseVO"> |
|
|
|
@ -361,6 +343,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="warranty != null">warranty,</if> |
|
|
|
<if test="warranty != null">warranty,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createDate != null">create_date,</if> |
|
|
|
<if test="createDate != null">create_date,</if> |
|
|
|
|
|
|
|
<if test="equNumber != null">equ_number,</if> |
|
|
|
|
|
|
|
|
|
|
|
status, |
|
|
|
status, |
|
|
|
<if test="equImage != null">equ_image,</if> |
|
|
|
<if test="equImage != null">equ_image,</if> |
|
|
|
@ -383,7 +366,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="warranty != null">#{warranty},</if> |
|
|
|
<if test="warranty != null">#{warranty},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createDate != null">#{createDate},</if> |
|
|
|
<if test="createDate != null">#{createDate},</if> |
|
|
|
|
|
|
|
<if test="equNumber != null">#{equNumber},</if> |
|
|
|
COALESCE(#{status,jdbcType=INTEGER}, 0), |
|
|
|
COALESCE(#{status,jdbcType=INTEGER}, 0), |
|
|
|
<if test="equImage != null">#{equImage,jdbcType=BLOB},</if> |
|
|
|
<if test="equImage != null">#{equImage,jdbcType=BLOB},</if> |
|
|
|
COALESCE(#{failureFrequency,jdbcType=BIGINT}, 0), |
|
|
|
COALESCE(#{failureFrequency,jdbcType=BIGINT}, 0), |
|
|
|
@ -411,6 +394,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deviceLevel != null">device_level = #{deviceLevel},</if> |
|
|
|
<if test="deviceLevel != null">device_level = #{deviceLevel},</if> |
|
|
|
<if test="supplierId != null">supplier_id = #{supplierId},</if> |
|
|
|
<if test="supplierId != null">supplier_id = #{supplierId},</if> |
|
|
|
<if test="equImage != null">equ_image = #{equImage},</if> |
|
|
|
<if test="equImage != null">equ_image = #{equImage},</if> |
|
|
|
|
|
|
|
<if test="equNumber != null">equ_number = #{equNumber},</if> |
|
|
|
</trim> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
|