Commit afaa2a38 by huluobin

周转

parent 83bf2bf9
......@@ -5,8 +5,8 @@
<configuration>
<!--<properties resource="db-tj.properties"/>-->
<!-- <properties resource="db-dev.properties"/>-->
<properties resource="db-prod.properties"/>
<!-- <properties resource="db-dev.properties"/>-->
<properties resource="db-prod.properties"/>
<settings>
<setting name="mapUnderscoreToCamelCase" value="true"/>
</settings>
......
......@@ -1510,6 +1510,7 @@ public class AutoTurnoverJob extends PointJob {
//仓库。根据历史销量加权计算。最后可以乘以一个倍数
dcAutoConfigSafeInventory = autoConfigSafeInventoryMapper.selectOneByExample(DcAutoConfigSafeInventoryExample.newAndCreateCriteria().andVariableCodeEqualTo("").andWarehouseCodeEqualTo(warehouseCode).andStatusEqualTo(1).andTypeEqualTo(3).example());
if (dcAutoConfigSafeInventory != null) {
weightingAvgSales = calculateWeightingAvgSales(dcAutoConfigSafeInventory.getWeightingCoefficientSeven(), dcAutoConfigSafeInventory.getWeightingCoefficientFourteen(), dcAutoConfigSafeInventory.getWeightingCoefficientThirty(), historyThirtySalesList);
dcAutoTurnover.setDailyWeightedSales(weightingAvgSales);
//乘倍数后的加权日均销量,小于0.8就置0 0.8-1 之间就置1
......
......@@ -11,8 +11,8 @@ ZOOKEEPER_SERVER=172.31.255.120:2181
NAME_SPACE=data-center
JOB_NAME=show-auto-turnover44
JOB_CRON=0 0 3 * * ?
#JOB_CRON=0 50 17 * * ?
#JOB_CRON=0 0 3 * * ?
JOB_CRON=0 50 13 * * ?
SHARDING_TOTAL_COUNT=8
JOB_NAME_NE_NORMAL=show-auto-turnover-ne-normal
......
......@@ -257,8 +257,8 @@ public class AutoTurnoverTest {
public void testXX2() {
DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class)
.selectOneByExample(DcBaseStockExample.newAndCreateCriteria()
.andBailunSkuEqualTo("951386201")
.andWarehouseCodeEqualTo("GB4PXBL")
.andBailunSkuEqualTo("951294303")
.andWarehouseCodeEqualTo("GZBLWH")
.example());
try {
......
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