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
c3644fbf
Commit
c3644fbf
authored
Jul 08, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店批量插入任务
parent
dde7f2ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
StoreImportController.java
...a/com/gic/store/web/controller/StoreImportController.java
+14
-16
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreImportController.java
View file @
c3644fbf
...
...
@@ -281,20 +281,19 @@ public class StoreImportController {
// 验证门店类型
String
storeType
=
row
.
get
(
3
);
bean
.
setStoreType
(
store
Cod
e
);
bean
.
setStoreType
(
store
Typ
e
);
if
(
validate
)
{
if
(
StringUtils
.
isBlank
(
store
Cod
e
))
{
if
(
StringUtils
.
isBlank
(
store
Typ
e
))
{
bean
.
setErrorMessage
(
"门店类型不能为空"
);
validate
=
false
;
}
}
// todo
// if (validate) {
// if (this.storeTypeValidate(enterpriseId, storeType) == -1) {
// bean.setErrorMessage("门店类型不存在");
// validate = false;
// }
// }
if
(
validate
)
{
if
(
this
.
storeTypeValidate
(
enterpriseId
,
storeType
)
==
-
1
)
{
bean
.
setErrorMessage
(
"门店类型不存在"
);
validate
=
false
;
}
}
// 验证门店状态
String
erpStatus
=
row
.
get
(
4
);
bean
.
setErpStatus
(
erpStatus
);
...
...
@@ -304,13 +303,12 @@ public class StoreImportController {
validate
=
false
;
}
}
//todo
// if (validate) {
// if (this.erpStatusValidate(enterpriseId, erpStatus) == -1) {
// bean.setErrorMessage("门店状态不存在");
// validate = false;
// }
// }
if
(
validate
)
{
if
(
this
.
erpStatusValidate
(
enterpriseId
,
erpStatus
)
==
-
1
)
{
bean
.
setErrorMessage
(
"门店状态不存在"
);
validate
=
false
;
}
}
// 验证门店电话
String
conactsPhone
=
row
.
get
(
5
);
bean
.
setConactsPhone
(
conactsPhone
);
...
...
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