AdjustHeaderMapper.xml
1.92 KB
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
<?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.huaheng.pc.inventory.adjustHeader.mapper.AdjustHeaderMapper">
<resultMap id="BaseResultMap" type="com.huaheng.pc.inventory.adjustHeader.domain.AdjustHeader">
<!--@mbg.generated-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
<result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
<result column="problemType" jdbcType="VARCHAR" property="problemType" />
<result column="cycleCountHeaderCode" jdbcType="VARCHAR" property="cycleCountHeaderCode" />
<result column="checkCode" jdbcType="VARCHAR" property="checkCode" />
<result column="referCode" jdbcType="VARCHAR" property="referCode" />
<result column="referReason" jdbcType="VARCHAR" property="referReason" />
<result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
<result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
<result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
<result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, warehouseCode, companyCode, problemType, cycleCountHeaderCode, checkCode,
referCode, referReason, createdBy, created, version, userDef1, userDef2, userDef3, processStamp
</sql>
<select id="getLastCode" resultType="java.lang.String">
SELECT code FROM adjust_header ORDER BY id DESC LIMIT 1
</select>
</mapper>