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
997f7c52
Commit
997f7c52
authored
Aug 20, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观云台小程序
parent
7800fcf0
Show 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 @
997f7c52
...
@@ -100,7 +100,8 @@ public class BaseSalesController {
...
@@ -100,7 +100,8 @@ public class BaseSalesController {
ServiceResponse
<
Page
<
BaseSalesDTO
>>
totalResponse
=
this
.
baseSalesApiService
.
pageBaseSales
(
dto
);
ServiceResponse
<
Page
<
BaseSalesDTO
>>
totalResponse
=
this
.
baseSalesApiService
.
pageBaseSales
(
dto
);
log
.
info
(
"totalResponse:{}"
,
JSON
.
toJSONString
(
totalResponse
));
log
.
info
(
"totalResponse:{}"
,
JSON
.
toJSONString
(
totalResponse
));
this
.
goDownComponent
.
parseTotal
(
totalResponse
,
vo
);
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
.
setCountType
(
3
);
//无归属
dto
.
setChannel
(
null
);
dto
.
setChannel
(
null
);
dto
.
getStoreInfoIdList
().
clear
();
dto
.
getStoreInfoIdList
().
clear
();
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreSearchUtils.java
View file @
997f7c52
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSONObject;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.cloud.dto.AttentionStoreDTO
;
import
com.gic.cloud.dto.AttentionStoreDTO
;
import
com.gic.cloud.dto.DataAuthDTO
;
import
com.gic.cloud.dto.TempStoreConditionDTO
;
import
com.gic.cloud.dto.TempStoreConditionDTO
;
import
com.gic.cloud.service.DataAuthApiService
;
import
com.gic.cloud.service.StoreAttentionApiService
;
import
com.gic.cloud.service.StoreAttentionApiService
;
import
com.gic.cloud.service.TempStoreConditionApiService
;
import
com.gic.cloud.service.TempStoreConditionApiService
;
import
com.gic.cloud.web.auth.DataAuthUtils
;
import
com.gic.cloud.web.auth.DataAuthUtils
;
...
@@ -51,6 +53,25 @@ public class StoreSearchUtils {
...
@@ -51,6 +53,25 @@ public class StoreSearchUtils {
private
StoreApiService
storeApiService
;
private
StoreApiService
storeApiService
;
@Autowired
@Autowired
private
StoreGroupApiService
storeGroupApiService
;
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
){
public
List
<
Integer
>
storeSearch
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJson
){
String
key
=
"1:"
+
enterpriseId
+
":"
+
userId
+
":"
+
(
StringUtils
.
isNotBlank
(
searchJson
)
?
searchJson
.
hashCode
()
:
"searchJSON"
.
hashCode
());
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 @
997f7c52
...
@@ -11,6 +11,7 @@ public class StoreSearchQo {
...
@@ -11,6 +11,7 @@ public class StoreSearchQo {
private
Integer
tmpStore
=
0
;
private
Integer
tmpStore
=
0
;
private
String
storeGroupIds
;
//和线上共享使用,当为线上门店时,该值对应店铺
private
String
storeGroupIds
;
//和线上共享使用,当为线上门店时,该值对应店铺
private
String
storeIds
;
//和线上共享使用,当为线上门店时,该值对应店铺下门店id
private
String
storeIds
;
//和线上共享使用,当为线上门店时,该值对应店铺下门店id
private
Integer
hasWgs
=
0
;
//是否有无归属
public
Integer
getAll
()
{
public
Integer
getAll
()
{
return
all
;
return
all
;
...
@@ -91,4 +92,12 @@ public class StoreSearchQo {
...
@@ -91,4 +92,12 @@ public class StoreSearchQo {
public
void
setStoreIds
(
String
storeIds
)
{
public
void
setStoreIds
(
String
storeIds
)
{
this
.
storeIds
=
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