|
@@ -44,8 +44,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="isWhitelist" column="is_whitelist" />
|
|
|
- <result property="reservedColumnB" column="reserved_column_b" />
|
|
|
- <result property="reservedColumnC" column="reserved_column_c" />
|
|
|
+ <result property="quantity" column="quantity" />
|
|
|
+ <result property="units" column="units" />
|
|
|
<result property="reservedColumnD" column="reserved_column_d" />
|
|
|
<result property="reservedColumnE" column="reserved_column_e" />
|
|
|
<result property="reservedColumnF" column="reserved_column_f" />
|
|
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTbAssetInformationVo">
|
|
|
- select id, code, name, number, image_url, category_number, specifications_model, abc_category, manage_status, user_department, department, responsible_person, location_number, property, purchase_date, commissioning_date, original_value, durable_years, net_value, residual_value, accumulated_depreciation, last_depreciation_date, depreciation_method, contract_number, factory_number, manufacturer, supplier, purpose, maintenance_date, maintenance_tel, maintenance_user, corporation, record_status, remark, create_by, create_time, update_by, update_time, is_whitelist, reserved_column_b, reserved_column_c, reserved_column_d, reserved_column_e, reserved_column_f, reserved_column_g, reserved_column_h, reserved_column_i, reserved_column_j from tb_asset_information
|
|
|
+ select id, code, name, number, image_url, category_number, specifications_model, abc_category, manage_status, user_department, department, responsible_person, location_number, property, purchase_date, commissioning_date, original_value, durable_years, net_value, residual_value, accumulated_depreciation, last_depreciation_date, depreciation_method, contract_number, factory_number, manufacturer, supplier, purpose, maintenance_date, maintenance_tel, maintenance_user, corporation, record_status, remark, create_by, create_time, update_by, update_time, is_whitelist, quantity, units, reserved_column_d, reserved_column_e, reserved_column_f, reserved_column_g, reserved_column_h, reserved_column_i, reserved_column_j from tb_asset_information
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectInfoList" parameterType="TbAssetInformation" resultType="TbAssetInformation">
|
|
@@ -98,7 +98,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.create_time createTime,
|
|
|
a.update_by updateBy,
|
|
|
a.update_time updateTime,
|
|
|
- a.is_whitelist isWhitelist
|
|
|
+ a.is_whitelist isWhitelist,
|
|
|
+ a.quantity,
|
|
|
+ a.units
|
|
|
from tb_asset_information a
|
|
|
left join tb_asset_category e on a.category_number = e.number
|
|
|
left join sys_dept b on a.user_department = b.dept_id
|
|
@@ -151,8 +153,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="corporation != null and corporation != ''"> and corporation = #{corporation}</if>
|
|
|
<if test="recordStatus != null "> and record_status = #{recordStatus}</if>
|
|
|
<if test="isWhitelist != null and isWhitelist != ''"> and is_whitelist = #{isWhitelist}</if>
|
|
|
- <if test="reservedColumnB != null and reservedColumnB != ''"> and reserved_column_b = #{reservedColumnB}</if>
|
|
|
- <if test="reservedColumnC != null and reservedColumnC != ''"> and reserved_column_c = #{reservedColumnC}</if>
|
|
|
+ <if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
|
|
|
+ <if test="units != null and units != ''"> and units = #{units}</if>
|
|
|
<if test="reservedColumnD != null and reservedColumnD != ''"> and reserved_column_d = #{reservedColumnD}</if>
|
|
|
<if test="reservedColumnE != null and reservedColumnE != ''"> and reserved_column_e = #{reservedColumnE}</if>
|
|
|
<if test="reservedColumnF != null and reservedColumnF != ''"> and reserved_column_f = #{reservedColumnF}</if>
|
|
@@ -222,8 +224,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="isWhitelist != null">is_whitelist,</if>
|
|
|
- <if test="reservedColumnB != null">reserved_column_b,</if>
|
|
|
- <if test="reservedColumnC != null">reserved_column_c,</if>
|
|
|
+ <if test="quantity != null">quantity,</if>
|
|
|
+ <if test="units != null">units,</if>
|
|
|
<if test="reservedColumnD != null">reserved_column_d,</if>
|
|
|
<if test="reservedColumnE != null">reserved_column_e,</if>
|
|
|
<if test="reservedColumnF != null">reserved_column_f,</if>
|
|
@@ -271,8 +273,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="isWhitelist != null">#{isWhitelist},</if>
|
|
|
- <if test="reservedColumnB != null">#{reservedColumnB},</if>
|
|
|
- <if test="reservedColumnC != null">#{reservedColumnC},</if>
|
|
|
+ <if test="quantity != null">#{quantity},</if>
|
|
|
+ <if test="units != null">#{units},</if>
|
|
|
<if test="reservedColumnD != null">#{reservedColumnD},</if>
|
|
|
<if test="reservedColumnE != null">#{reservedColumnE},</if>
|
|
|
<if test="reservedColumnF != null">#{reservedColumnF},</if>
|
|
@@ -324,8 +326,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="isWhitelist != null">is_whitelist = #{isWhitelist},</if>
|
|
|
- <if test="reservedColumnB != null">reserved_column_b = #{reservedColumnB},</if>
|
|
|
- <if test="reservedColumnC != null">reserved_column_c = #{reservedColumnC},</if>
|
|
|
+ <if test="quantity != null">quantity = #{quantity},</if>
|
|
|
+ <if test="units != null">units = #{units},</if>
|
|
|
<if test="reservedColumnD != null">reserved_column_d = #{reservedColumnD},</if>
|
|
|
<if test="reservedColumnE != null">reserved_column_e = #{reservedColumnE},</if>
|
|
|
<if test="reservedColumnF != null">reserved_column_f = #{reservedColumnF},</if>
|