|
@@ -9,6 +9,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="barCode" column="bar_code" />
|
|
|
<result property="number" column="number" />
|
|
|
<result property="name" column="name" />
|
|
|
+ <result property="introduce" column="introduce" />
|
|
|
+ <result property="img" column="img" />
|
|
|
<result property="kind" column="kind" />
|
|
|
<result property="categoryNumber" column="category_number" />
|
|
|
<result property="amount" column="amount" />
|
|
@@ -28,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTbAssetVo">
|
|
|
- select id, bar_code, number, name, kind, category_number, amount, quantity, quantity_unit, build_date, place_name, purpose, dept_id, registrant, specifications_model, remark, manufacturer, brand, supplier, status from tb_asset
|
|
|
+ select id, bar_code, number, name, introduce, img, kind, category_number, amount, quantity, quantity_unit, build_date, place_name, purpose, dept_id, registrant, specifications_model, remark, manufacturer, brand, supplier, status from tb_asset
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTbAssetList" parameterType="TbAsset" resultMap="TbAssetResult">
|
|
@@ -63,6 +65,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="barCode != null and barCode != ''">bar_code,</if>
|
|
|
<if test="number != null and number != ''">number,</if>
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
+ <if test="introduce != null and introduce != ''">introduce,</if>
|
|
|
+ <if test="img != null and img != ''">img,</if>
|
|
|
<if test="kind != null and kind != ''">kind,</if>
|
|
|
<if test="categoryNumber != null and categoryNumber != ''">category_number,</if>
|
|
|
<if test="amount != null">amount,</if>
|
|
@@ -84,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="barCode != null and barCode != ''">#{barCode},</if>
|
|
|
<if test="number != null and number != ''">#{number},</if>
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
+ <if test="introduce != null and introduce != ''">#{introduce},</if>
|
|
|
+ <if test="img != null and img != ''">#{img},</if>
|
|
|
<if test="kind != null and kind != ''">#{kind},</if>
|
|
|
<if test="categoryNumber != null and categoryNumber != ''">#{categoryNumber},</if>
|
|
|
<if test="amount != null">#{amount},</if>
|
|
@@ -109,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="barCode != null and barCode != ''">bar_code = #{barCode},</if>
|
|
|
<if test="number != null and number != ''">number = #{number},</if>
|
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
+ <if test="introduce != null and introduce != ''">introduce = #{introduce},</if>
|
|
|
+ <if test="img != null and img != ''">img= #{img},</if>
|
|
|
<if test="kind != null and kind != ''">kind = #{kind},</if>
|
|
|
<if test="categoryNumber != null and categoryNumber != ''">category_number = #{categoryNumber},</if>
|
|
|
<if test="amount != null">amount = #{amount},</if>
|
|
@@ -146,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="barCode != null and barCode != ''">bar_code,</if>
|
|
|
<if test="number != null and number != ''">number,</if>
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
+ <if test="introduce != null and introduce != ''">introduce,</if>
|
|
|
<if test="kind != null and kind != ''">kind,</if>
|
|
|
<if test="categoryNumber != null and categoryNumber != ''">category_number,</if>
|
|
|
<if test="amount != null">amount,</if>
|
|
@@ -167,6 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="barCode != null and barCode != ''">#{barCode},</if>
|
|
|
<if test="number != null and number != ''">#{number},</if>
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
+ <if test="introduce != null and introduce != ''">#{introduce},</if>
|
|
|
<if test="kind != null and kind != ''">#{kind},</if>
|
|
|
<if test="categoryNumber != null and categoryNumber != ''">#{categoryNumber},</if>
|
|
|
<if test="amount != null">#{amount},</if>
|