Commit 69eb817a by huluobin

# 更新

parent e9d7c0d0
...@@ -1473,7 +1473,8 @@ ...@@ -1473,7 +1473,8 @@
select t1.* select t1.*
from dc_base_stock t1 from dc_base_stock t1
left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code
where t2.hq_type != '国内仓' left join dc_auto_config_sku_warehouse t3 on t1.bailun_sku = t3.bailun_sku and t1.warehouse_code = t3.warehouse_code
where t2.hq_type != '国内仓' and (t3.`status`=0 or t3.`status` is null)
and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem} and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem}
limit #{pageStart}, #{pageOffset} limit #{pageStart}, #{pageOffset}
</select> </select>
...@@ -1482,7 +1483,8 @@ ...@@ -1482,7 +1483,8 @@
select t1.* select t1.*
from dc_base_stock t1 from dc_base_stock t1
left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code
where t2.hq_type != '国内仓' left join dc_auto_config_sku_warehouse t3 on t1.bailun_sku = t3.bailun_sku and t1.warehouse_code = t3.warehouse_code
where t2.hq_type != '国内仓' and (t3.`status`=0 or t3.`status` is null)
and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem} and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem}
limit #{pageStart}, #{pageOffset} limit #{pageStart}, #{pageOffset}
</select> </select>
...@@ -1491,7 +1493,8 @@ ...@@ -1491,7 +1493,8 @@
select count(t1.id) select count(t1.id)
from dc_base_stock t1 from dc_base_stock t1
left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code
where t2.hq_type != '国内仓' left join dc_auto_config_sku_warehouse t3 on t1.bailun_sku = t3.bailun_sku and t1.warehouse_code = t3.warehouse_code
where t2.hq_type != '国内仓' and (t3.`status`=0 or t3.`status` is null)
and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem} and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem}
</select> </select>
...@@ -1499,7 +1502,8 @@ ...@@ -1499,7 +1502,8 @@
select count(t1.id) select count(t1.id)
from dc_base_stock t1 from dc_base_stock t1
left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code = t2.warehouse_code
where t2.hq_type != '国内仓' left join dc_auto_config_sku_warehouse t3 on t1.bailun_sku = t3.bailun_sku and t1.warehouse_code = t3.warehouse_code
where t2.hq_type != '国内仓' and (t3.`status`=0 or t3.`status` is null)
and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem} and t1.id % #{shardingContext.shardingTotalCount} = #{shardingContext.shardingItem}
</select> </select>
......
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