|
@@ -14,8 +14,13 @@
|
|
|
<result column="pic" property="pic" />
|
|
<result column="pic" property="pic" />
|
|
|
<result column="service_life" property="serviceLife" />
|
|
<result column="service_life" property="serviceLife" />
|
|
|
<result column="next_indate" property="nextIndate" />
|
|
<result column="next_indate" property="nextIndate" />
|
|
|
|
|
+ <result column="is_delete" property="isDelete" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
+ <!-- 通用查询结果列 -->
|
|
|
|
|
+ <sql id="Base_Column_List">
|
|
|
|
|
+ id, name, tag_id, model_number, company, address, factory, pic, service_life, next_indate, is_delete
|
|
|
|
|
+ </sql>
|
|
|
<!-- 通用查询映射结果 -->
|
|
<!-- 通用查询映射结果 -->
|
|
|
<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" />
|
|
@@ -32,19 +37,15 @@
|
|
|
</collection>
|
|
</collection>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
- <!-- 通用查询结果列 -->
|
|
|
|
|
- <sql id="Base_Column_List">
|
|
|
|
|
- id, name, tag_id, model_number, company, address, factory, pic, service_life, next_indate
|
|
|
|
|
- </sql>
|
|
|
|
|
-
|
|
|
|
|
<select id="getListBycondition" resultMap="BaseResultMapVO">
|
|
<select id="getListBycondition" resultMap="BaseResultMapVO">
|
|
|
select
|
|
select
|
|
|
id, name, tag_id, model_number, company, address, factory, pic, service_life, next_indate
|
|
id, name, tag_id, model_number, company, address, factory, pic, service_life, next_indate
|
|
|
from
|
|
from
|
|
|
goods
|
|
goods
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ is_delete = 0
|
|
|
<if test="keyName != null and keyName != ''">
|
|
<if test="keyName != null and keyName != ''">
|
|
|
- and name like concat('%',#{keyName},'%')
|
|
|
|
|
|
|
+ and name like concat('%',#{keyName},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="tagId != null">
|
|
<if test="tagId != null">
|
|
|
and tag_id = #{tagId}
|
|
and tag_id = #{tagId}
|
|
@@ -54,9 +55,9 @@
|
|
|
<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
|
|
id, model_no, state, indate, goods_id
|
|
|
- from
|
|
|
|
|
|
|
+ from
|
|
|
goods_no
|
|
goods_no
|
|
|
- where
|
|
|
|
|
|
|
+ where
|
|
|
goods_id = #{goodId}
|
|
goods_id = #{goodId}
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|