You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
218 lines
13 KiB
XML
218 lines
13 KiB
XML
<?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">
|
|
<mapper namespace="com.hw.mes.mapper.WcsTaskMapper">
|
|
|
|
<resultMap type="WcsTask" id="WcsTaskResult">
|
|
<result property="objid" column="objid" />
|
|
<result property="masterId" column="master_id" />
|
|
<result property="orderId" column="order_id" />
|
|
<result property="serialNo" column="serial_no" />
|
|
<result property="equipmentNo" column="equipment_no" />
|
|
<result property="containerNo" column="container_no" />
|
|
<result property="taskType" column="task_type" />
|
|
<result property="taskStatus" column="task_status" />
|
|
<result property="materialId" column="material_id" />
|
|
<result property="materialNo" column="material_no" />
|
|
<result property="qty" column="qty" />
|
|
<result property="startPointNo" column="start_point_no" />
|
|
<result property="startPointId" column="start_point_id" />
|
|
<result property="currPointNo" column="curr_point_no" />
|
|
<result property="currPointId" column="curr_point_id" />
|
|
<result property="nextPointId" column="next_point_id" />
|
|
<result property="nextPointNo" column="next_point_no" />
|
|
<result property="endPointNo" column="end_point_no" />
|
|
<result property="endPointId" column="end_point_id" />
|
|
<result property="floorNo" column="floor_no" />
|
|
<result property="useFlag" column="use_flag" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="ud1" column="ud1" />
|
|
<result property="ud2" column="ud2" />
|
|
<result property="ud3" column="ud3" />
|
|
<result property="remark" column="remark" />
|
|
<result property="fromFloorNo" column="from_floor_no" />
|
|
<result property="isEmpty" column="is_empty" />
|
|
<result property="ctuExecute" column="ctu_execute" />
|
|
<result property="taskCode" column="taskCode" />
|
|
<result property="isDelete" column="is_delete" />
|
|
<result property="isStop" column="is_stop" />
|
|
</resultMap>
|
|
|
|
<sql id="selectWcsTaskVo">
|
|
select objid, master_id, order_id, serial_no, equipment_no, container_no, task_type, task_status, material_id, material_no, qty, start_point_no, start_point_id, curr_point_no, curr_point_id, next_point_id, next_point_no, end_point_no, end_point_id, floor_no, use_flag, create_by, create_time, update_by, update_time, ud1, ud2, ud3, remark, from_floor_no, is_empty, ctu_execute, taskCode, is_delete, is_stop from wcs_task
|
|
</sql>
|
|
|
|
<select id="selectWcsTaskList" parameterType="WcsTask" resultMap="WcsTaskResult">
|
|
<include refid="selectWcsTaskVo"/>
|
|
<where>
|
|
<if test="masterId != null "> and master_id = #{masterId}</if>
|
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
|
<if test="serialNo != null "> and serial_no = #{serialNo}</if>
|
|
<if test="equipmentNo != null and equipmentNo != ''"> and equipment_no = #{equipmentNo}</if>
|
|
<if test="containerNo != null and containerNo != ''"> and container_no = #{containerNo}</if>
|
|
<if test="taskType != null "> and task_type = #{taskType}</if>
|
|
<if test="taskStatus != null "> and task_status = #{taskStatus}</if>
|
|
<if test="materialId != null "> and material_id = #{materialId}</if>
|
|
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if>
|
|
<if test="qty != null "> and qty = #{qty}</if>
|
|
<if test="startPointNo != null and startPointNo != ''"> and start_point_no = #{startPointNo}</if>
|
|
<if test="startPointId != null "> and start_point_id = #{startPointId}</if>
|
|
<if test="currPointNo != null and currPointNo != ''"> and curr_point_no = #{currPointNo}</if>
|
|
<if test="currPointId != null "> and curr_point_id = #{currPointId}</if>
|
|
<if test="nextPointId != null "> and next_point_id = #{nextPointId}</if>
|
|
<if test="nextPointNo != null and nextPointNo != ''"> and next_point_no = #{nextPointNo}</if>
|
|
<if test="endPointNo != null and endPointNo != ''"> and end_point_no = #{endPointNo}</if>
|
|
<if test="endPointId != null "> and end_point_id = #{endPointId}</if>
|
|
<if test="floorNo != null "> and floor_no = #{floorNo}</if>
|
|
<if test="useFlag != null "> and use_flag = #{useFlag}</if>
|
|
<if test="ud1 != null "> and ud1 = #{ud1}</if>
|
|
<if test="ud2 != null and ud2 != ''"> and ud2 = #{ud2}</if>
|
|
<if test="ud3 != null and ud3 != ''"> and ud3 = #{ud3}</if>
|
|
<if test="fromFloorNo != null "> and from_floor_no = #{fromFloorNo}</if>
|
|
<if test="isEmpty != null and isEmpty != ''"> and is_empty = #{isEmpty}</if>
|
|
<if test="ctuExecute != null and ctuExecute != ''"> and ctu_execute = #{ctuExecute}</if>
|
|
<if test="taskCode != null and taskCode != ''"> and taskCode = #{taskCode}</if>
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
|
<if test="isStop != null "> and is_stop = #{isStop}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectWcsTaskByObjid" parameterType="Long" resultMap="WcsTaskResult">
|
|
<include refid="selectWcsTaskVo"/>
|
|
where objid = #{objid}
|
|
</select>
|
|
|
|
<insert id="insertWcsTask" parameterType="WcsTask">
|
|
insert into wcs_task
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="objid != null">objid,</if>
|
|
<if test="masterId != null">master_id,</if>
|
|
<if test="orderId != null">order_id,</if>
|
|
<if test="serialNo != null">serial_no,</if>
|
|
<if test="equipmentNo != null">equipment_no,</if>
|
|
<if test="containerNo != null">container_no,</if>
|
|
<if test="taskType != null">task_type,</if>
|
|
<if test="taskStatus != null">task_status,</if>
|
|
<if test="materialId != null">material_id,</if>
|
|
<if test="materialNo != null">material_no,</if>
|
|
<if test="qty != null">qty,</if>
|
|
<if test="startPointNo != null">start_point_no,</if>
|
|
<if test="startPointId != null">start_point_id,</if>
|
|
<if test="currPointNo != null">curr_point_no,</if>
|
|
<if test="currPointId != null">curr_point_id,</if>
|
|
<if test="nextPointId != null">next_point_id,</if>
|
|
<if test="nextPointNo != null">next_point_no,</if>
|
|
<if test="endPointNo != null">end_point_no,</if>
|
|
<if test="endPointId != null">end_point_id,</if>
|
|
<if test="floorNo != null">floor_no,</if>
|
|
<if test="useFlag != null">use_flag,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="ud1 != null">ud1,</if>
|
|
<if test="ud2 != null">ud2,</if>
|
|
<if test="ud3 != null">ud3,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="fromFloorNo != null">from_floor_no,</if>
|
|
<if test="isEmpty != null">is_empty,</if>
|
|
<if test="ctuExecute != null">ctu_execute,</if>
|
|
<if test="taskCode != null">taskCode,</if>
|
|
<if test="isDelete != null">is_delete,</if>
|
|
<if test="isStop != null">is_stop,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="objid != null">#{objid},</if>
|
|
<if test="masterId != null">#{masterId},</if>
|
|
<if test="orderId != null">#{orderId},</if>
|
|
<if test="serialNo != null">#{serialNo},</if>
|
|
<if test="equipmentNo != null">#{equipmentNo},</if>
|
|
<if test="containerNo != null">#{containerNo},</if>
|
|
<if test="taskType != null">#{taskType},</if>
|
|
<if test="taskStatus != null">#{taskStatus},</if>
|
|
<if test="materialId != null">#{materialId},</if>
|
|
<if test="materialNo != null">#{materialNo},</if>
|
|
<if test="qty != null">#{qty},</if>
|
|
<if test="startPointNo != null">#{startPointNo},</if>
|
|
<if test="startPointId != null">#{startPointId},</if>
|
|
<if test="currPointNo != null">#{currPointNo},</if>
|
|
<if test="currPointId != null">#{currPointId},</if>
|
|
<if test="nextPointId != null">#{nextPointId},</if>
|
|
<if test="nextPointNo != null">#{nextPointNo},</if>
|
|
<if test="endPointNo != null">#{endPointNo},</if>
|
|
<if test="endPointId != null">#{endPointId},</if>
|
|
<if test="floorNo != null">#{floorNo},</if>
|
|
<if test="useFlag != null">#{useFlag},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="ud1 != null">#{ud1},</if>
|
|
<if test="ud2 != null">#{ud2},</if>
|
|
<if test="ud3 != null">#{ud3},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="fromFloorNo != null">#{fromFloorNo},</if>
|
|
<if test="isEmpty != null">#{isEmpty},</if>
|
|
<if test="ctuExecute != null">#{ctuExecute},</if>
|
|
<if test="taskCode != null">#{taskCode},</if>
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
<if test="isStop != null">#{isStop},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateWcsTask" parameterType="WcsTask">
|
|
update wcs_task
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="masterId != null">master_id = #{masterId},</if>
|
|
<if test="orderId != null">order_id = #{orderId},</if>
|
|
<if test="serialNo != null">serial_no = #{serialNo},</if>
|
|
<if test="equipmentNo != null">equipment_no = #{equipmentNo},</if>
|
|
<if test="containerNo != null">container_no = #{containerNo},</if>
|
|
<if test="taskType != null">task_type = #{taskType},</if>
|
|
<if test="taskStatus != null">task_status = #{taskStatus},</if>
|
|
<if test="materialId != null">material_id = #{materialId},</if>
|
|
<if test="materialNo != null">material_no = #{materialNo},</if>
|
|
<if test="qty != null">qty = #{qty},</if>
|
|
<if test="startPointNo != null">start_point_no = #{startPointNo},</if>
|
|
<if test="startPointId != null">start_point_id = #{startPointId},</if>
|
|
<if test="currPointNo != null">curr_point_no = #{currPointNo},</if>
|
|
<if test="currPointId != null">curr_point_id = #{currPointId},</if>
|
|
<if test="nextPointId != null">next_point_id = #{nextPointId},</if>
|
|
<if test="nextPointNo != null">next_point_no = #{nextPointNo},</if>
|
|
<if test="endPointNo != null">end_point_no = #{endPointNo},</if>
|
|
<if test="endPointId != null">end_point_id = #{endPointId},</if>
|
|
<if test="floorNo != null">floor_no = #{floorNo},</if>
|
|
<if test="useFlag != null">use_flag = #{useFlag},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<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="ud1 != null">ud1 = #{ud1},</if>
|
|
<if test="ud2 != null">ud2 = #{ud2},</if>
|
|
<if test="ud3 != null">ud3 = #{ud3},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="fromFloorNo != null">from_floor_no = #{fromFloorNo},</if>
|
|
<if test="isEmpty != null">is_empty = #{isEmpty},</if>
|
|
<if test="ctuExecute != null">ctu_execute = #{ctuExecute},</if>
|
|
<if test="taskCode != null">taskCode = #{taskCode},</if>
|
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
|
<if test="isStop != null">is_stop = #{isStop},</if>
|
|
</trim>
|
|
where objid = #{objid}
|
|
</update>
|
|
|
|
<delete id="deleteWcsTaskByObjid" parameterType="Long">
|
|
delete from wcs_task where objid = #{objid}
|
|
</delete>
|
|
|
|
<delete id="deleteWcsTaskByObjids" parameterType="String">
|
|
delete from wcs_task where objid in
|
|
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
|
#{objid}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |