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
8c58a54d
Commit
8c58a54d
authored
Sep 26, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加字段
parent
28e441a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
StoreApiService.java
.../src/main/java/com/gic/store/service/StoreApiService.java
+3
-2
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+15
-2
StoreAuthorizationApiServiceImpl.java
.../service/outer/impl/StoreAuthorizationApiServiceImpl.java
+2
-1
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreApiService.java
View file @
8c58a54d
...
...
@@ -44,7 +44,6 @@ public interface StoreApiService {
* @param storeSearchDTO
* @param pageNum
* @param pageSize
* @param returnFileds
* @return com.gic.api.base.commons.ServiceResponse
* @throws
*/
...
...
@@ -197,7 +196,7 @@ public interface StoreApiService {
/** @Description: 删除门店 from es
* @author taogs
* @Date 1
3:37
2019/9/25
* @Date 1
8:44
2019/9/25
* @Param
* @return
*/
...
...
@@ -210,4 +209,6 @@ public interface StoreApiService {
* @return
*/
ServiceResponse
<
JSONObject
>
parseStoreSelectJson
(
String
searchJson
);
ServiceResponse
<
List
<
StoreDTO
>>
listStoreByStoreInfoId
(
Integer
storeInfoId
);
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
8c58a54d
...
...
@@ -317,14 +317,19 @@ public class StoreApiServiceImpl implements StoreApiService {
for
(
int
j
=
0
;
j
<
list
.
size
();
j
++){
jsonObjectList
.
add
(
list
.
getJSONObject
(
j
));
}
JSONObject
json
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
jsonObjectList
,
OperateEnum
.
OPERATE_AND
);
JSONObject
json
=
null
;
if
(
i
>
0
&&
OperateEnum
.
OPERATE_AND_NOT
.
getValue
().
equals
(
type
)){
json
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
jsonObjectList
,
OperateEnum
.
OPERATE_AND_NOT
);
}
else
{
json
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
jsonObjectList
,
OperateEnum
.
OPERATE_AND
);
}
if
(
result
==
null
){
result
=
json
;
}
else
{
if
(
OperateEnum
.
OPERATE_OR
.
getValue
().
equals
(
type
)){
result
=
QueryConditionAssemblyUtil
.
addQueryNodeForSiblin
(
result
,
json
,
OperateEnum
.
OPERATE_OR
);
}
else
if
(
OperateEnum
.
OPERATE_AND_NOT
.
getValue
().
equals
(
type
)){
result
=
QueryConditionAssemblyUtil
.
addQueryNodeForSiblin
(
result
,
json
,
OperateEnum
.
OPERATE_AND
_NOT
);
result
=
QueryConditionAssemblyUtil
.
addQueryNodeForSiblin
(
result
,
json
,
OperateEnum
.
OPERATE_AND
);
}
}
}
...
...
@@ -332,6 +337,14 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
public
ServiceResponse
<
List
<
StoreDTO
>>
listStoreByStoreInfoId
(
Integer
storeInfoId
)
{
StoreSearchDBDTO
searchDBDTO
=
new
StoreSearchDBDTO
();
searchDBDTO
.
setStoreInfoId
(
storeInfoId
);
this
.
storeService
.
listStore
(
searchDBDTO
,
1
,
Integer
.
MAX_VALUE
);
return
null
;
}
@Override
public
ServiceResponse
<
StoreDTO
>
getStoreById
(
Integer
enterpriseId
,
Integer
storeId
)
{
String
key
=
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreAuthorizationApiServiceImpl.java
View file @
8c58a54d
...
...
@@ -10,6 +10,7 @@ import com.gic.auth.service.UnionEnterpriseApiService;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.store.constant.StoreGroupConstant
;
import
com.gic.store.constant.StoreOwnTypeEnum
;
import
com.gic.store.dto.StoreDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.dto.StoreWidgetDTO
;
...
...
@@ -86,7 +87,7 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
storeDTO
.
setStoreGroupId
(
Integer
.
valueOf
(
groupId
));
storeDTO
.
setIsEditStoreGroup
(
0
);
storeDTO
.
setEnterpriseId
(
toEnterpriseId
);
storeDTO
.
setOwnType
(
0
);
storeDTO
.
setOwnType
(
StoreOwnTypeEnum
.
OTHER
.
getCode
()
);
int
i
=
this
.
storeService
.
authAddStore
(
storeDTO
);
log
.
info
(
"{},门店授权结果:{}"
,
storeDTO
.
getStoreInfoId
(),
i
);
if
(
i
>
0
){
...
...
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