AdjustHeaderMapper.xml
1.93 KB
<?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="cycleCountCode" jdbcType="VARCHAR" property="cycleCountHeaderCode" />
<result column="checkCode" jdbcType="VARCHAR" property="checkHeaderCode" />
<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, checkHeaderCode,
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>