|
@@ -0,0 +1,59 @@
|
|
|
+<?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.TaskBizMapper">
|
|
|
+
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
+ <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,create_time,update_time,update_user,
|
|
|
+ order_id,order_no, plan_id,plan_no, resource_id, procedure_id,procedure_name, task_no, status, expect_start_time, expect_end_time, start_time, end_time,orderName,
|
|
|
+ prority, draft_flag, executor_id, executor_type, executor_name,procedure_meterial_id, procedure_tray_group_id, procedure_program_id, task_batch_no,process,bom_batch_no,
|
|
|
+ overtimeStatus,bomDesc,procedure_no,planTime,ratedWorkHours,actualTime,resourceDesc,content,prepareWorkHours,bomNo,procedureDesc,ip,port,resourceName
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <!-- 分页 -->
|
|
|
+ <select id="pageList" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from (
|
|
|
+ select a.*,(select itp.name as resourceName from imcs_tenant_productionresource itp where itp.id= a.resource_id )
|
|
|
+ from imcs_t_task a
|
|
|
+ where 1=1
|
|
|
+ and a.complete_batch_no = #{completeBatchNo}
|
|
|
+ )
|
|
|
+ s ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
+</mapper>
|