ShipmentContainerDetailMapper.xml 9.41 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="qty" jdbcType="INTEGER" property="qty" />
    <result column="weights" jdbcType="INTEGER" property="weights" />
    <result column="waveId" jdbcType="INTEGER" property="waveId" />
    <result column="taskCreated" jdbcType="INTEGER" property="taskCreated" />
    <result column="attributeId" jdbcType="INTEGER" property="attributeId" />
    <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="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="processStamp" jdbcType="VARCHAR" property="processStamp" />
    <result column="batteryPackageCode" jdbcType="VARCHAR" property="processStamp" />
    <result column="enterpriseCode" jdbcType="VARCHAR" property="enterpriseCode" />
    <result column="enterpriseName" jdbcType="VARCHAR" property="enterpriseName" />
    <result column="shipmentDate" jdbcType="DATE" property="shipmentDate" />
    <result column="echelonPacketCode" jdbcType="VARCHAR" property="echelonPacketCode" />
    <result column="echelonApplicationField" jdbcType="VARCHAR" property="echelonApplicationField" />
    <result column="otherContent" jdbcType="VARCHAR" property="otherContent" />
    <result column="echelonEnterpriseName" jdbcType="VARCHAR" property="echelonEnterpriseName" />
    <result column="echelonEnterpriseCode" jdbcType="VARCHAR" property="echelonEnterpriseCode" />
    <result column="framework" jdbcType="VARCHAR" property="framework" />
    <result column="customerName" jdbcType="VARCHAR" property="customerName" />
    <result column="customerIDNumber" jdbcType="VARCHAR" property="customerIDNumber" />
    <result column="originPackage" jdbcType="VARCHAR" property="originPackage" />
    <result column="echelonModuleCode" jdbcType="VARCHAR" property="echelonModuleCode" />
    <result column="originModule" jdbcType="VARCHAR" property="originModule" />
    <result column="echelonMonomerCode" jdbcType="VARCHAR" property="echelonMonomerCode" />
    <result column="originEchelon" jdbcType="VARCHAR" property="originEchelon" />
    <result column="batteryType" jdbcType="VARCHAR" property="batteryType" />
    <result column="batteryCode" jdbcType="VARCHAR" property="batteryCode" />
    <result column="shipQuality" jdbcType="VARCHAR" property="shipQuality" />
    <result column="treatmentQuality" jdbcType="VARCHAR" property="treatmentQuality" />
    <result column="regenerateDate" jdbcType="DATE" property="regenerateDate" />
    <result column="wasteDestination" jdbcType="VARCHAR" property="wasteDestination" />
    <result column="batteryQty" jdbcType="DECIMAL" property="batteryQty" />
    <result column="batteryPageCode" jdbcType="VARCHAR" property="batteryPageCode" />
    <result column="regenerateSubstanceName" jdbcType="VARCHAR" property="regenerateSubstanceName" />
    <result column="regenerateUtilizationRate" jdbcType="VARCHAR" property="regenerateUtilizationRate" />
    <result column="substanceRegenerateQuality" jdbcType="VARCHAR" property="substanceRegenerateQuality" />
    <result column="push" jdbcType="INTEGER" property="push" />
    <result column="electricQuantity" jdbcType="DECIMAL" property="electricQuantity" />

    <result column="materialNetWeight" jdbcType="DECIMAL" property="materialNetWeight" />
    <result column="materialTareWeight" jdbcType="DECIMAL" property="materialTareWeight" />
    <result column="materialGrossWeight" jdbcType="DECIMAL" property="materialGrossWeight" />
    <result column="materialIsBattery" jdbcType="INTEGER" property="materialIsBattery" />
    <result column="batteryPackTwoCode" jdbcType="VARCHAR" property="batteryPackTwoCode" />
    <result column="barcodeDetailsCode" jdbcType="VARCHAR" property="barcodeDetailsCode" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, containerCode, shippingContainerId, shipmentCode, warehouseCode, shipmentId, weights,electricQuantity,
    shipmentDetailId, companyCode, materialCode, materialName, materialSpec, materialUnit,
    batteryPackageCode,enterpriseCode,enterpriseName,shipmentDate,echelonPacketCode,echelonApplicationField,otherContent,echelonEnterpriseName,
    echelonEnterpriseCode,framework,customerName,customerIDNumber,originPackage,echelonModuleCode,originModule,echelonModuleCode,originModule,echelonMonomerCode,
    originEchelon,batteryType,batteryCode,shipQuality,treatmentQuality,regenerateDate,wasteDestination,batteryQty,batteryPageCode,
    regenerateSubstanceName,regenerateUtilizationRate,substanceRegenerateQuality,
    `enable`, itemWeight, itemVolume, itemLength, itemWidth, itemHeight, qty,push,
    waveId, taskCreated, attributeId, originalPickLoc, attribute1, attribute2, attribute3, 
    attribute4, batch, lot, projectNo, manufactureDate, expirationDate, agingDate, inventorySts, 
    packingClass, created, createdBy, lastUpdated, lastUpdatedBy,
    version, userDef1, userDef2, userDef3,
    processStamp,materialNetWeight,materialTareWeight,materialGrossWeight,batteryPackTwoCode,barcodeDetailsCode
  </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.shippingContainerId != null">
        AND shippingContainerId = #{condition.shippingContainerId}
      </if>
      <if test="condition.shipmentCode != null">
        AND shipmentCode = #{condition.shipmentCode}
      </if>
      <if test="condition.shipmentId != null">
        AND shipmentId = #{condition.shipmentId}
      </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.projectNo != null">
        AND projectNo = #{condition.projectNo}
      </if>
    </where>
  </select>

</mapper>