Blame view

parking-module-order/src/main/resources/mybatis/mapper/smapper/InspectionLogSMapper.xml 3.4 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
47
48
49
50
51
52
53
54
55
56
  <?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.InspectionLogSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.order.domain.InspectionLog">
          <id column="id" jdbcType="BIGINT" property="id" />
          <result column="inspection_log_id" jdbcType="VARCHAR" property="inspectionLogId" />
          <result column="pl_no" jdbcType="VARCHAR" property="plNo" />
          <result column="pl_name" jdbcType="VARCHAR" property="plName" />
          <result column="input_time" jdbcType="TIMESTAMP" property="inputTime" />
          <result column="img_before_path1" jdbcType="OTHER" property="imgBeforePath1" />
          <result column="img_before_path2" jdbcType="OTHER" property="imgBeforePath2" />
          <result column="img_before_path3" jdbcType="OTHER" property="imgBeforePath3" />
          <result column="img_before_path4" jdbcType="OTHER" property="imgBeforePath4" />
          <result column="img_before_path5" jdbcType="OTHER" property="imgBeforePath5" />
          <result column="img_after_path1" jdbcType="OTHER" property="imgAfterPath1" />
          <result column="img_after_path2" jdbcType="OTHER" property="imgAfterPath2" />
          <result column="img_after_path3" jdbcType="OTHER" property="imgAfterPath3" />
          <result column="img_after_path4" jdbcType="OTHER" property="imgAfterPath4" />
          <result column="img_after_path5" jdbcType="OTHER" property="imgAfterPath5" />
          <result column="complaint_name" jdbcType="VARCHAR" property="complaintName" />
          <result column="remark" jdbcType="VARCHAR" property="remark" />
          <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" />
          <result column="org_id" jdbcType="BIGINT" property="orgId" />
      </resultMap>
      <sql id="Base_Column_List">
      id, inspection_log_id, pl_no, pl_name, input_time, img_before_path1, img_before_path2,
      img_before_path3, img_before_path4, img_before_path5, img_after_path1, img_after_path2,
      img_after_path3, img_after_path4, img_after_path5, complaint_name, remark, data_state,
      create_emp_id, create_emp_name, create_date, modfiy_emp_id, modfiy_emp_name, modfiy_date,
      org_id
    </sql>
  
      <select id="queryInspectionLogForPage" parameterType="com.zteits.clouds.api.dto.order.inspectionlog.param.InspectionLogForPageQueryRequest"
      resultMap="BaseResultMap">
          SELECT
          <include refid="Base_Column_List" />
          from inspection_log
          WHERE data_state=1
          <if test="beginTime !=null">
              AND input_time &gt;= #{beginTime}
          </if>
          <if test="endTime !=null">
              AND input_time &lt;= #{endTime}
          </if>
          <if test="complaintName !=null and complaintName !=''">
              AND complaint_name like CONCAT('%',#{complaintName},'%')
          </if>
          ORDER BY input_time DESC
      </select>
  </mapper>