Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
dc-java
Commits
3731e64c
Commit
3731e64c
authored
Nov 29, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存sql修改
parent
390b5d6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
DcBaseStockMapper.xml
.../src/main/java/com/bailuntec/mapper/DcBaseStockMapper.xml
+12
-4
No files found.
data-common/src/main/java/com/bailuntec/mapper/DcBaseStockMapper.xml
View file @
3731e64c
...
@@ -1242,11 +1242,15 @@
...
@@ -1242,11 +1242,15 @@
<select
id=
"listParameterStockById"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
<select
id=
"listParameterStockById"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
select * from dc_base_stock tb1
select * from dc_base_stock tb1
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
on tb1.warehouse_code=tb2.warehouse_code where tb2.warehouse_code is not null order by tb1.id asc limit #{v1}, #{v2}
on tb1.warehouse_code=tb2.warehouse_code
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where tb2.warehouse_code is not null and tb2.bailun_sku is null order by tb1.id asc limit #{v1}, #{v2}
</select>
</select>
<select
id=
"listWarehouseStockById"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
<select
id=
"listWarehouseStockById"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
select * from dc_base_stock tb1 where warehouse_code=#{warehouseCode} order by id asc limit #{v1}, #{v2}
select * from dc_base_stock tb1
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where warehouse_code=#{warehouseCode} and tb2.bailun_sku is null order by id asc limit #{v1}, #{v2}
</select>
</select>
<select
id=
"listInStockNotInAutoTurnover"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
<select
id=
"listInStockNotInAutoTurnover"
resultType=
"com.bailuntec.domain.entity.DcBaseStock"
>
...
@@ -1257,12 +1261,15 @@
...
@@ -1257,12 +1261,15 @@
select count(*)
select count(*)
from dc_base_stock tb1
from dc_base_stock tb1
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
left join (select warehouse_code,hq_type from dc_base_warehouse where hq_type=#{jobParameter}) tb2
on tb1.warehouse_code=tb2.warehouse_code where tb2.warehouse_code is not null;
on tb1.warehouse_code=tb2.warehouse_code
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where tb2.warehouse_code is not null and tb2.bailun_sku is null
</select>
</select>
<select
id=
"countByWarehouseCode"
resultType=
"long"
>
<select
id=
"countByWarehouseCode"
resultType=
"long"
>
select count(*)
select count(*)
from dc_base_stock tb1
from dc_base_stock tb1
where warehouse_code=#{warehouseCode}
LEFT JOIN dc_auto_turnover tb3 ON tb1.bailun_sku = tb3.bailun_sku and tb1.warehouse_code = tb3.warehouse_code
where warehouse_code=#{warehouseCode} and tb2.bailun_sku is null
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment