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
e82d074b
Commit
e82d074b
authored
Jul 08, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志
parent
d555bb8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
StoreImportController.java
...a/com/gic/store/web/controller/StoreImportController.java
+15
-10
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreImportController.java
View file @
e82d074b
...
...
@@ -424,19 +424,24 @@ public class StoreImportController {
//todo 自定义属性验证
ServiceResponse
<
List
<
StoreFieldDTO
>>
fieldServiceResponse
=
storeFieldApiService
.
listStoreFieldByRegionId
(
regionId
);
List
<
StoreFieldDTO
>
fieldList
=
fieldServiceResponse
.
getResult
();
List
<
StoreExtendDTO
>
extendDTOList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
fieldList
.
size
();
i
++)
{
StoreExtendDTO
storeExtendDTO
=
new
StoreExtendDTO
();
storeExtendDTO
.
setStoreFieldId
(
fieldList
.
get
(
i
).
getStoreFieldId
());
storeExtendDTO
.
setValue
(
row
.
get
(
14
+
i
));
storeExtendDTO
.
setSort
(
fieldList
.
get
(
i
).
getSort
());
// 验证
if
(
validate
)
{
if
(
CollectionUtils
.
isNotEmpty
(
fieldList
))
{
List
<
StoreExtendDTO
>
extendDTOList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
fieldList
.
size
();
i
++)
{
StoreExtendDTO
storeExtendDTO
=
new
StoreExtendDTO
();
storeExtendDTO
.
setStoreFieldId
(
fieldList
.
get
(
i
).
getStoreFieldId
());
storeExtendDTO
.
setValue
(
row
.
get
(
14
+
i
));
storeExtendDTO
.
setSort
(
fieldList
.
get
(
i
).
getSort
());
// 验证
if
(
validate
)
{
// String s = fieldValidate(storeExtendDTO.getValue(), fieldList.get(i).getStoreFieldDetail());
}
extendDTOList
.
add
(
storeExtendDTO
);
}
extendDTOList
.
add
(
storeExtendDTO
);
bean
.
setCustomField
(
JSON
.
toJSONString
(
extendDTOList
));
}
else
{
bean
.
setCustomField
(
JSON
.
toJSONString
(
Collections
.
emptyList
()));
}
bean
.
setCustomField
(
JSON
.
toJSONString
(
extendDTOList
));
return
bean
;
}
...
...
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