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
77111405
Commit
77111405
authored
Oct 08, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
ee12f20c
8634b1cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
15 deletions
+22
-15
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+0
-1
StoreDictApiServiceImpl.java
...gic/store/service/outer/impl/StoreDictApiServiceImpl.java
+11
-9
TabStoreInfoMapper.xml
...-service/src/main/resources/mapper/TabStoreInfoMapper.xml
+7
-2
StoreGroupController.java
...va/com/gic/store/web/controller/StoreGroupController.java
+4
-3
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
77111405
...
...
@@ -152,7 +152,6 @@ public class StoreApiServiceImpl implements StoreApiService {
// 更新缓存
refreshCache
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreInfoId
());
refreshIndex
(
storeDTO
.
getStoreId
(),
storeDTO
.
getEnterpriseId
());
return
ServiceResponse
.
success
();
}
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreDictApiServiceImpl.java
View file @
77111405
...
...
@@ -122,17 +122,19 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
if
(
listStoreField
.
isSuccess
()){
List
<
StoreFieldDTO
>
list
=
listStoreField
.
getResult
();
List
<
String
>
listSelect
=
this
.
storeDictService
.
listStoreField
(
enterpriseId
);
for
(
StoreFieldDTO
tabStoreField
:
list
){
StoreDictDTO
storeDictDTO
=
new
StoreDictDTO
();
storeDictDTO
.
setKey
(
tabStoreField
.
getStoreFieldName
());
storeDictDTO
.
setValue
(
tabStoreField
.
getStoreFieldId
()+
""
);
storeDictDTO
.
setOwnType
(
tabStoreField
.
getOwnType
());
for
(
String
s
:
listSelect
){
if
(
tabStoreField
.
getStoreFieldId
().
intValue
()
==
Integer
.
valueOf
(
s
).
intValue
()){
storeDictDTO
.
setChecked
(
1
);
if
(
CollectionUtils
.
isNotEmpty
(
listSelect
)){
for
(
StoreFieldDTO
tabStoreField
:
list
){
StoreDictDTO
storeDictDTO
=
new
StoreDictDTO
();
storeDictDTO
.
setKey
(
tabStoreField
.
getStoreFieldName
());
storeDictDTO
.
setValue
(
tabStoreField
.
getStoreFieldId
()+
""
);
storeDictDTO
.
setOwnType
(
tabStoreField
.
getOwnType
());
for
(
String
s
:
listSelect
){
if
(
tabStoreField
.
getStoreFieldId
().
intValue
()
==
Integer
.
valueOf
(
s
).
intValue
()){
storeDictDTO
.
setChecked
(
1
);
}
}
result
.
add
(
storeDictDTO
);
}
result
.
add
(
storeDictDTO
);
}
}
return
ServiceResponse
.
success
(
result
);
...
...
gic-store-service/src/main/resources/mapper/TabStoreInfoMapper.xml
View file @
77111405
...
...
@@ -27,6 +27,11 @@
</resultMap>
<resultMap
id=
"DTOResultMap"
type=
"com.gic.store.dto.StoreDTO"
extends=
"BaseResultMap"
>
<result
column=
"own_type"
jdbcType=
"INTEGER"
property=
"ownType"
/>
<result
column=
"store_id"
jdbcType=
"INTEGER"
property=
"storeId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"store_group_id"
jdbcType=
"INTEGER"
property=
"storeGroupId"
/>
<result
column=
"is_edit_store_group"
jdbcType=
"INTEGER"
property=
"isEditStoreGroup"
/>
<result
column=
"from_enterprise_id"
jdbcType=
"INTEGER"
property=
"fromEnterpriseId"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
${alias}.store_info_id, ${alias}.store_name, ${alias}.store_code, ${alias}.region_id, ${alias}.conacts_phone, ${alias}.address,
...
...
@@ -328,7 +333,7 @@
where
brand_ids REGEXP '^${brandId}$|^${brandId},.*$|^.*,${brandId},.*$|^.*,${brandId}$'
</select>
<select
id=
"listStore"
parameterType=
"com.gic.store.dto.StoreSearchDBDTO"
result
Type=
"com.gic.store.dto.StoreDTO
"
>
<select
id=
"listStore"
parameterType=
"com.gic.store.dto.StoreSearchDBDTO"
result
Map=
"DTOResultMap
"
>
select
<include
refid=
"Base_Column_List"
>
<property
name=
"alias"
value=
"t1"
/>
...
...
@@ -364,7 +369,7 @@
<if
test=
"store.storeInfoId != null"
>
and t1.store_info_id = #{store.storeInfoId}
</if>
<if
test=
"store.storeI
nfoI
d != null"
>
<if
test=
"store.storeId != null"
>
and t2.store_id = #{store.storeId}
</if>
<if
test=
"store.overflowStatus != null"
>
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreGroupController.java
View file @
77111405
...
...
@@ -2,6 +2,7 @@ package com.gic.store.web.controller;
import
java.util.List
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -38,8 +39,7 @@ public class StoreGroupController {
@RequestMapping
(
"/list"
)
public
RestResponse
listStoreGroup
(
StoreGroupQO
storeGroupQO
)
{
ServiceResponse
<
List
<
StoreGroupDTO
>>
result
=
storeGroupApiService
.
listStoreGroup
(
transferQoToDTO
(
storeGroupQO
));
ServiceResponse
<
List
<
StoreGroupDTO
>>
result
=
storeGroupApiService
.
listStoreGroup
(
transferQoToDTO
(
storeGroupQO
));
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
ChangeListToTree
.
changeListToTree
(
StoreGroupConstant
.
ALL_STORE_LEVEL
,
result
.
getResult
()));
...
...
@@ -88,7 +88,8 @@ public class StoreGroupController {
private
StoreGroupDTO
transferQoToDTO
(
StoreGroupQO
storeGroupQO
)
{
StoreGroupDTO
storeGroupDTO
=
EntityUtil
.
changeEntityNew
(
StoreGroupDTO
.
class
,
storeGroupQO
);
storeGroupDTO
.
setEnterpriseId
(
StoreGroupConstant
.
TEST_ENTERPRISE_ID
);
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
storeGroupDTO
.
setEnterpriseId
(
enterpriseId
);
return
storeGroupDTO
;
}
}
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