Blame view

parking-module-pay/src/main/resources/mybatis/smapper/TdCFileSMapper.xml 1.73 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
  <?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.pay.mapper.smapper.TdCFileSMapper">
      <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCFile">
          <id column="id" jdbcType="BIGINT" property="id"/>
          <result column="source_id" jdbcType="VARCHAR" property="sourceId"/>
          <result column="file_path" jdbcType="VARCHAR" property="filePath"/>
          <result column="file_type" jdbcType="INTEGER" property="fileType"/>
          <result column="file_size" jdbcType="DECIMAL" property="fileSize"/>
          <result column="file_name" jdbcType="VARCHAR" property="fileName"/>
          <result column="file_suffix" jdbcType="VARCHAR" property="fileSuffix"/>
          <result column="file_state" jdbcType="INTEGER" property="fileState"/>
          <result column="data_state" jdbcType="INTEGER" property="dataState"/>
          <result column="create_empid" jdbcType="VARCHAR" property="createEmpid"/>
          <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
          <result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid"/>
          <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate"/>
      </resultMap>
      <sql id="Base_Column_List">
      id, source_id, file_path, file_type, file_size, file_name, file_suffix, file_state, 
      data_state, create_empid, create_date, modfiy_empid, modfiy_date
    </sql>
  
       <select id="updateFileState" resultType="java.lang.Integer"
        	parameterType="com.zteits.pay.domain.TdCFile">
          update td_c_file
          set file_state = 1
          where source_id = #{sourceId}
          AND file_type = #{fileType}
      </select>
  
  </mapper>