Commit b612396e by huluobin

周系数

parent 1efdef3b
...@@ -461,10 +461,12 @@ ...@@ -461,10 +461,12 @@
SELECT t2.*,t1.week_date from week_config t1 SELECT t2.*,t1.week_date from week_config t1
LEFT JOIN dc_base_week_coefficient t2 LEFT JOIN dc_base_week_coefficient t2
on t1.`week` = t2.`week` and t2.bailun_sku = #{bailunSku} and t2.warehouse_code = #{warehouseCode} on t1.`week` = t2.`week` and t2.bailun_sku = #{bailunSku} and t2.warehouse_code = #{warehouseCode}
and t1.week_date in where t1.week_date in
<foreach close=")" collection="salesDetailItemList" item="item" open="(" separator=","> <foreach close=")" collection="salesDetailItemList" item="item" open="(" separator=",">
#{item.date} #{item.date}
</foreach> </foreach>
and t2.id is not null
</select> </select>
</mapper> </mapper>
...@@ -540,10 +540,11 @@ ...@@ -540,10 +540,11 @@
SELECT * from week_config t1 SELECT * from week_config t1
LEFT JOIN sales_day_config t2 LEFT JOIN sales_day_config t2
on t1.`week_date` = t2.date and t2.bailun_sku = #{bailunSku} and t2.warehouse_code = #{warehouseCode} on t1.`week_date` = t2.date and t2.bailun_sku = #{bailunSku} and t2.warehouse_code = #{warehouseCode}
and t1.week_date in where t1.week_date in
<foreach close=")" collection="salesDetailItemList" item="item" open="(" separator=","> <foreach close=")" collection="salesDetailItemList" item="item" open="(" separator=",">
#{item.date} #{item.date}
</foreach> </foreach>
and t2.id is not null
</select> </select>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<configuration> <configuration>
<!--<properties resource="db-tj.properties"/>--> <!--<properties resource="db-tj.properties"/>-->
<!-- <properties resource="db-dev.properties"/>--> <properties resource="db-dev.properties"/>
<properties resource="db-prod.properties"/> <!-- <properties resource="db-prod.properties"/>-->
<settings> <settings>
<setting name="mapUnderscoreToCamelCase" value="true"/> <setting name="mapUnderscoreToCamelCase" value="true"/>
</settings> </settings>
......
...@@ -137,8 +137,8 @@ public class AutoTurnoverTest { ...@@ -137,8 +137,8 @@ public class AutoTurnoverTest {
public void testXX() { public void testXX() {
DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class) DcBaseStock dcBaseStock = SessionUtil.getSession().getMapper(DcBaseStockMapper.class)
.selectOneByExample(DcBaseStockExample.newAndCreateCriteria() .selectOneByExample(DcBaseStockExample.newAndCreateCriteria()
.andBailunSkuEqualTo("LM-EO-007") .andBailunSkuEqualTo("950136209")
.andWarehouseCodeEqualTo("MMDUSFBA") .andWarehouseCodeEqualTo("GZBLWH")
.example()); .example());
try { 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