Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
190e5538
Commit
190e5538
authored
Jun 01, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/2023-05-30' into 'master'
Bugfix/2023 05 30 See merge request
!1294
parents
27fcc0a3
55e96a19
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
6 deletions
+34
-6
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+1
-1
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+2
-0
NotifyController.java
...om/gic/haoban/manage/web/controller/NotifyController.java
+31
-5
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
190e5538
...
@@ -227,7 +227,7 @@ public class AuditController extends WebBaseController {
...
@@ -227,7 +227,7 @@ public class AuditController extends WebBaseController {
AuditDTO
audit
=
auditApiService
.
findById
(
auditId
);
AuditDTO
audit
=
auditApiService
.
findById
(
auditId
);
if
(
audit
==
null
||
audit
.
getAuditStatus
()
!=
0
)
{
if
(
audit
==
null
||
audit
.
getAuditStatus
()
!=
0
)
{
RedisUtil
.
unlock
(
key
);
RedisUtil
.
unlock
(
key
);
return
resultResponse
(
HaoBanErrCode
.
ERR_100
17
);
return
resultResponse
(
HaoBanErrCode
.
ERR_100
035
);
}
}
String
result
=
auditApiService
.
audit
(
""
,
auditId
,
staffName
,
staffId
);
String
result
=
auditApiService
.
audit
(
""
,
auditId
,
staffName
,
staffId
);
RedisUtil
.
unlock
(
key
);
RedisUtil
.
unlock
(
key
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
190e5538
...
@@ -132,6 +132,8 @@ public enum HaoBanErrCode {
...
@@ -132,6 +132,8 @@ public enum HaoBanErrCode {
*/
*/
ERR_100033
(
100033
,
"分组被关联,不可删除"
),
ERR_100033
(
100033
,
"分组被关联,不可删除"
),
ERR_100034
(
100034
,
"微信预支付订单生成失败!"
),
ERR_100034
(
100034
,
"微信预支付订单生成失败!"
),
ERR_100035
(
100035
,
"该条记录已审核"
),
;
;
private
int
code
;
private
int
code
;
private
String
msg
;
private
String
msg
;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/NotifyController.java
View file @
190e5538
...
@@ -24,6 +24,7 @@ import com.gic.haoban.manage.web.vo.MarketingCountVO;
...
@@ -24,6 +24,7 @@ import com.gic.haoban.manage.web.vo.MarketingCountVO;
import
com.gic.haoban.manage.web.vo.notify.PairValVO
;
import
com.gic.haoban.manage.web.vo.notify.PairValVO
;
import
com.gic.haoban.task.api.service.TelTaskApiService
;
import
com.gic.haoban.task.api.service.TelTaskApiService
;
import
com.gic.haoban.task.manage.api.service.IMarketClueTaskApiService
;
import
com.gic.haoban.task.manage.api.service.IMarketClueTaskApiService
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -32,10 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -32,10 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* Created 2021/12/16.
* Created 2021/12/16.
...
@@ -216,10 +214,20 @@ public class NotifyController extends WebBaseController {
...
@@ -216,10 +214,20 @@ public class NotifyController extends WebBaseController {
logger
.
info
(
"查询是否店长:{}"
,
clerkId
);
logger
.
info
(
"查询是否店长:{}"
,
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
!=
null
)
{
Integer
groupChatCount
,
telTaskCount
,
groupMessageCount
,
total
=
0
;
Integer
groupChatCount
=
0
,
telTaskCount
=
0
,
groupMessageCount
=
0
,
total
=
0
;
Integer
clerkType
=
clerkDTO
.
getClerkType
();
Integer
clerkType
=
clerkDTO
.
getClerkType
();
if
(
clerkType
==
1
||
clerkType
==
2
)
{
if
(
clerkType
==
1
||
clerkType
==
2
)
{
//店长维度
//店长维度
//添加redis缓存
String
cacheKey
=
"marketing_Count:"
+
storeId
;
Object
value
=
RedisUtil
.
getCache
(
cacheKey
);
if
(
null
!=
value
){
String
cache
=
String
.
valueOf
(
value
);
List
<
String
>
cacheList
=
Arrays
.
asList
(
cache
.
split
(
","
));
groupChatCount
=
Integer
.
valueOf
(
cacheList
.
get
(
0
));
telTaskCount
=
Integer
.
valueOf
(
cacheList
.
get
(
1
));
groupMessageCount
=
Integer
.
valueOf
(
cacheList
.
get
(
2
));
}
else
{
//社群群发
//社群群发
logger
.
info
(
"店长维度查询社群群发"
);
logger
.
info
(
"店长维度查询社群群发"
);
groupChatCount
=
groupChatPlanApiService
.
getTotalCount
(
enterpriseId
,
null
,
storeId
).
getResult
();
groupChatCount
=
groupChatPlanApiService
.
getTotalCount
(
enterpriseId
,
null
,
storeId
).
getResult
();
...
@@ -229,9 +237,23 @@ public class NotifyController extends WebBaseController {
...
@@ -229,9 +237,23 @@ public class NotifyController extends WebBaseController {
//群发
//群发
logger
.
info
(
"店长维度查询群发"
);
logger
.
info
(
"店长维度查询群发"
);
groupMessageCount
=
iMarketClueTaskApiService
.
getTotalCount
(
enterpriseId
,
null
,
storeId
).
getResult
();
groupMessageCount
=
iMarketClueTaskApiService
.
getTotalCount
(
enterpriseId
,
null
,
storeId
).
getResult
();
String
cacheValue
=
groupChatCount
+
","
+
telTaskCount
+
","
+
groupMessageCount
;
//缓存10分钟
RedisUtil
.
setCache
(
cacheKey
,
cacheValue
,
600L
);
}
total
=
groupChatCount
+
telTaskCount
+
groupMessageCount
;
total
=
groupChatCount
+
telTaskCount
+
groupMessageCount
;
}
else
{
}
else
{
//导购维度
//导购维度
//添加redis缓存
String
cacheKey
=
"marketing_Count:"
+
storeId
+
":"
+
clerkId
;
Object
value
=
RedisUtil
.
getCache
(
cacheKey
);
if
(
null
!=
value
){
String
cache
=
String
.
valueOf
(
value
);
List
<
String
>
cacheList
=
Arrays
.
asList
(
cache
.
split
(
","
));
groupChatCount
=
Integer
.
valueOf
(
cacheList
.
get
(
0
));
telTaskCount
=
Integer
.
valueOf
(
cacheList
.
get
(
1
));
groupMessageCount
=
Integer
.
valueOf
(
cacheList
.
get
(
2
));
}
else
{
//社群群发
//社群群发
logger
.
info
(
"导购维度查询社群群发"
);
logger
.
info
(
"导购维度查询社群群发"
);
groupChatCount
=
groupChatPlanApiService
.
getTotalCount
(
enterpriseId
,
clerkId
,
storeId
).
getResult
();
groupChatCount
=
groupChatPlanApiService
.
getTotalCount
(
enterpriseId
,
clerkId
,
storeId
).
getResult
();
...
@@ -241,6 +263,10 @@ public class NotifyController extends WebBaseController {
...
@@ -241,6 +263,10 @@ public class NotifyController extends WebBaseController {
//群发
//群发
logger
.
info
(
"导购维度查询群发"
);
logger
.
info
(
"导购维度查询群发"
);
groupMessageCount
=
iMarketClueTaskApiService
.
getTotalCount
(
enterpriseId
,
clerkId
,
storeId
).
getResult
();
groupMessageCount
=
iMarketClueTaskApiService
.
getTotalCount
(
enterpriseId
,
clerkId
,
storeId
).
getResult
();
String
cacheValue
=
groupChatCount
+
","
+
telTaskCount
+
","
+
groupMessageCount
;
//缓存10分钟
RedisUtil
.
setCache
(
cacheKey
,
cacheValue
,
600L
);
}
total
=
groupChatCount
+
telTaskCount
+
groupMessageCount
;
total
=
groupChatCount
+
telTaskCount
+
groupMessageCount
;
}
}
marketingCountVO
.
setGroupChatCount
(
groupChatCount
);
marketingCountVO
.
setGroupChatCount
(
groupChatCount
);
...
...
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