Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
c88e91df
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c88e91df
编写于
9月 28, 2020
作者:
1
13003003657
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改客户离职相关bug
上级
885f34e3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
19 deletion
+19
-19
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeUserController.java
...com/linkwechat/web/controller/wecom/WeUserController.java
+4
-4
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeFlowerCustomerRelMapper.java
...om/linkwechat/wecom/mapper/WeFlowerCustomerRelMapper.java
+4
-3
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeGroupMapper.java
.../main/java/com/linkwechat/wecom/mapper/WeGroupMapper.java
+3
-2
linkwe-wecom/src/main/resources/mapper/wecom/WeFlowerCustomerRelMapper.xml
...main/resources/mapper/wecom/WeFlowerCustomerRelMapper.xml
+1
-1
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
...we-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
+7
-9
未找到文件。
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeUserController.java
浏览文件 @
c88e91df
...
...
@@ -100,7 +100,7 @@ public class WeUserController extends BaseController {
/**
* 离职
等待
分配
* 离职
已
分配
* @param weLeaveUserVo
* @return
*/
...
...
@@ -115,7 +115,7 @@ public class WeUserController extends BaseController {
/**
* 离职
已
分配
* 离职
等待
分配
* @param weLeaveUserVo
* @return
*/
...
...
@@ -136,9 +136,9 @@ public class WeUserController extends BaseController {
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:user:allocateLeaveUserAboutData')"
)
@PutMapping
({
"/allocateLeaveUserAboutData"
})
public
AjaxResult
allocateLeaveUserAboutData
(
WeLeaveUserInfoAllocateVo
weLeaveUserInfoAllocateVo
)
{
public
AjaxResult
allocateLeaveUserAboutData
(
@RequestBody
WeLeaveUserInfoAllocateVo
weLeaveUserInfoAllocateVo
)
{
weUserService
.
allocateLeaveUserAboutData
(
weLeaveUserInfoAllocateVo
);
return
AjaxResult
.
success
(
"离职分配成功"
);
}
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeFlowerCustomerRelMapper.java
浏览文件 @
c88e91df
...
...
@@ -2,6 +2,7 @@ package com.linkwechat.wecom.mapper;
import
java.util.List
;
import
com.linkwechat.wecom.domain.WeFlowerCustomerRel
;
import
org.apache.ibatis.annotations.Param
;
/**
* 具有外部联系人功能企业员工也客户的关系Mapper接口
...
...
@@ -62,10 +63,10 @@ public interface WeFlowerCustomerRelMapper
/**
* 批量插入
* @param
W
eFlowerCustomerRels
* @param
w
eFlowerCustomerRels
* @return
*/
public
int
batchInsetWeFlowerCustomerRel
(
List
<
WeFlowerCustomerRel
>
W
eFlowerCustomerRels
);
public
int
batchInsetWeFlowerCustomerRel
(
@Param
(
"weFlowerCustomerRels"
)
List
<
WeFlowerCustomerRel
>
w
eFlowerCustomerRels
);
/**
...
...
@@ -73,5 +74,5 @@ public interface WeFlowerCustomerRelMapper
* @param ids
* @return
*/
public
int
batchLogicDeleteByIds
(
List
<
Long
>
ids
);
public
int
batchLogicDeleteByIds
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeGroupMapper.java
浏览文件 @
c88e91df
package
com.linkwechat.wecom.mapper
;
import
com.linkwechat.wecom.domain.WeGroup
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -22,7 +23,7 @@ public interface WeGroupMapper {
int
deleteWeGroupByIds
(
Long
[]
paramArrayOfLong
);
int
batchLogicDeleteByIds
(
List
<
Long
>
ids
);
int
batchLogicDeleteByIds
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
int
batchInsetWeGroup
(
List
<
WeGroup
>
weGroups
);
int
batchInsetWeGroup
(
@Param
(
"weGroups"
)
List
<
WeGroup
>
weGroups
);
}
linkwe-wecom/src/main/resources/mapper/wecom/WeFlowerCustomerRelMapper.xml
浏览文件 @
c88e91df
...
...
@@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert
id=
"batchInsetWeFlowerCustomerRel"
>
insert into we_flower_customer_rel (id, user_id, remark, description, create_time, remark_corp_name, remark_mobiles, oper_userid, add_way, state, customer_id)
values
<foreach
collection=
"
list
"
item=
"tag"
index=
"index"
separator=
","
>
<foreach
collection=
"
weFlowerCustomerRels
"
item=
"tag"
index=
"index"
separator=
","
>
(#{tag.id},#{tag.userId},#{tag.remark},#{tag.description},#{tag.createTime},#{tag.remarkCorpName},#{tag.remarkMobiles},#{tag.operUserid},#{tag.addWay},#{tag.state},#{tag.customerId})
</foreach>
</insert>
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
浏览文件 @
c88e91df
...
...
@@ -153,21 +153,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"leaveUserList"
parameterType=
"WeLeaveUserVo"
resultType=
"com.linkwechat.wecom.domain.vo.WeLeaveUserVo"
>
SELECT
we.user_n
ame,
we.department,
we.dimission_t
ime,
count(case WHEN we.user_id=wfcr.user_id THEN 1 ELSE 0 END) as
allocateCustomerNum,
count(case WHEN wg.group_leader_user_id=we.user_id THEN 1 ELSE 0 END) as
allocateGroupNum
we.user_name as userN
ame,
we.department,
we.dimission_time as dimissionT
ime,
(SELECT count(wfcr.id) FROM we_flower_customer_rel wfcr WHERE wfcr.user_id=we.user_id)
allocateCustomerNum,
(SELECT count(wg.id) FROM we_group wg WHERE wg.group_leader_user_id=we.user_id)
allocateGroupNum
FROM
we_user we
INNER JOIN we_flower_customer_rel wfcr on we.user_id=wfcr.user_id
INNER JOIN we_group wg on wg.group_leader_user_id=we.user_id
<where>
<if
test=
"userName != null and userName !=''"
>
and w
c
.user_name=#{userName}
</if>
<if
test=
"userName != null and userName !=''"
>
and w
e
.user_name=#{userName}
</if>
<if
test=
"beginTime != null and beginTime !='' and endTime != null and endTime !=''"
>
DATE_FORMAT(we.dimission_time,'%Y-%m-%d') BETWEEN #{beginTime} AND #{endTime}
</if>
<if
test=
"isActivate
null "
>
and
is_activate = #{isActivate}
</if>
<if
test=
"isActivate
!= null "
>
and we.
is_activate = #{isActivate}
</if>
</where>
</select>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录