Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
0ce65d61
Commit
0ce65d61
authored
Jan 15, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批处理导购
parent
7ca7b137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ImportClerkBatchResultEnum.java
...va/com/gic/store/constant/ImportClerkBatchResultEnum.java
+5
-0
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+5
-3
No files found.
gic-store-api/src/main/java/com/gic/store/constant/ImportClerkBatchResultEnum.java
View file @
0ce65d61
...
...
@@ -88,4 +88,9 @@ public enum ImportClerkBatchResultEnum {
public
void
setResultInfo
(
String
resultInfo
)
{
this
.
resultInfo
=
resultInfo
;
}
@Override
public
String
toString
()
{
return
"规则分类:"
+
ruleClassfy
+
";处理规则:"
+
processRule
+
";字段信息:"
+
fieldInfo
+
";错误信息:"
+
resultInfo
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
0ce65d61
...
...
@@ -312,6 +312,9 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@Override
public
ServiceResponse
<
String
>
importClerkForOperation
(
ProcessBatchClerkDTO
clerkInfo
)
{
if
(
clerkInfo
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"对象为空"
);
}
logger
.
info
(
"批量处理导购的参数:{}"
,
JSONObject
.
toJSONString
(
clerkInfo
));
//param valid
Integer
regionId
=
clerkInfo
.
getRegionId
();
...
...
@@ -373,9 +376,7 @@ public class ClerkApiServiceImpl implements ClerkApiService {
}
private
static
ServiceResponse
<
String
>
responseErrorElement
(
ImportClerkBatchResultEnum
error
)
{
JSONObject
errorResult
=
new
JSONObject
();
errorResult
.
put
(
error
.
getCode
(),
error
.
toString
());
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
errorResult
.
toString
());
return
ServiceResponse
.
failure
(
error
.
getCode
(),
error
.
toString
());
}
}
\ 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