WaveMasterMapper.xml 4.13 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.config.waveMaster.mapper.WaveMasterMapper">
  <resultMap id="BaseResultMap" type="com.huaheng.pc.config.waveMaster.domain.WaveMaster">
    <!--@mbg.generated-->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="code" jdbcType="VARCHAR" property="code" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
    <result column="sequence" jdbcType="INTEGER" property="sequence" />
    <result column="shipmentFilterCode" jdbcType="VARCHAR" property="shipmentFilterCode" />
    <result column="waveFlowCode" jdbcType="VARCHAR" property="waveFlowCode" />
    <result column="statusFlowCode" jdbcType="VARCHAR" property="statusFlowCode" />
    <result column="shortMode" jdbcType="VARCHAR" property="shortMode" />
    <result column="maxShipments" jdbcType="INTEGER" property="maxShipments" />
    <result column="maxLines" jdbcType="INTEGER" property="maxLines" />
    <result column="defaultWaveCreateSize" jdbcType="INTEGER" property="defaultWaveCreateSize" />
    <result column="shipmentGroupSize" jdbcType="INTEGER" property="shipmentGroupSize" />
    <result column="holdRplnTask" jdbcType="INTEGER" property="holdRplnTask" />
    <result column="rplnStrategy" jdbcType="VARCHAR" property="rplnStrategy" />
    <result column="rplnQtyUM" jdbcType="VARCHAR" property="rplnQtyUM" />
    <result column="maxRplnQty" jdbcType="INTEGER" property="maxRplnQty" />
    <result column="groupingOrderBy" jdbcType="VARCHAR" property="groupingOrderBy" />
    <result column="assignmentRule" jdbcType="VARCHAR" property="assignmentRule" />
    <result column="needReplenishment" jdbcType="BIT" property="needReplenishment" />
    <result column="rplnAllocationRule" jdbcType="VARCHAR" property="rplnAllocationRule" />
    <result column="rplnLocatingRule" jdbcType="VARCHAR" property="rplnLocatingRule" />
    <result column="created" jdbcType="TIMESTAMP" property="created" />
    <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
    <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
    <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
    <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="userDef4" jdbcType="VARCHAR" property="userDef4" />
    <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, code,name, warehouseCode, `sequence`, shipmentFilterCode, waveFlowCode, statusFlowCode,
    shortMode, maxShipments, maxLines, defaultWaveCreateSize, shipmentGroupSize, holdRplnTask,
    rplnStrategy, rplnQtyUM, maxRplnQty, groupingOrderBy, assignmentRule, needReplenishment,
    rplnAllocationRule, rplnLocatingRule, created, createdBy, lastUpdated, lastUpdatedBy, 
    version, userDef1, userDef2, userDef3, userDef4,
    processStamp
  </sql>

  <insert id="waveMasterCopy">
  insert into wave_master(code,name, warehouseCode, `sequence`, shipmentFilterCode, waveFlowCode, statusFlowCode,
    shortMode, maxShipments, maxLines, defaultWaveCreateSize, shipmentGroupSize, holdRplnTask,
    rplnStrategy, rplnQtyUM, maxRplnQty, groupingOrderBy, assignmentRule, needReplenishment,
    rplnAllocationRule, rplnLocatingRule, createdBy, lastUpdatedBy,version,processStamp)
    select code,name,#{newCode}, `sequence`, shipmentFilterCode, waveFlowCode, statusFlowCode,
    shortMode, maxShipments, maxLines, defaultWaveCreateSize, shipmentGroupSize, holdRplnTask,
    rplnStrategy, rplnQtyUM, maxRplnQty, groupingOrderBy, assignmentRule, needReplenishment,
    rplnAllocationRule, rplnLocatingRule, createdBy, lastUpdatedBy,version,processStamp from wave_master
    where warehouseCode =#{code}

  </insert>
</mapper>