|
@@ -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" >
|
|
|
<mapper namespace="com.huaxu.order.dao.WorkOrderManageMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.huaxu.order.entity.WorkOrderManage" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.huaxu.order.dto.WorkOrderManageDto" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="task_no" property="taskNo" jdbcType="VARCHAR" />
|
|
|
<result column="task_desc" property="taskDesc" jdbcType="VARCHAR" />
|
|
@@ -33,6 +33,7 @@
|
|
|
<result column="update_by" property="updateBy" jdbcType="VARCHAR" />
|
|
|
<result column="date_update" property="dateUpdate" jdbcType="TIMESTAMP" />
|
|
|
<result column="geo" property="geo" jdbcType="VARCHAR" />
|
|
|
+ <result column="flow_detail" property="flowDetail" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, task_no, task_desc, order_user_id, send_time, send_by, plan_finish_date, finish_date,
|
|
@@ -424,4 +425,10 @@
|
|
|
and tenant_id = #{tenantId}
|
|
|
order by send_time
|
|
|
</select>
|
|
|
+ <select id="selectOrderDetail" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select t1.*,t2.flow_detail
|
|
|
+ from sc_work_order_manage t1
|
|
|
+ left join sc_work_flow_detail t2 on t1.id=t2.flow_id and t2.flow_type=2
|
|
|
+ where t1.id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
</mapper>
|