Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
platform-merchants
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 11a54741
authored
Mar 17, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.7.0版本 飞行督导:后台-督导管理-汇总、列表 查询AI分析任务结果定时任务
1 parent
bcd4b02e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
182 additions
and
3 deletions
platform-merchants-api/pom.xml
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantStaffRemote.java
platform-merchants-container/pom.xml
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantStaffMapper.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantStaffRemoteImpl.java
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
platform-merchants-container/src/main/resources/META-INF/orm/MerchantStaffMapper.xml
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/MerchantStaffServiceTest.java
platform-merchants-api/pom.xml
View file @
11a5474
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</parent>
</parent>
<groupId>
cn.com.glsx.merchants
</groupId>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
5.
6
.0-SNAPSHOT
</version>
<version>
5.
7
.0-SNAPSHOT
</version>
<name>
platform-merchants-api
</name>
<name>
platform-merchants-api
</name>
<properties>
<properties>
<deploy.scanPackage>
cn.com.glsx.merchants.remote
</deploy.scanPackage>
<deploy.scanPackage>
cn.com.glsx.merchants.remote
</deploy.scanPackage>
...
...
platform-merchants-api/src/main/java/cn/com/glsx/merchants/remote/MerchantStaffRemote.java
View file @
11a5474
...
@@ -98,6 +98,18 @@ public interface MerchantStaffRemote {
...
@@ -98,6 +98,18 @@ public interface MerchantStaffRemote {
@ApiResponse
(
"根据商户查询员工"
)
@ApiResponse
(
"根据商户查询员工"
)
RpcResponse
<
List
<
MerchantStaffResponse
>>
findMerchantStaffListRemote
(
MerchantStaffRequest
merchantStaffRequest
);
RpcResponse
<
List
<
MerchantStaffResponse
>>
findMerchantStaffListRemote
(
MerchantStaffRequest
merchantStaffRequest
);
/**
* 根据商户分页查询在职员工
* 在职:北森在职状态
*
* @param pagination 请求参数
* @return 返回参数
* @
*/
@ApiMethod
(
"根据商户分页查询员工"
)
@ApiParams
({
@ApiParam
(
name
=
"pagination"
,
notes
=
"根据商户分页查询员工"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)})
@ApiResponse
(
"根据商户分页查询员工"
)
RpcResponse
<
RpcPagination
<
MerchantStaffResponse
>>
findOnJobMerchantStaffPageRemote
(
RpcPagination
<
MerchantStaffRequest
>
pagination
);
/**
/**
* 查询员工列表
* 查询员工列表
...
...
platform-merchants-container/pom.xml
View file @
11a5474
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
5.
6
.0-SNAPSHOT
</version>
<version>
5.
7
.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.glsx
</groupId>
<groupId>
com.glsx
</groupId>
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantStaffMapper.java
View file @
11a5474
...
@@ -23,6 +23,15 @@ public interface MerchantStaffMapper extends CommonBaseMapper<MerchantStaff> {
...
@@ -23,6 +23,15 @@ public interface MerchantStaffMapper extends CommonBaseMapper<MerchantStaff> {
List
<
MerchantStaffResponse
>
findMerchantStaff
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
merchantStaffRequest
);
List
<
MerchantStaffResponse
>
findMerchantStaff
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
merchantStaffRequest
);
/**
* 分页查询在职员工
* 在职:北森在职状态
*
* @param merchantStaffRequest
* @return
*/
List
<
MerchantStaffResponse
>
findOnJobMerchantStaff
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
merchantStaffRequest
);
Page
<
MerchantStaffResponse
>
merchantProductByPage
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
condition
);
Page
<
MerchantStaffResponse
>
merchantProductByPage
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
condition
);
Page
<
MerchantStaffResponse
>
findClaimStaff
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
condition
);
Page
<
MerchantStaffResponse
>
findClaimStaff
(
@Param
(
"merchantStaffRequest"
)
MerchantStaffRequest
condition
);
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/remote/MerchantStaffRemoteImpl.java
View file @
11a5474
...
@@ -146,6 +146,23 @@ public class MerchantStaffRemoteImpl implements MerchantStaffRemote {
...
@@ -146,6 +146,23 @@ public class MerchantStaffRemoteImpl implements MerchantStaffRemote {
}
}
/**
/**
* 根据条件分页查询在职员工信息
* 在职:北森在职状态
*
* @param pagination 请求参数
* @return
*/
@Override
public
RpcResponse
<
RpcPagination
<
MerchantStaffResponse
>>
findOnJobMerchantStaffPageRemote
(
RpcPagination
<
MerchantStaffRequest
>
pagination
)
{
try
{
Page
<
MerchantStaffResponse
>
list
=
merchantStaffService
.
findOnJobMerchantStaffPage
(
pagination
);
return
RpcResponse
.
success
(
RpcPagination
.
copyPage
(
list
));
}
catch
(
RpcServiceException
e
)
{
return
RpcResponse
.
error
(
e
);
}
}
/**
* 查询员工列表
* 查询员工列表
*
*
* @param pagination 入参
* @param pagination 入参
...
...
platform-merchants-container/src/main/java/cn/com/glsx/merchants/service/MerchantStaffService.java
View file @
11a5474
...
@@ -38,7 +38,6 @@ import cn.hutool.core.thread.ThreadUtil;
...
@@ -38,7 +38,6 @@ import cn.hutool.core.thread.ThreadUtil;
import
cn.hutool.core.text.NamingCase
;
import
cn.hutool.core.text.NamingCase
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -407,6 +406,20 @@ public class MerchantStaffService {
...
@@ -407,6 +406,20 @@ public class MerchantStaffService {
return
null
;
return
null
;
}
}
public
Page
<
MerchantStaffResponse
>
findOnJobMerchantStaffPage
(
RpcPagination
<
MerchantStaffRequest
>
pagination
)
{
MerchantStaffRequest
condition
=
pagination
.
getCondition
();
Page
<
MerchantStaffResponse
>
page
=
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
String
staffLable
=
condition
.
getStaffLabel
();
if
(
StringUtils
.
isNotEmpty
(
staffLable
))
{
List
<
String
>
list
=
Lists
.
newArrayList
(
staffLable
.
split
(
","
));
condition
.
setStaffLableList
(
list
);
}
merchantStaffMapper
.
findMerchantStaff
(
condition
);
merchantStaffMapper
.
findOnJobMerchantStaff
(
condition
);
return
page
;
}
/**
/**
* 查询员工列表
* 查询员工列表
*
*
...
...
platform-merchants-container/src/main/resources/META-INF/orm/MerchantStaffMapper.xml
View file @
11a5474
...
@@ -214,6 +214,95 @@
...
@@ -214,6 +214,95 @@
and (st.staff_name like concat('%', #{merchantStaffRequest.keyword},'%') or st.staff_phone like concat('%',
and (st.staff_name like concat('%', #{merchantStaffRequest.keyword},'%') or st.staff_phone like concat('%',
#{merchantStaffRequest.keyword},'%'))
#{merchantStaffRequest.keyword},'%'))
</if>
</if>
<if
test=
"merchantStaffRequest.staffName!=null and merchantStaffRequest.staffName != ''"
>
and st.staff_name like concat('%', #{merchantStaffRequest.staffName},'%')
</if>
<if
test=
"merchantStaffRequest.staffPhone!=null and merchantStaffRequest.staffPhone != ''"
>
and st.staff_phone = #{merchantStaffRequest.staffPhone}
</if>
<if
test=
"merchantStaffRequest.staffLableList != null and merchantStaffRequest.staffLableList.size > 0"
>
<foreach
collection=
"merchantStaffRequest.staffLableList"
item=
"item"
index=
"index"
>
and FIND_IN_SET(#{item},staff_label)
</foreach>
</if>
<if
test=
"merchantStaffRequest.staffPhoneList != null and merchantStaffRequest.staffPhoneList.size > 0"
>
and st.staff_phone in
<foreach
collection=
"merchantStaffRequest.staffPhoneList"
index=
"index"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"merchantStaffRequest.staffLabelFlag != null and merchantStaffRequest.staffLabelFlag"
>
and st.staff_label is not null and st.staff_label != ''
</if>
<if
test=
"merchantStaffRequest.roleName != null and merchantStaffRequest.roleName != ''"
>
and ro.role_name = #{merchantStaffRequest.roleName}
</if>
<if
test=
"merchantStaffRequest.roleNameLike != null and merchantStaffRequest.roleNameLike != ''"
>
and ro.role_name like concat('%', #{merchantStaffRequest.roleNameLike},'%')
</if>
<if
test=
"merchantStaffRequest.staffUuid != null and merchantStaffRequest.staffUuid != ''"
>
and st.staff_uuid = #{merchantStaffRequest.staffUuid}
</if>
<if
test=
"merchantStaffRequest.staffUuidList != null and merchantStaffRequest.staffUuidList.size>0"
>
and st.staff_uuid in
<foreach
collection=
"merchantStaffRequest.staffUuidList"
index=
"index"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"merchantStaffRequest.shareStaffUuid != null and merchantStaffRequest.shareStaffUuid != ''"
>
and st.share_staff_uuid = #{merchantStaffRequest.shareStaffUuid}
</if>
<if
test=
"merchantStaffRequest.merchantNoList != null and merchantStaffRequest.merchantNoList.size > 0"
>
and pm.merchantNo in
<foreach
collection=
"merchantStaffRequest.merchantNoList"
index=
"index"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"merchantStaffRequest.staffBusinessType != null"
>
and st.staff_business_type = #{merchantStaffRequest.staffBusinessType}
</if>
<if
test=
"merchantStaffRequest.delFlag != null"
>
and st.del_flag = #{merchantStaffRequest.delFlag}
</if>
order by st.created_time desc
</select>
<select
id=
"findOnJobMerchantStaff"
resultMap=
"resultMap"
parameterType=
"cn.com.glsx.merchants.model.request.MerchantStaffRequest"
>
select st.id, st.staff_name, st.staff_job, st.staff_phone as staff_phone, st.visible_inferior_mer,
st.department,st.staff_uuid ,st.we_chat_avatar_url ,st.staff_business_type,
st.created_by,
st.created_time, st.updated_by, st.updated_time, st.del_flag, st.merchant_id, st.staff_email,
st.staff_code,ro.role_name as roleName,pm.merchant_name as merchantName,
st.effective_time,
st.entmicro_name,
pm.merchantNo,
st.created_name as createdAccount
from platform_merchant_staff st
inner join beisen_employee_info b on st.staff_phone=b.mobile_phone and b.std_is_deleted=0 and b.zz_status = 0
left join platform_merchant_role_staff_relation pr on st.id=pr.staff_id and pr.del_flag=0
left join platform_merchant_role ro on pr.role_id=ro.id and ro.del_flag=0
left join platform_merchant pm on st.merchant_id=pm.id and pm.del_flag=0
where 1=1 and st.del_flag IN (0,2)
<if
test=
"merchantStaffRequest.id !=null and merchantStaffRequest.id != ''"
>
and st.id=#{merchantStaffRequest.id}
</if>
<if
test=
"merchantStaffRequest.merchantId !=null and merchantStaffRequest.merchantId != ''"
>
and st.merchant_id=#{merchantStaffRequest.merchantId}
</if>
<if
test=
"merchantStaffRequest.merchantNo !=null "
>
and pm.merchantNo=#{merchantStaffRequest.merchantNo}
</if>
<if
test=
"merchantStaffRequest.keyword!=null and merchantStaffRequest.keyword != ''"
>
and (st.staff_name like concat('%', #{merchantStaffRequest.keyword},'%') or st.staff_phone like concat('%',
#{merchantStaffRequest.keyword},'%'))
</if>
<if
test=
"merchantStaffRequest.staffName!=null and merchantStaffRequest.staffName != ''"
>
and st.staff_name like concat('%', #{merchantStaffRequest.staffName},'%')
</if>
<if
test=
"merchantStaffRequest.staffPhone!=null and merchantStaffRequest.staffPhone != ''"
>
and st.staff_phone = #{merchantStaffRequest.staffPhone}
</if>
<if
test=
"merchantStaffRequest.staffLableList != null and merchantStaffRequest.staffLableList.size > 0"
>
<if
test=
"merchantStaffRequest.staffLableList != null and merchantStaffRequest.staffLableList.size > 0"
>
<foreach
collection=
"merchantStaffRequest.staffLableList"
item=
"item"
index=
"index"
>
<foreach
collection=
"merchantStaffRequest.staffLableList"
item=
"item"
index=
"index"
>
and FIND_IN_SET(#{item},staff_label)
and FIND_IN_SET(#{item},staff_label)
...
...
platform-merchants-container/src/test/java/cn/com/glsx/merchants/service/MerchantStaffServiceTest.java
0 → 100644
View file @
11a5474
package
cn
.
com
.
glsx
.
merchants
.
service
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.merchants.model.request.MerchantStaffRequest
;
import
cn.com.glsx.merchants.model.response.MerchantStaffResponse
;
import
com.github.pagehelper.Page
;
import
junit.framework.TestCase
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
* @Title:
* @Description:
* @Author xiehx
* @Date 2026/3/14
**/
public
class
MerchantStaffServiceTest
extends
BaseServiceTest
{
@Autowired
private
MerchantStaffService
merchantStaffService
;
@Test
public
void
testFindMerchantStaffPageRemote
()
{
RpcPagination
<
MerchantStaffRequest
>
pagination
=
new
RpcPagination
<>();
pagination
.
setPageNum
(
1
);
pagination
.
setPageSize
(
2
);
MerchantStaffRequest
condition
=
new
MerchantStaffRequest
();
condition
.
setMerchantNo
(
44209813
);
// 广联内部使用 商户号
condition
.
setRoleName
(
"飞行督导"
);
condition
.
setDelFlag
((
byte
)
0
);
// condition.setStaffName("谢海旭");
condition
.
setStaffPhone
(
"13603070903"
);
pagination
.
setCondition
(
condition
);
Page
<
MerchantStaffResponse
>
page
=
merchantStaffService
.
findOnJobMerchantStaffPage
(
pagination
);
TestCase
.
assertNotNull
(
page
);
}
}
\ No newline at end of file
\ 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