Commit bf6233c3 by 徐高华

退群人查询

parent 05e0fd19
...@@ -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;
} }
......
...@@ -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">
......
...@@ -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());
} }
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment