Commit d471451f by huluobin

# 更新

parent 251b9d30
...@@ -946,9 +946,9 @@ public class AutoTurnoverJob extends PointJob { ...@@ -946,9 +946,9 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover.setHistoryFourteendaySalesWalmart(BigDecimal.ZERO); dcAutoTurnover.setHistoryFourteendaySalesWalmart(BigDecimal.ZERO);
dcAutoTurnover.setHistoryThirtydaySalesWalmart(BigDecimal.ZERO); dcAutoTurnover.setHistoryThirtydaySalesWalmart(BigDecimal.ZERO);
if (walmartAvgSales != null) { if (walmartAvgSales != null) {
dcAutoTurnover.setHistorySevendaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getSevendaySales()).divide(Constant.BIGDECIMAL_SEVEN, 3, RoundingMode.HALF_EVEN)); dcAutoTurnover.setHistorySevendaySalesWalmart(BigDecimal.valueOf(walmartAvgSales.getSevendaySales()).divide(Constant.BIGDECIMAL_SEVEN, 3, RoundingMode.HALF_EVEN));
dcAutoTurnover.setHistoryFourteendaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getFourteendaySales()).divide(Constant.BIGDECIMAL_FOURTEEN, 3, RoundingMode.HALF_EVEN)); dcAutoTurnover.setHistoryFourteendaySalesWalmart(BigDecimal.valueOf(walmartAvgSales.getFourteendaySales()).divide(Constant.BIGDECIMAL_FOURTEEN, 3, RoundingMode.HALF_EVEN));
dcAutoTurnover.setHistoryThirtydaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN)); dcAutoTurnover.setHistoryThirtydaySalesWalmart(BigDecimal.valueOf(walmartAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN));
} }
} catch (Exception e) { } catch (Exception e) {
......
...@@ -256,8 +256,8 @@ public class AutoTurnoverTest { ...@@ -256,8 +256,8 @@ public class AutoTurnoverTest {
public void testXX2() { public void testXX2() {
DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class) DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class)
.selectOneByExample(DcBaseStockExample.newAndCreateCriteria() .selectOneByExample(DcBaseStockExample.newAndCreateCriteria()
.andBailunSkuEqualTo("942517901") .andBailunSkuEqualTo("266756010")
.andWarehouseCodeEqualTo("MMDUSFBA") .andWarehouseCodeEqualTo("US4PXBL")
.example()); .example());
try { try {
AutoTurnoverJob autoTurnoverJob = new AutoTurnoverJob(); AutoTurnoverJob autoTurnoverJob = new AutoTurnoverJob();
......
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