456 lines
36 KiB
XML
456 lines
36 KiB
XML
<?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.xdadan.erp.wms.mapper.WmsGoodsItemMapper">
|
|
|
|
<resultMap type="WmsGoodsItem" id="WmsGoodsItemResult">
|
|
<result property="id" column="id" />
|
|
<result property="itemNo" column="item_no" />
|
|
<result property="cusItemNo" column="cus_item_no" />
|
|
<result property="cusNo" column="cus_no" />
|
|
<result property="name" column="name" />
|
|
<result property="nameEn" column="name_en" />
|
|
<result property="shortName" column="short_name" />
|
|
<result property="color" column="color" />
|
|
<result property="sizeType" column="size_type" />
|
|
<result property="taxRate" column="tax_rate" />
|
|
<result property="itemStyle" column="item_style" />
|
|
<result property="itemSpec" column="item_spec" />
|
|
<result property="itemModel" column="item_model" />
|
|
<result property="itemMaterial" column="item_material" />
|
|
<result property="itemMaterialEn" column="item_material_en" />
|
|
<result property="useCn" column="use_cn" />
|
|
<result property="useEn" column="use_en" />
|
|
<result property="attachInfo" column="attach_info" />
|
|
<result property="itemParam" column="item_param" />
|
|
<result property="purPrice" column="pur_price" />
|
|
<result property="wsPrice" column="ws_price" />
|
|
<result property="cuPurPrice" column="cu_pur_price" />
|
|
<result property="retailPrice" column="retail_price" />
|
|
<result property="tagPrice" column="tag_price" />
|
|
<result property="arrivalCyc" column="arrival_cyc" />
|
|
<result property="itemCat" column="item_cat" />
|
|
<result property="expiryDate" column="expiry_date" />
|
|
<result property="orgCode" column="org_code" />
|
|
<result property="companyCode" column="company_code" />
|
|
<result property="tempLayer" column="temp_layer" />
|
|
<result property="splitCtrl" column="split_ctrl" />
|
|
<result property="palletsLayerPkgs" column="pallets_layer_pkgs" />
|
|
<result property="palletsLayerHeight" column="pallets_layer_height" />
|
|
<result property="feeCalcType" column="fee_calc_type" />
|
|
<result property="brand" column="brand" />
|
|
<result property="barcode" column="barcode" />
|
|
<result property="picUrl" column="pic_url" />
|
|
<result property="unit" column="unit" />
|
|
<result property="spiltUnit" column="spilt_unit" />
|
|
<result property="rackId" column="rack_id" />
|
|
<result property="areaId" column="area_id" />
|
|
<result property="warehouseId" column="warehouse_id" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="netWeight" column="net_weight" />
|
|
<result property="grossWeight" column="gross_weight" />
|
|
<result property="splitNum" column="split_num" />
|
|
<result property="volume" column="volume" />
|
|
<result property="numVolRatio" column="num_vol_ratio" />
|
|
<result property="numGrossweightRatio" column="num_grossweight_ratio" />
|
|
<result property="numNetweightRatio" column="num_netweight_ratio" />
|
|
<result property="sizeUnit" column="size_unit" />
|
|
<result property="length" column="length" />
|
|
<result property="width" column="width" />
|
|
<result property="height" column="height" />
|
|
<result property="boxLength" column="box_length" />
|
|
<result property="boxWidth" column="box_width" />
|
|
<result property="boxHeight" column="box_height" />
|
|
<result property="boxNetWeight" column="box_net_weight" />
|
|
<result property="boxGrossWeight" column="box_gross_weight" />
|
|
<result property="status" column="status" />
|
|
<result property="baseTemp" column="base_temp" />
|
|
<result property="description" column="description" />
|
|
<result property="orderNum" column="order_num" />
|
|
<result property="hscode" column="hscode" />
|
|
<result property="declareName" column="declare_name" />
|
|
<result property="declareNameEn" column="declare_name_en" />
|
|
<result property="orginalNationCode" column="orginal_nation_code" />
|
|
<result property="orginalNation" column="orginal_nation" />
|
|
<result property="declarePrice" column="declare_price" />
|
|
<result property="isContainBattery" column="is_contain_battery" />
|
|
<result property="isMagnetic" column="is_magnetic" />
|
|
<result property="isLiquid" column="is_liquid" />
|
|
<result property="platform" column="platform" />
|
|
<result property="packageType" column="package_type" />
|
|
<result property="extParam" column="ext_param" />
|
|
<result property="tenantId" column="tenant_id" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
</resultMap>
|
|
|
|
<sql id="selectWmsGoodsItemVo">
|
|
select id, item_no, cus_item_no, cus_no, name, name_en, short_name, color, size_type, tax_rate, item_style, item_spec, item_model, item_material, item_material_en, use_cn, use_en, attach_info, item_param, pur_price, ws_price, cu_pur_price, retail_price, tag_price, arrival_cyc, item_cat, expiry_date, org_code, company_code, temp_layer, split_ctrl, pallets_layer_pkgs, pallets_layer_height, fee_calc_type, brand, barcode, pic_url, unit, spilt_unit, rack_id, area_id, warehouse_id, quantity, net_weight, gross_weight, split_num, volume, num_vol_ratio, num_grossweight_ratio, num_netweight_ratio, size_unit, length, width, height, box_length, box_width, box_height, box_net_weight, box_gross_weight, status, base_temp, description, order_num, hscode, declare_name, declare_name_en, orginal_nation_code, orginal_nation, declare_price, is_contain_battery, is_magnetic, is_liquid, platform, package_type, ext_param, tenant_id, del_flag, create_by, create_time, update_by, update_time from wms_goods_item
|
|
</sql>
|
|
|
|
<select id="selectWmsGoodsItemList" parameterType="WmsGoodsItem" resultMap="WmsGoodsItemResult">
|
|
<include refid="selectWmsGoodsItemVo"/>
|
|
<where>
|
|
<if test="id != null "> and id = #{id}</if>
|
|
<if test="itemNo != null and itemNo != ''"> and item_no like concat('%', #{itemNo}, '%')</if>
|
|
<if test="cusItemNo != null and cusItemNo != ''"> and cus_item_no like concat('%', #{cusItemNo}, '%')</if>
|
|
<if test="cusNo != null and cusNo != ''"> and cus_no like concat('%', #{cusNo}, '%')</if>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
|
<if test="shortName != null and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
|
|
<if test="color != null and color != ''"> and color like concat('%', #{color}, '%')</if>
|
|
<if test="sizeType != null and sizeType != ''"> and size_type like concat('%', #{sizeType}, '%')</if>
|
|
<if test="taxRate != null "> and tax_rate = #{taxRate}</if>
|
|
<if test="itemStyle != null and itemStyle != ''"> and item_style like concat('%', #{itemStyle}, '%')</if>
|
|
<if test="itemSpec != null and itemSpec != ''"> and item_spec like concat('%', #{itemSpec}, '%')</if>
|
|
<if test="itemModel != null and itemModel != ''"> and item_model like concat('%', #{itemModel}, '%')</if>
|
|
<if test="itemMaterial != null and itemMaterial != ''"> and item_material like concat('%', #{itemMaterial}, '%')</if>
|
|
<if test="itemMaterialEn != null and itemMaterialEn != ''"> and item_material_en like concat('%', #{itemMaterialEn}, '%')</if>
|
|
<if test="useCn != null and useCn != ''"> and use_cn like concat('%', #{useCn}, '%')</if>
|
|
<if test="useEn != null and useEn != ''"> and use_en like concat('%', #{useEn}, '%')</if>
|
|
<if test="attachInfo != null and attachInfo != ''"> and attach_info like concat('%', #{attachInfo}, '%')</if>
|
|
<if test="itemParam != null and itemParam != ''"> and item_param like concat('%', #{itemParam}, '%')</if>
|
|
<if test="purPrice != null "> and pur_price = #{purPrice}</if>
|
|
<if test="wsPrice != null "> and ws_price = #{wsPrice}</if>
|
|
<if test="cuPurPrice != null "> and cu_pur_price = #{cuPurPrice}</if>
|
|
<if test="retailPrice != null "> and retail_price = #{retailPrice}</if>
|
|
<if test="tagPrice != null "> and tag_price = #{tagPrice}</if>
|
|
<if test="arrivalCyc != null and arrivalCyc != ''"> and arrival_cyc like concat('%', #{arrivalCyc}, '%')</if>
|
|
<if test="itemCat != null and itemCat != ''"> and item_cat like concat('%', #{itemCat}, '%')</if>
|
|
<if test="expiryDate != null and expiryDate != ''"> and expiry_date like concat('%', #{expiryDate}, '%')</if>
|
|
<if test="orgCode != null and orgCode != ''"> and org_code like concat('%', #{orgCode}, '%')</if>
|
|
<if test="companyCode != null and companyCode != ''"> and company_code like concat('%', #{companyCode}, '%')</if>
|
|
<if test="tempLayer != null and tempLayer != ''"> and temp_layer like concat('%', #{tempLayer}, '%')</if>
|
|
<if test="splitCtrl != null and splitCtrl != ''"> and split_ctrl like concat('%', #{splitCtrl}, '%')</if>
|
|
<if test="palletsLayerPkgs != null and palletsLayerPkgs != ''"> and pallets_layer_pkgs like concat('%', #{palletsLayerPkgs}, '%')</if>
|
|
<if test="palletsLayerHeight != null and palletsLayerHeight != ''"> and pallets_layer_height like concat('%', #{palletsLayerHeight}, '%')</if>
|
|
<if test="feeCalcType != null and feeCalcType != ''"> and fee_calc_type like concat('%', #{feeCalcType}, '%')</if>
|
|
<if test="brand != null and brand != ''"> and brand like concat('%', #{brand}, '%')</if>
|
|
<if test="barcode != null and barcode != ''"> and barcode like concat('%', #{barcode}, '%')</if>
|
|
<if test="picUrl != null and picUrl != ''"> and pic_url like concat('%', #{picUrl}, '%')</if>
|
|
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
|
<if test="spiltUnit != null and spiltUnit != ''"> and spilt_unit like concat('%', #{spiltUnit}, '%')</if>
|
|
<if test="rackId != null "> and rack_id = #{rackId}</if>
|
|
<if test="areaId != null "> and area_id = #{areaId}</if>
|
|
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
|
|
<if test="quantity != null "> and quantity = #{quantity}</if>
|
|
<if test="netWeight != null and netWeight != ''"> and net_weight like concat('%', #{netWeight}, '%')</if>
|
|
<if test="grossWeight != null and grossWeight != ''"> and gross_weight like concat('%', #{grossWeight}, '%')</if>
|
|
<if test="splitNum != null and splitNum != ''"> and split_num like concat('%', #{splitNum}, '%')</if>
|
|
<if test="volume != null and volume != ''"> and volume like concat('%', #{volume}, '%')</if>
|
|
<if test="numVolRatio != null and numVolRatio != ''"> and num_vol_ratio like concat('%', #{numVolRatio}, '%')</if>
|
|
<if test="numGrossweightRatio != null and numGrossweightRatio != ''"> and num_grossweight_ratio like concat('%', #{numGrossweightRatio}, '%')</if>
|
|
<if test="numNetweightRatio != null and numNetweightRatio != ''"> and num_netweight_ratio like concat('%', #{numNetweightRatio}, '%')</if>
|
|
<if test="sizeUnit != null and sizeUnit != ''"> and size_unit like concat('%', #{sizeUnit}, '%')</if>
|
|
<if test="length != null and length != ''"> and length like concat('%', #{length}, '%')</if>
|
|
<if test="width != null and width != ''"> and width like concat('%', #{width}, '%')</if>
|
|
<if test="height != null and height != ''"> and height like concat('%', #{height}, '%')</if>
|
|
<if test="boxLength != null and boxLength != ''"> and box_length like concat('%', #{boxLength}, '%')</if>
|
|
<if test="boxWidth != null and boxWidth != ''"> and box_width like concat('%', #{boxWidth}, '%')</if>
|
|
<if test="boxHeight != null and boxHeight != ''"> and box_height like concat('%', #{boxHeight}, '%')</if>
|
|
<if test="boxNetWeight != null and boxNetWeight != ''"> and box_net_weight like concat('%', #{boxNetWeight}, '%')</if>
|
|
<if test="boxGrossWeight != null and boxGrossWeight != ''"> and box_gross_weight like concat('%', #{boxGrossWeight}, '%')</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
<if test="baseTemp != null and baseTemp != ''"> and base_temp like concat('%', #{baseTemp}, '%')</if>
|
|
<if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if>
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
|
<if test="hscode != null and hscode != ''"> and hscode like concat('%', #{hscode}, '%')</if>
|
|
<if test="declareName != null and declareName != ''"> and declare_name like concat('%', #{declareName}, '%')</if>
|
|
<if test="declareNameEn != null and declareNameEn != ''"> and declare_name_en like concat('%', #{declareNameEn}, '%')</if>
|
|
<if test="orginalNationCode != null and orginalNationCode != ''"> and orginal_nation_code like concat('%', #{orginalNationCode}, '%')</if>
|
|
<if test="orginalNation != null and orginalNation != ''"> and orginal_nation like concat('%', #{orginalNation}, '%')</if>
|
|
<if test="declarePrice != null "> and declare_price = #{declarePrice}</if>
|
|
<if test="isContainBattery != null "> and is_contain_battery = #{isContainBattery}</if>
|
|
<if test="isMagnetic != null "> and is_magnetic = #{isMagnetic}</if>
|
|
<if test="isLiquid != null "> and is_liquid = #{isLiquid}</if>
|
|
<if test="platform != null and platform != ''"> and platform like concat('%', #{platform}, '%')</if>
|
|
<if test="packageType != null and packageType != ''"> and package_type like concat('%', #{packageType}, '%')</if>
|
|
<if test="extParam != null and extParam != ''"> and ext_param like concat('%', #{extParam}, '%')</if>
|
|
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
|
</where>
|
|
order by create_time desc
|
|
</select>
|
|
|
|
<select id="selectWmsGoodsItemById" parameterType="Long" resultMap="WmsGoodsItemResult">
|
|
select id, item_no, cus_item_no, cus_no, name, name_en, short_name, color, size_type, tax_rate, item_style, item_spec, item_model, item_material, item_material_en, use_cn, use_en, attach_info, item_param, pur_price, ws_price, cu_pur_price, retail_price, tag_price, arrival_cyc, item_cat, expiry_date, org_code, company_code, temp_layer, split_ctrl, pallets_layer_pkgs, pallets_layer_height, fee_calc_type, brand, barcode, pic_url, unit, spilt_unit, rack_id, area_id, warehouse_id, quantity, net_weight, gross_weight, split_num, volume, num_vol_ratio, num_grossweight_ratio, num_netweight_ratio, size_unit, length, width, height, box_length, box_width, box_height, box_net_weight, box_gross_weight, status, base_temp, description, order_num, hscode, declare_name, declare_name_en, orginal_nation_code, orginal_nation, declare_price, is_contain_battery, is_magnetic, is_liquid, platform, package_type, ext_param, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
|
from wms_goods_item a
|
|
where a.id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertWmsGoodsItem" parameterType="WmsGoodsItem">
|
|
insert into wms_goods_item
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="itemNo != null and itemNo != ''">item_no,</if>
|
|
<if test="cusItemNo != null and cusItemNo != ''">cus_item_no,</if>
|
|
<if test="cusNo != null and cusNo != ''">cus_no,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="nameEn != null and nameEn != ''">name_en,</if>
|
|
<if test="shortName != null and shortName != ''">short_name,</if>
|
|
<if test="color != null and color != ''">color,</if>
|
|
<if test="sizeType != null and sizeType != ''">size_type,</if>
|
|
<if test="taxRate != null">tax_rate,</if>
|
|
<if test="itemStyle != null and itemStyle != ''">item_style,</if>
|
|
<if test="itemSpec != null and itemSpec != ''">item_spec,</if>
|
|
<if test="itemModel != null and itemModel != ''">item_model,</if>
|
|
<if test="itemMaterial != null and itemMaterial != ''">item_material,</if>
|
|
<if test="itemMaterialEn != null and itemMaterialEn != ''">item_material_en,</if>
|
|
<if test="useCn != null and useCn != ''">use_cn,</if>
|
|
<if test="useEn != null and useEn != ''">use_en,</if>
|
|
<if test="attachInfo != null and attachInfo != ''">attach_info,</if>
|
|
<if test="itemParam != null and itemParam != ''">item_param,</if>
|
|
<if test="purPrice != null">pur_price,</if>
|
|
<if test="wsPrice != null">ws_price,</if>
|
|
<if test="cuPurPrice != null">cu_pur_price,</if>
|
|
<if test="retailPrice != null">retail_price,</if>
|
|
<if test="tagPrice != null">tag_price,</if>
|
|
<if test="arrivalCyc != null and arrivalCyc != ''">arrival_cyc,</if>
|
|
<if test="itemCat != null and itemCat != ''">item_cat,</if>
|
|
<if test="expiryDate != null and expiryDate != ''">expiry_date,</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code,</if>
|
|
<if test="companyCode != null and companyCode != ''">company_code,</if>
|
|
<if test="tempLayer != null and tempLayer != ''">temp_layer,</if>
|
|
<if test="splitCtrl != null and splitCtrl != ''">split_ctrl,</if>
|
|
<if test="palletsLayerPkgs != null and palletsLayerPkgs != ''">pallets_layer_pkgs,</if>
|
|
<if test="palletsLayerHeight != null and palletsLayerHeight != ''">pallets_layer_height,</if>
|
|
<if test="feeCalcType != null and feeCalcType != ''">fee_calc_type,</if>
|
|
<if test="brand != null and brand != ''">brand,</if>
|
|
<if test="barcode != null and barcode != ''">barcode,</if>
|
|
<if test="picUrl != null and picUrl != ''">pic_url,</if>
|
|
<if test="unit != null and unit != ''">unit,</if>
|
|
<if test="spiltUnit != null and spiltUnit != ''">spilt_unit,</if>
|
|
<if test="rackId != null">rack_id,</if>
|
|
<if test="areaId != null">area_id,</if>
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
<if test="quantity != null">quantity,</if>
|
|
<if test="netWeight != null and netWeight != ''">net_weight,</if>
|
|
<if test="grossWeight != null and grossWeight != ''">gross_weight,</if>
|
|
<if test="splitNum != null and splitNum != ''">split_num,</if>
|
|
<if test="volume != null and volume != ''">volume,</if>
|
|
<if test="numVolRatio != null and numVolRatio != ''">num_vol_ratio,</if>
|
|
<if test="numGrossweightRatio != null and numGrossweightRatio != ''">num_grossweight_ratio,</if>
|
|
<if test="numNetweightRatio != null and numNetweightRatio != ''">num_netweight_ratio,</if>
|
|
<if test="sizeUnit != null and sizeUnit != ''">size_unit,</if>
|
|
<if test="length != null and length != ''">length,</if>
|
|
<if test="width != null and width != ''">width,</if>
|
|
<if test="height != null and height != ''">height,</if>
|
|
<if test="boxLength != null and boxLength != ''">box_length,</if>
|
|
<if test="boxWidth != null and boxWidth != ''">box_width,</if>
|
|
<if test="boxHeight != null and boxHeight != ''">box_height,</if>
|
|
<if test="boxNetWeight != null and boxNetWeight != ''">box_net_weight,</if>
|
|
<if test="boxGrossWeight != null and boxGrossWeight != ''">box_gross_weight,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="baseTemp != null and baseTemp != ''">base_temp,</if>
|
|
<if test="description != null and description != ''">description,</if>
|
|
<if test="orderNum != null">order_num,</if>
|
|
<if test="hscode != null and hscode != ''">hscode,</if>
|
|
<if test="declareName != null and declareName != ''">declare_name,</if>
|
|
<if test="declareNameEn != null and declareNameEn != ''">declare_name_en,</if>
|
|
<if test="orginalNationCode != null and orginalNationCode != ''">orginal_nation_code,</if>
|
|
<if test="orginalNation != null and orginalNation != ''">orginal_nation,</if>
|
|
<if test="declarePrice != null">declare_price,</if>
|
|
<if test="isContainBattery != null">is_contain_battery,</if>
|
|
<if test="isMagnetic != null">is_magnetic,</if>
|
|
<if test="isLiquid != null">is_liquid,</if>
|
|
<if test="platform != null and platform != ''">platform,</if>
|
|
<if test="packageType != null and packageType != ''">package_type,</if>
|
|
<if test="extParam != null and extParam != ''">ext_param,</if>
|
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="itemNo != null and itemNo != ''">#{itemNo},</if>
|
|
<if test="cusItemNo != null and cusItemNo != ''">#{cusItemNo},</if>
|
|
<if test="cusNo != null and cusNo != ''">#{cusNo},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
|
<if test="shortName != null and shortName != ''">#{shortName},</if>
|
|
<if test="color != null and color != ''">#{color},</if>
|
|
<if test="sizeType != null and sizeType != ''">#{sizeType},</if>
|
|
<if test="taxRate != null">#{taxRate},</if>
|
|
<if test="itemStyle != null and itemStyle != ''">#{itemStyle},</if>
|
|
<if test="itemSpec != null and itemSpec != ''">#{itemSpec},</if>
|
|
<if test="itemModel != null and itemModel != ''">#{itemModel},</if>
|
|
<if test="itemMaterial != null and itemMaterial != ''">#{itemMaterial},</if>
|
|
<if test="itemMaterialEn != null and itemMaterialEn != ''">#{itemMaterialEn},</if>
|
|
<if test="useCn != null and useCn != ''">#{useCn},</if>
|
|
<if test="useEn != null and useEn != ''">#{useEn},</if>
|
|
<if test="attachInfo != null and attachInfo != ''">#{attachInfo},</if>
|
|
<if test="itemParam != null and itemParam != ''">#{itemParam},</if>
|
|
<if test="purPrice != null">#{purPrice},</if>
|
|
<if test="wsPrice != null">#{wsPrice},</if>
|
|
<if test="cuPurPrice != null">#{cuPurPrice},</if>
|
|
<if test="retailPrice != null">#{retailPrice},</if>
|
|
<if test="tagPrice != null">#{tagPrice},</if>
|
|
<if test="arrivalCyc != null and arrivalCyc != ''">#{arrivalCyc},</if>
|
|
<if test="itemCat != null and itemCat != ''">#{itemCat},</if>
|
|
<if test="expiryDate != null and expiryDate != ''">#{expiryDate},</if>
|
|
<if test="orgCode != null and orgCode != ''">#{orgCode},</if>
|
|
<if test="companyCode != null and companyCode != ''">#{companyCode},</if>
|
|
<if test="tempLayer != null and tempLayer != ''">#{tempLayer},</if>
|
|
<if test="splitCtrl != null and splitCtrl != ''">#{splitCtrl},</if>
|
|
<if test="palletsLayerPkgs != null and palletsLayerPkgs != ''">#{palletsLayerPkgs},</if>
|
|
<if test="palletsLayerHeight != null and palletsLayerHeight != ''">#{palletsLayerHeight},</if>
|
|
<if test="feeCalcType != null and feeCalcType != ''">#{feeCalcType},</if>
|
|
<if test="brand != null and brand != ''">#{brand},</if>
|
|
<if test="barcode != null and barcode != ''">#{barcode},</if>
|
|
<if test="picUrl != null and picUrl != ''">#{picUrl},</if>
|
|
<if test="unit != null and unit != ''">#{unit},</if>
|
|
<if test="spiltUnit != null and spiltUnit != ''">#{spiltUnit},</if>
|
|
<if test="rackId != null">#{rackId},</if>
|
|
<if test="areaId != null">#{areaId},</if>
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
<if test="quantity != null">#{quantity},</if>
|
|
<if test="netWeight != null and netWeight != ''">#{netWeight},</if>
|
|
<if test="grossWeight != null and grossWeight != ''">#{grossWeight},</if>
|
|
<if test="splitNum != null and splitNum != ''">#{splitNum},</if>
|
|
<if test="volume != null and volume != ''">#{volume},</if>
|
|
<if test="numVolRatio != null and numVolRatio != ''">#{numVolRatio},</if>
|
|
<if test="numGrossweightRatio != null and numGrossweightRatio != ''">#{numGrossweightRatio},</if>
|
|
<if test="numNetweightRatio != null and numNetweightRatio != ''">#{numNetweightRatio},</if>
|
|
<if test="sizeUnit != null and sizeUnit != ''">#{sizeUnit},</if>
|
|
<if test="length != null and length != ''">#{length},</if>
|
|
<if test="width != null and width != ''">#{width},</if>
|
|
<if test="height != null and height != ''">#{height},</if>
|
|
<if test="boxLength != null and boxLength != ''">#{boxLength},</if>
|
|
<if test="boxWidth != null and boxWidth != ''">#{boxWidth},</if>
|
|
<if test="boxHeight != null and boxHeight != ''">#{boxHeight},</if>
|
|
<if test="boxNetWeight != null and boxNetWeight != ''">#{boxNetWeight},</if>
|
|
<if test="boxGrossWeight != null and boxGrossWeight != ''">#{boxGrossWeight},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="baseTemp != null and baseTemp != ''">#{baseTemp},</if>
|
|
<if test="description != null and description != ''">#{description},</if>
|
|
<if test="orderNum != null">#{orderNum},</if>
|
|
<if test="hscode != null and hscode != ''">#{hscode},</if>
|
|
<if test="declareName != null and declareName != ''">#{declareName},</if>
|
|
<if test="declareNameEn != null and declareNameEn != ''">#{declareNameEn},</if>
|
|
<if test="orginalNationCode != null and orginalNationCode != ''">#{orginalNationCode},</if>
|
|
<if test="orginalNation != null and orginalNation != ''">#{orginalNation},</if>
|
|
<if test="declarePrice != null">#{declarePrice},</if>
|
|
<if test="isContainBattery != null">#{isContainBattery},</if>
|
|
<if test="isMagnetic != null">#{isMagnetic},</if>
|
|
<if test="isLiquid != null">#{isLiquid},</if>
|
|
<if test="platform != null and platform != ''">#{platform},</if>
|
|
<if test="packageType != null and packageType != ''">#{packageType},</if>
|
|
<if test="extParam != null and extParam != ''">#{extParam},</if>
|
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateWmsGoodsItem" parameterType="WmsGoodsItem">
|
|
update wms_goods_item
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="itemNo != null and itemNo != ''">item_no = #{itemNo},</if>
|
|
<if test="cusItemNo != null and cusItemNo != ''">cus_item_no = #{cusItemNo},</if>
|
|
<if test="cusNo != null and cusNo != ''">cus_no = #{cusNo},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
|
<if test="shortName != null and shortName != ''">short_name = #{shortName},</if>
|
|
<if test="color != null and color != ''">color = #{color},</if>
|
|
<if test="sizeType != null and sizeType != ''">size_type = #{sizeType},</if>
|
|
<if test="taxRate != null">tax_rate = #{taxRate},</if>
|
|
<if test="itemStyle != null and itemStyle != ''">item_style = #{itemStyle},</if>
|
|
<if test="itemSpec != null and itemSpec != ''">item_spec = #{itemSpec},</if>
|
|
<if test="itemModel != null and itemModel != ''">item_model = #{itemModel},</if>
|
|
<if test="itemMaterial != null and itemMaterial != ''">item_material = #{itemMaterial},</if>
|
|
<if test="itemMaterialEn != null and itemMaterialEn != ''">item_material_en = #{itemMaterialEn},</if>
|
|
<if test="useCn != null and useCn != ''">use_cn = #{useCn},</if>
|
|
<if test="useEn != null and useEn != ''">use_en = #{useEn},</if>
|
|
<if test="attachInfo != null and attachInfo != ''">attach_info = #{attachInfo},</if>
|
|
<if test="itemParam != null and itemParam != ''">item_param = #{itemParam},</if>
|
|
<if test="purPrice != null">pur_price = #{purPrice},</if>
|
|
<if test="wsPrice != null">ws_price = #{wsPrice},</if>
|
|
<if test="cuPurPrice != null">cu_pur_price = #{cuPurPrice},</if>
|
|
<if test="retailPrice != null">retail_price = #{retailPrice},</if>
|
|
<if test="tagPrice != null">tag_price = #{tagPrice},</if>
|
|
<if test="arrivalCyc != null and arrivalCyc != ''">arrival_cyc = #{arrivalCyc},</if>
|
|
<if test="itemCat != null and itemCat != ''">item_cat = #{itemCat},</if>
|
|
<if test="expiryDate != null and expiryDate != ''">expiry_date = #{expiryDate},</if>
|
|
<if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if>
|
|
<if test="companyCode != null and companyCode != ''">company_code = #{companyCode},</if>
|
|
<if test="tempLayer != null and tempLayer != ''">temp_layer = #{tempLayer},</if>
|
|
<if test="splitCtrl != null and splitCtrl != ''">split_ctrl = #{splitCtrl},</if>
|
|
<if test="palletsLayerPkgs != null and palletsLayerPkgs != ''">pallets_layer_pkgs = #{palletsLayerPkgs},</if>
|
|
<if test="palletsLayerHeight != null and palletsLayerHeight != ''">pallets_layer_height = #{palletsLayerHeight},</if>
|
|
<if test="feeCalcType != null and feeCalcType != ''">fee_calc_type = #{feeCalcType},</if>
|
|
<if test="brand != null and brand != ''">brand = #{brand},</if>
|
|
<if test="barcode != null and barcode != ''">barcode = #{barcode},</if>
|
|
<if test="picUrl != null and picUrl != ''">pic_url = #{picUrl},</if>
|
|
<if test="unit != null and unit != ''">unit = #{unit},</if>
|
|
<if test="spiltUnit != null and spiltUnit != ''">spilt_unit = #{spiltUnit},</if>
|
|
<if test="rackId != null">rack_id = #{rackId},</if>
|
|
<if test="areaId != null">area_id = #{areaId},</if>
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
<if test="quantity != null">quantity = #{quantity},</if>
|
|
<if test="netWeight != null and netWeight != ''">net_weight = #{netWeight},</if>
|
|
<if test="grossWeight != null and grossWeight != ''">gross_weight = #{grossWeight},</if>
|
|
<if test="splitNum != null and splitNum != ''">split_num = #{splitNum},</if>
|
|
<if test="volume != null and volume != ''">volume = #{volume},</if>
|
|
<if test="numVolRatio != null and numVolRatio != ''">num_vol_ratio = #{numVolRatio},</if>
|
|
<if test="numGrossweightRatio != null and numGrossweightRatio != ''">num_grossweight_ratio = #{numGrossweightRatio},</if>
|
|
<if test="numNetweightRatio != null and numNetweightRatio != ''">num_netweight_ratio = #{numNetweightRatio},</if>
|
|
<if test="sizeUnit != null and sizeUnit != ''">size_unit = #{sizeUnit},</if>
|
|
<if test="length != null and length != ''">length = #{length},</if>
|
|
<if test="width != null and width != ''">width = #{width},</if>
|
|
<if test="height != null and height != ''">height = #{height},</if>
|
|
<if test="boxLength != null and boxLength != ''">box_length = #{boxLength},</if>
|
|
<if test="boxWidth != null and boxWidth != ''">box_width = #{boxWidth},</if>
|
|
<if test="boxHeight != null and boxHeight != ''">box_height = #{boxHeight},</if>
|
|
<if test="boxNetWeight != null and boxNetWeight != ''">box_net_weight = #{boxNetWeight},</if>
|
|
<if test="boxGrossWeight != null and boxGrossWeight != ''">box_gross_weight = #{boxGrossWeight},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="baseTemp != null and baseTemp != ''">base_temp = #{baseTemp},</if>
|
|
<if test="description != null and description != ''">description = #{description},</if>
|
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
|
<if test="hscode != null and hscode != ''">hscode = #{hscode},</if>
|
|
<if test="declareName != null and declareName != ''">declare_name = #{declareName},</if>
|
|
<if test="declareNameEn != null and declareNameEn != ''">declare_name_en = #{declareNameEn},</if>
|
|
<if test="orginalNationCode != null and orginalNationCode != ''">orginal_nation_code = #{orginalNationCode},</if>
|
|
<if test="orginalNation != null and orginalNation != ''">orginal_nation = #{orginalNation},</if>
|
|
<if test="declarePrice != null">declare_price = #{declarePrice},</if>
|
|
<if test="isContainBattery != null">is_contain_battery = #{isContainBattery},</if>
|
|
<if test="isMagnetic != null">is_magnetic = #{isMagnetic},</if>
|
|
<if test="isLiquid != null">is_liquid = #{isLiquid},</if>
|
|
<if test="platform != null and platform != ''">platform = #{platform},</if>
|
|
<if test="packageType != null and packageType != ''">package_type = #{packageType},</if>
|
|
<if test="extParam != null and extParam != ''">ext_param = #{extParam},</if>
|
|
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteWmsGoodsItemById" parameterType="Long">
|
|
delete from wms_goods_item where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteWmsGoodsItemByIds" parameterType="String">
|
|
delete from wms_goods_item where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |