Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
780027d4
Commit
780027d4
authored
Jan 16, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 事业部
parent
761d0a9f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
400 additions
and
44 deletions
+400
-44
EkpDaprUtils.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
+10
-0
ProcessDaprUtils.java
...cloud/plus/v1/yifu/common/dapr/util/ProcessDaprUtils.java
+0
-1
EkpDivisionInfoVo.java
...com/yifu/cloud/plus/v1/yifu/ekp/vo/EkpDivisionInfoVo.java
+29
-0
EkpShenhepeizhi.java
...va/com/yifu/cloud/plus/v1/ekp/entity/EkpShenhepeizhi.java
+30
-0
TEkpShenhepeizhiController.java
...ud/plus/v1/ekp/controller/TEkpShenhepeizhiController.java
+48
-0
EkpShenhepeizhiMapper.java
.../yifu/cloud/plus/v1/ekp/mapper/EkpShenhepeizhiMapper.java
+29
-0
EkpShenhepeizhiService.java
...ifu/cloud/plus/v1/ekp/service/EkpShenhepeizhiService.java
+25
-0
EkpShenhepeizhiServiceImpl.java
.../plus/v1/ekp/service/impl/EkpShenhepeizhiServiceImpl.java
+64
-0
EkpShenhepeizhiMapper.xml
...p-biz/src/main/resources/mapper/EkpShenhepeizhiMapper.xml
+32
-0
AbastractAuditProcess.java
...us/v1/yifu/salary/service/impl/AbastractAuditProcess.java
+103
-31
TInsuranceUnpurchaseApplyServiceImpl.java
...ry/service/impl/TInsuranceUnpurchaseApplyServiceImpl.java
+1
-1
TInsuranceUnpurchaseApplyAuditProcess.java
...e/impl/process/TInsuranceUnpurchaseApplyAuditProcess.java
+28
-10
UserController.java
...u/cloud/plus/v1/yifu/admin/controller/UserController.java
+1
-1
No files found.
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
View file @
780027d4
...
...
@@ -103,4 +103,14 @@ public class EkpDaprUtils {
public
R
<
EkpSocialPushInfoVo
>
jobpushRiskInfoToEkp
(
List
<
EkpIncomeParamRisk
>
incomeParam
)
{
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/ekpriskinfo/inner/jobPushRiskInfoToEkp"
,
JSON
.
toJSONString
(
incomeParam
),
EkpSocialPushInfoVo
.
class
,
SecurityConstants
.
FROM_IN
);
}
/**
* 根据事业部配置条件查找用户账号
* @author chenyuxi
* @date 2025/1/15
* @since 1.7.5
*/
public
R
<
EkpDivisionInfoVo
>
getDivisionUsernameList
(
EkpDivisionInfoVo
divisionInfoVo
)
{
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/ekpShenhepeizhi/inner/getDivisionUsernameList"
,
divisionInfoVo
,
EkpDivisionInfoVo
.
class
,
SecurityConstants
.
FROM_IN
);
}
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ProcessDaprUtils.java
View file @
780027d4
...
...
@@ -29,7 +29,6 @@ public class ProcessDaprUtils {
* @since mvp1.7.5
**/
public
R
<
ProcessVo
>
getProcessVoByType
(
String
processType
)
{
log
.
error
(
"流程类型>>processType>>{}"
,
processType
);
R
<
ProcessVo
>
processVoR
=
HttpDaprUtil
.
invokeMethodPost
(
daprProcessProperties
.
getAppUrl
(),
daprProcessProperties
.
getAppId
(),
"/tprocess/inner/getProcessVoByType"
,
processType
,
ProcessVo
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
processVoR
)){
return
R
.
failed
(
"根据流程类型查询ProcessVo失败!"
);
...
...
yifu-common/yifu-common-ekp/src/main/java/com/yifu/cloud/plus/v1/yifu/ekp/vo/EkpDivisionInfoVo.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
ekp
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Author chenyuxi
* @Date 2022-8-31 12:02:06
* @Description 事业部审批配置
* @Version 1.0
*/
@Data
public
class
EkpDivisionInfoVo
implements
Serializable
{
private
String
newLine
;
private
String
division
;
// 指定事业部配置表负责人标识:0事业部条线负责人;1事业部负责人;2分管副总
private
String
divisionIdentification
;
/**
* 查事业部审批人账号列表
**/
private
List
<
String
>
divisionUsernameList
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/ekp/entity/EkpShenhepeizhi.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 事业部审批配置
* @author chenyuxi
* @date 2025/1/15
* @since 1.7.5
*/
@Data
@TableName
(
"ekp_shenhepeizhi_table"
)
@EqualsAndHashCode
()
@Schema
(
description
=
"事业部审批配置"
)
public
class
EkpShenhepeizhi
{
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
private
String
fdShiyebu
;
private
String
fdTiaoxian
;
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/controller/TEkpShenhepeizhiController.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
controller
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpSalaryInfoService
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpShenhepeizhiService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpDivisionInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpSalaryParam
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.List
;
/**
* 事业部审批配置
* @author chenyuxi
* @date 2025/1/15
* @since 1.7.5
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/ekpShenhepeizhi"
)
@Tag
(
name
=
"事业部审批配置"
)
public
class
TEkpShenhepeizhiController
{
private
final
EkpShenhepeizhiService
shenhepeizhiService
;
@Inner
@PostMapping
(
"/inner/getDivisionUsernameList"
)
public
EkpDivisionInfoVo
getDivisionUsernameList
(
@RequestBody
EkpDivisionInfoVo
divisionInfoVo
)
{
return
shenhepeizhiService
.
getDivisionUsernameList
(
divisionInfoVo
);
}
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/mapper/EkpShenhepeizhiMapper.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpShenhepeizhi
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 事业部审批配置
* @author chenyuxi
* @date 2025/1/15
* @since 1.7.5
*/
@Mapper
public
interface
EkpShenhepeizhiMapper
extends
BaseMapper
<
EkpShenhepeizhi
>
{
// 查事业部负责人
List
<
String
>
getDivisionLoginNameList
(
@Param
(
"line"
)
String
line
,
@Param
(
"division"
)
String
division
);
// 查分管副总
List
<
String
>
getFuLoginNameList
(
@Param
(
"line"
)
String
line
,
@Param
(
"division"
)
String
division
);
// 查条线人
List
<
String
>
getLineLoginNameList
(
@Param
(
"line"
)
String
line
,
@Param
(
"division"
)
String
division
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/EkpShenhepeizhiService.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSalaryInfo
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpShenhepeizhi
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpDivisionInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpSalaryParam
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.io.InputStream
;
import
java.util.List
;
/**
* 事业部审批配置
* @author chenyuxi
* @date 2025/1/15
* @since 1.7.5
*/
public
interface
EkpShenhepeizhiService
extends
IService
<
EkpShenhepeizhi
>
{
EkpDivisionInfoVo
getDivisionUsernameList
(
EkpDivisionInfoVo
divisionInfoVo
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpShenhepeizhiServiceImpl.java
0 → 100644
View file @
780027d4
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
.
impl
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.read.listener.ReadListener
;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.util.ListUtils
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSalaryInfo
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpShenhepeizhi
;
import
com.yifu.cloud.plus.v1.ekp.mapper.EkpSalaryInfoMapper
;
import
com.yifu.cloud.plus.v1.ekp.mapper.EkpShenhepeizhiMapper
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpSalaryInfoService
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpShenhepeizhiService
;
import
com.yifu.cloud.plus.v1.ekp.vo.ClaimInfotVO
;
import
com.yifu.cloud.plus.v1.ekp.vo.ClaimRebackInfotVO
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpDivisionInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpSalaryParam
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
//工资明细表
*
//@author huyc
//@date 2024-03-11 11:21:56
*/
@Log4j2
@Service
@RequiredArgsConstructor
public
class
EkpShenhepeizhiServiceImpl
extends
ServiceImpl
<
EkpShenhepeizhiMapper
,
EkpShenhepeizhi
>
implements
EkpShenhepeizhiService
{
@Override
public
EkpDivisionInfoVo
getDivisionUsernameList
(
EkpDivisionInfoVo
divisionInfoVo
)
{
EkpDivisionInfoVo
divisionInfoVoRes
=
new
EkpDivisionInfoVo
();
List
<
String
>
divisionUsernameList
=
new
ArrayList
<>();
// 指定事业部配置表负责人标识:0事业部条线负责人;1事业部负责人;2分管副总
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
divisionInfoVo
.
getDivisionIdentification
())){
divisionUsernameList
=
baseMapper
.
getLineLoginNameList
(
divisionInfoVo
.
getNewLine
(),
divisionInfoVo
.
getDivision
());
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
divisionInfoVo
.
getDivisionIdentification
())){
divisionUsernameList
=
baseMapper
.
getDivisionLoginNameList
(
divisionInfoVo
.
getNewLine
(),
divisionInfoVo
.
getDivision
());
}
if
(
CommonConstants
.
TWO_STRING
.
equals
(
divisionInfoVo
.
getDivisionIdentification
())){
divisionUsernameList
=
baseMapper
.
getFuLoginNameList
(
divisionInfoVo
.
getNewLine
(),
divisionInfoVo
.
getDivision
());
}
divisionInfoVoRes
.
setDivisionUsernameList
(
divisionUsernameList
);
return
divisionInfoVoRes
;
}
}
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/EkpShenhepeizhiMapper.xml
0 → 100644
View file @
780027d4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.ekp.mapper.EkpShenhepeizhiMapper"
>
<!--查询项目信息-->
<select
id=
"getDivisionLoginNameList"
resultType=
"string"
>
select du.fd_login_name as loginName from ekp_shenhepeizhi_table a
LEFT JOIN ekporg_1927fe1d4d35e2548a3e d on d.fd_parent_id = a.fd_id
LEFT JOIN sys_org_person du on du.fd_id = d.sys_org_person_id
where a.fd_tiaoxian = #{line} and a.fd_shiyebu = #{division}
</select>
<!--查询项目信息-->
<select
id=
"getFuLoginNameList"
resultType=
"string"
>
select fu.fd_login_name as loginName from ekp_shenhepeizhi_table a
LEFT JOIN ekporg_1927fe509c6554968429 f on f.fd_parent_id = a.fd_id
LEFT JOIN sys_org_person fu on fu.fd_id = f.sys_org_person_id
where a.fd_tiaoxian = #{line} and a.fd_shiyebu = #{division}
</select>
<!--查询项目信息-->
<select
id=
"getLineLoginNameList"
resultType=
"string"
>
select lu.fd_login_name as loginName from ekp_shenhepeizhi_table a
LEFT JOIN ekporg_1927fe1d4d389080b7a7 l on l.fd_parent_id = a.fd_id
LEFT JOIN sys_org_person lu on lu.fd_id = l.sys_org_person_id
where a.fd_tiaoxian = #{line} and a.fd_shiyebu = #{division}
</select>
</mapper>
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/AbastractAuditProcess.java
View file @
780027d4
This diff is collapsed.
Click to expand it.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TInsuranceUnpurchaseApplyServiceImpl.java
View file @
780027d4
...
...
@@ -521,7 +521,7 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
if
(
Common
.
isEmpty
(
entity
.
getCreateUserDeptId
())){
return
R
.
failed
(
"申请人所属部门id不能为空"
);
}
// 传:流程类型 1不购买商险申请;审核类型 0不购买商险审核
//
todo
传:流程类型 1不购买商险申请;审核类型 0不购买商险审核
R
<
List
<
SysUser
>>
auditUserListR
=
tInsuranceUnpurchaseApplyAuditProcess
.
getAuditUserList
(
id
,
user
,
entity
.
getCreateUserDeptId
(),
CommonConstants
.
ONE_STRING
,
CommonConstants
.
ZERO_STRING
,
""
,
entity
.
getApplyNo
(),
entity
,
TInsuranceUnpurchaseApply
.
class
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/process/TInsuranceUnpurchaseApplyAuditProcess.java
View file @
780027d4
...
...
@@ -12,6 +12,8 @@ import com.yifu.cloud.plus.v1.yifu.common.core.exception.CheckedException;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.EkpDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpDivisionInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.config.WxConfig
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TAuditNodeProcess
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TAuditRecord
;
...
...
@@ -56,6 +58,9 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
@Autowired
private
WxConfig
wxConfig
;
@Autowired
private
EkpDaprUtils
ekpDaprUtils
;
@Override
public
R
<
String
>
auditSuccess
(
TInsuranceUnpurchaseApply
entity
,
TAuditRecord
auditRecord
,
YifuUser
loginUser
)
{
// 改实体审核状态为审核通过
...
...
@@ -86,7 +91,7 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
}
@Override
public
R
<
String
>
auditSuccessAndNex
(
TInsuranceUnpurchaseApply
entity
,
List
<
SysUser
>
remoteSysUserList
,
TAuditRecord
a
pproval
Record
)
{
public
R
<
String
>
auditSuccessAndNex
(
TInsuranceUnpurchaseApply
entity
,
List
<
SysUser
>
remoteSysUserList
,
TAuditRecord
a
udit
Record
)
{
if
(
Common
.
isEmpty
(
remoteSysUserList
))
{
throw
new
CheckedException
(
NEXT_NODE_USER_NULL
);
}
...
...
@@ -105,6 +110,8 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
}
entity
.
setAuditUser
(
auditUserNameStrs
);
entity
.
setAuditUserId
(
auditUserIdStrs
);
tInsuranceUnpurchaseApplyService
.
updateById
(
entity
);
return
R
.
ok
(
"审核通过"
);
}
...
...
@@ -170,22 +177,33 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
**/
@Override
public
List
<
SysUser
>
getDivisionAuditUser
(
TNodePrimission
nodePrimission
,
TInsuranceUnpurchaseApply
entity
)
{
SysUser
remoteSysUser
=
null
;
SysUser
remoteSysUser
;
List
<
SysUser
>
remoteSysUserList
=
new
ArrayList
<>();
if
(
CommonConstants
.
SIX_INT
==
nodePrimission
.
getType
().
intValue
())
{
// 6.指定事业部审批
if
(
Common
.
isEmpty
(
nodePrimission
.
getDivisionIdentification
()))
{
throw
new
CheckedException
(
"未查询当前节点配置的事业部审批人标识"
);
}
// todo 根据配置条件查找用户
//EkpDivisionInfoVo divisionInfoVo = new EkpDivisionInfoVo();
// if(CommonConstants.ZERO_STRING.equals(nodePrimission.getDivisionIdentification())){
//
// }
// 根据配置条件查找用户账号
EkpDivisionInfoVo
divisionInfoVo
=
new
EkpDivisionInfoVo
();
divisionInfoVo
.
setDivisionIdentification
(
nodePrimission
.
getDivisionIdentification
());
divisionInfoVo
.
setDivision
(
entity
.
getDivision
());
divisionInfoVo
.
setNewLine
(
entity
.
getNewLine
());
// remoteSysUserList = RemoteRequestUtil.getUserByDivisionConfig(remoteUserService, advancePaymentEntity.getDivision(), advancePaymentEntity.getDivisionLine(), nodePrimission.getDivisionIdentification());
R
<
EkpDivisionInfoVo
>
divisionInfoVoRes
=
ekpDaprUtils
.
getDivisionUsernameList
(
divisionInfoVo
);
if
(
null
!=
divisionInfoVoRes
&&
null
!=
divisionInfoVoRes
.
getData
())
{
List
<
String
>
divisionUsernameList
=
divisionInfoVoRes
.
getData
().
getDivisionUsernameList
();
if
(
Common
.
isNotNull
(
divisionUsernameList
)){
// 根据用户账号查用户信息
for
(
String
username
:
divisionUsernameList
){
R
<
SysUser
>
remoteSysUserR
=
upmsDaprUtils
.
getSimpleUserByLoginName
(
username
);
if
(
Common
.
isNotNull
(
remoteSysUserR
)
&&
Common
.
isNotNull
(
remoteSysUserR
.
getData
())){
remoteSysUser
=
remoteSysUserR
.
getData
();
remoteSysUserList
.
add
(
remoteSysUser
);
}
}
}
}
}
return
remoteSysUserList
;
}
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/UserController.java
View file @
780027d4
...
...
@@ -600,7 +600,7 @@ public class UserController {
**/
@Inner
@PostMapping
(
"/inner/getUser/getUserByRoleIdForCrm"
)
public
SysUserListVo
getUserByRoleIdForCrm
(
UserApprovalRoleVO
userByApprovalRole
)
{
public
SysUserListVo
getUserByRoleIdForCrm
(
@RequestBody
UserApprovalRoleVO
userByApprovalRole
)
{
SysUserListVo
naVo
=
new
SysUserListVo
();
if
(
Common
.
isEmpty
(
userByApprovalRole
.
getDepartId
())
||
Common
.
isEmpty
(
userByApprovalRole
.
getRoleId
()))
{
return
naVo
;
...
...
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