Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4c3e8efd
authored
Dec 26, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标签建群编辑修复
1 parent
eef29269
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
25 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/query/WeAddGroupMessageQuery.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WePresTagGroupTaskScopeMapper.java
linkwe-wecom/src/main/resources/mapper/wecom/WePresTagGroupTaskScopeMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/query/WeAddGroupMessageQuery.java
View file @
4c3e8ef
...
...
@@ -19,7 +19,7 @@ import java.util.List;
public
class
WeAddGroupMessageQuery
extends
WeGroupMessageTemplate
{
@ApiModelProperty
(
"是否全部发送"
)
private
Boolean
isAll
;
private
Boolean
isAll
=
true
;
/**
* 指定接收消息的成员及对应客户列表
*/
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WePresTagGroupTaskScopeMapper.java
View file @
4c3e8ef
...
...
@@ -28,12 +28,4 @@ public interface WePresTagGroupTaskScopeMapper extends BaseMapper<WePresTagGroup
*/
int
batchBindsTaskScopes
(
List
<
WePresTagGroupTaskScope
>
taskScopeList
);
/**
* 员工发送信息后,变更其任务状态为 "完成"
*
* @param taskId 任务id
* @param emplId 员工id
* @return 结果
*/
int
updateEmplTaskStatus
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"emplId"
)
String
emplId
);
}
linkwe-wecom/src/main/resources/mapper/wecom/WePresTagGroupTaskScopeMapper.xml
View file @
4c3e8ef
...
...
@@ -4,39 +4,33 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.linkwechat.wecom.mapper.WePresTagGroupTaskScopeMapper"
>
<resultMap
type=
"WeCommunityTaskEmplVo"
id=
"WeEmplVoResult"
>
<resultMap
type=
"
com.linkwechat.wecom.domain.vo.
WeCommunityTaskEmplVo"
id=
"WeEmplVoResult"
>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"name"
column=
"user_name"
/>
<result
property=
"avatar"
column=
"head_image_url"
/>
<result
property=
"isDone"
column=
"
is_done
"
/>
<result
property=
"isDone"
column=
"
sent
"
/>
</resultMap>
<select
id=
"getScopeListByTaskId"
parameterType=
"Long"
resultMap=
"WeEmplVoResult"
>
SELECT
SELECT
DISTINCT
wu.user_id,
wu.user_name,
wu.head_image_url,
wptgs.is_done
st.sent
FROM
we_
pres_tag_group_scope wptgs
LEFT JOIN we_pres_tag_group wcog ON wcog.task_id = wptgs.task
_id
LEFT JOIN we_user wu ON wu.user_id = wptgs.we_user_id
we_
user wu
LEFT JOIN we_pres_tag_group_stat st ON st.user_id = wu.user
_id
AND st.del_flag = 0
WHERE
wptgs
.task_id = #{taskId}
st
.task_id = #{taskId}
</select>
<insert
id=
"batchBindsTaskScopes"
>
insert into we_pres_tag_group_scope(task_id, we_user_id,
is_don
e) values
insert into we_pres_tag_group_scope(task_id, we_user_id,
create_by, create_tim
e) values
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
(#{item.taskId},#{item.weUserId},
#{item.isDon
e})
(#{item.taskId},#{item.weUserId},
#{item.createBy}, #{item.createTim
e})
</foreach>
</insert>
<update
id=
"updateEmplTaskStatus"
>
UPDATE we_pres_tag_group_scope
SET is_done = TRUE
WHERE
task_id = #{taskId} AND we_user_id = #{emplId}
</update>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment