Blame view

parking-module-order/src/main/resources/mybatis/mapper/smapper/OrderWorkTrackSMapper.xml 2.57 KB
55f68655   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  <?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.zteits.order.mapper.smapper.OrderWorkTrackSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.order.domain.OrderWorkTrack">
          <id column="id" jdbcType="BIGINT" property="id" />
          <id column="rlt_work_id" jdbcType="VARCHAR" property="rltWorkId" />
          <result column="track_id" jdbcType="VARCHAR" property="trackId" />
          <result column="pre_id" jdbcType="BIGINT" property="preId" />
          <result column="next_id" jdbcType="BIGINT" property="nextId" />
          <result column="next_name" jdbcType="VARCHAR" property="nextName" />
          <result column="solve_time" jdbcType="TIMESTAMP" property="solveTime" />
          <result column="solve_state" jdbcType="INTEGER" property="solveState" />
          <result column="solve_id" jdbcType="VARCHAR" property="solveId" />
          <result column="solve_name" jdbcType="VARCHAR" property="solveName" />
          <result column="phone" jdbcType="VARCHAR" property="phone" />
          <result column="reason" jdbcType="VARCHAR" property="reason" />
          <result column="img_path" jdbcType="OTHER" property="imgPath" />
          <result column="sort" jdbcType="INTEGER" property="sort" />
          <result column="data_state" jdbcType="INTEGER" property="dataState" />
          <result column="create_emp_id" jdbcType="VARCHAR" property="createEmpId" />
          <result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
          <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
          <result column="modfiy_emp_id" jdbcType="VARCHAR" property="modfiyEmpId" />
          <result column="modfiy_emp_name" jdbcType="VARCHAR" property="modfiyEmpName" />
          <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
      </resultMap>
  
      <sql id="Base_Column_List">
          id, rlt_work_id, track_id, pre_id, next_id, next_name, solve_time, solve_state, solve_id,
          solve_name, phone, reason,img_path, sort, data_state, create_emp_id, create_emp_name, create_date,
          modfiy_emp_id, modfiy_emp_name, modfiy_date
      </sql>
      <!-- 通过工单ID查询工单轨迹list -->
      <select id="queryOrderWorkTrackByWorkId" resultMap="BaseResultMap" parameterType="java.lang.String">
           select 
  	    <include refid="Base_Column_List" />
  	    from order_work_track
  	    where 1=1
  	      and data_state=1
  	      and rlt_work_id = #{orderWorkId,jdbcType=VARCHAR}
  	      order by  sort asc
      
      </select>
      
  
  </mapper>