|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.op.wms.mapper.BaseEquipmentMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="BaseEquipment" id="BaseEquipmentResult">
|
|
|
|
@ -26,14 +26,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<!-- <result property="unitWorkingHours" column="unit_working_hours" />-->
|
|
|
|
|
<result property="unitWorkingHours" column="unit_working_hours" />
|
|
|
|
|
<result property="workshopSection" column="workshop_section" />
|
|
|
|
|
<result property="equipmentLocation" column="equipment_location" />
|
|
|
|
|
<result property="hourlyUnitPrice" column="hourly_unit_price" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseEquipmentVo">
|
|
|
|
|
select equipment_id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, workshop_section, equipment_location, hourly_unit_price from base_equipment
|
|
|
|
|
select equipment_id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, workshop_section, equipment_location, hourly_unit_price,unit_working_hours from base_equipment
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseEquipmentList" parameterType="BaseEquipment" resultMap="BaseEquipmentResult">
|
|
|
|
@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
|
|
|
|
<if test="attr3 != null "> and attr3 = #{attr3}</if>
|
|
|
|
|
<if test="attr4 != null "> and attr4 = #{attr4}</if>
|
|
|
|
|
<!-- <if test="unitWorkingHours != null and unitWorkingHours != ''"> and unit_working_hours = #{unitWorkingHours}</if>-->
|
|
|
|
|
<if test="unitWorkingHours != null and unitWorkingHours != ''"> and unit_working_hours = #{unitWorkingHours}</if>
|
|
|
|
|
<if test="workshopSection != null and workshopSection != ''"> and workshop_section = #{workshopSection}</if>
|
|
|
|
|
<if test="equipmentLocation != null and equipmentLocation != ''"> and equipment_location = #{equipmentLocation}</if>
|
|
|
|
|
<if test="hourlyUnitPrice != null and hourlyUnitPrice != ''"> and hourly_unit_price = #{hourlyUnitPrice}</if>
|
|
|
|
@ -89,11 +89,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<!-- <if test="unitWorkingHours != null and unitWorkingHours != ''">unit_working_hours,</if>-->
|
|
|
|
|
<if test="unitWorkingHours != null and unitWorkingHours != ''">unit_working_hours,</if>
|
|
|
|
|
<if test="workshopSection != null and workshopSection != ''">workshop_section,</if>
|
|
|
|
|
<if test="equipmentLocation != null and equipmentLocation != ''">equipment_location,</if>
|
|
|
|
|
<if test="hourlyUnitPrice != null and hourlyUnitPrice != ''">hourly_unit_price,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">#{equipmentCode},</if>
|
|
|
|
|
<if test="equipmentName != null">#{equipmentName},</if>
|
|
|
|
@ -115,11 +115,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<!-- <if test="unitWorkingHours != null and unitWorkingHours != ''">#{unitWorkingHours},</if>-->
|
|
|
|
|
<if test="unitWorkingHours != null and unitWorkingHours != ''">#{unitWorkingHours},</if>
|
|
|
|
|
<if test="workshopSection != null and workshopSection != ''">#{workshopSection},</if>
|
|
|
|
|
<if test="equipmentLocation != null and equipmentLocation != ''">#{equipmentLocation},</if>
|
|
|
|
|
<if test="hourlyUnitPrice != null and hourlyUnitPrice != ''">#{hourlyUnitPrice},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateBaseEquipment" parameterType="BaseEquipment">
|
|
|
|
@ -145,7 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<!-- <if test="unitWorkingHours != null and unitWorkingHours != ''">unit_working_hours = #{unitWorkingHours},</if>-->
|
|
|
|
|
<!-- <if test="unitWorkingHours != null and unitWorkingHours != ''">unit_working_hours = #{unitWorkingHours},</if>-->
|
|
|
|
|
<if test="workshopSection != null and workshopSection != ''">workshop_section = #{workshopSection},</if>
|
|
|
|
|
<if test="equipmentLocation != null and equipmentLocation != ''">equipment_location = #{equipmentLocation},</if>
|
|
|
|
|
<if test="hourlyUnitPrice != null and hourlyUnitPrice != ''">hourly_unit_price = #{hourlyUnitPrice},</if>
|
|
|
|
|