|
|
@@ -5,49 +5,59 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<mapper namespace="com.ygtx.gxt.mapper.source.GxtMisInfoMapper">
|
|
|
|
|
|
<resultMap type="com.ygtx.gxt.domain.GxtMisInfo" id="GxtMisInfoResult">
|
|
|
- <result property="misNo" column="work_order_project_no" />
|
|
|
+<!-- <result property="misNo" column="work_order_project_no" />-->
|
|
|
+<!-- <result property="workOrderStatus" column="work_order_status" />-->
|
|
|
+<!-- <result property="pcsStationName" column="pcs_stati_name" />-->
|
|
|
+<!-- <result property="planStartTime" column="plan_start_time" />-->
|
|
|
+<!-- <result property="planEndTime" column="plan_end_time" />-->
|
|
|
+<!-- <result property="realStartTime" column="real_start_time" />-->
|
|
|
+<!-- <result property="realEndTime" column="real_end_time" />-->
|
|
|
+<!-- <result property="content" column="work_content" />-->
|
|
|
+<!-- <result property="issuerName" column="issuer_name" />-->
|
|
|
+<!-- <result property="permitterName" column="permitter_name" />-->
|
|
|
+<!-- <result property="createTime" column="create_time" />-->
|
|
|
+<!-- <result property="updateTime" column="update_time" />-->
|
|
|
+<!-- <result property="remark" column="remark" />-->
|
|
|
+ <result property="misNo" column="work_order_project_code" />
|
|
|
<result property="workOrderStatus" column="work_order_status" />
|
|
|
<result property="pcsStationName" column="pcs_station_name" />
|
|
|
- <result property="pcsDeviceName" column="pcs_device_name" />
|
|
|
- <result property="planStartTime" column="plan_start_time" />
|
|
|
- <result property="planEndTime" column="plan_end_time" />
|
|
|
+ <result property="pcsDeviceName" column="work_order_device" />
|
|
|
<result property="realStartTime" column="real_start_time" />
|
|
|
<result property="realEndTime" column="real_end_time" />
|
|
|
<result property="content" column="work_content" />
|
|
|
- <result property="issuerName" column="issuer_name" />
|
|
|
- <result property="permitterName" column="permitter_name" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="workPermitNum" column="work_ticket_no" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.ygtx.gxt.domain.GxtWorkOrderPerson" id="GxtWorkOrderPersonResult">
|
|
|
<result property="nickName" column="person_name" />
|
|
|
- <result property="misNo" column="work_order_project_no" />
|
|
|
+ <result property="misNo" column="work_order_project_code" />
|
|
|
<result property="userName" column="person_id" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectGxtMisInfoVo">
|
|
|
- select work_order_project_no, work_order_status, pcs_station_name,
|
|
|
- pcs_device_name, plan_start_time, plan_end_time, real_start_time, real_end_time,
|
|
|
- work_content, issuer_name,permitter_name, create_time, update_time, remark
|
|
|
- from fujian_wo_workorder_info t
|
|
|
+ select work_order_project_code, work_order_status, pcs_station_name,
|
|
|
+ work_order_device, real_start_time, real_end_time,
|
|
|
+ work_content, create_time, update_time, remark, work_ticket_no
|
|
|
+ from fujian_wo_new_work_item t
|
|
|
</sql>
|
|
|
|
|
|
<sql id="selectGxtWorkOrderPersonVo">
|
|
|
- select person_name, work_order_project_no, person_id, create_time, update_time
|
|
|
- from fujian_wo_gdnb_bzcy
|
|
|
+ select person_name, work_order_project_code, person_id, create_time, update_time
|
|
|
+ from fujian_wo_new_internal_team_members
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGxtMisInfoList" parameterType="com.ygtx.gxt.domain.GxtMisInfo" resultMap="GxtMisInfoResult">
|
|
|
<include refid="selectGxtMisInfoVo"/>
|
|
|
<where>
|
|
|
- pcs_device_name is not null
|
|
|
- <if test="misNo != null and misNo != ''"> and work_order_project_no like concat('%', #{misNo}, '%')</if>
|
|
|
+ work_order_device is not null
|
|
|
+ <if test="misNo != null and misNo != ''"> and work_order_project_code like concat('%', #{misNo}, '%')</if>
|
|
|
<if test="pcsStationName != null and pcsStationName != ''"> and pcs_station_name like concat('%', #{pcsStationName}, '%')</if>
|
|
|
- <if test="pcsDeviceName != null and pcsDeviceName != ''"> and pcs_device_name like concat('%', #{pcsDeviceName}, '%')</if>
|
|
|
+ <if test="pcsDeviceName != null and pcsDeviceName != ''"> and work_order_device like concat('%', #{pcsDeviceName}, '%')</if>
|
|
|
<if test="workOrderStatus != null and workOrderStatus != ''"> and work_order_status in
|
|
|
<foreach collection="workOrderStatus.split(',')" item="status" open="(" separator="," close=")">
|
|
|
#{status}
|
|
|
@@ -63,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectGxtWorkOrderPersonVo"/>
|
|
|
<where>
|
|
|
<if test="nickName != null and nickName != ''"> and person_name = #{nickName}</if>
|
|
|
- <if test="misNo != null and misNo != ''"> and work_order_project_no = #{misNo}</if>
|
|
|
+ <if test="misNo != null and misNo != ''"> and work_order_project_code = #{misNo}</if>
|
|
|
<if test="userName != null and userName != ''"> and person_id = #{isLeader}</if>
|
|
|
</where>
|
|
|
order by create_time desc
|