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
6c51e4dc
Commit
6c51e4dc
authored
Apr 02, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接SKU接口修改
parent
6e48cfca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
SkuJsonHandle.java
...nc-sku/src/main/java/com/bailuntec/job/SkuJsonHandle.java
+1
-3
SyncSkuTest.java
data-base/base-sync-sku/src/test/java/SyncSkuTest.java
+3
-3
No files found.
data-base/base-sync-sku/src/main/java/com/bailuntec/job/SkuJsonHandle.java
View file @
6c51e4dc
...
@@ -21,8 +21,7 @@ import okhttp3.*;
...
@@ -21,8 +21,7 @@ import okhttp3.*;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.io.IOException
;
import
java.io.*
;
import
java.io.UnsupportedEncodingException
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.net.URLDecoder
;
import
java.net.URLDecoder
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
...
@@ -43,7 +42,6 @@ public class SkuJsonHandle {
...
@@ -43,7 +42,6 @@ public class SkuJsonHandle {
*/
*/
static
void
skuMSRequest
(
CommonSkuCondition
skuConditionDto
,
JobPointLog
jobPointLog
)
{
static
void
skuMSRequest
(
CommonSkuCondition
skuConditionDto
,
JobPointLog
jobPointLog
)
{
OkHttpClient
client
=
OkHttpUtil
.
getInstance
();
OkHttpClient
client
=
OkHttpUtil
.
getInstance
();
int
totalPage
=
0
;
do
{
do
{
skuConditionDto
.
setPage
(
jobPointLog
.
getPageIndex
()
>
0
?
jobPointLog
.
getPageIndex
()
:
1
);
skuConditionDto
.
setPage
(
jobPointLog
.
getPageIndex
()
>
0
?
jobPointLog
.
getPageIndex
()
:
1
);
SkuData
skuDataDto
=
new
SkuData
();
SkuData
skuDataDto
=
new
SkuData
();
...
...
data-base/base-sync-sku/src/test/java/SyncSkuTest.java
View file @
6c51e4dc
...
@@ -15,15 +15,15 @@ public class SyncSkuTest {
...
@@ -15,15 +15,15 @@ public class SyncSkuTest {
@Test
@Test
public
void
tes1
()
{
public
void
tes1
()
{
SkuSyncByCreateTimeJob
skuSyncJob
=
new
SkuSyncByCreateTimeJob
();
SkuSyncByCreateTimeJob
skuSyncJob
=
new
SkuSyncByCreateTimeJob
();
skuSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
1
,
100
,
1
,
1
,
skuSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
0
,
100
,
1
,
1
,
LocalDateTime
.
of
(
2019
,
03
,
01
,
0
,
0
),
LocalDateTime
.
of
(
2019
,
03
,
01
,
0
,
0
),
LocalDateTime
.
now
()));
LocalDateTime
.
now
()));
}
}
@Test
@Test
public
void
tes2
()
{
public
void
tes2
()
{
SkuSyncByUpdateTimeJob
skuSyncJob
=
new
SkuSyncByUpdateTimeJob
();
SkuSyncByUpdateTimeJob
skuSyncJob
=
new
SkuSyncByUpdateTimeJob
();
skuSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
1
,
100
,
1
,
1
,
skuSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
0
,
100
,
1
,
1
,
LocalDateTime
.
of
(
2019
,
03
,
21
,
0
,
0
),
LocalDateTime
.
of
(
2019
,
03
,
30
,
0
,
0
),
LocalDateTime
.
now
()));
LocalDateTime
.
now
()));
}
}
}
}
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