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
bf6233c3
Commit
bf6233c3
authored
Dec 19, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退群人查询
parent
05e0fd19
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
GroupChatUserDTO.java
.../com/gic/haoban/manage/api/dto/chat/GroupChatUserDTO.java
+11
-1
GroupChatUserMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatUserMapper.xml
+2
-1
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+5
-0
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+9
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/chat/GroupChatUserDTO.java
View file @
bf6233c3
...
@@ -55,8 +55,18 @@ public class GroupChatUserDTO implements Serializable{
...
@@ -55,8 +55,18 @@ public class GroupChatUserDTO implements Serializable{
private
Integer
adminFlag
;
private
Integer
adminFlag
;
private
String
chatName
;
private
String
chatName
;
private
String
staffName
;
private
String
staffName
;
private
String
wxChatId
;
public
String
getChatName
()
{
public
String
getWxChatId
()
{
return
wxChatId
;
}
public
void
setWxChatId
(
String
wxChatId
)
{
this
.
wxChatId
=
wxChatId
;
}
public
String
getChatName
()
{
return
chatName
;
return
chatName
;
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatUserMapper.xml
View file @
bf6233c3
...
@@ -173,6 +173,7 @@
...
@@ -173,6 +173,7 @@
<select
id=
"listPage"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatUserSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatUserDTO"
>
<select
id=
"listPage"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatUserSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatUserDTO"
>
select
select
b.name chatName ,
b.name chatName ,
b.wx_chat_id wxChatId ,
c.staff_name staffName ,
c.staff_name staffName ,
a.chat_user_id chatUserId ,
a.chat_user_id chatUserId ,
a.user_type userType ,
a.user_type userType ,
...
@@ -203,7 +204,7 @@
...
@@ -203,7 +204,7 @@
and a.user_quit_time
<![CDATA[>=]]>
#{startDate} and a.user_quit_time
<![CDATA[<=]]>
#{endDate}
and a.user_quit_time
<![CDATA[>=]]>
#{startDate} and a.user_quit_time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"null != searchParams"
>
<if
test=
"null != searchParams"
>
and (b.name like '%${searchParams}%' or c.staff_name like '%${searchParams}%')
and (b.name like '%${searchParams}%' or c.staff_name like '%${searchParams}%'
or b.wx_chat_id like '${searchParams}%'
)
</if>
</if>
</if>
</if>
<if
test=
"null != userType"
>
<if
test=
"null != userType"
>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatHmController.java
View file @
bf6233c3
...
@@ -80,9 +80,11 @@ public class GroupChatHmController {
...
@@ -80,9 +80,11 @@ public class GroupChatHmController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码-新建活码"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码-新建活码"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatHmDTO
dto
)
{
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatHmDTO
dto
)
{
if
(
CollectionUtils
.
isEmpty
(
dto
.
getChatIdList
()))
{
if
(
CollectionUtils
.
isEmpty
(
dto
.
getChatIdList
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"请选择加入的群"
);
return
RestResponse
.
failure
(
"1"
,
"请选择加入的群"
);
}
}
if
(
dto
.
getChatIdList
().
size
()
>
4
)
{
if
(
dto
.
getChatIdList
().
size
()
>
4
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"最多可选4个群"
);
return
RestResponse
.
failure
(
"1"
,
"最多可选4个群"
);
}
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
@@ -99,6 +101,7 @@ public class GroupChatHmController {
...
@@ -99,6 +101,7 @@ public class GroupChatHmController {
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
}
}
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
resp
.
getMessage
());
return
RestResponse
.
failure
(
"1"
,
resp
.
getMessage
());
}
}
...
@@ -246,6 +249,7 @@ public class GroupChatHmController {
...
@@ -246,6 +249,7 @@ public class GroupChatHmController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QHM
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1002_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"群活码"
)
public
RestResponse
<
Object
>
discard
(
Long
chatHmId
,
@RequestParam
(
defaultValue
=
"0"
)
int
page
)
{
public
RestResponse
<
Object
>
discard
(
Long
chatHmId
,
@RequestParam
(
defaultValue
=
"0"
)
int
page
)
{
if
(
null
==
chatHmId
)
{
if
(
null
==
chatHmId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"群活码ID空"
);
return
RestResponse
.
failure
(
"1"
,
"群活码ID空"
);
}
}
// 判断是否关联链接
// 判断是否关联链接
...
@@ -265,6 +269,7 @@ public class GroupChatHmController {
...
@@ -265,6 +269,7 @@ public class GroupChatHmController {
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
}
}
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
resp
.
getMessage
());
return
RestResponse
.
failure
(
"1"
,
resp
.
getMessage
());
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
bf6233c3
...
@@ -69,6 +69,7 @@ public class GroupChatPlanController {
...
@@ -69,6 +69,7 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_01
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatPlanDTO
dto
)
{
public
RestResponse
<
Object
>
save
(
@RequestBody
GroupChatPlanDTO
dto
)
{
if
(
StringUtils
.
isBlank
(
dto
.
getStaffIdList
()))
{
if
(
StringUtils
.
isBlank
(
dto
.
getStaffIdList
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"请选择群主"
);
return
RestResponse
.
failure
(
"9999"
,
"请选择群主"
);
}
}
logger
.
info
(
"新增参数={}"
,
JSON
.
toJSONString
(
dto
));
logger
.
info
(
"新增参数={}"
,
JSON
.
toJSONString
(
dto
));
...
@@ -90,10 +91,12 @@ public class GroupChatPlanController {
...
@@ -90,10 +91,12 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_04
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_04
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
del
(
Long
planId
)
{
public
RestResponse
<
Object
>
del
(
Long
planId
)
{
if
(
null
==
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"计划ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"计划ID空"
);
}
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
}
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
@@ -117,10 +120,12 @@ public class GroupChatPlanController {
...
@@ -117,10 +120,12 @@ public class GroupChatPlanController {
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
@GicLogRecord
(
value
=
"${#logValue}"
,
category
=
GicLogRecordCategoryEnum
.
HB_QF
,
optType
=
GicLogRecordOptTypeEnum
.
HB_1000_03
,
userFunc
=
LogRecordUserServiceImpl
.
class
,
optPage
=
"客户群群发"
)
public
RestResponse
<
Object
>
stop
(
Long
planId
)
{
public
RestResponse
<
Object
>
stop
(
Long
planId
)
{
if
(
null
==
planId
)
{
if
(
null
==
planId
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"计划ID空"
);
return
RestResponse
.
failure
(
"9999"
,
"计划ID空"
);
}
}
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
ServiceResponse
<
GroupChatPlanDTO
>
planResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
planResp
.
isSuccess
())
{
if
(!
planResp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
}
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
@@ -138,15 +143,19 @@ public class GroupChatPlanController {
...
@@ -138,15 +143,19 @@ public class GroupChatPlanController {
ServiceResponse
<
GroupChatPlanDTO
>
oldResp
=
this
.
groupChatPlanApiService
.
detail
(
dto
.
getPlanId
());
ServiceResponse
<
GroupChatPlanDTO
>
oldResp
=
this
.
groupChatPlanApiService
.
detail
(
dto
.
getPlanId
());
GroupChatPlanDTO
oldPlan
=
oldResp
.
getResult
();
GroupChatPlanDTO
oldPlan
=
oldResp
.
getResult
();
if
(
null
==
oldPlan
)
{
if
(
null
==
oldPlan
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"9999"
,
"计划不存在"
);
}
}
if
(
oldPlan
.
getSendType
()
==
1
)
{
if
(
oldPlan
.
getSendType
()
==
1
)
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"已发送的不能编辑"
);
return
RestResponse
.
failure
(
"9999"
,
"已发送的不能编辑"
);
}
}
if
(
null
!=
oldPlan
.
getSendTime
()
&&
oldPlan
.
getSendTime
().
before
(
new
Date
()))
{
if
(
null
!=
oldPlan
.
getSendTime
()
&&
oldPlan
.
getSendTime
().
before
(
new
Date
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"已发送的不能编辑"
);
return
RestResponse
.
failure
(
"9999"
,
"已发送的不能编辑"
);
}
}
if
(
oldPlan
.
getStartTime
().
before
(
new
Date
()))
{
if
(
oldPlan
.
getStartTime
().
before
(
new
Date
()))
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
"进行中的不能编辑"
);
return
RestResponse
.
failure
(
"9999"
,
"进行中的不能编辑"
);
}
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
...
...
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