|
@@ -96,16 +96,51 @@
|
|
|
<result column="tag_name" property="tagName" />
|
|
|
<collection property="goodsNosVO" ofType="com.hssx.pcbms.entity.vo.GoodsNoVO">
|
|
|
<id column="nid" property="id"/>
|
|
|
- <result column="model_no" property="modelNo"/>
|
|
|
- <result column="division_code" property="divisionCode"/>
|
|
|
- <result column="suffix_code" property="suffixCode"/>
|
|
|
- <result column="state" property="state"/>
|
|
|
- <result column="indate" property="indate"/>
|
|
|
- <result column="goods_id" property="goodsId"/>
|
|
|
- <result column="user_id" property="userId"/>
|
|
|
- <result column="username" property="username"/>
|
|
|
+ <result column="model_no" property="modelNo" />
|
|
|
+ <result column="division_code" property="divisionCode" />
|
|
|
+ <result column="suffix_code" property="suffixCode" />
|
|
|
+ <result column="state" property="state" />
|
|
|
+ <result column="indate" property="indate" />
|
|
|
+ <result column="goods_id" property="goodsId" />
|
|
|
+ <result column="user_id" property="userId" />
|
|
|
+ <result column="update_indate" property="updateIndate" />
|
|
|
<result column="is_maintain" property="isMaintain" />
|
|
|
- <result column="phone" property="phone" />
|
|
|
+ <result column="good_sn_no" property="goodSnNo" />
|
|
|
+ <result column="label_id" property="labelId" />
|
|
|
+ <result column="model_id" property="modelId" />
|
|
|
+ <result column="u_bit_num" property="uBitNum" />
|
|
|
+ <result column="power" property="power" />
|
|
|
+ <result column="rated_current" property="ratedCurrent" />
|
|
|
+ <result column="rated_voltage" property="ratedVoltage" />
|
|
|
+ <result column="serial_number" property="serialNumber" />
|
|
|
+ <result column="affiliate" property="affiliate" />
|
|
|
+ <result column="device_category" property="deviceCategory" />
|
|
|
+ <result column="stock" property="stock" />
|
|
|
+ <result column="server_weight" property="serverWeight" />
|
|
|
+ <result column="manufacturer" property="manufacturer" />
|
|
|
+ <result column="supplier" property="supplier" />
|
|
|
+ <result column="charger_id" property="chargerId" />
|
|
|
+ <result column="charger_name" property="chargerName" />
|
|
|
+ <result column="maintain_clc" property="maintainClc" />
|
|
|
+ <result column="maintenance_phone" property="maintenancePhone" />
|
|
|
+ <result column="last_maintainer_id" property="lastMaintainerId" />
|
|
|
+ <result column="last_maintainer_name" property="lastMaintainerName" />
|
|
|
+ <result column="next_maintainer_id" property="nextMaintainerId" />
|
|
|
+ <result column="next_maintainer_name" property="nextMaintainerName" />
|
|
|
+ <result column="last_update_time" property="lastUpdateTime" />
|
|
|
+ <result column="next_update_time" property="nextUpdateTime" />
|
|
|
+ <result column="grounding_time" property="groundingTime" />
|
|
|
+ <result column="undercarriage_time" property="undercarriageTime" />
|
|
|
+ <result column="first_use_time" property="firstUseTime" />
|
|
|
+ <result column="current_state" property="currentState" />
|
|
|
+ <result column="alarm_level" property="alarmLevel" />
|
|
|
+ <result column="subordinate_user_id" property="subordinateUserId" />
|
|
|
+ <result column="subordinate_user" property="subordinateUser" />
|
|
|
+ <result column="floor" property="floor" />
|
|
|
+ <result column="room" property="room" />
|
|
|
+ <result column="column_place" property="columnPlace" />
|
|
|
+ <result column="region" property="region" />
|
|
|
+ <result column="is_rack" property="isRack" />
|
|
|
</collection>
|
|
|
</resultMap>
|
|
|
<select id="getListBycondition" resultMap="BaseResultMapVO">
|
|
@@ -122,9 +157,6 @@
|
|
|
<if test="tagId != null">
|
|
|
and tag_id = #{tagId}
|
|
|
</if>
|
|
|
- <if test="tagId == null">
|
|
|
- and tag_id <> -1 and tag_id <> -2
|
|
|
- </if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</select>
|
|
@@ -158,6 +190,28 @@
|
|
|
g.id = #{id}
|
|
|
</where>
|
|
|
</select>
|
|
|
+ <select id="getEuipmentList" resultMap="BaseResultMapDetail">
|
|
|
+ select
|
|
|
+ g.id, g.name, g.tag_id,gt.name tag_name, g.model_number, g.unit,g.address, g.factory, g.pic, g.service_life, g.next_indate,g.division_code divisioncode,g.suffix_code suffixcode,
|
|
|
+ g.is_delete,gn.id nid,g.good_type,rd.hum,rd.door_status,rd.temp,gn.is_rack,
|
|
|
+ gn.model_no, gn.division_code, gn.suffix_code, gn.state, gn.indate, gn.goods_id, gn.user_id,u.name username,gn.is_maintain,u.phone
|
|
|
+ from
|
|
|
+ goods g
|
|
|
+ left join
|
|
|
+ goods_no gn
|
|
|
+ on g.id = gn.goods_id
|
|
|
+ left join user u
|
|
|
+ on u.id = gn.user_id
|
|
|
+ left join rack_data rd
|
|
|
+ on g.id = rd.goods_id
|
|
|
+ left join goods_tags gt
|
|
|
+ on gt.id = g.tag_id
|
|
|
+ <where>
|
|
|
+ g.id in <foreach collection="ids" index="index" open="(" item="item" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectMyList" resultMap="BaseResultMapMyList">
|
|
|
select
|
|
@@ -192,16 +246,13 @@
|
|
|
left join rack_data rd
|
|
|
on g.id = rd.goods_id
|
|
|
<where>
|
|
|
- is_delete = 0
|
|
|
+ is_delete = 0 and good_type = #{goodType}
|
|
|
<if test="keyName != null and keyName != ''">
|
|
|
and g.name like concat('%',#{keyName},'%')
|
|
|
</if>
|
|
|
<if test="tagId != null">
|
|
|
and g.tag_id = #{tagId}
|
|
|
</if>
|
|
|
- <if test="tagId == null">
|
|
|
- and g.tag_id <> -1 and g.tag_id <> -2
|
|
|
- </if>
|
|
|
</where>
|
|
|
order by g.indate desc
|
|
|
</select>
|