Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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-data-cloud
Commits
d3cd0da7
Commit
d3cd0da7
authored
Aug 21, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
观云台小程序 See merge request
!11
parents
c2e20382
997f7c52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletions
+32
-1
BaseSalesController.java
...ava/com/gic/cloud/web/controller/BaseSalesController.java
+2
-1
StoreSearchUtils.java
...n/java/com/gic/cloud/web/controller/StoreSearchUtils.java
+21
-0
StoreSearchQo.java
...app/src/main/java/com/gic/cloud/web/qo/StoreSearchQo.java
+9
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/BaseSalesController.java
View file @
d3cd0da7
...
...
@@ -100,7 +100,8 @@ public class BaseSalesController {
ServiceResponse
<
Page
<
BaseSalesDTO
>>
totalResponse
=
this
.
baseSalesApiService
.
pageBaseSales
(
dto
);
log
.
info
(
"totalResponse:{}"
,
JSON
.
toJSONString
(
totalResponse
));
this
.
goDownComponent
.
parseTotal
(
totalResponse
,
vo
);
if
(
qo
.
getChannel
()
!=
null
&&
qo
.
getChannel
()
==
1
&&
qo
.
getLevel
()
==
levelVo
.
getLevel
()){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJSON
());
if
(
qo
.
getChannel
()
!=
null
&&
qo
.
getChannel
()
==
1
&&
qo
.
getLevel
()
==
levelVo
.
getLevel
()
&&
wgs
==
1
){
dto
.
setCountType
(
3
);
//无归属
dto
.
setChannel
(
null
);
dto
.
getStoreInfoIdList
().
clear
();
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreSearchUtils.java
View file @
d3cd0da7
...
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSONObject;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.cloud.dto.AttentionStoreDTO
;
import
com.gic.cloud.dto.DataAuthDTO
;
import
com.gic.cloud.dto.TempStoreConditionDTO
;
import
com.gic.cloud.service.DataAuthApiService
;
import
com.gic.cloud.service.StoreAttentionApiService
;
import
com.gic.cloud.service.TempStoreConditionApiService
;
import
com.gic.cloud.web.auth.DataAuthUtils
;
...
...
@@ -51,6 +53,25 @@ public class StoreSearchUtils {
private
StoreApiService
storeApiService
;
@Autowired
private
StoreGroupApiService
storeGroupApiService
;
@Autowired
private
DataAuthApiService
dataAuthApiService
;
public
Integer
isWgs
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJson
){
JSONObject
json
=
JSON
.
parseObject
(
searchJson
);
ServiceResponse
<
DataAuthDTO
>
response
=
this
.
dataAuthApiService
.
ggetDataAuthByUserId
(
enterpriseId
,
userId
);
DataAuthDTO
dataAuthDTO
=
response
.
getResult
()
==
null
?
new
DataAuthDTO
()
:
response
.
getResult
();
StoreSearchQo
storeSearchQo
=
json
.
getObject
(
StoreChannelEnum
.
OFFLINE
.
getChannel
().
toString
(),
StoreSearchQo
.
class
);
if
(
storeSearchQo
!=
null
){
return
storeSearchQo
.
getHasWgs
()
&
dataAuthDTO
.
getNoOwnerStore
();
}
return
0
;
}
public
static
void
main
(
String
[]
args
){
System
.
out
.
println
(
1
&
1
);
System
.
out
.
println
(
1
&
0
);
System
.
out
.
println
(
0
&
0
);
}
public
List
<
Integer
>
storeSearch
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJson
){
String
key
=
"1:"
+
enterpriseId
+
":"
+
userId
+
":"
+
(
StringUtils
.
isNotBlank
(
searchJson
)
?
searchJson
.
hashCode
()
:
"searchJSON"
.
hashCode
());
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/qo/StoreSearchQo.java
View file @
d3cd0da7
...
...
@@ -11,6 +11,7 @@ public class StoreSearchQo {
private
Integer
tmpStore
=
0
;
private
String
storeGroupIds
;
//和线上共享使用,当为线上门店时,该值对应店铺
private
String
storeIds
;
//和线上共享使用,当为线上门店时,该值对应店铺下门店id
private
Integer
hasWgs
=
0
;
//是否有无归属
public
Integer
getAll
()
{
return
all
;
...
...
@@ -91,4 +92,12 @@ public class StoreSearchQo {
public
void
setStoreIds
(
String
storeIds
)
{
this
.
storeIds
=
storeIds
;
}
public
Integer
getHasWgs
()
{
return
hasWgs
;
}
public
void
setHasWgs
(
Integer
hasWgs
)
{
this
.
hasWgs
=
hasWgs
;
}
}
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