|
@@ -32,6 +32,9 @@
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.GoodsVO">
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.GoodsVO">
|
|
<id column="id" property="id"/>
|
|
<id column="id" property="id"/>
|
|
<result column="name" property="name"/>
|
|
<result column="name" property="name"/>
|
|
|
|
+ <result column="temp" property="temp"/>
|
|
|
|
+ <result column="hum" property="hum"/>
|
|
|
|
+ <result column="door_status" property="doorStatus"/>
|
|
<result column="tag_id" property="tagId"/>
|
|
<result column="tag_id" property="tagId"/>
|
|
<result column="model_number" property="modelNumber"/>
|
|
<result column="model_number" property="modelNumber"/>
|
|
<result column="unit" property="unit"/>
|
|
<result column="unit" property="unit"/>
|
|
@@ -119,7 +122,9 @@
|
|
</select>
|
|
</select>
|
|
<select id="selectGoodsNoByGoodsId" resultType="com.hssx.pcbms.entity.GoodsNo">
|
|
<select id="selectGoodsNoByGoodsId" resultType="com.hssx.pcbms.entity.GoodsNo">
|
|
select
|
|
select
|
|
- id, model_no, state, indate, goods_id,is_maintain
|
|
|
|
|
|
+ id, model_no, state,indate, goods_id,user_id, update_indate,
|
|
|
|
+ is_maintain, type, device_name, device_model, good_sn_no,
|
|
|
|
+ label_id, rack_id, model_id, u_bit_num, current_state, alarm_level
|
|
from
|
|
from
|
|
goods_no
|
|
goods_no
|
|
where
|
|
where
|
|
@@ -163,4 +168,24 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="getRackListBycondition" resultMap="BaseResultMapVO">
|
|
|
|
+ select
|
|
|
|
+ g.id, g.name, g.tag_id,rd.hum,rd.door_status,rd.temp,g.indate,
|
|
|
|
+ g.model_number, g.unit, g.address, g.factory, g.pic,
|
|
|
|
+ g.service_life, g.next_indate
|
|
|
|
+ from
|
|
|
|
+ goods g
|
|
|
|
+ left join rack_data rd
|
|
|
|
+ on g.id = rd.goods_id
|
|
|
|
+ <where>
|
|
|
|
+ is_delete = 0
|
|
|
|
+ <if test="keyName != null and keyName != ''">
|
|
|
|
+ and g.name like concat('%',#{keyName},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tagId != null">
|
|
|
|
+ and g.tag_id = #{tagId}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ order by g.indate desc
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|