|
|
|
@@ -23,13 +23,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="warehouseId" column="warehouse_id" />
|
|
|
|
<result property="warehouseId" column="warehouse_id" />
|
|
|
|
<result property="faultFlag" column="fault_flag" />
|
|
|
|
<result property="faultFlag" column="fault_flag" />
|
|
|
|
<result property="theFloor" column="the_floor" />
|
|
|
|
<result property="theFloor" column="the_floor" />
|
|
|
|
|
|
|
|
<result property="productId" column="product_id" />
|
|
|
|
|
|
|
|
<result property="productName" column="product_name" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectMydoJobVo">
|
|
|
|
<sql id="selectMydoJobVo">
|
|
|
|
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor from mydo_job_wcs
|
|
|
|
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor,product_id,product_name from mydo_job_wcs
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="selectMydoJobFinishVo">
|
|
|
|
<sql id="selectMydoJobFinishVo">
|
|
|
|
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor from mydo_job_wcs_finish
|
|
|
|
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor,product_id,product_name from mydo_job_wcs_finish
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMydoJobList" parameterType="MydoJob" resultMap="MydoJobResult">
|
|
|
|
<select id="selectMydoJobList" parameterType="MydoJob" resultMap="MydoJobResult">
|
|
|
|
@@ -51,7 +53,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
|
|
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
|
|
|
|
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
|
|
|
|
|
|
|
|
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -82,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectMydoJobByExitList" resultMap="MydoJobResult">
|
|
|
|
<select id="selectMydoJobByExitList" resultMap="MydoJobResult">
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor from mydo_job_wcs
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor,product_id,product_name from mydo_job_wcs
|
|
|
|
where exit_id in
|
|
|
|
where exit_id in
|
|
|
|
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
|
|
|
|
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
@@ -113,6 +116,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
|
|
<if test="faultFlag != null">fault_flag,</if>
|
|
|
|
<if test="faultFlag != null">fault_flag,</if>
|
|
|
|
<if test="theFloor != null">the_floor,</if>
|
|
|
|
<if test="theFloor != null">the_floor,</if>
|
|
|
|
|
|
|
|
<if test="productId != null">product_id,</if>
|
|
|
|
|
|
|
|
<if test="productName != null">product_name,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="jobId != null">#{jobId},</if>
|
|
|
|
<if test="jobId != null">#{jobId},</if>
|
|
|
|
@@ -133,6 +138,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
|
|
<if test="faultFlag != null">#{faultFlag},</if>
|
|
|
|
<if test="faultFlag != null">#{faultFlag},</if>
|
|
|
|
<if test="theFloor != null">#{theFloor},</if>
|
|
|
|
<if test="theFloor != null">#{theFloor},</if>
|
|
|
|
|
|
|
|
<if test="productId != null">#{productId},</if>
|
|
|
|
|
|
|
|
<if test="productName != null">#{productName},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertHistory">
|
|
|
|
<insert id="insertHistory">
|
|
|
|
@@ -160,6 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
|
|
<if test="faultFlag != null">fault_flag = #{faultFlag},</if>
|
|
|
|
<if test="faultFlag != null">fault_flag = #{faultFlag},</if>
|
|
|
|
<if test="theFloor != null">the_floor = #{theFloor},</if>
|
|
|
|
<if test="theFloor != null">the_floor = #{theFloor},</if>
|
|
|
|
|
|
|
|
<if test="productId != null">product_id = #{productId},</if>
|
|
|
|
|
|
|
|
<if test="productName != null">product_name = #{productName},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where job_id = #{jobId}
|
|
|
|
where job_id = #{jobId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
@@ -197,10 +206,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
|
|
|
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
|
|
|
|
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
|
|
|
|
|
|
|
|
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectMydoJobByEntranceList" resultMap="MydoJobResult">
|
|
|
|
<select id="selectMydoJobByEntranceList" resultMap="MydoJobResult">
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor from mydo_job_wcs
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor,product_id,product_name from mydo_job_wcs
|
|
|
|
where entrance_id in
|
|
|
|
where entrance_id in
|
|
|
|
<foreach item="item" index="index" collection="entranceList" separator="," open="(" close=")">
|
|
|
|
<foreach item="item" index="index" collection="entranceList" separator="," open="(" close=")">
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
@@ -227,10 +238,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
|
|
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
<if test="theFloor != null and theFloor != ''"> and the_floor = #{theFloor}</if>
|
|
|
|
|
|
|
|
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
|
|
|
|
|
|
|
|
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectRunningMydoJobByExitList" resultMap="MydoJobResult">
|
|
|
|
<select id="selectRunningMydoJobByExitList" resultMap="MydoJobResult">
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor from mydo_job_wcs
|
|
|
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,the_floor,product_id,product_name from mydo_job_wcs
|
|
|
|
where exit_id in
|
|
|
|
where exit_id in
|
|
|
|
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
|
|
|
|
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
|