U8ReceiptHeaderMapper.xml
1023 Bytes
<?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.U8.mapper.U8ReceiptHeaderMapper">
<resultMap id="BaseResultMap" type="com.huaheng.pc.U8.domain.U8ReceiptHeader">
<result column="referType" jdbcType="VARCHAR" property="referType" />
<result column="cWhCode" jdbcType="VARCHAR" property="cWhCode" />
<result column="supplierCode" jdbcType="VARCHAR" property="supplierCode" />
<result column="referCode" jdbcType="VARCHAR" property="referCode" />
<result column="referId" jdbcType="VARCHAR" property="referId" />
<result column="maintenanceDate" jdbcType="TIMESTAMP" property="maintenanceDate" />
</resultMap>
<select id="createCode" resultType="java.lang.String">
SELECT top 1 ccode FROM EF_V_Inbound_WMS WHERE substring(ccode,0,3) = #{referType,jdbcType=VARCHAR} ORDER BY substring(ccode,3,40) DESC
</select>
</mapper>