ShipmentContainerDetailMapper.xml 6.38 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.shipment.shipmentContainerDetail.mapper.ShipmentContainerDetailMapper">
  <resultMap id="BaseResultMap" type="com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail">
    <!--@mbg.generated-->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="containerCode" jdbcType="VARCHAR" property="containerCode" />
    <result column="shippingContainerId" jdbcType="INTEGER" property="shippingContainerId" />
    <result column="shipmentCode" jdbcType="VARCHAR" property="shipmentCode" />
    <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
    <result column="shipmentId" jdbcType="INTEGER" property="shipmentId" />
    <result column="shipmentDetailId" jdbcType="INTEGER" property="shipmentDetailId" />
    <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
    <result column="materialCode" jdbcType="VARCHAR" property="materialCode" />
    <result column="materialName" jdbcType="VARCHAR" property="materialName" />
    <result column="materialSpec" jdbcType="VARCHAR" property="materialSpec" />
    <result column="materialUnit" jdbcType="VARCHAR" property="materialUnit" />
    <result column="enable" jdbcType="INTEGER" property="enable" />
    <result column="itemWeight" jdbcType="DECIMAL" property="itemWeight" />
    <result column="itemVolume" jdbcType="DECIMAL" property="itemVolume" />
    <result column="itemLength" jdbcType="DECIMAL" property="itemLength" />
    <result column="itemWidth" jdbcType="DECIMAL" property="itemWidth" />
    <result column="itemHeight" jdbcType="DECIMAL" property="itemHeight" />
    <result column="itemValue" jdbcType="DECIMAL" property="itemValue" />
    <result column="qty" jdbcType="INTEGER" property="qty" />
    <result column="waveId" jdbcType="INTEGER" property="waveId" />
    <result column="taskCreated" jdbcType="INTEGER" property="taskCreated" />
    <result column="attributeId" jdbcType="INTEGER" property="attributeId" />
    <result column="originalPickLoc" jdbcType="VARCHAR" property="originalPickLoc" />
    <result column="attribute1" jdbcType="VARCHAR" property="attribute1" />
    <result column="attribute2" jdbcType="VARCHAR" property="attribute2" />
    <result column="attribute3" jdbcType="VARCHAR" property="attribute3" />
    <result column="attribute4" jdbcType="VARCHAR" property="attribute4" />
    <result column="batch" jdbcType="VARCHAR" property="batch" />
    <result column="lot" jdbcType="VARCHAR" property="lot" />
    <result column="projectNo" jdbcType="VARCHAR" property="projectNo" />
    <result column="manufactureDate" jdbcType="DATE" property="manufactureDate" />
    <result column="expirationDate" jdbcType="DATE" property="expirationDate" />
    <result column="agingDate" jdbcType="DATE" property="agingDate" />
    <result column="inventorySts" jdbcType="VARCHAR" property="inventorySts" />
    <result column="packingClass" jdbcType="VARCHAR" property="packingClass" />
    <result column="transContCode" jdbcType="VARCHAR" property="transContCode" />
    <result column="scannedQty" jdbcType="INTEGER" property="scannedQty" />
    <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="userDef5" jdbcType="VARCHAR" property="userDef5" />
    <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
    <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
    <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
    <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, containerCode, shippingContainerId, shipmentCode, warehouseCode, shipmentId, 
    shipmentDetailId, companyCode, materialCode, materialName, materialSpec, materialUnit, 
    `enable`, itemWeight, itemVolume, itemLength, itemWidth, itemHeight, itemValue, qty, 
    waveId, taskCreated, attributeId, originalPickLoc, attribute1, attribute2, attribute3, 
    attribute4, batch, lot, projectNo, manufactureDate, expirationDate, agingDate, inventorySts, 
    packingClass, transContCode, scannedQty, created, createdBy, lastUpdated, lastUpdatedBy, 
    version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, 
    processStamp
  </sql>

  <select id="selectListMapByEqual" resultType="java.util.HashMap">
    SELECT ${columns} FROM shipment_container_detail
    <where>
      <if test="condition.id != null">
        AND id = #{condition.id}
      </if>
      <if test="condition.headerId != null">
        AND headerId = #{condition.headerId}
      </if>
      <if test="condition.shipmentCode != null">
        AND shipmentCode = #{condition.shipmentCode}
      </if>
      <if test="condition.shipmentHeaderId != null">
        AND shipmentHeaderId = #{condition.shipmentHeaderId}
      </if>
      <if test="condition.shipmentDetailId != null">
        AND shipmentDetailId = #{condition.shipmentDetailId}
      </if>
      <if test="condition.materialCode != null">
        AND materialCode = #{condition.materialCode}
      </if>
      <if test="condition.materialName != null">
        AND materialName = #{condition.materialName}
      </if>
      <if test="condition.qty != null">
        AND qty = #{condition.qty}
      </if>
      <if test="condition.inventoryId != null">
        AND inventoryId = #{condition.inventoryId}
      </if>
      <if test="condition.created != null">
        AND created = #{condition.created}
      </if>
      <if test="condition.createdBy != null">
        AND createdBy = #{condition.createdBy}
      </if>
      <if test="condition.project != null">
        AND project = #{condition.project}
      </if>
    </where>
  </select>

</mapper>