U8ShipmentHeaderMapper.xml 1.01 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.U8.mapper.U8ShipmentHeaderMapper">
    <resultMap id="BaseResultMap" type="com.huaheng.pc.U8.domain.U8ShipmentHeader">
        <result column="shipmentType" jdbcType="VARCHAR" property="shipmentType" />
        <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_Outbound_WMS WHERE substring(ccode,0,3) = #{shipmentType,jdbcType=VARCHAR} ORDER BY substring(ccode,3,40) DESC
    </select>

</mapper>