|
@@ -0,0 +1,68 @@
|
|
|
+<?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.github.zuihou.business.operationManagementCenter.dao.TaskLoadUnloadBizMapper">
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
+ <resultMap id="BaseResultMap" type="com.github.zuihou.business.operationManagementCenter.entity.TTask">
|
|
|
+ <id column="id" jdbcType="BIGINT" property="id"/>
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
+ <result column="update_user" jdbcType="VARCHAR" property="updateUser"/>
|
|
|
+ <result column="order_id" jdbcType="BIGINT" property="orderId"/>
|
|
|
+ <result column="order_no" jdbcType="VARCHAR" property="orderNo"/>
|
|
|
+ <result column="plan_id" jdbcType="BIGINT" property="planId"/>
|
|
|
+ <result column="plan_no" jdbcType="VARCHAR" property="planNo"/>
|
|
|
+ <result column="resource_id" jdbcType="BIGINT" property="resourceId"/>
|
|
|
+ <result column="procedure_id" jdbcType="BIGINT" property="procedureId"/>
|
|
|
+ <result column="procedure_name" jdbcType="BIGINT" property="procedureName"/>
|
|
|
+ <result column="task_no" jdbcType="VARCHAR" property="taskNo"/>
|
|
|
+ <result column="status" jdbcType="VARCHAR" property="status"/>
|
|
|
+ <result column="expect_start_time" jdbcType="TIMESTAMP" property="expectStartTime"/>
|
|
|
+ <result column="expect_end_time" jdbcType="TIMESTAMP" property="expectEndTime"/>
|
|
|
+ <result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
|
|
|
+ <result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>
|
|
|
+ <result column="create_user" jdbcType="VARCHAR" property="createUser"/>
|
|
|
+ <result column="prority" jdbcType="INTEGER" property="prority"/>
|
|
|
+ <result column="draft_flag" jdbcType="VARCHAR" property="draftFlag"/>
|
|
|
+ <result column="executor_id" jdbcType="BIGINT" property="executorId"/>
|
|
|
+ <result column="executor_type" jdbcType="VARCHAR" property="executorType"/>
|
|
|
+ <result column="executor_name" jdbcType="BIGINT" property="executorName"/>
|
|
|
+ <result column="procedure_meterial_id" jdbcType="BIGINT" property="procedureMeterialId"/>
|
|
|
+ <result column="procedure_tray_group_id" jdbcType="BIGINT" property="procedureTrayGroupId"/>
|
|
|
+ <result column="procedure_program_id" jdbcType="BIGINT" property="procedureProgramId"/>
|
|
|
+ <result column="task_batch_no" jdbcType="VARCHAR" property="taskBatchNo"/>
|
|
|
+ <result column="bom_batch_no" jdbcType="VARCHAR" property="bomBatchNo"/>
|
|
|
+ <result column="procedure_no" jdbcType="VARCHAR" property="procedureNo"/>
|
|
|
+ <result column="process" jdbcType="FLOAT" property="process"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!-- 通用查询结果列 -->
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <!-- 分页 -->
|
|
|
+ <select id="pageList" resultType="com.github.zuihou.business.operationManagementCenter.entity.TTask">
|
|
|
+ select
|
|
|
+ *,(activeTime - ratedWorkHours) AS overTime
|
|
|
+ from (
|
|
|
+ SELECT
|
|
|
+ itt.id,
|
|
|
+ ibb.name,
|
|
|
+ itt.procedure_no,
|
|
|
+ itt.procedure_name,
|
|
|
+ ibbp.rated_workHours AS ratedWorkHours,
|
|
|
+ TIMESTAMPDIFF(MINUTE, itt.start_time, itt.end_time) AS activeTime,
|
|
|
+ itt.start_time,
|
|
|
+ itt.end_time,
|
|
|
+ itt.status,
|
|
|
+ itt.update_user
|
|
|
+ FROM imcs_t_task itt,
|
|
|
+ imcs_b_bom_procedure ibbp,
|
|
|
+ imcs_b_bom ibb
|
|
|
+ WHERE 1=1
|
|
|
+ AND itt.status = '3'
|
|
|
+ AND itt.procedure_id = ibbp.id
|
|
|
+ AND itt.bom_id = ibb.id) s ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|