查询统计
This commit is contained in:
@@ -15,12 +15,48 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="price" column="price" />
|
||||
<result property="roadwayId" column="roadway_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="cargoSpaceId" column="cargo_space_id" />
|
||||
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||
@@ -29,23 +65,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<sql id="selectStockSummaryVo">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="groupByProductId != null and groupByProductId or groupByProductName != null and groupByProductName or groupBySpec != null and groupBySpec or groupByUnit != null and groupByUnit or groupByLotNo != null and groupByLotNo or groupByWarehouseId != null and groupByWarehouseId or groupByRoadwayId != null and groupByRoadwayId or groupByPrice != null and groupByPrice or groupBySpare1 != null and groupBySpare1 or groupBySpare2 != null and groupBySpare2 or groupBySpare5 != null and groupBySpare5 or groupBySpare6 != null and groupBySpare6 or groupBySpare7 != null and groupBySpare7 or groupBySpare8 != null and groupBySpare8">
|
||||
<when test="groupByProductId != null and groupByProductId or groupByProductName != null and groupByProductName or groupBySpec != null and groupBySpec or groupByUnit != null and groupByUnit or groupByLotNo != null and groupByLotNo or groupByWarehouseId != null and groupByWarehouseId or groupByCargoSpaceId != null and groupByCargoSpaceId or groupByPrice != null and groupByPrice or groupByParentId != null and groupByParentId or groupByCargoNo != null and groupByCargoNo or groupBySpare1 != null and groupBySpare1 or groupBySpare2 != null and groupBySpare2 or groupBySpare3 != null and groupBySpare3 or groupBySpare4 != null and groupBySpare4 or groupBySpare5 != null and groupBySpare5 or groupBySpare6 != null and groupBySpare6 or groupBySpare7 != null and groupBySpare7 or groupBySpare8 != null and groupBySpare8 or groupBySpare9 != null and groupBySpare9 or groupBySpare10 != null and groupBySpare10">
|
||||
<if test="groupByProductId != null and groupByProductId">p.product_id,</if>
|
||||
<if test="groupByProductName != null and groupByProductName">p.product_name,</if>
|
||||
<if test="groupByPrice != null and groupByPrice">p.price,</if>
|
||||
<if test="groupBySpare1 != null and groupBySpare1">p.spare1,</if>
|
||||
<if test="groupBySpare2 != null and groupBySpare2">p.spare2,</if>
|
||||
<if test="groupBySpare5 != null and groupBySpare5">p.spare5,</if>
|
||||
<if test="groupBySpare6 != null and groupBySpare6">p.spare6,</if>
|
||||
<if test="groupBySpare8 != null and groupBySpare8">p.spare8,</if>
|
||||
<if test="groupBySpare7 != null and groupBySpare7">p.spare7,</if>
|
||||
<if test="groupBySpec != null and groupBySpec">p.spec,</if>
|
||||
<if test="groupByUnit != null and groupByUnit">p.unit,</if>
|
||||
<if test="groupByPrice != null and groupByPrice">p.price,</if>
|
||||
<if test="groupByParentId != null and groupByParentId">p.parent_id,</if>
|
||||
<if test="groupByCargoNo != null and groupByCargoNo">p.cargo_no,</if>
|
||||
<if test="groupBySpare1 != null and groupBySpare1">p.spare1,</if>
|
||||
<if test="groupBySpare2 != null and groupBySpare2">p.spare2,</if>
|
||||
<if test="groupBySpare3 != null and groupBySpare3">p.spare3,</if>
|
||||
<if test="groupBySpare4 != null and groupBySpare4">p.spare4,</if>
|
||||
<if test="groupBySpare5 != null and groupBySpare5">p.spare5,</if>
|
||||
<if test="groupBySpare6 != null and groupBySpare6">p.spare6,</if>
|
||||
<if test="groupBySpare7 != null and groupBySpare7">p.spare7,</if>
|
||||
<if test="groupBySpare8 != null and groupBySpare8">p.spare8,</if>
|
||||
<if test="groupBySpare9 != null and groupBySpare9">p.spare9,</if>
|
||||
<if test="groupBySpare10 != null and groupBySpare10">p.spare10,</if>
|
||||
<if test="groupByLotNo != null and groupByLotNo">s.lot_no,</if>
|
||||
<if test="groupByWarehouseId != null and groupByWarehouseId">s.warehouse_id,</if>
|
||||
<if test="groupByWarehouseId != null and groupByWarehouseId">bw.warehouse_name,</if>
|
||||
<if test="groupByCargoSpaceId != null and groupByCargoSpaceId">s.cargo_space_id,</if>
|
||||
<if test="groupByCargoSpaceId != null and groupByCargoSpaceId">bcs.cargo_space_name,</if>
|
||||
<if test="groupByRoadwayId != null and groupByRoadwayId">bcs.roadway_id,</if>
|
||||
SUM(CAST(s.quantity AS DECIMAL(18,2))) as quantity
|
||||
FROM bas_stock s
|
||||
LEFT JOIN bas_product p ON s.product_id = p.product_id
|
||||
@@ -67,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="remark != null and remark != ''"> AND p.spare7 like concat('%', #{remark}, '%')}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> AND s.lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> AND s.warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> AND s.cargo_space_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> AND s.cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
@@ -79,17 +122,53 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="groupBySpec != null and groupBySpec">,p.spec</if>
|
||||
<if test="groupByUnit != null and groupByUnit">,p.unit</if>
|
||||
<if test="groupByPrice != null and groupByPrice">,p.price</if>
|
||||
<if test="groupByParentId != null and groupByParentId">,p.parent_id</if>
|
||||
<if test="groupByCargoNo != null and groupByCargoNo">,p.cargo_no</if>
|
||||
<if test="groupBySpare1 != null and groupBySpare1">,p.spare1</if>
|
||||
<if test="groupBySpare2 != null and groupBySpare2">,p.spare2</if>
|
||||
<if test="groupBySpare3 != null and groupBySpare3">,p.spare3</if>
|
||||
<if test="groupBySpare4 != null and groupBySpare4">,p.spare4</if>
|
||||
<if test="groupBySpare5 != null and groupBySpare5">,p.spare5</if>
|
||||
<if test="groupBySpare6 != null and groupBySpare6">,p.spare6</if>
|
||||
<if test="groupBySpare8 != null and groupBySpare8">,p.spare8</if>
|
||||
<if test="groupBySpare7 != null and groupBySpare7">,p.spare7</if>
|
||||
<if test="groupBySpare8 != null and groupBySpare8">,p.spare8</if>
|
||||
<if test="groupBySpare9 != null and groupBySpare9">,p.spare9</if>
|
||||
<if test="groupBySpare10 != null and groupBySpare10">,p.spare10</if>
|
||||
<if test="groupBySpare11 != null and groupBySpare11">,p.spare11</if>
|
||||
<if test="groupBySpare12 != null and groupBySpare12">,p.spare12</if>
|
||||
<if test="groupBySpare13 != null and groupBySpare13">,p.spare13</if>
|
||||
<if test="groupBySpare14 != null and groupBySpare14">,p.spare14</if>
|
||||
<if test="groupBySpare15 != null and groupBySpare15">,p.spare15</if>
|
||||
<if test="groupBySpare16 != null and groupBySpare16">,p.spare16</if>
|
||||
<if test="groupBySpare17 != null and groupBySpare17">,p.spare17</if>
|
||||
<if test="groupBySpare18 != null and groupBySpare18">,p.spare18</if>
|
||||
<if test="groupBySpare19 != null and groupBySpare19">,p.spare19</if>
|
||||
<if test="groupBySpare20 != null and groupBySpare20">,p.spare20</if>
|
||||
<if test="groupBySpare21 != null and groupBySpare21">,p.spare21</if>
|
||||
<if test="groupBySpare22 != null and groupBySpare22">,p.spare22</if>
|
||||
<if test="groupBySpare23 != null and groupBySpare23">,p.spare23</if>
|
||||
<if test="groupBySpare24 != null and groupBySpare24">,p.spare24</if>
|
||||
<if test="groupBySpare25 != null and groupBySpare25">,p.spare25</if>
|
||||
<if test="groupBySpare26 != null and groupBySpare26">,p.spare26</if>
|
||||
<if test="groupBySpare27 != null and groupBySpare27">,p.spare27</if>
|
||||
<if test="groupBySpare28 != null and groupBySpare28">,p.spare28</if>
|
||||
<if test="groupBySpare29 != null and groupBySpare29">,p.spare29</if>
|
||||
<if test="groupBySpare30 != null and groupBySpare30">,p.spare30</if>
|
||||
<if test="groupBySpare31 != null and groupBySpare31">,p.spare31</if>
|
||||
<if test="groupBySpare32 != null and groupBySpare32">,p.spare32</if>
|
||||
<if test="groupBySpare33 != null and groupBySpare33">,p.spare33</if>
|
||||
<if test="groupBySpare34 != null and groupBySpare34">,p.spare34</if>
|
||||
<if test="groupBySpare35 != null and groupBySpare35">,p.spare35</if>
|
||||
<if test="groupBySpare36 != null and groupBySpare36">,p.spare36</if>
|
||||
<if test="groupBySpare37 != null and groupBySpare37">,p.spare37</if>
|
||||
<if test="groupBySpare38 != null and groupBySpare38">,p.spare38</if>
|
||||
<if test="groupBySpare39 != null and groupBySpare39">,p.spare39</if>
|
||||
<if test="groupByLotNo != null and groupByLotNo">,s.lot_no</if>
|
||||
<if test="groupByWarehouseId != null and groupByWarehouseId">,s.warehouse_id</if>
|
||||
<if test="groupByWarehouseId != null and groupByWarehouseId">,bw.warehouse_name</if>
|
||||
<if test="groupByCargoSpaceId != null and groupByCargoSpaceId">,s.cargo_space_id</if>
|
||||
<if test="groupByCargoSpaceId != null and groupByCargoSpaceId">,bcs.cargo_space_name</if>
|
||||
<if test="groupByRoadwayId != null and groupByRoadwayId">,bcs.roadway_id</if>
|
||||
</trim>
|
||||
</when>
|
||||
<otherwise>
|
||||
@@ -104,16 +183,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spec != null and spec != ''"> AND p.spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> AND p.unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="price != null and price != ''"> AND p.price like concat('%', #{price}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> AND p.parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> AND p.cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> AND p.spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> AND p.spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> AND p.spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> AND p.spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> AND p.spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> AND p.spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> AND p.spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> AND p.spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> AND p.spare7 like concat('%', #{remark}, '%')}</if>
|
||||
<if test="spare8 != null and spare8 != ''"> AND p.spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="spare9 != null and spare9 != ''"> AND p.spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> AND p.spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> AND p.spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> AND p.spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> AND p.spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> AND p.spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> AND p.spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> AND p.spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> AND p.spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> AND p.spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> AND p.spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> AND p.spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> AND p.spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> AND p.spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> AND p.spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> AND p.spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> AND p.spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> AND p.spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> AND p.spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> AND p.spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> AND p.spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> AND p.spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> AND p.spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> AND p.spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> AND p.spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> AND p.spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> AND p.spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> AND p.spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> AND p.spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> AND p.spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> AND p.spare39 like concat('%', #{spare39}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> AND p.remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> AND s.lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> AND s.warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> AND s.cargo_space_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> AND s.cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
@@ -139,17 +253,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="price != null">,price,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="roadwayId != null">roadway_id,</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
@@ -158,17 +307,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="price != null">,#{price},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="roadwayId != null">#{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -181,16 +365,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="remark != null">spare7 = #{remark},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
</trim>
|
||||
where only_identity = #{onlyIdentity}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewInJobFlow.mapper.ViewInJobFlowMapper">
|
||||
|
||||
|
||||
<resultMap type="ViewInJobFlow" id="ViewInJobFlowResult">
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="executionPhase" column="execution_phase" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="entranceId" column="entrance_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="wlbh" column="wlbh" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="stackingId" column="stacking_id" />
|
||||
<result property="stockStatus" column="stock_status" />
|
||||
@@ -31,26 +31,63 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="finishTime" column="finish_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewInJobFlowVo">
|
||||
select job_id, job_detail_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, entrance_id, product_id, lot_no, stacking_id, stock_status, in_quantity, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_name, spec, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_in_job_flow vijf
|
||||
select job_id, job_detail_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, entrance_id, wlbh, lot_no, stacking_id, stock_status, in_quantity, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39 from view_in_job_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewInJobFlowList" parameterType="ViewInJobFlow" resultMap="ViewInJobFlowResult">
|
||||
<include refid="selectViewInJobFlowVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
@@ -66,10 +103,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="entranceId != null and entranceId != ''"> and entrance_id like concat('%', #{entranceId}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="wlbh != null and wlbh != ''"> and wlbh like concat('%', #{wlbh}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
|
||||
<if test="inQuantity != null and inQuantity != ''"> and in_quantity like concat('%', #{inQuantity}, '%')</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
|
||||
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id like concat('%', #{inOrOutDId}, '%')</if>
|
||||
@@ -77,22 +114,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
|
||||
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectViewInJobFlowByJobId" parameterType="String" resultMap="ViewInJobFlowResult">
|
||||
<include refid="selectViewInJobFlowVo"/>
|
||||
where job_id = #{jobId}
|
||||
@@ -116,7 +188,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">execution_phase,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="entranceId != null">entrance_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="wlbh != null">wlbh,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="stackingId != null">stacking_id,</if>
|
||||
<if test="stockStatus != null">stock_status,</if>
|
||||
@@ -127,17 +199,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="finishTime != null">finish_time,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null and jobId != ''">#{jobId},</if>
|
||||
@@ -155,7 +264,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">#{executionPhase},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="entranceId != null">#{entranceId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="wlbh != null">#{wlbh},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="stackingId != null">#{stackingId},</if>
|
||||
<if test="stockStatus != null">#{stockStatus},</if>
|
||||
@@ -166,17 +275,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -197,7 +343,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="entranceId != null">entrance_id = #{entranceId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="wlbh != null">wlbh = #{wlbh},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||
@@ -208,17 +354,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
</trim>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
@@ -228,9 +411,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewInJobFlowByJobIds" parameterType="String">
|
||||
delete from view_in_job_flow where job_id in
|
||||
delete from view_in_job_flow where job_id in
|
||||
<foreach item="jobId" collection="array" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewOutJobFlow.mapper.ViewOutJobFlowMapper">
|
||||
|
||||
|
||||
<resultMap type="ViewOutJobFlow" id="ViewOutJobFlowResult">
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="executionPhase" column="execution_phase" />
|
||||
<result property="inOrOut" column="in_or_out" />
|
||||
<result property="exitId" column="exit_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="wlbh" column="wlbh" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="stackingId" column="stacking_id" />
|
||||
<result property="stockStatus" column="stock_status" />
|
||||
@@ -32,27 +32,64 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="finishTime" column="finish_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewOutJobFlowVo">
|
||||
select job_id, job_detail_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, exit_id, product_id, lot_no, stacking_id, stock_status, out_quantity, give_num, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_name, spec, unit, customer_name, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_out_job_flow vojf
|
||||
select job_id, job_detail_id, status, task_no, tray_code, roadway_id, cargo_space_id, cargo_space_name, the_platoon, the_column, the_floor, priority, execution_phase, in_or_out, exit_id, wlbh, lot_no, stacking_id, stock_status, out_quantity, give_num, in_or_out_id, in_or_out_d_id, create_time, start_time, finish_time, warehouse_id, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, customer_name from view_out_job_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectViewOutJobFlowList" parameterType="ViewOutJobFlow" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id like concat('%', #{jobDetailId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
@@ -66,12 +103,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
|
||||
<if test="priority != null "> and priority like concat('%', #{priority}, '%')</if>
|
||||
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
|
||||
<if test="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="wlbh != null and wlbh != ''"> and wlbh like concat('%', #{wlbh}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||
<if test="giveNum != null and giveNum != ''"> and give_num like concat('%', #{giveNum}, '%')</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id like concat('%', #{inOrOutId}, '%')</if>
|
||||
@@ -80,23 +117,58 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null and startTime != ''"> and start_time like concat('%', #{startTime}, '%')</if>
|
||||
<if test="finishTime != null and finishTime != ''"> and finish_time like concat('%', #{finishTime}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectViewOutJobFlowByJobId" parameterType="String" resultMap="ViewOutJobFlowResult">
|
||||
<include refid="selectViewOutJobFlowVo"/>
|
||||
where job_id = #{jobId}
|
||||
@@ -120,7 +192,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">execution_phase,</if>
|
||||
<if test="inOrOut != null">in_or_out,</if>
|
||||
<if test="exitId != null">exit_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="wlbh != null">wlbh,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="stackingId != null">stacking_id,</if>
|
||||
<if test="stockStatus != null">stock_status,</if>
|
||||
@@ -132,18 +204,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="finishTime != null">finish_time,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null and jobId != ''">#{jobId},</if>
|
||||
@@ -161,7 +270,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">#{executionPhase},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="exitId != null">#{exitId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="wlbh != null">#{wlbh},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="stackingId != null">#{stackingId},</if>
|
||||
<if test="stockStatus != null">#{stockStatus},</if>
|
||||
@@ -173,18 +282,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -205,7 +351,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
|
||||
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
||||
<if test="exitId != null">exit_id = #{exitId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="wlbh != null">wlbh = #{wlbh},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||
@@ -217,18 +363,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
</trim>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
@@ -238,9 +421,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewOutJobFlowByJobIds" parameterType="String">
|
||||
delete from view_out_job_flow where job_id in
|
||||
delete from view_out_job_flow where job_id in
|
||||
<foreach item="jobId" collection="array" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
@@ -38,46 +38,78 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockDetailVo">
|
||||
select only_identity,stock_status,product_status, stock_id, cargo_space_id, tray_code, quantity, job_id, lot_no, stockin_detail_id, in_date, warehouse_id, stacking_id, cargo_space_name, roadway_id, cargo_space_status, locked, product_id, product_name, spec, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8,warehouse_name
|
||||
from view_stock_detail vsd
|
||||
SELECT
|
||||
ROW_NUMBER() OVER (ORDER BY s.stock_id ASC) AS only_identity,
|
||||
s.stock_id,
|
||||
s.cargo_space_id,
|
||||
s.tray_code,
|
||||
s.quantity,
|
||||
s.job_id,
|
||||
s.lot_no,
|
||||
s.stockin_detail_id,
|
||||
s.in_date,
|
||||
s.warehouse_id,
|
||||
s.stacking_id,
|
||||
cs.cargo_space_name,
|
||||
cs.roadway_id,
|
||||
cs.status AS cargo_space_status,
|
||||
s.stock_status AS stock_status,
|
||||
s.product_status AS product_status,
|
||||
cs.locked,
|
||||
p.product_guid,
|
||||
p.product_id,
|
||||
p.product_name,
|
||||
p.spec,
|
||||
p.unit,
|
||||
p.price,
|
||||
p.spare1,
|
||||
p.spare2,
|
||||
p.spare5,
|
||||
p.spare6,
|
||||
p.spare7,
|
||||
p.spare8,
|
||||
p.remark,
|
||||
bw.warehouse_name
|
||||
FROM
|
||||
bas_stock s
|
||||
LEFT JOIN bas_cargo_space cs ON cs.cargo_space_id = s.cargo_space_id
|
||||
LEFT JOIN bas_product p ON p.product_guid = s.product_guid
|
||||
LEFT JOIN bas_warehouse bw on s.warehouse_id = bw.warehouse_id
|
||||
WHERE
|
||||
cs.status = '2'
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockDetailList" parameterType="ViewStockDetail" resultMap="ViewStockDetailResult">
|
||||
<include refid="selectViewStockDetailVo"/>
|
||||
<where>
|
||||
<if test="onlyIdentity != null "> and only_identity = #{onlyIdentity}</if>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id like concat('%', #{stockId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoSpaceStatus != null and cargoSpaceStatus != ''"> and cargo_space_status like concat('%', #{cargoSpaceStatus}, '%')</if>
|
||||
<if test="locked != null and locked != ''"> and locked like concat('%', #{locked}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status like concat('%', #{stockStatus}, '%')</if>
|
||||
<if test="productStatus != null and productStatus != ''"> and product_status like concat('%', #{productStatus}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
</where>
|
||||
<if test="stockId != null and stockId != ''"> and s.stock_id = #{stockId}</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and s.cargo_space_id = #{cargoSpaceId}</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and s.tray_code = #{trayCode}</if>
|
||||
<if test="quantity != null and quantity != ''"> and s.quantity = #{quantity}</if>
|
||||
<if test="jobId != null and jobId != ''"> and s.job_id = #{jobId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and s.lot_no = #{lotNo}</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and s.stockin_detail_id = #{stockinDetailId}</if>
|
||||
<if test="inDate != null and inDate != ''"> and s.in_date = #{inDate}</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and s.warehouse_id = #{warehouseId}</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and bw.warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and s.stacking_id = #{stackingId}</if>
|
||||
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cs.cargo_space_name = #{cargoSpaceName}</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and cs.roadway_id = #{roadwayId}</if>
|
||||
<if test="cargoSpaceStatus != null and cargoSpaceStatus != ''"> and cs.status = #{cargoSpaceStatus}</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and s.stock_status = #{stockStatus}</if>
|
||||
<if test="productStatus != null and productStatus != ''"> and s.product_status = #{productStatus}</if>
|
||||
<if test="locked != null and locked != ''"> and cs.locked = #{locked}</if>
|
||||
<if test="productId != null and productId != ''"> and p.product_id = #{productId}</if>
|
||||
<if test="productName != null and productName != ''"> and p.product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and p.spec = #{spec}</if>
|
||||
<if test="unit != null and unit != ''"> and p.unit = #{unit}</if>
|
||||
<if test="price != null and price != ''"> and p.price = #{price}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and p.spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and p.spare2 = #{spare2}</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and p.spare5 = #{spare5}</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and p.spare6 = #{spare6}</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and p.spare7 = #{spare7}</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and p.spare8 = #{spare8}</if>
|
||||
<if test="remark != null and remark != ''"> and p.remark = #{remark}</if>
|
||||
</select>
|
||||
|
||||
<select id="selectViewStockDetailByOnlyIdentity" parameterType="Long" resultMap="ViewStockDetailResult">
|
||||
|
||||
@@ -12,7 +12,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="inDate" column="in_date" />
|
||||
<result property="backDate" column="back_date" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="trayCode" column="tray_code" />
|
||||
@@ -23,29 +22,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="inClassId" column="in_class_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="stackingId" column="stacking_id" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="enName" column="enName" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="longMM" column="longMM" />
|
||||
<result property="wide" column="wide" />
|
||||
<result property="hight" column="hight" />
|
||||
<result property="volume" column="volume" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||
<result property="roadwayId" column="roadway_id" />
|
||||
<result property="cargoAreaId" column="cargo_area_id" />
|
||||
@@ -65,69 +95,99 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockSecureVo">
|
||||
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, price, unit, spec, enName, weight, longMM, wide, hight, volume, product_name, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_secure
|
||||
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_secure
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockSecureList" parameterType="ViewStockSecure" resultMap="ViewStockSecureResult">
|
||||
<include refid="selectViewStockSecureVo"/>
|
||||
<where>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id = #{stockId}</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id = #{cargoSpaceId}</if>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id like concat('%', #{stockId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="productStatus != null and productStatus != ''"> and product_status = #{productStatus}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date = #{inDate}</if>
|
||||
<if test="backDate != null and backDate != ''"> and back_date = #{backDate}</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid = #{productGuid}</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity = #{outQuantity}</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id = #{stockinDetailId}</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id = #{stockinId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
|
||||
<if test="backDate != null and backDate != ''"> and back_date like concat('%', #{backDate}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
|
||||
<if test="inType != null and inType != ''"> and in_type = #{inType}</if>
|
||||
<if test="inClassId != null and inClassId != ''"> and in_class_id = #{inClassId}</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id = #{stackingId}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 = #{spare4}</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%',#{productId}, '%')</if>
|
||||
<if test="inClassId != null and inClassId != ''"> and in_class_id like concat('%', #{inClassId}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc = #{cDesc}</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind = #{warehouseKind}</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type = #{warehouseType}</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current = #{isCurrent}</if>
|
||||
<if test="price != null and price != ''"> and price = #{price}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
|
||||
<if test="enName != null and enName != ''"> and enName like concat('%', #{enName}, '%')</if>
|
||||
<if test="weight != null and weight != ''"> and weight = #{weight}</if>
|
||||
<if test="longMM != null and longMM != ''"> and longMM = #{longMM}</if>
|
||||
<if test="wide != null and wide != ''"> and wide = #{wide}</if>
|
||||
<if test="hight != null and hight != ''"> and hight = #{hight}</if>
|
||||
<if test="volume != null and volume != ''"> and volume = #{volume}</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
|
||||
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id = #{cargoAreaId}</if>
|
||||
<if test="theType != null and theType != ''"> and the_type = #{theType}</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id like concat('%', #{cargoAreaId}, '%')</if>
|
||||
<if test="theType != null and theType != ''"> and the_type like concat('%', #{theType}, '%')</if>
|
||||
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</if>
|
||||
<if test="thePlatoon != null "> and the_platoon = #{thePlatoon}</if>
|
||||
<if test="theColumn != null "> and the_column = #{theColumn}</if>
|
||||
<if test="theFloor != null "> and the_floor = #{theFloor}</if>
|
||||
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
|
||||
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
|
||||
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
|
||||
<if test="cargoStatus != null and cargoStatus != ''"> and cargo_status = #{cargoStatus}</if>
|
||||
<if test="locked != null and locked != ''"> and locked = #{locked}</if>
|
||||
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight = #{cargoHight}</if>
|
||||
<if test="issDouble != null and issDouble != ''"> and iss_double = #{issDouble}</if>
|
||||
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no = #{groupCodingNo}</if>
|
||||
<if test="groupCoding != null and groupCoding != ''"> and group_coding = #{groupCoding}</if>
|
||||
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo = #{cargoSpaceLogo}</if>
|
||||
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area = #{thisCargoArea}</if>
|
||||
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight like concat('%', #{cargoHight}, '%')</if>
|
||||
<if test="issDouble != null and issDouble != ''"> and iss_double like concat('%', #{issDouble}, '%')</if>
|
||||
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no like concat('%', #{groupCodingNo}, '%')</if>
|
||||
<if test="groupCoding != null and groupCoding != ''"> and group_coding like concat('%', #{groupCoding}, '%')</if>
|
||||
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo like concat('%', #{cargoSpaceLogo}, '%')</if>
|
||||
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area like concat('%', #{thisCargoArea}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -146,7 +206,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="inDate != null">in_date,</if>
|
||||
<if test="backDate != null">back_date,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="jobId != null">job_id,</if>
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
@@ -157,29 +216,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">in_class_id,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="stackingId != null">stacking_id,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="enName != null">enName,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="longMM != null">longMM,</if>
|
||||
<if test="wide != null">wide,</if>
|
||||
<if test="hight != null">hight,</if>
|
||||
<if test="volume != null">volume,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||
<if test="roadwayId != null">roadway_id,</if>
|
||||
<if test="cargoAreaId != null">cargo_area_id,</if>
|
||||
@@ -205,7 +295,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="inDate != null">#{inDate},</if>
|
||||
<if test="backDate != null">#{backDate},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="jobId != null">#{jobId},</if>
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
@@ -216,29 +305,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">#{inClassId},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="stackingId != null">#{stackingId},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="enName != null">#{enName},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="longMM != null">#{longMM},</if>
|
||||
<if test="wide != null">#{wide},</if>
|
||||
<if test="hight != null">#{hight},</if>
|
||||
<if test="volume != null">#{volume},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
|
||||
<if test="roadwayId != null">#{roadwayId},</if>
|
||||
<if test="cargoAreaId != null">#{cargoAreaId},</if>
|
||||
@@ -267,7 +387,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="inDate != null">in_date = #{inDate},</if>
|
||||
<if test="backDate != null">back_date = #{backDate},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="jobId != null">job_id = #{jobId},</if>
|
||||
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||
@@ -278,29 +397,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">in_class_id = #{inClassId},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="enName != null">enName = #{enName},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="longMM != null">longMM = #{longMM},</if>
|
||||
<if test="wide != null">wide = #{wide},</if>
|
||||
<if test="hight != null">hight = #{hight},</if>
|
||||
<if test="volume != null">volume = #{volume},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
|
||||
|
||||
@@ -12,7 +12,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="inDate" column="in_date" />
|
||||
<result property="backDate" column="back_date" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="trayCode" column="tray_code" />
|
||||
@@ -23,29 +22,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="inClassId" column="in_class_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="stackingId" column="stacking_id" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="cDesc" column="c_desc" />
|
||||
<result property="warehouseKind" column="warehouse_kind" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
<result property="isCurrent" column="is_current" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="enName" column="enName" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="longMM" column="longMM" />
|
||||
<result property="wide" column="wide" />
|
||||
<result property="hight" column="hight" />
|
||||
<result property="volume" column="volume" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
<result property="cargoSpaceName" column="cargo_space_name" />
|
||||
<result property="roadwayId" column="roadway_id" />
|
||||
<result property="cargoAreaId" column="cargo_area_id" />
|
||||
@@ -65,69 +95,99 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockWarningVo">
|
||||
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, price, unit, spec, enName, weight, longMM, wide, hight, volume, product_name, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning
|
||||
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, cargo_space_name, roadway_id, cargo_area_id, the_type, the_type_name, the_platoon, the_column, the_floor, cargo_status, locked, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area from view_stock_warning
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockWarningList" parameterType="ViewStockWarning" resultMap="ViewStockWarningResult">
|
||||
<include refid="selectViewStockWarningVo"/>
|
||||
<where>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id = #{stockId}</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id = #{cargoSpaceId}</if>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id like concat('%', #{stockId}, '%')</if>
|
||||
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id like concat('%', #{cargoSpaceId}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="productStatus != null and productStatus != ''"> and product_status = #{productStatus}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date = #{inDate}</if>
|
||||
<if test="backDate != null and backDate != ''"> and back_date = #{backDate}</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid = #{productGuid}</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity = #{outQuantity}</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id = #{stockinDetailId}</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id = #{stockinId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date like concat('%', #{inDate}, '%')</if>
|
||||
<if test="backDate != null and backDate != ''"> and back_date like concat('%', #{backDate}, '%')</if>
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id like concat('%', #{jobId}, '%')</if>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code like concat('%', #{trayCode}, '%')</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity like concat('%', #{outQuantity}, '%')</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and stockin_detail_id like concat('%', #{stockinDetailId}, '%')</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
|
||||
<if test="inType != null and inType != ''"> and in_type = #{inType}</if>
|
||||
<if test="inClassId != null and inClassId != ''"> and in_class_id = #{inClassId}</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id = #{stackingId}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 = #{spare4}</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="inClassId != null and inClassId != ''"> and in_class_id like concat('%', #{inClassId}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id like concat('%', #{stackingId}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc = #{cDesc}</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind = #{warehouseKind}</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type = #{warehouseType}</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current = #{isCurrent}</if>
|
||||
<if test="price != null and price != ''"> and price = #{price}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
|
||||
<if test="enName != null and enName != ''"> and enName like concat('%', #{enName}, '%')</if>
|
||||
<if test="weight != null and weight != ''"> and weight = #{weight}</if>
|
||||
<if test="longMM != null and longMM != ''"> and longMM = #{longMM}</if>
|
||||
<if test="wide != null and wide != ''"> and wide = #{wide}</if>
|
||||
<if test="hight != null and hight != ''"> and hight = #{hight}</if>
|
||||
<if test="volume != null and volume != ''"> and volume = #{volume}</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
||||
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
||||
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
||||
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
|
||||
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id = #{cargoAreaId}</if>
|
||||
<if test="theType != null and theType != ''"> and the_type = #{theType}</if>
|
||||
<if test="roadwayId != null and roadwayId != ''"> and roadway_id like concat('%', #{roadwayId}, '%')</if>
|
||||
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id like concat('%', #{cargoAreaId}, '%')</if>
|
||||
<if test="theType != null and theType != ''"> and the_type like concat('%', #{theType}, '%')</if>
|
||||
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</if>
|
||||
<if test="thePlatoon != null "> and the_platoon = #{thePlatoon}</if>
|
||||
<if test="theColumn != null "> and the_column = #{theColumn}</if>
|
||||
<if test="theFloor != null "> and the_floor = #{theFloor}</if>
|
||||
<if test="thePlatoon != null "> and the_platoon like concat('%', #{thePlatoon}, '%')</if>
|
||||
<if test="theColumn != null "> and the_column like concat('%', #{theColumn}, '%')</if>
|
||||
<if test="theFloor != null "> and the_floor like concat('%', #{theFloor}, '%')</if>
|
||||
<if test="cargoStatus != null and cargoStatus != ''"> and cargo_status = #{cargoStatus}</if>
|
||||
<if test="locked != null and locked != ''"> and locked = #{locked}</if>
|
||||
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight = #{cargoHight}</if>
|
||||
<if test="issDouble != null and issDouble != ''"> and iss_double = #{issDouble}</if>
|
||||
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no = #{groupCodingNo}</if>
|
||||
<if test="groupCoding != null and groupCoding != ''"> and group_coding = #{groupCoding}</if>
|
||||
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo = #{cargoSpaceLogo}</if>
|
||||
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area = #{thisCargoArea}</if>
|
||||
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight like concat('%', #{cargoHight}, '%')</if>
|
||||
<if test="issDouble != null and issDouble != ''"> and iss_double like concat('%', #{issDouble}, '%')</if>
|
||||
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no like concat('%', #{groupCodingNo}, '%')</if>
|
||||
<if test="groupCoding != null and groupCoding != ''"> and group_coding like concat('%', #{groupCoding}, '%')</if>
|
||||
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo like concat('%', #{cargoSpaceLogo}, '%')</if>
|
||||
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area like concat('%', #{thisCargoArea}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -146,7 +206,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="inDate != null">in_date,</if>
|
||||
<if test="backDate != null">back_date,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="jobId != null">job_id,</if>
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
@@ -157,29 +216,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">in_class_id,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="stackingId != null">stacking_id,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="cDesc != null">c_desc,</if>
|
||||
<if test="warehouseKind != null">warehouse_kind,</if>
|
||||
<if test="warehouseType != null">warehouse_type,</if>
|
||||
<if test="isCurrent != null">is_current,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="enName != null">enName,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="longMM != null">longMM,</if>
|
||||
<if test="wide != null">wide,</if>
|
||||
<if test="hight != null">hight,</if>
|
||||
<if test="volume != null">volume,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name,</if>
|
||||
<if test="roadwayId != null">roadway_id,</if>
|
||||
<if test="cargoAreaId != null">cargo_area_id,</if>
|
||||
@@ -205,7 +295,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="inDate != null">#{inDate},</if>
|
||||
<if test="backDate != null">#{backDate},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="jobId != null">#{jobId},</if>
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
@@ -216,29 +305,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">#{inClassId},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="stackingId != null">#{stackingId},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="cDesc != null">#{cDesc},</if>
|
||||
<if test="warehouseKind != null">#{warehouseKind},</if>
|
||||
<if test="warehouseType != null">#{warehouseType},</if>
|
||||
<if test="isCurrent != null">#{isCurrent},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="enName != null">#{enName},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="longMM != null">#{longMM},</if>
|
||||
<if test="wide != null">#{wide},</if>
|
||||
<if test="hight != null">#{hight},</if>
|
||||
<if test="volume != null">#{volume},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
<if test="cargoSpaceName != null">#{cargoSpaceName},</if>
|
||||
<if test="roadwayId != null">#{roadwayId},</if>
|
||||
<if test="cargoAreaId != null">#{cargoAreaId},</if>
|
||||
@@ -267,7 +387,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="inDate != null">in_date = #{inDate},</if>
|
||||
<if test="backDate != null">back_date = #{backDate},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="jobId != null">job_id = #{jobId},</if>
|
||||
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||
@@ -278,29 +397,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="inClassId != null">in_class_id = #{inClassId},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="stackingId != null">stacking_id = #{stackingId},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
||||
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
||||
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
||||
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="enName != null">enName = #{enName},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="longMM != null">longMM = #{longMM},</if>
|
||||
<if test="wide != null">wide = #{wide},</if>
|
||||
<if test="hight != null">hight = #{hight},</if>
|
||||
<if test="volume != null">volume = #{volume},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
<if test="cargoSpaceName != null">cargo_space_name = #{cargoSpaceName},</if>
|
||||
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
|
||||
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewStockinHistory.mapper.ViewStockinHistoryMapper">
|
||||
|
||||
|
||||
<resultMap type="ViewStockinHistory" id="ViewStockinHistoryResult">
|
||||
<result property="stockinGuid" column="stockin_guid" />
|
||||
<result property="stockinId" column="stockin_id" />
|
||||
@@ -36,27 +36,64 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="scanNumJ" column="scan_num_j" />
|
||||
<result property="printDate" column="print_date" />
|
||||
<result property="stockStatus" column="stock_status" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockinHistoryVo">
|
||||
select stockin_guid, stockin_id, in_type, create_date, create_man_id, status, warehouse_id, finish_date, erp_bill, stock_source, department_no, class_no, supplier_no, supplier_name, simple_name, contact_name, contact_number, address, stockin_detail_id, lot_no, quantity, quantity_x, quantity_j, assign_num, assign_num_x, assign_num_j, scan_num, scan_num_x, scan_num_j, print_date, stock_status, price, remark, product_id, product_name, unit, spec, spare1,spare2,spare5,spare6,spare7,spare8 from view_stockin_history vsh
|
||||
select stockin_guid, stockin_id, in_type, create_date, create_man_id, status, warehouse_id, finish_date, erp_bill, stock_source, department_no, class_no, supplier_no, supplier_name, simple_name, contact_name, contact_number, address, stockin_detail_id, lot_no, quantity, quantity_x, quantity_j, assign_num, assign_num_x, assign_num_j, scan_num, scan_num_x, scan_num_j, print_date, stock_status, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39, warehouse_name from view_stockin_history
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockinHistoryList" parameterType="ViewStockinHistory" resultMap="ViewStockinHistoryResult">
|
||||
<include refid="selectViewStockinHistoryVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stockinGuid != null and stockinGuid != ''"> and stockin_guid like concat('%', #{stockinGuid}, '%')</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id like concat('%', #{stockinId}, '%')</if>
|
||||
<if test="inType != null and inType != ''"> and in_type = #{inType}</if>
|
||||
@@ -80,32 +117,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="quantityX != null and quantityX != ''"> and quantity_x like concat('%', #{quantityX}, '%')</if>
|
||||
<if test="quantityJ != null and quantityJ != ''"> and quantity_j like concat('%', #{quantityJ}, '%')</if>
|
||||
<if test="assignNum != null and assignNum != ''"> and assign_num = #{assignNum}</if>
|
||||
<if test="assignNumX != null and assignNumX != ''"> and assign_num_x = #{assignNumX}</if>
|
||||
<if test="assignNumJ != null and assignNumJ != ''"> and assign_num_j = #{assignNumJ}</if>
|
||||
<if test="scanNum != null and scanNum != ''"> and scan_num = #{scanNum}</if>
|
||||
<if test="scanNumX != null and scanNumX != ''"> and scan_num_x = #{scanNumX}</if>
|
||||
<if test="scanNumJ != null and scanNumJ != ''"> and scan_num_j = #{scanNumJ}</if>
|
||||
<if test="assignNum != null and assignNum != ''"> and assign_num like concat('%', #{assignNum}, '%')</if>
|
||||
<if test="assignNumX != null and assignNumX != ''"> and assign_num_x like concat('%', #{assignNumX}, '%')</if>
|
||||
<if test="assignNumJ != null and assignNumJ != ''"> and assign_num_j like concat('%', #{assignNumJ}, '%')</if>
|
||||
<if test="scanNum != null and scanNum != ''"> and scan_num like concat('%', #{scanNum}, '%')</if>
|
||||
<if test="scanNumX != null and scanNumX != ''"> and scan_num_x like concat('%', #{scanNumX}, '%')</if>
|
||||
<if test="scanNumJ != null and scanNumJ != ''"> and scan_num_j like concat('%', #{scanNumJ}, '%')</if>
|
||||
<if test="printDate != null and printDate != ''"> and print_date like concat('%', #{printDate}, '%')</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectViewStockinHistoryByStockinGuid" parameterType="String" resultMap="ViewStockinHistoryResult">
|
||||
<include refid="selectViewStockinHistoryVo"/>
|
||||
where stockin_guid = #{stockinGuid}
|
||||
@@ -145,18 +216,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="scanNumJ != null">scan_num_j,</if>
|
||||
<if test="printDate != null">print_date,</if>
|
||||
<if test="stockStatus != null">stock_status,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
<if test="warehouseName != null">warehouse_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stockinGuid != null and stockinGuid != ''">#{stockinGuid},</if>
|
||||
@@ -190,18 +298,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="scanNumJ != null">#{scanNumJ},</if>
|
||||
<if test="printDate != null">#{printDate},</if>
|
||||
<if test="stockStatus != null">#{stockStatus},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
<if test="warehouseName != null">#{warehouseName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -238,18 +383,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="scanNumJ != null">scan_num_j = #{scanNumJ},</if>
|
||||
<if test="printDate != null">print_date = #{printDate},</if>
|
||||
<if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
||||
</trim>
|
||||
where stockin_guid = #{stockinGuid}
|
||||
</update>
|
||||
@@ -259,9 +441,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewStockinHistoryByStockinGuids" parameterType="String">
|
||||
delete from view_stockin_history where stockin_guid in
|
||||
delete from view_stockin_history where stockin_guid in
|
||||
<foreach item="stockinGuid" collection="array" open="(" separator="," close=")">
|
||||
#{stockinGuid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
@@ -3,19 +3,17 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.search.ViewStockoutHistory.mapper.ViewStockoutHistoryMapper">
|
||||
|
||||
|
||||
<resultMap type="ViewStockoutHistory" id="ViewStockoutHistoryResult">
|
||||
<result property="stockoutId" column="stockout_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="outType" column="out_type" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="createManId" column="create_man_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="stockoutSource" column="stockout_source" />
|
||||
<result property="exitId" column="exit_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="stockoutDetailId" column="stockout_detail_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="lotNo" column="lot_no" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="allotQuantity" column="allot_quantity" />
|
||||
@@ -23,36 +21,72 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="erpStockoutId" column="erp_stockout_id" />
|
||||
<result property="entryid" column="entryid" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="spare7" column="spare7" />
|
||||
<result property="spare8" column="spare8" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare9" column="spare9" />
|
||||
<result property="spare10" column="spare10" />
|
||||
<result property="spare11" column="spare11" />
|
||||
<result property="spare12" column="spare12" />
|
||||
<result property="spare13" column="spare13" />
|
||||
<result property="spare14" column="spare14" />
|
||||
<result property="spare15" column="spare15" />
|
||||
<result property="spare16" column="spare16" />
|
||||
<result property="spare17" column="spare17" />
|
||||
<result property="spare18" column="spare18" />
|
||||
<result property="spare19" column="spare19" />
|
||||
<result property="spare20" column="spare20" />
|
||||
<result property="spare21" column="spare21" />
|
||||
<result property="spare22" column="spare22" />
|
||||
<result property="spare23" column="spare23" />
|
||||
<result property="spare24" column="spare24" />
|
||||
<result property="spare25" column="spare25" />
|
||||
<result property="spare26" column="spare26" />
|
||||
<result property="spare27" column="spare27" />
|
||||
<result property="spare28" column="spare28" />
|
||||
<result property="spare29" column="spare29" />
|
||||
<result property="spare30" column="spare30" />
|
||||
<result property="spare31" column="spare31" />
|
||||
<result property="spare32" column="spare32" />
|
||||
<result property="spare33" column="spare33" />
|
||||
<result property="spare34" column="spare34" />
|
||||
<result property="spare35" column="spare35" />
|
||||
<result property="spare36" column="spare36" />
|
||||
<result property="spare37" column="spare37" />
|
||||
<result property="spare38" column="spare38" />
|
||||
<result property="spare39" column="spare39" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewStockoutHistoryVo">
|
||||
select stockout_id,warehouse_id, out_type, create_date, create_man_id, status, stockout_source, exit_id, stockout_detail_id, product_id, product_name, lot_no, quantity, allot_quantity, assign_num, erp_stockout_id, entryid, customer_name, spec, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_stockout_history vsh
|
||||
select stockout_id, out_type, create_date, create_man_id, status, stockout_source, exit_id, warehouse_id, stockout_detail_id, lot_no, quantity, allot_quantity, assign_num, erp_stockout_id, entryid, customer_name, product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name, spare7, spare8, spare9, spare10, spare11, spare12, spare13, spare14, spare15, spare16, spare17, spare18, spare19, spare20, spare21, spare22, spare23, spare24, spare25, spare26, spare27, spare28, spare29, spare30, spare31, spare32, spare33, spare34, spare35, spare36, spare37, spare38, spare39 from view_stockout_history
|
||||
</sql>
|
||||
|
||||
<select id="selectViewStockoutHistoryList" parameterType="ViewStockoutHistory" resultMap="ViewStockoutHistoryResult">
|
||||
<include refid="selectViewStockoutHistoryVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stockoutId != null and stockoutId != ''"> and stockout_id like concat('%', #{stockoutId}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="outType != null and outType != ''"> and out_type = #{outType}</if>
|
||||
<if test="createDate != null and createDate != ''"> and create_date like concat('%', #{createDate}, '%')</if>
|
||||
<if test="createManId != null and createManId != ''"> and create_man_id like concat('%', #{createManId}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="stockoutSource != null and stockoutSource != ''"> and stockout_source like concat('%', #{stockoutSource}, '%')</if>
|
||||
<if test="exitId != null and exitId != ''"> and exit_id like concat('%', #{exitId}, '%')</if>
|
||||
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
||||
<if test="stockoutDetailId != null and stockoutDetailId != ''"> and stockout_detail_id like concat('%', #{stockoutDetailId}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no like concat('%', #{lotNo}, '%')</if>
|
||||
<if test="quantity != null "> and quantity like concat('%', #{quantity}, '%')</if>
|
||||
<if test="allotQuantity != null "> and allot_quantity like concat('%', #{allotQuantity}, '%')</if>
|
||||
@@ -60,21 +94,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="erpStockoutId != null and erpStockoutId != ''"> and erp_stockout_id like concat('%', #{erpStockoutId}, '%')</if>
|
||||
<if test="entryid != null and entryid != ''"> and entryid like concat('%', #{entryid}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
||||
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
||||
${params.warehouseDataScope}
|
||||
</if>
|
||||
<if test="spare9 != null and spare9 != ''"> and spare9 like concat('%', #{spare9}, '%')</if>
|
||||
<if test="spare10 != null and spare10 != ''"> and spare10 like concat('%', #{spare10}, '%')</if>
|
||||
<if test="spare11 != null and spare11 != ''"> and spare11 like concat('%', #{spare11}, '%')</if>
|
||||
<if test="spare12 != null and spare12 != ''"> and spare12 like concat('%', #{spare12}, '%')</if>
|
||||
<if test="spare13 != null and spare13 != ''"> and spare13 like concat('%', #{spare13}, '%')</if>
|
||||
<if test="spare14 != null and spare14 != ''"> and spare14 like concat('%', #{spare14}, '%')</if>
|
||||
<if test="spare15 != null and spare15 != ''"> and spare15 like concat('%', #{spare15}, '%')</if>
|
||||
<if test="spare16 != null and spare16 != ''"> and spare16 like concat('%', #{spare16}, '%')</if>
|
||||
<if test="spare17 != null and spare17 != ''"> and spare17 like concat('%', #{spare17}, '%')</if>
|
||||
<if test="spare18 != null and spare18 != ''"> and spare18 like concat('%', #{spare18}, '%')</if>
|
||||
<if test="spare19 != null and spare19 != ''"> and spare19 like concat('%', #{spare19}, '%')</if>
|
||||
<if test="spare20 != null and spare20 != ''"> and spare20 like concat('%', #{spare20}, '%')</if>
|
||||
<if test="spare21 != null and spare21 != ''"> and spare21 like concat('%', #{spare21}, '%')</if>
|
||||
<if test="spare22 != null and spare22 != ''"> and spare22 like concat('%', #{spare22}, '%')</if>
|
||||
<if test="spare23 != null and spare23 != ''"> and spare23 like concat('%', #{spare23}, '%')</if>
|
||||
<if test="spare24 != null and spare24 != ''"> and spare24 like concat('%', #{spare24}, '%')</if>
|
||||
<if test="spare25 != null and spare25 != ''"> and spare25 like concat('%', #{spare25}, '%')</if>
|
||||
<if test="spare26 != null and spare26 != ''"> and spare26 like concat('%', #{spare26}, '%')</if>
|
||||
<if test="spare27 != null and spare27 != ''"> and spare27 like concat('%', #{spare27}, '%')</if>
|
||||
<if test="spare28 != null and spare28 != ''"> and spare28 like concat('%', #{spare28}, '%')</if>
|
||||
<if test="spare29 != null and spare29 != ''"> and spare29 like concat('%', #{spare29}, '%')</if>
|
||||
<if test="spare30 != null and spare30 != ''"> and spare30 like concat('%', #{spare30}, '%')</if>
|
||||
<if test="spare31 != null and spare31 != ''"> and spare31 like concat('%', #{spare31}, '%')</if>
|
||||
<if test="spare32 != null and spare32 != ''"> and spare32 like concat('%', #{spare32}, '%')</if>
|
||||
<if test="spare33 != null and spare33 != ''"> and spare33 like concat('%', #{spare33}, '%')</if>
|
||||
<if test="spare34 != null and spare34 != ''"> and spare34 like concat('%', #{spare34}, '%')</if>
|
||||
<if test="spare35 != null and spare35 != ''"> and spare35 like concat('%', #{spare35}, '%')</if>
|
||||
<if test="spare36 != null and spare36 != ''"> and spare36 like concat('%', #{spare36}, '%')</if>
|
||||
<if test="spare37 != null and spare37 != ''"> and spare37 like concat('%', #{spare37}, '%')</if>
|
||||
<if test="spare38 != null and spare38 != ''"> and spare38 like concat('%', #{spare38}, '%')</if>
|
||||
<if test="spare39 != null and spare39 != ''"> and spare39 like concat('%', #{spare39}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectViewStockoutHistoryByStockoutId" parameterType="String" resultMap="ViewStockoutHistoryResult">
|
||||
<include refid="selectViewStockoutHistoryVo"/>
|
||||
where stockout_id = #{stockoutId}
|
||||
@@ -84,15 +154,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
insert into view_stockout_history
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="stockoutId != null and stockoutId != ''">stockout_id,</if>
|
||||
<if test="outType != null">out_type,</if>
|
||||
<if test="createDate != null">create_date,</if>
|
||||
<if test="outType != null and outType != ''">out_type,</if>
|
||||
<if test="createDate != null and createDate != ''">create_date,</if>
|
||||
<if test="createManId != null">create_man_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="stockoutSource != null">stockout_source,</if>
|
||||
<if test="exitId != null">exit_id,</if>
|
||||
<if test="stockoutDetailId != null">stockout_detail_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="stockoutDetailId != null and stockoutDetailId != ''">stockout_detail_id,</if>
|
||||
<if test="lotNo != null">lot_no,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="allotQuantity != null">allot_quantity,</if>
|
||||
@@ -100,28 +169,65 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="erpStockoutId != null">erp_stockout_id,</if>
|
||||
<if test="entryid != null">entryid,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="spare7 != null">spare7,</if>
|
||||
<if test="spare8 != null">spare8,</if>
|
||||
<if test="spare9 != null">spare9,</if>
|
||||
<if test="spare10 != null">spare10,</if>
|
||||
<if test="spare11 != null">spare11,</if>
|
||||
<if test="spare12 != null">spare12,</if>
|
||||
<if test="spare13 != null">spare13,</if>
|
||||
<if test="spare14 != null">spare14,</if>
|
||||
<if test="spare15 != null">spare15,</if>
|
||||
<if test="spare16 != null">spare16,</if>
|
||||
<if test="spare17 != null">spare17,</if>
|
||||
<if test="spare18 != null">spare18,</if>
|
||||
<if test="spare19 != null">spare19,</if>
|
||||
<if test="spare20 != null">spare20,</if>
|
||||
<if test="spare21 != null">spare21,</if>
|
||||
<if test="spare22 != null">spare22,</if>
|
||||
<if test="spare23 != null">spare23,</if>
|
||||
<if test="spare24 != null">spare24,</if>
|
||||
<if test="spare25 != null">spare25,</if>
|
||||
<if test="spare26 != null">spare26,</if>
|
||||
<if test="spare27 != null">spare27,</if>
|
||||
<if test="spare28 != null">spare28,</if>
|
||||
<if test="spare29 != null">spare29,</if>
|
||||
<if test="spare30 != null">spare30,</if>
|
||||
<if test="spare31 != null">spare31,</if>
|
||||
<if test="spare32 != null">spare32,</if>
|
||||
<if test="spare33 != null">spare33,</if>
|
||||
<if test="spare34 != null">spare34,</if>
|
||||
<if test="spare35 != null">spare35,</if>
|
||||
<if test="spare36 != null">spare36,</if>
|
||||
<if test="spare37 != null">spare37,</if>
|
||||
<if test="spare38 != null">spare38,</if>
|
||||
<if test="spare39 != null">spare39,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stockoutId != null and stockoutId != ''">#{stockoutId},</if>
|
||||
<if test="outType != null">#{outType},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="outType != null and outType != ''">#{outType},</if>
|
||||
<if test="createDate != null and createDate != ''">#{createDate},</if>
|
||||
<if test="createManId != null">#{createManId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="stockoutSource != null">#{stockoutSource},</if>
|
||||
<if test="exitId != null">#{exitId},</if>
|
||||
<if test="stockoutDetailId != null">#{stockoutDetailId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="stockoutDetailId != null and stockoutDetailId != ''">#{stockoutDetailId},</if>
|
||||
<if test="lotNo != null">#{lotNo},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="allotQuantity != null">#{allotQuantity},</if>
|
||||
@@ -129,31 +235,68 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="erpStockoutId != null">#{erpStockoutId},</if>
|
||||
<if test="entryid != null">#{entryid},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="spare7 != null">#{spare7},</if>
|
||||
<if test="spare8 != null">#{spare8},</if>
|
||||
<if test="spare9 != null">#{spare9},</if>
|
||||
<if test="spare10 != null">#{spare10},</if>
|
||||
<if test="spare11 != null">#{spare11},</if>
|
||||
<if test="spare12 != null">#{spare12},</if>
|
||||
<if test="spare13 != null">#{spare13},</if>
|
||||
<if test="spare14 != null">#{spare14},</if>
|
||||
<if test="spare15 != null">#{spare15},</if>
|
||||
<if test="spare16 != null">#{spare16},</if>
|
||||
<if test="spare17 != null">#{spare17},</if>
|
||||
<if test="spare18 != null">#{spare18},</if>
|
||||
<if test="spare19 != null">#{spare19},</if>
|
||||
<if test="spare20 != null">#{spare20},</if>
|
||||
<if test="spare21 != null">#{spare21},</if>
|
||||
<if test="spare22 != null">#{spare22},</if>
|
||||
<if test="spare23 != null">#{spare23},</if>
|
||||
<if test="spare24 != null">#{spare24},</if>
|
||||
<if test="spare25 != null">#{spare25},</if>
|
||||
<if test="spare26 != null">#{spare26},</if>
|
||||
<if test="spare27 != null">#{spare27},</if>
|
||||
<if test="spare28 != null">#{spare28},</if>
|
||||
<if test="spare29 != null">#{spare29},</if>
|
||||
<if test="spare30 != null">#{spare30},</if>
|
||||
<if test="spare31 != null">#{spare31},</if>
|
||||
<if test="spare32 != null">#{spare32},</if>
|
||||
<if test="spare33 != null">#{spare33},</if>
|
||||
<if test="spare34 != null">#{spare34},</if>
|
||||
<if test="spare35 != null">#{spare35},</if>
|
||||
<if test="spare36 != null">#{spare36},</if>
|
||||
<if test="spare37 != null">#{spare37},</if>
|
||||
<if test="spare38 != null">#{spare38},</if>
|
||||
<if test="spare39 != null">#{spare39},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateViewStockoutHistory" parameterType="ViewStockoutHistory">
|
||||
update view_stockout_history
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="outType != null">out_type = #{outType},</if>
|
||||
<if test="createDate != null">create_date = #{createDate},</if>
|
||||
<if test="outType != null and outType != ''">out_type = #{outType},</if>
|
||||
<if test="createDate != null and createDate != ''">create_date = #{createDate},</if>
|
||||
<if test="createManId != null">create_man_id = #{createManId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="stockoutSource != null">stockout_source = #{stockoutSource},</if>
|
||||
<if test="exitId != null">exit_id = #{exitId},</if>
|
||||
<if test="stockoutDetailId != null">stockout_detail_id = #{stockoutDetailId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="stockoutDetailId != null and stockoutDetailId != ''">stockout_detail_id = #{stockoutDetailId},</if>
|
||||
<if test="lotNo != null">lot_no = #{lotNo},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="allotQuantity != null">allot_quantity = #{allotQuantity},</if>
|
||||
@@ -161,16 +304,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="erpStockoutId != null">erp_stockout_id = #{erpStockoutId},</if>
|
||||
<if test="entryid != null">entryid = #{entryid},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="spare7 != null">spare7 = #{spare7},</if>
|
||||
<if test="spare8 != null">spare8 = #{spare8},</if>
|
||||
<if test="spare9 != null">spare9 = #{spare9},</if>
|
||||
<if test="spare10 != null">spare10 = #{spare10},</if>
|
||||
<if test="spare11 != null">spare11 = #{spare11},</if>
|
||||
<if test="spare12 != null">spare12 = #{spare12},</if>
|
||||
<if test="spare13 != null">spare13 = #{spare13},</if>
|
||||
<if test="spare14 != null">spare14 = #{spare14},</if>
|
||||
<if test="spare15 != null">spare15 = #{spare15},</if>
|
||||
<if test="spare16 != null">spare16 = #{spare16},</if>
|
||||
<if test="spare17 != null">spare17 = #{spare17},</if>
|
||||
<if test="spare18 != null">spare18 = #{spare18},</if>
|
||||
<if test="spare19 != null">spare19 = #{spare19},</if>
|
||||
<if test="spare20 != null">spare20 = #{spare20},</if>
|
||||
<if test="spare21 != null">spare21 = #{spare21},</if>
|
||||
<if test="spare22 != null">spare22 = #{spare22},</if>
|
||||
<if test="spare23 != null">spare23 = #{spare23},</if>
|
||||
<if test="spare24 != null">spare24 = #{spare24},</if>
|
||||
<if test="spare25 != null">spare25 = #{spare25},</if>
|
||||
<if test="spare26 != null">spare26 = #{spare26},</if>
|
||||
<if test="spare27 != null">spare27 = #{spare27},</if>
|
||||
<if test="spare28 != null">spare28 = #{spare28},</if>
|
||||
<if test="spare29 != null">spare29 = #{spare29},</if>
|
||||
<if test="spare30 != null">spare30 = #{spare30},</if>
|
||||
<if test="spare31 != null">spare31 = #{spare31},</if>
|
||||
<if test="spare32 != null">spare32 = #{spare32},</if>
|
||||
<if test="spare33 != null">spare33 = #{spare33},</if>
|
||||
<if test="spare34 != null">spare34 = #{spare34},</if>
|
||||
<if test="spare35 != null">spare35 = #{spare35},</if>
|
||||
<if test="spare36 != null">spare36 = #{spare36},</if>
|
||||
<if test="spare37 != null">spare37 = #{spare37},</if>
|
||||
<if test="spare38 != null">spare38 = #{spare38},</if>
|
||||
<if test="spare39 != null">spare39 = #{spare39},</if>
|
||||
</trim>
|
||||
where stockout_id = #{stockoutId}
|
||||
</update>
|
||||
@@ -180,9 +361,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteViewStockoutHistoryByStockoutIds" parameterType="String">
|
||||
delete from view_stockout_history where stockout_id in
|
||||
delete from view_stockout_history where stockout_id in
|
||||
<foreach item="stockoutId" collection="array" open="(" separator="," close=")">
|
||||
#{stockoutId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user