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
huluobin
dc-java
Commits
48ec7fb5
Commit
48ec7fb5
authored
Jan 19, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 周转匹配平台规则
parent
85ce7b89
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
4 deletions
+15
-4
DcBaseOmsSkuMapper.java
...rc/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.java
+2
-1
DcBaseOmsSkuMapper.xml
...src/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.xml
+9
-0
CallBailunSystem.java
...src/main/java/com/bailuntec/support/CallBailunSystem.java
+0
-0
mybatis-config.xml
data-common/src/main/resources/mybatis-config.xml
+0
-0
AutoTurnoverServiceImpl.java
...a/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
+0
-0
AutoTurnoverTest.java
...ow/show-auto-turnover/src/test/java/AutoTurnoverTest.java
+4
-3
No files found.
data-common/src/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.java
View file @
48ec7fb5
...
...
@@ -153,5 +153,6 @@ public interface DcBaseOmsSkuMapper {
@Param
(
"upperTime"
)
LocalDateTime
upperTime
,
@Param
(
"bailunSku"
)
String
bailunSku
,
@Param
(
"warehouseCode"
)
String
warehouseCode
,
@Param
(
"days"
)
Integer
days
);
@Param
(
"days"
)
Integer
days
,
@Param
(
"platform"
)
String
platform
);
}
data-common/src/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.xml
View file @
48ec7fb5
...
...
@@ -3759,6 +3759,9 @@
and t1.has_platsku_remark = 0
and t1.has_innersale = 0
and t1.bailun_order_status != 'Canceled'
<if
test=
"platform!=null and platform !=''"
>
and t1.platform_type = #{platform}
</if>
and t1.platform_order_type != '手工单'
GROUP BY DATE_FORMAT(paid_time, '%y%m%d')) tt1 on tt1.paid_date = tt2.date_str)
where tt2.bailun_sku =#{bailunSku}
...
...
@@ -3786,6 +3789,9 @@
and t1.has_innersale = 0
and t1.bailun_order_status != 'Canceled'
and t1.platform_order_type != '手工单'
<if
test=
"platform!=null and platform !=''"
>
and t1.platform_type = #{platform}
</if>
GROUP BY DATE_FORMAT(paid_time, '%y%m%d')) tt1 on tt1.paid_date = tt2.date_str))
/ #{days}
-
...
...
@@ -3808,6 +3814,9 @@
and t1.has_innersale = 0
and t1.bailun_order_status != 'Canceled'
and t1.platform_order_type != '手工单'
<if
test=
"platform!=null and platform !=''"
>
and t1.platform_type = #{platform}
</if>
GROUP BY DATE_FORMAT(paid_time, '%y%m%d')) tt1 on tt1.paid_date = tt2.date_str)
where tt2.bailun_sku =#{bailunSku}
and tt2.warehouse_code = #{warehouseCode}
...
...
data-common/src/main/java/com/bailuntec/support/CallBailunSystem.java
View file @
48ec7fb5
This diff is collapsed.
Click to expand it.
data-common/src/main/resources/mybatis-config.xml
View file @
48ec7fb5
data-show/show-auto-turnover/src/main/java/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
View file @
48ec7fb5
This diff is collapsed.
Click to expand it.
data-show/show-auto-turnover/src/test/java/AutoTurnoverTest.java
View file @
48ec7fb5
...
...
@@ -28,6 +28,7 @@ import org.junit.jupiter.api.Test;
import
org.junit.platform.commons.util.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
...
...
@@ -251,16 +252,16 @@ public class AutoTurnoverTest {
}
//LM-EO-007,MMDUSFBA
//LM-EO-007,MMDUSFBA
@Transactional
@Test
public
void
testXX2
()
{
DcBaseStock
dcBaseStock
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
)
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
()
.
andBailunSkuEqualTo
(
"9
50643503
"
)
.
andBailunSkuEqualTo
(
"9
44579124
"
)
.
andWarehouseCodeEqualTo
(
"GZBLWH"
)
.
example
());
try
{
AutoTurnoverJob
autoTurnoverJob
=
new
AutoTurnoverJob
();
autoTurnoverJob
.
autoTurnoverFromStock
(
DateTimeFormatter
.
ofPattern
(
CommonConstant
.
DATE_FORMAT
).
format
(
LocalDate
.
now
()),
dcBaseStock
);
...
...
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