|
|
|
@ -14,6 +14,9 @@
|
|
|
|
|
<result property="deviceStatus" column="device_status" />
|
|
|
|
|
<result property="usedDepartment" column="used_department" />
|
|
|
|
|
<result property="productLineCode" column="product_line_code" />
|
|
|
|
|
<result property="costCenter" column="cost_center" />
|
|
|
|
|
<result property="manufacturer" column="manufacturer" />
|
|
|
|
|
<result property="enableDate" column="enable_date" />
|
|
|
|
|
<result property="isFlag" column="is_flag" />
|
|
|
|
|
<result property="createdBy" column="created_by" />
|
|
|
|
|
<result property="createdTime" column="created_time" />
|
|
|
|
@ -22,7 +25,7 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseDeviceLedgerVo">
|
|
|
|
|
select obj_id, device_code, device_name, device_model, device_type, device_address, device_status, used_department, product_line_code, is_flag, created_by, created_time, updated_by, updated_time from base_deviceledger
|
|
|
|
|
select obj_id, device_code, device_name, device_model, device_type, device_address, device_status, used_department, cost_center, manufacturer, enable_date,product_line_code, is_flag, created_by, created_time, updated_by, updated_time from base_deviceledger
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseDeviceLedgerList" parameterType="BaseDeviceLedger" resultMap="BaseDeviceLedgerResult">
|
|
|
|
@ -64,6 +67,9 @@
|
|
|
|
|
<if test="deviceStatus != null">device_status,</if>
|
|
|
|
|
<if test="usedDepartment != null">used_department,</if>
|
|
|
|
|
<if test="productLineCode != null">product_line_code,</if>
|
|
|
|
|
<if test="costCenter != null">cost_center,</if>
|
|
|
|
|
<if test="manufacturer != null">manufacturer,</if>
|
|
|
|
|
<if test="enableDate != null">enable_date,</if>
|
|
|
|
|
<if test="isFlag != null">is_flag,</if>
|
|
|
|
|
<if test="createdBy != null">created_by,</if>
|
|
|
|
|
<if test="createdTime != null">created_time,</if>
|
|
|
|
@ -80,6 +86,9 @@
|
|
|
|
|
<if test="deviceStatus != null">#{deviceStatus},</if>
|
|
|
|
|
<if test="usedDepartment != null">#{usedDepartment},</if>
|
|
|
|
|
<if test="productLineCode != null">#{productLineCode},</if>
|
|
|
|
|
<if test="costCenter != null">cost_center,</if>
|
|
|
|
|
<if test="manufacturer != null">manufacturer,</if>
|
|
|
|
|
<if test="enableDate != null">enable_date,</if>
|
|
|
|
|
<if test="isFlag != null">#{isFlag},</if>
|
|
|
|
|
<if test="createdBy != null">#{createdBy},</if>
|
|
|
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
|
|
@ -98,6 +107,9 @@
|
|
|
|
|
<if test="deviceAddress != null">device_address = #{deviceAddress},</if>
|
|
|
|
|
<if test="deviceStatus != null">device_status = #{deviceStatus},</if>
|
|
|
|
|
<if test="usedDepartment != null">used_department = #{usedDepartment},</if>
|
|
|
|
|
<if test="costCenter != null">#{costCenter},</if>
|
|
|
|
|
<if test="manufacturer != null">#{manufacturer},</if>
|
|
|
|
|
<if test="enableDate != null">#{enableDate},</if>
|
|
|
|
|
<if test="productLineCode != null">product_line_code = #{productLineCode},</if>
|
|
|
|
|
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
|
|
|
|
<if test="createdBy != null">created_by = #{createdBy},</if>
|
|
|
|
|