|
@@ -4,26 +4,27 @@
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.hssx.pcbms.entity.Goods">
|
|
|
- <id column="id" property="id"/>
|
|
|
- <result column="name" property="name"/>
|
|
|
- <result column="tag_id" property="tagId"/>
|
|
|
- <result column="model_number" property="modelNumber"/>
|
|
|
- <result column="unit" property="unit"/>
|
|
|
- <result column="address" property="address"/>
|
|
|
- <result column="factory" property="factory"/>
|
|
|
- <result column="pic" property="pic"/>
|
|
|
- <result column="service_life" property="serviceLife"/>
|
|
|
- <result column="next_indate" property="nextIndate"/>
|
|
|
- <result column="is_delete" property="isDelete"/>
|
|
|
- <result column="creator_id" property="creatorId"/>
|
|
|
+ <id column="id" property="id" />
|
|
|
+ <result column="name" property="name" />
|
|
|
+ <result column="tag_id" property="tagId" />
|
|
|
+ <result column="model_number" property="modelNumber" />
|
|
|
+ <result column="unit" property="unit" />
|
|
|
+ <result column="address" property="address" />
|
|
|
+ <result column="factory" property="factory" />
|
|
|
+ <result column="pic" property="pic" />
|
|
|
+ <result column="service_life" property="serviceLife" />
|
|
|
+ <result column="next_indate" property="nextIndate" />
|
|
|
+ <result column="is_delete" property="isDelete" />
|
|
|
+ <result column="creator_id" property="creatorId" />
|
|
|
+ <result column="division_code" property="divisionCode" />
|
|
|
+ <result column="suffix_code" property="suffixCode" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, name, tag_id, model_number, unit, address, factory, pic, service_life, next_indate, is_delete, creator_id
|
|
|
+ id, name, tag_id, model_number, unit, address, factory, pic, service_life, next_indate, is_delete, creator_id, division_code, suffix_code
|
|
|
</sql>
|
|
|
|
|
|
- <!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.GoodsVO">
|
|
|
<id column="id" property="id"/>
|
|
|
<result column="name" property="name"/>
|
|
@@ -51,6 +52,8 @@
|
|
|
<result column="pic" property="pic"/>
|
|
|
<result column="service_life" property="serviceLife"/>
|
|
|
<result column="next_indate" property="nextIndate"/>
|
|
|
+ <result column="divisioncode" property="divisionCode"/>
|
|
|
+ <result column="suffixcode" property="suffixCode"/>
|
|
|
<collection property="goodsNos" ofType="com.hssx.pcbms.entity.GoodsNo">
|
|
|
<id column="nid" property="id"/>
|
|
|
<result column="model_no" property="modelNo"/>
|
|
@@ -76,6 +79,8 @@
|
|
|
<result column="pic" property="pic"/>
|
|
|
<result column="service_life" property="serviceLife"/>
|
|
|
<result column="next_indate" property="nextIndate"/>
|
|
|
+ <result column="divisioncode" property="divisionCode"/>
|
|
|
+ <result column="suffixcode" property="suffixCode"/>
|
|
|
<collection property="goodsNosVO" ofType="com.hssx.pcbms.entity.vo.GoodsNoVO">
|
|
|
<id column="nid" property="id"/>
|
|
|
<result column="model_no" property="modelNo"/>
|
|
@@ -115,7 +120,7 @@
|
|
|
</select>
|
|
|
<select id="getDetail" resultMap="BaseResultMapDetail">
|
|
|
select
|
|
|
- g.id, g.name, g.tag_id, g.model_number, g.unit,g.address, g.factory, g.pic, g.service_life, g.next_indate,
|
|
|
+ g.id, g.name, g.tag_id, 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,
|
|
|
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
|
|
@@ -132,7 +137,7 @@
|
|
|
|
|
|
<select id="selectMyList" resultMap="BaseResultMapMyList">
|
|
|
select
|
|
|
- g.id, g.name, g.tag_id, g.model_number, g.unit,g.address, g.factory, g.pic, g.service_life, g.next_indate,
|
|
|
+ g.id, g.name, g.tag_id, 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,
|
|
|
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
|