Commit 31743445 by huluobin

调拨在途

parent 9523a187
...@@ -696,6 +696,7 @@ ...@@ -696,6 +696,7 @@
WHERE STATUS = 1 WHERE STATUS = 1
AND deleted = 0 AND deleted = 0
) t ) t
where t.bailun_sku is not null
GROUP BY bailun_sku, warehouse_code GROUP BY bailun_sku, warehouse_code
</select> </select>
...@@ -706,12 +707,19 @@ ...@@ -706,12 +707,19 @@
values values
<foreach collection="list" item="item" index="index" separator=","> <foreach collection="list" item="item" index="index" separator=",">
( (
#{item.bailunSku,jdbcType=VARCHAR}, #{item.warehouseCode,jdbcType=VARCHAR}, #{item.bailunSku,jdbcType=VARCHAR},
#{item.count,jdbcType=INTEGER},#{item.countplan,jdbcType=INTEGER},#{item.landCount,jdbcType=INTEGER},#{item.oceanCount,jdbcType=INTEGER},#{item.airCount,jdbcType=INTEGER},#{item.railwayCount,jdbcType=INTEGER}, #{item.warehouseCode,jdbcType=VARCHAR},
#{item.count,jdbcType=INTEGER},
#{item.countplan,jdbcType=INTEGER},
#{item.landCount,jdbcType=INTEGER},
#{item.oceanCount,jdbcType=INTEGER},
#{item.airCount,jdbcType=INTEGER},
#{item.railwayCount,jdbcType=INTEGER},
#{localDateTime,jdbcType=TIMESTAMP} #{localDateTime,jdbcType=TIMESTAMP}
) )
</foreach> </foreach>
ON DUPLICATE KEY UPDATE quantity_transfer = values(quantity_transfer), ON DUPLICATE KEY UPDATE
quantity_transfer = values(quantity_transfer),
quantity_transfer_plan = values(quantity_transfer_plan), quantity_transfer_plan = values(quantity_transfer_plan),
quantity_land_transfer = values(quantity_land_transfer), quantity_land_transfer = values(quantity_land_transfer),
quantity_ocean_transfer = values(quantity_ocean_transfer), quantity_ocean_transfer = values(quantity_ocean_transfer),
......
package com.bailuntec.job;
import org.junit.jupiter.api.Test;
/**
* <p>
*
* </p>
*
* @author robbendev
* @since 2020/8/20 12:03 下午
*/
class CalculateTransferTransitTest {
@Test
void execute() {
CalculateTransferTransit calculateTransferTransit = new CalculateTransferTransit();
calculateTransferTransit.execute(null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment