|
@@ -35,13 +35,15 @@
|
|
|
<result column="room_id" property="roomId" />
|
|
|
<result column="room_name" property="roomName" />
|
|
|
<result column="device_factory" property="deviceFactory" />
|
|
|
+ <result column="petitioner" property="petitioner" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, name, tag_id, model_number, unit, address, factory, pic, service_life, next_indate, is_delete, creator_id, division_code, suffix_code, good_type, rack_id, rack_ip, rack_port, indate, project_no, project_name, purchase_date, warranty_period, price, content, goods_sequence, device_contact, device_contact_phone, room_id, room_name, device_factory
|
|
|
+ id, name, tag_id, model_number, unit, address, factory, pic, service_life, next_indate, is_delete, creator_id, division_code, suffix_code, good_type, rack_id, rack_ip, rack_port, indate, project_no, project_name, purchase_date, warranty_period, price, content, goods_sequence, device_contact, device_contact_phone, room_id, room_name, device_factory, petitioner
|
|
|
</sql>
|
|
|
|
|
|
+
|
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.GoodsVO">
|
|
|
<id column="id" property="id"/>
|
|
|
<result column="name" property="name"/>
|
|
@@ -86,6 +88,7 @@
|
|
|
<result column="warranty_period" property="warrantyPeriod" />
|
|
|
<result column="price" property="price" />
|
|
|
<result column="content" property="content" />
|
|
|
+ <result column="petitioner" property="petitioner" />
|
|
|
<collection property="goodsNos" ofType="com.hssx.pcbms.entity.GoodsNo">
|
|
|
<id column="nid" property="id"/>
|
|
|
<result column="model_no" property="modelNo"/>
|
|
@@ -129,6 +132,8 @@
|
|
|
<result column="device_contact" property="deviceContact" />
|
|
|
<result column="device_contact_phone" property="deviceContactPhone" />
|
|
|
<result column="device_factory" property="deviceFactory" />
|
|
|
+ <result column="gindate" property="indate" />
|
|
|
+ <result column="petitioner" property="petitioner" />
|
|
|
<collection property="goodsNosVO" ofType="com.hssx.pcbms.entity.vo.GoodsNoVO">
|
|
|
<id column="nid" property="id"/>
|
|
|
<result column="model_no" property="modelNo" />
|
|
@@ -260,9 +265,9 @@
|
|
|
</select>
|
|
|
<select id="getDetail" 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,g.project_no, g.project_name, g.purchase_date, g.warranty_period, g.price,g.content,
|
|
|
- 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,g.goods_sequence, g.device_contact, g.device_contact_phone,g.device_factory
|
|
|
+ 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.indate gindate,
|
|
|
+ g.is_delete,gn.id nid,g.good_type,rd.hum,rd.door_status,rd.temp,g.project_no, g.project_name, g.purchase_date, g.warranty_period, g.price,g.content,g.petitioner,
|
|
|
+ gn.model_no, gn.division_code, gn.suffix_code, gn.state, gn.goods_id, gn.user_id,u.name username,gn.is_maintain,u.phone,g.goods_sequence, g.device_contact, g.device_contact_phone,g.device_factory
|
|
|
from
|
|
|
goods g
|
|
|
left join
|