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
b95ca88a
You need to sign in or sign up before continuing.
Commit
b95ca88a
authored
Feb 29, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fxj-dev' into fxj-dev
parents
65702e4f
adc8cdc8
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
884 additions
and
3053 deletions
+884
-3053
pom.xml
yifu-common/yifu-common-dapr/pom.xml
+6
-0
DaprEkpProperties.java
...ud/plus/v1/yifu/common/dapr/config/DaprEkpProperties.java
+39
-0
EkpDaprUtils.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
+37
-0
spring.factories
...-common-dapr/src/main/resources/META-INF/spring.factories
+2
-1
daprConfig.properties
...yifu-common-dapr/src/main/resources/daprConfig.properties
+66
-15
EkpSocialInfo.java
...java/com/yifu/cloud/plus/v1/ekp/entity/EkpSocialInfo.java
+175
-0
SysMenu.java
...ava/com/yifu/cloud/plus/v1/permission/entity/SysMenu.java
+0
-172
SysRoleInfo.java
...com/yifu/cloud/plus/v1/permission/entity/SysRoleInfo.java
+0
-93
SysRoleMenuRes.java
.../yifu/cloud/plus/v1/permission/entity/SysRoleMenuRes.java
+0
-66
SysUserInfo.java
...com/yifu/cloud/plus/v1/permission/entity/SysUserInfo.java
+0
-113
SysUserPermission.java
...fu/cloud/plus/v1/permission/entity/SysUserPermission.java
+0
-102
SysUserRoleRes.java
.../yifu/cloud/plus/v1/permission/entity/SysUserRoleRes.java
+0
-73
IdTypeEkpVo.java
...ava/com/yifu/cloud/plus/v1/permission/vo/IdTypeEkpVo.java
+0
-28
SysDictVo.java
.../java/com/yifu/cloud/plus/v1/permission/vo/SysDictVo.java
+0
-34
SysMenuSearchVo.java
...com/yifu/cloud/plus/v1/permission/vo/SysMenuSearchVo.java
+0
-42
SysMenuVo.java
.../java/com/yifu/cloud/plus/v1/permission/vo/SysMenuVo.java
+0
-163
SysRoleInfoSaveVo.java
...m/yifu/cloud/plus/v1/permission/vo/SysRoleInfoSaveVo.java
+0
-41
SysRoleInfoSearchVo.java
...yifu/cloud/plus/v1/permission/vo/SysRoleInfoSearchVo.java
+0
-47
SysRoleInfoVo.java
...a/com/yifu/cloud/plus/v1/permission/vo/SysRoleInfoVo.java
+0
-131
SysRoleMenuResSearchVo.java
...u/cloud/plus/v1/permission/vo/SysRoleMenuResSearchVo.java
+0
-57
SysRoleMenuResVo.java
...om/yifu/cloud/plus/v1/permission/vo/SysRoleMenuResVo.java
+0
-68
SysTaxVo.java
...n/java/com/yifu/cloud/plus/v1/permission/vo/SysTaxVo.java
+0
-28
SysUserDeptVo.java
...a/com/yifu/cloud/plus/v1/permission/vo/SysUserDeptVo.java
+0
-62
SysUserInfoSaveVo.java
...m/yifu/cloud/plus/v1/permission/vo/SysUserInfoSaveVo.java
+0
-25
SysUserInfoSearchVo.java
...yifu/cloud/plus/v1/permission/vo/SysUserInfoSearchVo.java
+0
-57
SysUserInfoVo.java
...a/com/yifu/cloud/plus/v1/permission/vo/SysUserInfoVo.java
+0
-153
SysUserPermissionExportVo.java
...loud/plus/v1/permission/vo/SysUserPermissionExportVo.java
+0
-87
SysUserPermissionSearchVo.java
...loud/plus/v1/permission/vo/SysUserPermissionSearchVo.java
+0
-43
SysUserPermissionVo.java
...yifu/cloud/plus/v1/permission/vo/SysUserPermissionVo.java
+0
-97
SysUserRoleResSearchVo.java
...u/cloud/plus/v1/permission/vo/SysUserRoleResSearchVo.java
+0
-57
SysUserRoleResVo.java
...om/yifu/cloud/plus/v1/permission/vo/SysUserRoleResVo.java
+0
-68
spring.factories
...yifu-ekp-api/src/main/resources/META-INF/spring.factories
+0
-2
pom.xml
yifu-ekp/yifu-ekp-biz/pom.xml
+5
-3
OTAStrategyShardingAlgorithm.java
...loud/plus/v1/ekp/config/OTAStrategyShardingAlgorithm.java
+1
-1
TEkpSocialInfoController.java
...loud/plus/v1/ekp/controller/TEkpSocialInfoController.java
+39
-0
EkpSocialInfoMapper.java
...om/yifu/cloud/plus/v1/ekp/mapper/EkpSocialInfoMapper.java
+16
-0
EkpSocialInfoService.java
.../yifu/cloud/plus/v1/ekp/service/EkpSocialInfoService.java
+14
-0
EkpSocialInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
+20
-0
EkpSocialPushInfoVo.java
...va/com/yifu/cloud/plus/v1/ekp/vo/EkpSocialPushInfoVo.java
+23
-0
application-dev.yml
yifu-ekp/yifu-ekp-biz/src/main/resources/application-dev.yml
+3
-4
application-test.yml
...-ekp/yifu-ekp-biz/src/main/resources/application-test.yml
+3
-3
EkpSocialInfoMapper.xml
...ekp-biz/src/main/resources/mapper/EkpSocialInfoMapper.xml
+87
-0
SysMenuMapper.xml
.../yifu-ekp-biz/src/main/resources/mapper/SysMenuMapper.xml
+0
-134
SysRoleInfoMapper.xml
...u-ekp-biz/src/main/resources/mapper/SysRoleInfoMapper.xml
+0
-138
SysRoleMenuResMapper.xml
...kp-biz/src/main/resources/mapper/SysRoleMenuResMapper.xml
+0
-65
SysUserInfoMapper.xml
...u-ekp-biz/src/main/resources/mapper/SysUserInfoMapper.xml
+0
-211
SysUserPermissionMapper.xml
...biz/src/main/resources/mapper/SysUserPermissionMapper.xml
+0
-485
SysUserRoleResMapper.xml
...kp-biz/src/main/resources/mapper/SysUserRoleResMapper.xml
+0
-79
seata.conf
yifu-ekp/yifu-ekp-biz/src/main/resources/seata.conf
+4
-0
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+344
-5
No files found.
yifu-common/yifu-common-dapr/pom.xml
View file @
b95ca88a
...
...
@@ -50,6 +50,12 @@
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.yifu.cloud.plus.v1
</groupId>
<artifactId>
yifu-common-ekp
</artifactId>
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<properties>
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/config/DaprEkpProperties.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
dapr
.
config
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.context.annotation.PropertySource
;
import
org.springframework.stereotype.Component
;
/**
* @Author huyc
* @Date 2024-02-28
* @Description
* @Version 1.0
*/
@Data
@Component
@PropertySource
(
"classpath:daprConfig.properties"
)
@ConfigurationProperties
(
value
=
"dapr.ekp"
,
ignoreInvalidFields
=
false
)
public
class
DaprEkpProperties
{
/*
* @author fxj
* @date 14:34
* @Description dapr sidercar url 如:http://localhost:3005/v1.0/invoke/
**/
String
appUrl
;
/*
* @author fxj
* @date 14:35
* @decription app_id 如:"yifu_upms_sider"
**/
String
appId
;
String
appPort
;
String
httpPort
;
String
grpcPort
;
String
metricsPort
;
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
dapr
.
util
;
import
com.alibaba.fastjson.JSON
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprEkpProperties
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpPushSocialParam
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
java.util.List
;
/**
* @Author huyc
* @Date 2024-02-28
* @Description
* @Version 1.0
*/
@Log4j2
@EnableConfigurationProperties
(
DaprEkpProperties
.
class
)
public
class
EkpDaprUtils
{
@Autowired
private
DaprEkpProperties
daprProperties
;
/**
* @Author huyc
* @Description 更新结算信息
* @Date 16:18 2024/02/28
* @Param
* @return
**/
public
R
<
Boolean
>
pushSocialInfoToEkp
(
List
<
EkpPushSocialParam
>
unPushList
)
{
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/ekpSocialPush/inner/pushSocialInfoToEkp"
,
JSON
.
toJSONString
(
unPushList
),
Boolean
.
class
,
SecurityConstants
.
FROM_IN
);
}
}
yifu-common/yifu-common-dapr/src/main/resources/META-INF/spring.factories
View file @
b95ca88a
...
...
@@ -5,4 +5,5 @@ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.yifu.cloud.plus.v1.yifu.common.dapr.util.SocialDaprUtils,\
com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil,\
com.yifu.cloud.plus.v1.yifu.common.dapr.util.InsuranceDaprUtil,\
com.yifu.cloud.plus.v1.yifu.common.dapr.util.SalaryDaprUtil
com.yifu.cloud.plus.v1.yifu.common.dapr.util.SalaryDaprUtil,\
com.yifu.cloud.plus.v1.yifu.common.dapr.util.EkpDaprUtils
yifu-common/yifu-common-dapr/src/main/resources/daprConfig.properties
View file @
b95ca88a
#\u6D4B\u8BD5\u73AF\u5883
#\u67E5\u8BE2\u5730\u5740\u6559\u7A0B\uFF1A cd home/data/nginx-mvp-image/mvp/
# vim Default.conf
# \u627E\u5230\u5BF9\u5E94\u7684\u670D\u52A1\u5730\u5740
#dapr.upms.appUrl=http://yifu-auth.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
#\u672C\u5730
dapr.upms.appUrl
=
http://localhost:3500/v1.0/invoke/
dapr.upms.appId
=
yifu-upms
dapr.upms.appPort
=
4000
dapr.upms.httpPort
=
3500
dapr.upms.grpcPort
=
52000
dapr.upms.metricsPort
=
9094
#\u6D4B\u8BD5\u73AF\u5883
#dapr.check.appUrl=http://yifu-check.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
#\u672C\u5730
dapr.check.appUrl
=
http://localhost:3507/v1.0/invoke/
dapr.check.appId
=
yifu-check
dapr.check.appPort
=
50022
dapr.check.httpPort
=
3507
dapr.check.grpcPort
=
52008
dapr.check.metricsPort
=
9098
dapr.business.appUrl
=
http://localhost:5034/v1.0/invoke/
dapr.business.appId
=
yifu-business
dapr.business.appPort
=
5034
dapr.business.httpPort
=
3510
dapr.business.grpcPort
=
52010
dapr.business.metricsPort
=
9110
#\u672C\u5730
dapr.archives.appUrl
=
http://localhost:3508/v1.0/invoke/
dapr.archives.appId
=
yifu-archives
dapr.archives.appPort
=
5001
dapr.archives.httpPort
=
3508
dapr.archives.grpcPort
=
52009
dapr.archives.metricsPort
=
9099
#\u672C\u5730
dapr.salary.appUrl
=
http://localhost:3520/v1.0/invoke/
dapr.salary.appId
=
yifu-salary
dapr.social.appUrl
=
http://localhost:3510/v1.0/invoke/
dapr.social.appUrl
=
http://localhost:3509/v1.0/invoke/
dapr.social.appId
=
yifu-social
dapr.social.appPort
=
5002
dapr.social.httpPort
=
3509
dapr.social.grpcPort
=
52003
dapr.social.metricsPort
=
9093
#\u6D4B\u8BD5\u73AF\u5883-B\u7AEF\u670D\u52A1
dapr.business.appUrl
=
http://yifu-business.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
dapr.business.appId
=
yifu-business
dapr.salary.appUrl
=
http://localhost:3513/v1.0/invoke/
dapr.salary.appId
=
yifu-salary
dapr.salary.appPort
=
5003
dapr.salary.httpPort
=
3513
dapr.salary.grpcPort
=
52013
dapr.salary.metricsPort
=
9102
#\u6D4B\u8BD5\u73AF\u5883-\u6D88\u606F\u63D0\u9192\u670D\u52A1
dapr.msg.appUrl
=
http://localhost:3535/v1.0/invoke/
dapr.job.appUrl
=
http://localhost:3504/v1.0/invoke/
dapr.job.appId
=
yifu-job
dapr.job.appPort
=
5004
dapr.job.httpPort
=
3506
dapr.job.grpcPort
=
52007
dapr.job.metricsPort
=
9097
dapr.msg.appUrl
=
http://localhost:3516/v1.0/invoke/
dapr.msg.appId
=
yifu-msg
dapr.msg.appPort
=
5026
dapr.msg.httpPort
=
3516
dapr.msg.grpcPort
=
52111
dapr.msg.metricsPort
=
9111
dapr.insurances.appUrl
=
http://localhost:3511/v1.0/invoke/
dapr.insurances.appId
=
yifu-insurances
dapr.insurances.appPort
=
5005
dapr.insurances.httpPort
=
3511
dapr.insurances.grpcPort
=
52012
dapr.insurances.metricsPort
=
9101
#\u6D4B\u8BD5\u73AF\u5883-EKP\u6743\u9650
dapr.permission.appUrl
=
http://localhost:3536/v1.0/invoke/
dapr.permission.appUrl
=
http://localhost:3517/v1.0/invoke/
dapr.permission.appId
=
yifu-permission
dapr.permission.appPort
=
5027
dapr.permission.httpPort
=
3517
dapr.permission.grpcPort
=
52222
dapr.permission.metricsPort
=
9222
#\u6D4B\u8BD5\u73AF\u5883-\u85AA\u8D44\u670D\u52A1
#dapr.salary.appUrl=http://yifu-salary.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
#dapr.salary.appId=yifu-salary
#\u6D4B\u8BD5\u73AF\u5883-\u793E\u4FDD\u670D\u52A1
#dapr.social.appUrl=http://yifu-social.qas-mvp.svc.cluster.local:3500/v1.0/invoke/
#
dapr.social.appId
=
yifu-social
\ No newline at end of file
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/ekp/entity/EkpSocialInfo.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 社保明细表
*
* @author huyc
* @date 2024-02-29 11:21:56
*/
@Data
@TableName
(
"ekp_social_info"
)
@EqualsAndHashCode
()
@Schema
(
description
=
"社保明细表"
)
public
class
EkpSocialInfo
{
@Schema
(
description
=
"fdId"
)
private
String
fdId
;
private
String
fd3add9dd7833db8
;
private
String
fd3add9de0be85e4
;
private
String
fd3add9e1a670144
;
private
String
fd3adfe8c70d3fd4
;
private
String
fd3adfe8c8468e54
;
private
String
fd3adfe95c169c48
;
private
String
fd3adfe8c73cb5a4
;
private
String
fd3adfe8c81a0e42
;
private
String
fd3adfe8c79989d4
;
private
String
fd3adfe8c7e4cf7a
;
private
Date
fd3adfe8cb96c41e
;
private
Date
fd3adfe8cf632700
;
private
Date
fd3adfe8cff746bc
;
private
Double
fd3adfeb4e8064a8
;
private
Double
fd3adfeb52a4d2e2
;
private
Double
fd3adfeb52fbe966
;
private
Double
fd3adfeb5366dd82
;
private
Double
fd3adfeb53c70f72
;
private
Double
fd3adfeb5413fb44
;
private
Double
fd3adfeb7b624f06
;
private
String
fd3add9ea428879a
;
private
String
fd3add9eaeed2560
;
private
String
fd3adfeb830523b6
;
private
String
fd3adfeb8489e6c2
;
private
Double
fd3adfeb7bd97464
;
private
String
fd3add9edfbc6f7e
;
private
String
fd3add9eed23894a
;
private
String
fd3adfeb83a704c8
;
private
String
fd3adfeb84175f28
;
private
String
fd3aeafa25916e82
;
private
Double
fd3af9f2fa79ee72
;
private
Double
fd3af9f2ec516c30
;
private
Double
fd3af9f2fcde9158
;
private
Double
fd3af9f285ee1e38
;
private
Double
fd3af9f2dd5d8fb8
;
private
Double
fd3af9f2e03295dc
;
private
Double
fd3af9f27a3974e6
;
private
Double
fd3af9f25b851e94
;
private
Double
fd3af9f27efdd912
;
private
Double
fd3af9f3059e5b9c
;
private
Double
fd3af9f26a3cae94
;
private
Double
fd3af9f263e094c6
;
private
Double
fd3af9f2617e530a
;
private
Double
fd3af9f281651734
;
private
Double
fd3af9f2e9208e4e
;
private
Double
fd3af9f2e6dfb3f4
;
private
Double
fd3af9f2f8290f24
;
private
Double
fd3af9f2e237f794
;
private
Double
fd3af9f2e45a5d78
;
private
Double
fd3af9f283a6f288
;
private
Double
fd3af9f2db1e5e16
;
private
Double
fd3af9f27ce947ac
;
private
Double
fd3af9f2ff2c9f42
;
private
Double
fd3af9f25f5e9cc4
;
private
Double
fd3af9f2883941b4
;
private
Double
fd3af9f267a03bd6
;
private
Double
fd3af9f303037214
;
private
Double
fd3af9f2d8df88c0
;
private
Double
fd3af9f257b1b586
;
private
String
fd3b0194c7336de0
;
private
String
fd3b0b716e771e06
;
private
String
fd3b1354c3add8c2
;
private
String
fd3b16e2f436ff98Text
;
private
String
fd3b16e2f436ff98
;
private
String
fd3b178e3ba5e258
;
private
Double
fd3b35a57b6e9d0a
;
private
Double
fd3b35a5b0b04d54
;
private
Double
fd3b35a57aee1428
;
private
Double
fd3b35a5b03100c4
;
private
String
fd3b3cab5f343a90
;
private
String
fd3b3e41ac916e66
;
private
String
fd3b438e61af0a56
;
private
String
fd3b5cc5e697079a
;
private
String
fd3b6495a5ad6e10
;
private
Date
createTime
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysMenu.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.List
;
/**
* 新权限-菜单表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_menu"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"新权限-菜单表"
)
public
class
SysMenu
extends
BaseEntity
{
/**
* ID
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"ID"
)
private
String
id
;
/**
* 菜单名称
*/
@Schema
(
description
=
"菜单名称"
)
private
String
menuName
;
/**
* 上级菜单名称
*/
@Schema
(
description
=
"上级菜单名称"
)
private
String
menuNameParent
;
/**
* 上级菜单id
*/
@Schema
(
description
=
"上级菜单id"
)
private
String
menuParentId
;
/**
* 表单ID
*/
@Schema
(
description
=
"表单ID"
)
private
String
modelId
;
/**
* 视图ID
*/
@Schema
(
description
=
"视图ID"
)
private
String
viewId
;
/**
* 权限维度
*/
@Schema
(
description
=
"权限维度"
)
private
String
permissionType
;
/**
* 授权状态(0启用、1禁用)
*/
@Schema
(
description
=
"授权状态(0启用、1禁用)"
)
private
String
permissionStatus
;
/**
* 删除状态(0是、1否)
*/
@Schema
(
description
=
"删除状态(0是、1否)"
)
private
String
deleteStatus
;
/**
* 收入权限id
*/
@Schema
(
description
=
"收入权限id"
)
private
String
incomeId
;
/**
* 客户权限id
* 1客户权限;2商机;3报价单;4合同;5项目;6BU;7条线;8部门;9收入归属
*/
@Schema
(
description
=
"客户权限id"
)
private
String
customerId
;
/**
* 合同权限id
*/
@Schema
(
description
=
"合同权限id"
)
private
String
contractId
;
/**
* 商机权限id
*/
@Schema
(
description
=
"商机权限id"
)
private
String
bussinessId
;
/**
* 报价单权限id
*/
@Schema
(
description
=
"报价单权限id"
)
private
String
quotationId
;
/**
* 项目权限id
*/
@Schema
(
description
=
"项目权限id"
)
private
String
domainId
;
/**
* BU归属权限id
*/
@Schema
(
description
=
"BU归属权限id"
)
private
String
buId
;
/**
* 条线类型权限id
*/
@Schema
(
description
=
"条线类型权限id"
)
private
String
lineId
;
/**
* 部门权限id
*/
@Schema
(
description
=
"部门权限id"
)
private
String
deptId
;
/**
* 二级指标归属id
*/
@Schema
(
description
=
"二级指标归属id"
)
private
String
twoLevelId
;
/**
* 权限idList
*/
@Schema
(
description
=
"权限idList"
)
@TableField
(
exist
=
false
)
private
List
<
String
>
columnIdList
;
/**
* 是否开关(0开、1关)
*/
@Schema
(
description
=
"是否开关(0开、1关)"
)
private
String
isOpen
;
/**
* 表名,用来先查结果集
*/
@Schema
(
description
=
"表名,用来先查结果集"
)
private
String
tableName
;
/**
* 查询字段维度,如果fdId超长,则使用本字段
*/
@Schema
(
description
=
"查询字段维度,如果fdId超长,则使用本字段"
)
private
String
queryFields
;
/**
* 税务主体字段ID
*/
@Schema
(
description
=
"税务主体字段ID"
)
private
String
taxId
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysRoleInfo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
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
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 新权限-角色表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_role_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"新权限-角色表"
)
public
class
SysRoleInfo
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* 角色名称
*/
@ExcelAttribute
(
name
=
"角色名称"
,
isNotEmpty
=
true
,
errorInfo
=
"角色名称不能为空"
,
maxLength
=
20
)
@NotBlank
(
message
=
"角色名称不能为空"
)
@Length
(
max
=
20
,
message
=
"角色名称不能超过20个字符"
)
@ExcelProperty
(
"角色名称"
)
@Schema
(
description
=
"角色名称"
)
private
String
roleName
;
/**
* 角色描述
*/
@ExcelAttribute
(
name
=
"角色描述"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"角色描述不能超过200个字符"
)
@ExcelProperty
(
"角色描述"
)
@Schema
(
description
=
"角色描述"
)
private
String
remark
;
/**
* 状态:0:正常;1:冻结/停用
*/
@ExcelAttribute
(
name
=
"状态:0:正常;1:冻结/停用"
,
isNotEmpty
=
true
,
errorInfo
=
"状态:0:正常;1:冻结/停用不能为空"
)
@NotBlank
(
message
=
"状态:0:正常;1:冻结/停用不能为空"
)
@ExcelProperty
(
"状态:0:正常;1:冻结/停用"
)
@Schema
(
description
=
"状态:0:正常;1:冻结/停用"
)
private
Integer
status
;
/**
* 删除状态图:0:正常;1:删除
*/
@ExcelAttribute
(
name
=
"删除状态图:0:正常;1:删除"
,
isNotEmpty
=
true
,
errorInfo
=
"删除状态图:0:正常;1:删除不能为空"
)
@NotBlank
(
message
=
"删除状态图:0:正常;1:删除不能为空"
)
@ExcelProperty
(
"删除状态图:0:正常;1:删除"
)
@Schema
(
description
=
"删除状态图:0:正常;1:删除"
)
private
Integer
deleteFlag
;
/**
* 数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)
*/
@ExcelAttribute
(
name
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
,
isNotEmpty
=
true
,
errorInfo
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)不能为空"
,
maxLength
=
50
)
@NotBlank
(
message
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)不能为空"
)
@Length
(
max
=
50
,
message
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)不能超过50个字符"
)
@ExcelProperty
(
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
)
@Schema
(
description
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
)
private
String
dataAuth
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysRoleMenuRes.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
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
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 新权限-角色-菜单-关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_role_menu_res"
)
@Schema
(
description
=
"新权限-角色-菜单-关联表"
)
public
class
SysRoleMenuRes
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* 角色ID
*/
@ExcelAttribute
(
name
=
"角色ID"
,
isNotEmpty
=
true
,
errorInfo
=
"角色ID不能为空"
,
maxLength
=
36
)
@NotBlank
(
message
=
"角色ID不能为空"
)
@Length
(
max
=
36
,
message
=
"角色ID不能超过36个字符"
)
@ExcelProperty
(
"角色ID"
)
@Schema
(
description
=
"角色ID"
)
private
String
roleId
;
/**
* 菜单ID
*/
@ExcelAttribute
(
name
=
"菜单ID"
,
isNotEmpty
=
true
,
errorInfo
=
"菜单ID不能为空"
,
maxLength
=
36
)
@NotBlank
(
message
=
"菜单ID不能为空"
)
@Length
(
max
=
36
,
message
=
"菜单ID不能超过36个字符"
)
@ExcelProperty
(
"菜单ID"
)
@Schema
(
description
=
"菜单ID"
)
private
String
menuId
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysUserInfo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 新权限-账号管理表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_user_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"新权限-账号管理表"
)
public
class
SysUserInfo
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* ele表-员工姓名
*/
@ExcelAttribute
(
name
=
"ele表-员工姓名"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"ele表-员工姓名不能超过200个字符"
)
@ExcelProperty
(
"ele表-员工姓名"
)
@Schema
(
description
=
"ele表-员工姓名"
)
private
String
fdName
;
/**
* per表-登录账号
*/
@ExcelAttribute
(
name
=
"per表-登录账号"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"per表-登录账号不能超过200个字符"
)
@ExcelProperty
(
"per表-登录账号"
)
@Schema
(
description
=
"per表-登录账号"
)
private
String
fdLoginName
;
/**
* ele表-所在部门
*/
@ExcelAttribute
(
name
=
"ele表-所在部门"
,
maxLength
=
450
)
@Length
(
max
=
450
,
message
=
"ele表-所在部门不能超过450个字符"
)
@ExcelProperty
(
"ele表-所在部门"
)
@Schema
(
description
=
"ele表-所在部门"
)
private
String
fdLdapDn
;
/**
* 所在部门
*/
@ExcelAttribute
(
name
=
"所在部门"
,
maxLength
=
100
)
@Length
(
max
=
100
,
message
=
"所在部门不能超过100个字符"
)
@ExcelProperty
(
"所在部门"
)
@Schema
(
description
=
"所在部门"
)
private
String
fdDeptName
;
/**
* per表-手机号
*/
@ExcelAttribute
(
name
=
"per表-手机号"
,
maxLength
=
150
)
@Length
(
max
=
150
,
message
=
"per表-手机号不能超过150个字符"
)
@ExcelProperty
(
"per表-手机号"
)
@Schema
(
description
=
"per表-手机号"
)
private
String
fdMobileNo
;
/**
* per表-邮箱
*/
@ExcelAttribute
(
name
=
"per表-邮箱"
,
maxLength
=
200
)
@Length
(
max
=
200
,
message
=
"per表-邮箱不能超过200个字符"
)
@ExcelProperty
(
"per表-邮箱"
)
@Schema
(
description
=
"per表-邮箱"
)
private
String
fdEmail
;
/**
* 状态:0正常;1冻结
*/
@ExcelAttribute
(
name
=
"状态:0正常;1冻结"
,
isNotEmpty
=
true
,
errorInfo
=
"状态:0正常;1冻结不能为空"
)
@NotBlank
(
message
=
"状态:0正常;1冻结不能为空"
)
@ExcelProperty
(
"状态:0正常;1冻结"
)
@Schema
(
description
=
"状态:0正常;1冻结"
)
private
Integer
status
;
/**
* 角色名称合集
*/
@TableField
(
exist
=
false
)
private
String
roleNames
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysUserPermission.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 新权限-用户权限表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_user_permission"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"新权限-用户权限表"
)
public
class
SysUserPermission
extends
BaseEntity
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"id"
)
private
String
id
;
/**
* 员工姓名
*/
@Schema
(
description
=
"员工姓名"
)
private
String
empName
;
/**
* 登录账号
*/
@Schema
(
description
=
"登录账号"
)
private
String
empLoginName
;
/**
* 用户id
*/
@Schema
(
description
=
"用户id"
)
private
String
userId
;
/**
* 所在部门
*/
@Schema
(
description
=
"所在部门"
)
private
String
empDept
;
/**
* 权限类型 客户、商机、报价单、
* 1客户权限;2商机;3报价单;4合同;5项目;6BU;7条线;8部门;9收入归属;10二级指标归属;11税务主体
*/
@Schema
(
description
=
"权限类型"
)
private
String
permissionType
;
/**
* 名称
*/
@Schema
(
description
=
"名称"
)
private
String
name
;
/**
* 编码
*/
@Schema
(
description
=
"编码"
)
private
String
code
;
/**
* 是否包含(0 是 1否)
*/
@Schema
(
description
=
"是否包含(0 是 1否)"
)
private
String
isContains
;
/**
* 授权状态(0启用、1禁用)
*/
@Schema
(
description
=
"授权状态(0启用、1禁用)"
)
private
String
permissionStatus
;
/**
* 删除状态(0是、1否)
*/
@Schema
(
description
=
"删除状态(0是、1否)"
)
private
String
deleteFlag
;
/**
* 部门id
*/
@Schema
(
description
=
"部门id"
)
private
String
domainId
;
/**
* 0:从EKP同步的;1:MVP新增的。
*/
@Schema
(
description
=
"来源"
)
private
String
sourceType
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/entity/SysUserRoleRes.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
entity
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 新权限-账号-角色关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
@TableName
(
"sys_user_role_res"
)
@Schema
(
description
=
"新权限-账号-角色关联表"
)
public
class
SysUserRoleRes
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* 账号ID
*/
@ExcelAttribute
(
name
=
"账号ID"
,
isNotEmpty
=
true
,
errorInfo
=
"账号ID不能为空"
,
maxLength
=
36
)
@NotBlank
(
message
=
"账号ID不能为空"
)
@Length
(
max
=
36
,
message
=
"账号ID不能超过36个字符"
)
@ExcelProperty
(
"账号ID"
)
@Schema
(
description
=
"账号ID"
)
private
String
userId
;
/**
* 角色ID
*/
@ExcelAttribute
(
name
=
"角色ID"
,
isNotEmpty
=
true
,
errorInfo
=
"角色ID不能为空"
,
maxLength
=
36
)
@NotBlank
(
message
=
"角色ID不能为空"
)
@Length
(
max
=
36
,
message
=
"角色ID不能超过36个字符"
)
@ExcelProperty
(
"角色ID"
)
@Schema
(
description
=
"角色ID"
)
private
String
roleId
;
@TableField
(
exist
=
false
)
private
String
roleName
;
@TableField
(
exist
=
false
)
private
String
userName
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/IdTypeEkpVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author hgw
* @Date 2023-9-21 17:03:57
* @Description
* @Version 1.0
*/
@Data
public
class
IdTypeEkpVo
implements
Serializable
{
/**
* 主键
*/
@Schema
(
description
=
"主键"
)
private
String
fdId
;
/**
* 类型
*/
@Schema
(
description
=
"类型"
)
private
String
type
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysDictVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* 新权限-字段vo
*
* @author huyc
* @date 2023-09-04 14:49:40
*/
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
SysDictVo
implements
Serializable
{
/**
* 名称
*/
@Schema
(
description
=
"名称"
)
private
String
id
;
/**
* 编码
*/
@Schema
(
description
=
"编码"
)
private
String
name
;
}
\ No newline at end of file
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysMenuSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysMenu
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 新权限-菜单表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysMenuSearchVo
extends
SysMenu
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysMenuVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 新权限-菜单表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysMenuVo
extends
RowIndex
implements
Serializable
{
/**
* ID
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@NotBlank
(
message
=
"ID 不能为空"
)
@Length
(
max
=
36
,
message
=
"ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"ID"
,
isNotEmpty
=
true
,
errorInfo
=
"ID 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"ID"
)
@ExcelProperty
(
"ID"
)
private
String
id
;
/**
* 菜单名称
*/
@Length
(
max
=
20
,
message
=
"菜单名称 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"菜单名称"
,
maxLength
=
20
)
@Schema
(
description
=
"菜单名称"
)
@ExcelProperty
(
"菜单名称"
)
private
String
menuName
;
/**
* 上级菜单名称
*/
@Length
(
max
=
20
,
message
=
"上级菜单名称 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"上级菜单名称"
,
maxLength
=
20
)
@Schema
(
description
=
"上级菜单名称"
)
@ExcelProperty
(
"上级菜单名称"
)
private
String
menuNameParent
;
/**
* 上级菜单id
*/
@Length
(
max
=
36
,
message
=
"上级菜单id 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"上级菜单id"
,
maxLength
=
36
)
@Schema
(
description
=
"上级菜单id"
)
@ExcelProperty
(
"上级菜单id"
)
private
String
menuParentId
;
/**
* 表单ID
*/
@Length
(
max
=
36
,
message
=
"表单ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"表单ID"
,
maxLength
=
36
)
@Schema
(
description
=
"表单ID"
)
@ExcelProperty
(
"表单ID"
)
private
String
modelId
;
/**
* 视图ID
*/
@Length
(
max
=
36
,
message
=
"视图ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"视图ID"
,
maxLength
=
36
)
@Schema
(
description
=
"视图ID"
)
@ExcelProperty
(
"视图ID"
)
private
String
viewId
;
/**
* 授权状态(0启用、1禁用)
*/
@Length
(
max
=
1
,
message
=
"授权状态(0启用、1禁用) 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"授权状态(0启用、1禁用)"
,
maxLength
=
1
)
@Schema
(
description
=
"授权状态(0启用、1禁用)"
)
@ExcelProperty
(
"授权状态(0启用、1禁用)"
)
private
String
permissionStatus
;
/**
* 删除状态(0是、1否)
*/
@Length
(
max
=
1
,
message
=
"删除状态(0是、1否) 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"删除状态(0是、1否)"
,
maxLength
=
1
)
@Schema
(
description
=
"删除状态(0是、1否)"
)
@ExcelProperty
(
"删除状态(0是、1否)"
)
private
String
deleteStatus
;
/**
* 收入权限id
*/
@Length
(
max
=
20
,
message
=
"收入权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"收入权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"收入权限id"
)
@ExcelProperty
(
"收入权限id"
)
private
String
incomeId
;
/**
* 客户权限id
*/
@Length
(
max
=
20
,
message
=
"客户权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"客户权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"客户权限id"
)
@ExcelProperty
(
"客户权限id"
)
private
String
customerId
;
/**
* 合同权限id
*/
@Length
(
max
=
20
,
message
=
"合同权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"合同权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"合同权限id"
)
@ExcelProperty
(
"合同权限id"
)
private
String
contractId
;
/**
* 商机权限id
*/
@Length
(
max
=
20
,
message
=
"商机权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"商机权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"商机权限id"
)
@ExcelProperty
(
"商机权限id"
)
private
String
bussinessId
;
/**
* 报价单权限id
*/
@Length
(
max
=
20
,
message
=
"报价单权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"报价单权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"报价单权限id"
)
@ExcelProperty
(
"报价单权限id"
)
private
String
quotationId
;
/**
* 项目权限id
*/
@Length
(
max
=
20
,
message
=
"项目权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"项目权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"项目权限id"
)
@ExcelProperty
(
"项目权限id"
)
private
String
domainId
;
/**
* BU归属权限id
*/
@Length
(
max
=
20
,
message
=
"BU归属权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"BU归属权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"BU归属权限id"
)
@ExcelProperty
(
"BU归属权限id"
)
private
String
buId
;
/**
* 条线类型权限id
*/
@Length
(
max
=
20
,
message
=
"条线类型权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"条线类型权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"条线类型权限id"
)
@ExcelProperty
(
"条线类型权限id"
)
private
String
lineId
;
/**
* 部门权限id
*/
@Length
(
max
=
20
,
message
=
"部门权限id 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"部门权限id"
,
maxLength
=
20
)
@Schema
(
description
=
"部门权限id"
)
@ExcelProperty
(
"部门权限id"
)
private
String
deptId
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysRoleInfoSaveVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
cn.hutool.core.lang.tree.Tree
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleInfo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleMenuRes
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 角色新增vo
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysRoleInfoSaveVo
implements
Serializable
{
private
SysRoleInfo
role
;
private
List
<
SysRoleMenuRes
>
resList
;
private
List
<
Tree
<
String
>>
tree
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysRoleInfoSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleInfo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 新权限-角色表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysRoleInfoSearchVo
extends
SysRoleInfo
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间起"
)
private
LocalDateTime
createTimeStart
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间止"
)
private
LocalDateTime
createTimeEnd
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysRoleInfoVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
* 新权限-角色表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysRoleInfoVo
extends
RowIndex
implements
Serializable
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@NotBlank
(
message
=
"主键 不能为空"
)
@Length
(
max
=
36
,
message
=
"主键 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"主键"
,
isNotEmpty
=
true
,
errorInfo
=
"主键 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"主键"
)
@ExcelProperty
(
"主键"
)
private
String
fdId
;
/**
* 角色名称
*/
@NotBlank
(
message
=
"角色名称 不能为空"
)
@Length
(
max
=
20
,
message
=
"角色名称 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"角色名称"
,
isNotEmpty
=
true
,
errorInfo
=
"角色名称 不能为空"
,
maxLength
=
20
)
@Schema
(
description
=
"角色名称"
)
@ExcelProperty
(
"角色名称"
)
private
String
roleName
;
/**
* 角色描述
*/
@Length
(
max
=
200
,
message
=
"角色描述 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"角色描述"
,
maxLength
=
200
)
@Schema
(
description
=
"角色描述"
)
@ExcelProperty
(
"角色描述"
)
private
String
remark
;
/**
* 状态:0:正常;1:冻结/停用
*/
@NotBlank
(
message
=
"状态:0:正常;1:冻结/停用 不能为空"
)
@ExcelAttribute
(
name
=
"状态:0:正常;1:冻结/停用"
,
isNotEmpty
=
true
,
errorInfo
=
"状态:0:正常;1:冻结/停用 不能为空"
)
@Schema
(
description
=
"状态:0:正常;1:冻结/停用"
)
@ExcelProperty
(
"状态:0:正常;1:冻结/停用"
)
private
Integer
status
;
/**
* 删除状态图:0:正常;1:删除
*/
@NotBlank
(
message
=
"删除状态图:0:正常;1:删除 不能为空"
)
@ExcelAttribute
(
name
=
"删除状态图:0:正常;1:删除"
,
isNotEmpty
=
true
,
errorInfo
=
"删除状态图:0:正常;1:删除 不能为空"
)
@Schema
(
description
=
"删除状态图:0:正常;1:删除"
)
@ExcelProperty
(
"删除状态图:0:正常;1:删除"
)
private
Integer
deleteFlag
;
/**
* 数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)
*/
@NotBlank
(
message
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;) 不能为空"
)
@Length
(
max
=
50
,
message
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;) 不能超过50 个字符"
)
@ExcelAttribute
(
name
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
,
isNotEmpty
=
true
,
errorInfo
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;) 不能为空"
,
maxLength
=
50
)
@Schema
(
description
=
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
)
@ExcelProperty
(
"数据权限(全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)"
)
private
String
dataAuth
;
/**
* 创建人id
*/
@Length
(
max
=
36
,
message
=
"创建人id 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"创建人id"
,
maxLength
=
36
)
@Schema
(
description
=
"创建人id"
)
@ExcelProperty
(
"创建人id"
)
private
String
createBy
;
/**
* 创建人姓名
*/
@Length
(
max
=
200
,
message
=
"创建人姓名 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"创建人姓名"
,
maxLength
=
200
)
@Schema
(
description
=
"创建人姓名"
)
@ExcelProperty
(
"创建人姓名"
)
private
String
createName
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
,
isDate
=
true
)
@Schema
(
description
=
"创建时间"
)
@ExcelProperty
(
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新人id
*/
@Length
(
max
=
200
,
message
=
"更新人id 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"更新人id"
,
maxLength
=
200
)
@Schema
(
description
=
"更新人id"
)
@ExcelProperty
(
"更新人id"
)
private
String
updateBy
;
/**
* 更新时间
*/
@ExcelAttribute
(
name
=
"更新时间"
,
isDate
=
true
)
@Schema
(
description
=
"更新时间"
)
@ExcelProperty
(
"更新时间"
)
private
LocalDateTime
updateTime
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysRoleMenuResSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleMenuRes
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 新权限-角色-菜单-关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysRoleMenuResSearchVo
extends
SysRoleMenuRes
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysRoleMenuResVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 新权限-角色-菜单-关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysRoleMenuResVo
extends
RowIndex
implements
Serializable
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@NotBlank
(
message
=
"主键 不能为空"
)
@Length
(
max
=
36
,
message
=
"主键 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"主键"
,
isNotEmpty
=
true
,
errorInfo
=
"主键 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"主键"
)
@ExcelProperty
(
"主键"
)
private
String
fdId
;
/**
* 角色ID
*/
@NotBlank
(
message
=
"角色ID 不能为空"
)
@Length
(
max
=
36
,
message
=
"角色ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"角色ID"
,
isNotEmpty
=
true
,
errorInfo
=
"角色ID 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"角色ID"
)
@ExcelProperty
(
"角色ID"
)
private
String
roleId
;
/**
* 菜单ID
*/
@NotBlank
(
message
=
"菜单ID 不能为空"
)
@Length
(
max
=
36
,
message
=
"菜单ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"菜单ID"
,
isNotEmpty
=
true
,
errorInfo
=
"菜单ID 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"菜单ID"
)
@ExcelProperty
(
"菜单ID"
)
private
String
menuId
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysTaxVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 税务主体
* @author hgw
* @date 2024-1-10 18:05:30
*/
@Data
public
class
SysTaxVo
implements
Serializable
{
/**
* id
*/
@Schema
(
description
=
"id"
)
private
String
id
;
/**
* 名称
*/
@Schema
(
description
=
"名称"
)
private
String
name
;
}
\ No newline at end of file
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserDeptVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 新权限-账号管理表
*
* @author huyc
* @date 2023-09-04 14:49:40
*/
@Data
public
class
SysUserDeptVo
implements
Serializable
{
/**
* 名称
*/
@Schema
(
description
=
"名称"
)
private
String
name
;
/**
* 编码
*/
@Schema
(
description
=
"编码"
)
private
String
code
;
/**
* 类型
*/
@Schema
(
description
=
"类型"
)
private
String
type
;
/**
* 登录名
*/
@Schema
(
description
=
"登录名"
)
private
String
loginName
;
/**
* 部门id
*/
@Schema
(
description
=
"部门id"
)
private
String
domainId
;
}
\ No newline at end of file
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserInfoSaveVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserInfo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserRoleRes
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 账号新增vo
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserInfoSaveVo
implements
Serializable
{
private
SysUserInfo
user
;
private
List
<
SysUserRoleRes
>
resList
;
private
String
dataAuth
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserInfoSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserInfo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 新权限-账号管理表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserInfoSearchVo
extends
SysUserInfo
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserInfoVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
* 新权限-账号管理表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserInfoVo
extends
RowIndex
implements
Serializable
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@NotBlank
(
message
=
"主键 不能为空"
)
@Length
(
max
=
36
,
message
=
"主键 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"主键"
,
isNotEmpty
=
true
,
errorInfo
=
"主键 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"主键"
)
@ExcelProperty
(
"主键"
)
private
String
fdId
;
/**
* ele表-员工姓名
*/
@Length
(
max
=
200
,
message
=
"ele表-员工姓名 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"ele表-员工姓名"
,
maxLength
=
200
)
@Schema
(
description
=
"ele表-员工姓名"
)
@ExcelProperty
(
"ele表-员工姓名"
)
private
String
fdName
;
/**
* per表-登录账号
*/
@Length
(
max
=
200
,
message
=
"per表-登录账号 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"per表-登录账号"
,
maxLength
=
200
)
@Schema
(
description
=
"per表-登录账号"
)
@ExcelProperty
(
"per表-登录账号"
)
private
String
fdLoginName
;
/**
* ele表-所在部门
*/
@Length
(
max
=
450
,
message
=
"ele表-所在部门 不能超过450 个字符"
)
@ExcelAttribute
(
name
=
"ele表-所在部门"
,
maxLength
=
450
)
@Schema
(
description
=
"ele表-所在部门"
)
@ExcelProperty
(
"ele表-所在部门"
)
private
String
fdLdapDn
;
/**
* 所在部门
*/
@Length
(
max
=
100
,
message
=
"所在部门 不能超过100 个字符"
)
@ExcelAttribute
(
name
=
"所在部门"
,
maxLength
=
100
)
@Schema
(
description
=
"所在部门"
)
@ExcelProperty
(
"所在部门"
)
private
String
fdDeptName
;
/**
* per表-手机号
*/
@Length
(
max
=
150
,
message
=
"per表-手机号 不能超过150 个字符"
)
@ExcelAttribute
(
name
=
"per表-手机号"
,
maxLength
=
150
)
@Schema
(
description
=
"per表-手机号"
)
@ExcelProperty
(
"per表-手机号"
)
private
String
fdMobileNo
;
/**
* per表-邮箱
*/
@Length
(
max
=
200
,
message
=
"per表-邮箱 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"per表-邮箱"
,
maxLength
=
200
)
@Schema
(
description
=
"per表-邮箱"
)
@ExcelProperty
(
"per表-邮箱"
)
private
String
fdEmail
;
/**
* 状态:0正常;1冻结
*/
@NotBlank
(
message
=
"状态:0正常;1冻结 不能为空"
)
@ExcelAttribute
(
name
=
"状态:0正常;1冻结"
,
isNotEmpty
=
true
,
errorInfo
=
"状态:0正常;1冻结 不能为空"
)
@Schema
(
description
=
"状态:0正常;1冻结"
)
@ExcelProperty
(
"状态:0正常;1冻结"
)
private
Integer
status
;
/**
* 角色名称合集
*/
@Length
(
max
=
200
,
message
=
"角色名称合集 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"角色名称合集"
,
maxLength
=
200
)
@Schema
(
description
=
"角色名称合集"
)
@ExcelProperty
(
"角色名称合集"
)
private
String
roleNames
;
/**
* 创建人id
*/
@Length
(
max
=
36
,
message
=
"创建人id 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"创建人id"
,
maxLength
=
36
)
@Schema
(
description
=
"创建人id"
)
@ExcelProperty
(
"创建人id"
)
private
String
createBy
;
/**
* 创建人姓名
*/
@Length
(
max
=
200
,
message
=
"创建人姓名 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"创建人姓名"
,
maxLength
=
200
)
@Schema
(
description
=
"创建人姓名"
)
@ExcelProperty
(
"创建人姓名"
)
private
String
createName
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
,
isDate
=
true
)
@Schema
(
description
=
"创建时间"
)
@ExcelProperty
(
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新人id
*/
@Length
(
max
=
200
,
message
=
"更新人id 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"更新人id"
,
maxLength
=
200
)
@Schema
(
description
=
"更新人id"
)
@ExcelProperty
(
"更新人id"
)
private
String
updateBy
;
/**
* 更新时间
*/
@ExcelAttribute
(
name
=
"更新时间"
,
isDate
=
true
)
@Schema
(
description
=
"更新时间"
)
@ExcelProperty
(
"更新时间"
)
private
LocalDateTime
updateTime
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserPermissionExportVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 新权限-用户权限表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserPermissionExportVo
implements
Serializable
{
/**
* 员工姓名
*/
@Length
(
max
=
20
,
message
=
"员工姓名 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
20
)
@Schema
(
description
=
"员工姓名"
)
@ExcelProperty
(
"员工姓名"
)
private
String
empName
;
/**
* 登录账号
*/
@NotBlank
(
message
=
"登录账号 不能为空"
)
@Length
(
max
=
10
,
message
=
"登录账号 不能超过10 个字符"
)
@ExcelAttribute
(
name
=
"登录账号"
,
isNotEmpty
=
true
,
errorInfo
=
"登录账号 不能为空"
,
maxLength
=
10
)
@Schema
(
description
=
"登录账号"
)
@ExcelProperty
(
"登录账号"
)
private
String
empLoginName
;
/**
* 所属部门
*/
@Length
(
max
=
20
,
message
=
"所属部门 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"所属部门"
,
maxLength
=
20
)
@Schema
(
description
=
"所属部门"
)
@ExcelProperty
(
"所属部门"
)
private
String
empDept
;
/**
* 权限类型
*/
@Length
(
max
=
8
,
message
=
"权限类型 不能超过8 个字符"
)
@ExcelAttribute
(
name
=
"权限类型"
,
maxLength
=
8
)
@Schema
(
description
=
"权限类型"
)
@ExcelProperty
(
"权限类型"
)
private
String
permissionType
;
/**
* 名称
*/
@Length
(
max
=
20
,
message
=
"名称 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"名称"
,
maxLength
=
20
)
@Schema
(
description
=
"名称"
)
@ExcelProperty
(
"名称"
)
private
String
name
;
/**
* 编码
*/
@Length
(
max
=
30
,
message
=
"编码 不能超过30 个字符"
)
@ExcelAttribute
(
name
=
"编码"
,
maxLength
=
30
)
@Schema
(
description
=
"编码"
)
@ExcelProperty
(
"编码"
)
private
String
code
;
/**
* 是否包含(0 是 1否)
*/
@Length
(
max
=
1
,
message
=
"是否含下级部门 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"是否含下级部门"
,
maxLength
=
1
)
@Schema
(
description
=
"是否含下级部门"
)
@ExcelProperty
(
"是否含下级部门"
)
private
String
isContains
;
/**
* 授权状态(0启用、1禁用)
*/
@Length
(
max
=
1
,
message
=
"授权状态 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"授权状态"
,
maxLength
=
1
)
@Schema
(
description
=
"授权状态"
)
@ExcelProperty
(
"授权状态"
)
private
String
permissionStatus
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserPermissionSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserPermission
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* 新权限-用户权限表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserPermissionSearchVo
extends
SysUserPermission
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,数组"
)
private
List
<
String
>
idList
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserPermissionVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 新权限-用户权限表
*
* @author hyc
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserPermissionVo
extends
RowIndex
implements
Serializable
{
/**
* 员工姓名
*/
@Length
(
max
=
20
,
message
=
"员工姓名 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
20
)
@Schema
(
description
=
"员工姓名"
)
@ExcelProperty
(
"员工姓名"
)
private
String
empName
;
/**
* 登录账号
*/
@NotBlank
(
message
=
"登录账号 不能为空"
)
@Length
(
max
=
20
,
message
=
"登录账号 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"登录账号"
,
isNotEmpty
=
true
,
errorInfo
=
"登录账号 不能为空"
,
maxLength
=
20
)
@Schema
(
description
=
"登录账号"
)
@ExcelProperty
(
"登录账号"
)
private
String
empLoginName
;
/**
* 用户id
*/
@Schema
(
description
=
"用户id"
)
@ExcelAttribute
(
name
=
"用户id"
)
private
String
userId
;
/**
* 所属部门
*/
@Length
(
max
=
20
,
message
=
"所属部门 不能超过20 个字符"
)
@ExcelAttribute
(
name
=
"所属部门"
,
maxLength
=
20
)
@Schema
(
description
=
"所属部门"
)
@ExcelProperty
(
"所属部门"
)
private
String
empDept
;
/**
* 权限类型
*/
@NotBlank
(
message
=
"权限类型 不能为空"
)
@Length
(
max
=
8
,
message
=
"权限类型 不能超过8 个字符"
)
@ExcelAttribute
(
name
=
"权限类型"
,
isNotEmpty
=
true
,
errorInfo
=
"权限类型 不能为空"
,
maxLength
=
8
)
@Schema
(
description
=
"权限类型"
)
@ExcelProperty
(
"权限类型"
)
private
String
permissionType
;
/**
* 名称
*/
@Length
(
max
=
200
,
message
=
"名称 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"名称"
,
maxLength
=
200
)
@Schema
(
description
=
"名称"
)
@ExcelProperty
(
"名称"
)
private
String
name
;
/**
* 编码
*/
@Length
(
max
=
30
,
message
=
"编码 不能超过30 个字符"
)
@ExcelAttribute
(
name
=
"编码"
,
maxLength
=
30
)
@Schema
(
description
=
"编码"
)
@ExcelProperty
(
"编码"
)
private
String
code
;
/**
* 是否包含(0 是 1否)
*/
@Length
(
max
=
1
,
message
=
"是否含下级部门 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"是否含下级部门"
,
maxLength
=
1
)
@Schema
(
description
=
"是否含下级部门"
)
@ExcelProperty
(
"是否含下级部门"
)
private
String
isContains
;
/**
* 授权状态(0启用、1禁用)
*/
@Length
(
max
=
1
,
message
=
"授权状态 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"授权状态"
,
maxLength
=
1
)
@Schema
(
description
=
"授权状态"
)
@ExcelProperty
(
"授权状态"
)
private
String
permissionStatus
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserRoleResSearchVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserRoleRes
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* 新权限-账号-角色关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserRoleResSearchVo
extends
SysUserRoleRes
{
/**
* 多选导出或删除等操作
*/
@Schema
(
description
=
"选中ID,多个逗号分割"
)
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
/**
* @Author fxj
* 查询数据起
**/
@Schema
(
description
=
"查询limit 开始"
)
private
int
limitStart
;
/**
* @Author fxj
* 查询数据止
**/
@Schema
(
description
=
"查询limit 数据条数"
)
private
int
limitEnd
;
}
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/permission/vo/SysUserRoleResVo.java
deleted
100644 → 0
View file @
65702e4f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
permission
.
vo
;
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* 新权限-账号-角色关联表
*
* @author hgw
* @date 2023-08-29 14:49:40
*/
@Data
public
class
SysUserRoleResVo
extends
RowIndex
implements
Serializable
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@NotBlank
(
message
=
"主键 不能为空"
)
@Length
(
max
=
36
,
message
=
"主键 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"主键"
,
isNotEmpty
=
true
,
errorInfo
=
"主键 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"主键"
)
@ExcelProperty
(
"主键"
)
private
String
fdId
;
/**
* 账号ID
*/
@NotBlank
(
message
=
"账号ID 不能为空"
)
@Length
(
max
=
36
,
message
=
"账号ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"账号ID"
,
isNotEmpty
=
true
,
errorInfo
=
"账号ID 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"账号ID"
)
@ExcelProperty
(
"账号ID"
)
private
String
userId
;
/**
* 角色ID
*/
@NotBlank
(
message
=
"角色ID 不能为空"
)
@Length
(
max
=
36
,
message
=
"角色ID 不能超过36 个字符"
)
@ExcelAttribute
(
name
=
"角色ID"
,
isNotEmpty
=
true
,
errorInfo
=
"角色ID 不能为空"
,
maxLength
=
36
)
@Schema
(
description
=
"角色ID"
)
@ExcelProperty
(
"角色ID"
)
private
String
roleId
;
}
yifu-ekp/yifu-ekp-api/src/main/resources/META-INF/spring.factories
deleted
100644 → 0
View file @
65702e4f
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.yifu.cloud.plus.v1.msg.utils.EkpMsgUtil
\ No newline at end of file
yifu-ekp/yifu-ekp-biz/pom.xml
View file @
b95ca88a
...
...
@@ -8,6 +8,7 @@
<groupId>
com.yifu.cloud.plus.v1
</groupId>
<artifactId>
yifu
</artifactId>
<version>
1.0.0
</version>
<relativePath>
../../pom.xml
</relativePath>
</parent>
<artifactId>
yifu-ekp-biz
</artifactId>
...
...
@@ -17,12 +18,13 @@
<dependencies>
<!--选配:
依赖seata
模块-->
<!--选配:
orm
模块-->
<dependency>
<groupId>
com.yifu.cloud.plus.v1
</groupId>
<artifactId>
yifu-common-seata
</artifactId>
<artifactId>
yifu-ekp-api
</artifactId>
<version>
1.0.0
</version>
<scope>
compile
</scope>
</dependency>
<!--选配: orm 模块-->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/config/OTAStrategyShardingAlgorithm.java
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
permission
.
config
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
config
;
import
com.google.common.collect.Range
;
import
org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue
;
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/controller/TEkpSocialInfoController.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
controller
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
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
java.util.List
;
/**
* 社保明细推送
* @author huyc
* @date 2024-02-28 17:01:22
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/ekpSocialPush"
)
@Tag
(
name
=
"社保明细推送"
)
public
class
TEkpSocialInfoController
{
/**
* @param viewVo
* @Description: 推送社保明细数据
* @Author: huyc
* @Date: 2024/2/29
* @return:
**/
@Inner
@PostMapping
(
"/inner/pushSocialInfoToEkp"
)
public
Boolean
pushSocialInfoToEkp
(
@RequestBody
List
<
EkpSocialViewVo
>
viewVo
)
{
// return tPaymentInfoService.updateSocialSettleStatus(viewVo);
return
null
;
}
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/mapper/EkpSocialInfoMapper.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 社保明细表
*
* @author huyc
* @date 2024-02-29 11:21:56
*/
@Mapper
public
interface
EkpSocialInfoMapper
extends
BaseMapper
<
EkpSocialInfo
>
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/EkpSocialInfoService.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
/**
* 社保明细表
*
* @author huyc
* @date 2024-02-29 11:21:56
*/
public
interface
EkpSocialInfoService
extends
IService
<
EkpSocialInfo
>
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
import
com.yifu.cloud.plus.v1.ekp.mapper.EkpSocialInfoMapper
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpSocialInfoService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
/**
* 社保明细表
*
* @author huyc
* @date 2024-02-29 11:21:56
*/
@Log4j2
@Service
public
class
EkpSocialInfoServiceImpl
extends
ServiceImpl
<
EkpSocialInfoMapper
,
EkpSocialInfo
>
implements
EkpSocialInfoService
{
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/vo/EkpSocialPushInfoVo.java
0 → 100644
View file @
b95ca88a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpPushSocialParam
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Author huyc
* @Date 2024/2/29
* @Description 社保明细推送相关参数
* @Version 1.0
*/
@Data
public
class
EkpSocialPushInfoVo
implements
Serializable
{
/**
* 社保明细
**/
private
List
<
EkpPushSocialParam
>
unPushInfo
;
}
yifu-ekp/yifu-ekp-biz/src/main/resources/application-dev.yml
View file @
b95ca88a
...
...
@@ -33,13 +33,13 @@ spring:
type
:
CLASS_BASED
tables
:
t_payment_info
:
actual-data-nodes
:
ds0.
t_payment_info_20$->{17
..24}
actual-data-nodes
:
ds0.
ekp_social_info_20$->{23
..24}
key-generate-strategy
:
column
:
ID
column
:
fd_id
key-generator-name
:
snowflake
table-strategy
:
standard
:
sharding-column
:
CREATE_TIME
sharding-column
:
create_time
sharding-algorithm-name
:
t-payment-inline
mvc
:
...
...
@@ -50,7 +50,6 @@ spring:
on-profile
:
dev
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
## spring security 配置
security
:
oauth2
:
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/application-test.yml
View file @
b95ca88a
...
...
@@ -33,13 +33,13 @@ spring:
type
:
CLASS_BASED
tables
:
t_payment_info
:
actual-data-nodes
:
ds0.
t_payment_info_20$->{17
..24}
actual-data-nodes
:
ds0.
ekp_9264ea0160848a681328_20$->{23
..24}
key-generate-strategy
:
column
:
ID
column
:
fd_id
key-generator-name
:
snowflake
table-strategy
:
standard
:
sharding-column
:
CREATE_TIME
sharding-column
:
create_time
sharding-algorithm-name
:
t-payment-inline
mvc
:
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/EkpSocialInfoMapper.xml
0 → 100644
View file @
b95ca88a
<?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.EkpSocialInfoMapper"
>
<resultMap
id=
"ekpSocialInfoMap"
type=
"com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"fd3add9dd7833db8"
column=
"fd_3add9dd7833db8"
/>
<result
property=
"fd3add9de0be85e4"
column=
"fd_3add9de0be85e4"
/>
<result
property=
"fd3add9e1a670144"
column=
"fd_3add9e1a670144"
/>
<result
property=
"fd3adfe8c70d3fd4"
column=
"fd_3adfe8c70d3fd4"
/>
<result
property=
"fd3adfe8c8468e54"
column=
"fd_3adfe8c8468e54"
/>
<result
property=
"fd3adfe95c169c48"
column=
"fd_3adfe95c169c48"
/>
<result
property=
"fd3adfe8c73cb5a4"
column=
"fd_3adfe8c73cb5a4"
/>
<result
property=
"fd3adfe8c81a0e42"
column=
"fd_3adfe8c81a0e42"
/>
<result
property=
"fd3adfe8c79989d4"
column=
"fd_3adfe8c79989d4"
/>
<result
property=
"fd3adfe8c7e4cf7a"
column=
"fd_3adfe8c7e4cf7a"
/>
<result
property=
"fd3adfe8cb96c41e"
column=
"fd_3adfe8cb96c41e"
/>
<result
property=
"fd3adfe8cf632700"
column=
"fd_3adfe8cf632700"
/>
<result
property=
"fd3adfe8cff746bc"
column=
"fd_3adfe8cff746bc"
/>
<result
property=
"fd3adfeb4e8064a8"
column=
"fd_3adfeb4e8064a8"
/>
<result
property=
"fd3adfeb52a4d2e2"
column=
"fd_3adfeb52a4d2e2"
/>
<result
property=
"fd3adfeb52fbe966"
column=
"fd_3adfeb52fbe966"
/>
<result
property=
"fd3adfeb5366dd82"
column=
"fd_3adfeb5366dd82"
/>
<result
property=
"fd3adfeb53c70f72"
column=
"fd_3adfeb53c70f72"
/>
<result
property=
"fd3adfeb5413fb44"
column=
"fd_3adfeb5413fb44"
/>
<result
property=
"fd3adfeb7b624f06"
column=
"fd_3adfeb7b624f06"
/>
<result
property=
"fd3add9ea428879a"
column=
"fd_3add9ea428879a"
/>
<result
property=
"fd3add9eaeed2560"
column=
"fd_3add9eaeed2560"
/>
<result
property=
"fd3adfeb830523b6"
column=
"fd_3adfeb830523b6"
/>
<result
property=
"fd3adfeb8489e6c2"
column=
"fd_3adfeb8489e6c2"
/>
<result
property=
"fd3adfeb7bd97464"
column=
"fd_3adfeb7bd97464"
/>
<result
property=
"fd3add9edfbc6f7e"
column=
"fd_3add9edfbc6f7e"
/>
<result
property=
"fd3add9eed23894a"
column=
"fd_3add9eed23894a"
/>
<result
property=
"fd3adfeb83a704c8"
column=
"fd_3adfeb83a704c8"
/>
<result
property=
"fd3adfeb84175f28"
column=
"fd_3adfeb84175f28"
/>
<result
property=
"fd3aeafa25916e82"
column=
"fd_3aeafa25916e82"
/>
<result
property=
"fd3af9f2fa79ee72"
column=
"fd_3af9f2fa79ee72"
/>
<result
property=
"fd3af9f2ec516c30"
column=
"fd_3af9f2ec516c30"
/>
<result
property=
"fd3af9f2fcde9158"
column=
"fd_3af9f2fcde9158"
/>
<result
property=
"fd3af9f285ee1e38"
column=
"fd_3af9f285ee1e38"
/>
<result
property=
"fd3af9f2dd5d8fb8"
column=
"fd_3af9f2dd5d8fb8"
/>
<result
property=
"fd3af9f2e03295dc"
column=
"fd_3af9f2e03295dc"
/>
<result
property=
"fd3af9f27a3974e6"
column=
"fd_3af9f27a3974e6"
/>
<result
property=
"fd3af9f25b851e94"
column=
"fd_3af9f25b851e94"
/>
<result
property=
"fd3af9f27efdd912"
column=
"fd_3af9f27efdd912"
/>
<result
property=
"fd3af9f3059e5b9c"
column=
"fd_3af9f3059e5b9c"
/>
<result
property=
"fd3af9f26a3cae94"
column=
"fd_3af9f26a3cae94"
/>
<result
property=
"fd3af9f263e094c6"
column=
"fd_3af9f263e094c6"
/>
<result
property=
"fd3af9f2617e530a"
column=
"fd_3af9f2617e530a"
/>
<result
property=
"fd3af9f281651734"
column=
"fd_3af9f281651734"
/>
<result
property=
"fd3af9f2e9208e4e"
column=
"fd_3af9f2e9208e4e"
/>
<result
property=
"fd3af9f2e6dfb3f4"
column=
"fd_3af9f2e6dfb3f4"
/>
<result
property=
"fd3af9f2f8290f24"
column=
"fd_3af9f2f8290f24"
/>
<result
property=
"fd3af9f2e237f794"
column=
"fd_3af9f2e237f794"
/>
<result
property=
"fd3af9f2e45a5d78"
column=
"fd_3af9f2e45a5d78"
/>
<result
property=
"fd3af9f283a6f288"
column=
"fd_3af9f283a6f288"
/>
<result
property=
"fd3af9f2db1e5e16"
column=
"fd_3af9f2db1e5e16"
/>
<result
property=
"fd3af9f27ce947ac"
column=
"fd_3af9f27ce947ac"
/>
<result
property=
"fd3af9f2ff2c9f42"
column=
"fd_3af9f2ff2c9f42"
/>
<result
property=
"fd3af9f25f5e9cc4"
column=
"fd_3af9f25f5e9cc4"
/>
<result
property=
"fd3af9f2883941b4"
column=
"fd_3af9f2883941b4"
/>
<result
property=
"fd3af9f267a03bd6"
column=
"fd_3af9f267a03bd6"
/>
<result
property=
"fd3af9f303037214"
column=
"fd_3af9f303037214"
/>
<result
property=
"fd3af9f2d8df88c0"
column=
"fd_3af9f2d8df88c0"
/>
<result
property=
"fd3af9f257b1b586"
column=
"fd_3af9f257b1b586"
/>
<result
property=
"fd3b0194c7336de0"
column=
"fd_3b0194c7336de0"
/>
<result
property=
"fd3b0b716e771e06"
column=
"fd_3b0b716e771e06"
/>
<result
property=
"fd3b1354c3add8c2"
column=
"fd_3b1354c3add8c2"
/>
<result
property=
"fd3b16e2f436ff98Text"
column=
"fd_3b16e2f436ff98_text"
/>
<result
property=
"fd3b16e2f436ff98"
column=
"fd_3b16e2f436ff98"
/>
<result
property=
"fd3b178e3ba5e258"
column=
"fd_3b178e3ba5e258"
/>
<result
property=
"fd3b35a57b6e9d0a"
column=
"fd_3b35a57b6e9d0a"
/>
<result
property=
"fd3b35a5b0b04d54"
column=
"fd_3b35a5b0b04d54"
/>
<result
property=
"fd3b35a57aee1428"
column=
"fd_3b35a57aee1428"
/>
<result
property=
"fd3b35a5b03100c4"
column=
"fd_3b35a5b03100c4"
/>
<result
property=
"fd3b3cab5f343a90"
column=
"fd_3b3cab5f343a90"
/>
<result
property=
"fd3b3e41ac916e66"
column=
"fd_3b3e41ac916e66"
/>
<result
property=
"fd3b438e61af0a56"
column=
"fd_3b438e61af0a56"
/>
<result
property=
"fd3b5cc5e697079a"
column=
"fd_3b5cc5e697079a"
/>
<result
property=
"fd3b6495a5ad6e10"
column=
"fd_3b6495a5ad6e10"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysMenuMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?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.permission.mapper.SysMenuMapper"
>
<resultMap
id=
"sysMenuMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysMenu"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"menuName"
column=
"MENU_NAME"
/>
<result
property=
"menuNameParent"
column=
"MENU_NAME_PARENT"
/>
<result
property=
"menuParentId"
column=
"MENU_PARENT_ID"
/>
<result
property=
"modelId"
column=
"MODEL_ID"
/>
<result
property=
"viewId"
column=
"VIEW_ID"
/>
<result
property=
"permissionType"
column=
"PERMISSION_TYPE"
/>
<result
property=
"permissionStatus"
column=
"PERMISSION_STATUS"
/>
<result
property=
"deleteStatus"
column=
"DELETE_STATUS"
/>
<result
property=
"incomeId"
column=
"INCOME_ID"
/>
<result
property=
"customerId"
column=
"CUSTOMER_ID"
/>
<result
property=
"contractId"
column=
"CONTRACT_ID"
/>
<result
property=
"bussinessId"
column=
"BUSSINESS_ID"
/>
<result
property=
"quotationId"
column=
"QUOTATION_ID"
/>
<result
property=
"domainId"
column=
"DOMAIN_ID"
/>
<result
property=
"buId"
column=
"BU_ID"
/>
<result
property=
"lineId"
column=
"LINE_ID"
/>
<result
property=
"deptId"
column=
"DEPT_ID"
/>
<result
property=
"twoLevelId"
column=
"TWO_LEVEL_ID"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"isOpen"
column=
"IS_OPEN"
/>
<result
property=
"tableName"
column=
"TABLE_NAME"
/>
<result
property=
"queryFields"
column=
"QUERY_FIELDS"
/>
<result
property=
"taxId"
column=
"TAX_ID"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.MENU_NAME,
a.MODEL_ID,
a.MENU_NAME_PARENT,
a.MENU_PARENT_ID,
a.PERMISSION_TYPE,
a.PERMISSION_STATUS,
a.DELETE_STATUS,
a.INCOME_ID,
a.CUSTOMER_ID,
a.CONTRACT_ID,
a.BUSSINESS_ID,
a.QUOTATION_ID,
a.DOMAIN_ID,
a.BU_ID,
a.LINE_ID,
a.DEPT_ID,
a.IS_OPEN,
a.TWO_LEVEL_ID,
a.VIEW_ID,
a.CREATE_TIME,
a.TABLE_NAME,
a.QUERY_FIELDS,
a.TAX_ID
</sql>
<sql
id=
"sysMenu_where"
>
<if
test=
"sysMenu != null"
>
<if
test=
"sysMenu.menuName != null and sysMenu.menuName.trim() != ''"
>
AND a.MENU_NAME like concat('%',#{sysMenu.menuName},'%')
</if>
<if
test=
"sysMenu.menuNameParent != null and sysMenu.menuNameParent.trim() != ''"
>
AND a.MENU_NAME_PARENT = #{sysMenu.menuNameParent}
</if>
<if
test=
"sysMenu.menuParentId != null and sysMenu.menuParentId.trim() != ''"
>
AND a.MENU_PARENT_ID = #{sysMenu.menuParentId}
</if>
<if
test=
"sysMenu.permissionStatus != null and sysMenu.permissionStatus.trim() != ''"
>
AND a.PERMISSION_STATUS = #{sysMenu.permissionStatus}
</if>
</if>
</sql>
<!--sysMenu简单分页查询-->
<select
id=
"getSysMenuPage"
resultMap=
"sysMenuMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_menu a
<where>
a.DELETE_STATUS = '1'
<include
refid=
"sysMenu_where"
/>
</where>
order by a.CREATE_TIME desc
</select>
<select
id=
"selectMenuId"
resultType=
"java.lang.Long"
>
SELECT
count(1)
FROM modeling_app_model a
WHERE a.fd_id = #{modelId}
</select>
<select
id=
"selectViewId"
resultType=
"java.lang.Long"
>
SELECT
count(1)
FROM modeling_app_collection_view a
WHERE a.fd_model_id = #{modelId} and a.fd_id = #{viewId}
</select>
<select
id=
"selectColumnList"
resultType=
"java.lang.String"
>
SELECT
a.fd_column
FROM sys_xform_db_column a
LEFT JOIN sys_xform_db_table b on a.fd_main_id = b.fd_id
WHERE b.fd_model_id = #{modelId}
</select>
<!--根据modelId获取菜单-->
<select
id=
"getSysMenuByModelId"
resultMap=
"sysMenuMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_menu a
where a.DELETE_STATUS = '1' and a.PERMISSION_STATUS='0' and a.MODEL_ID = #{modelId}
limit 1
</select>
<!-- 获取税务主体列表-->
<select
id=
"getSysTaxVoPage"
resultType=
"com.yifu.cloud.plus.v1.yifu.permission.vo.SysTaxVo"
>
select fd_id AS id,a.fd_3afab4c6755286 AS name
from ekp_7e091e5e36848fb97451 a
where a.fd_3afab4c6755286 is not null
<if
test=
"vo != null"
>
<if
test=
"vo.name != null and vo.name.trim() != ''"
>
AND a.fd_3afab4c6755286 like concat('%',#{vo.name},'%')
</if>
</if>
GROUP BY a.fd_3afab4c6755286 ORDER BY a.fd_3afab4c6755286 desc
</select>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysRoleInfoMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!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.permission.mapper.SysRoleInfoMapper"
>
<resultMap
id=
"sysRoleInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleInfo"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"roleName"
column=
"role_name"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"deleteFlag"
column=
"delete_flag"
/>
<result
property=
"dataAuth"
column=
"data_auth"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.fd_id,
a.role_name,
a.remark,
a.status,
a.delete_flag,
a.data_auth,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql
id=
"sysRoleInfo_where"
>
<if
test=
"sysRoleInfo != null"
>
<if
test=
"sysRoleInfo.fdId != null and sysRoleInfo.fdId.trim() != ''"
>
AND a.fd_id = #{sysRoleInfo.fdId}
</if>
<if
test=
"sysRoleInfo.roleName != null and sysRoleInfo.roleName.trim() != ''"
>
AND a.role_name like concat('%',#{sysRoleInfo.roleName},'%')
</if>
<if
test=
"sysRoleInfo.remark != null and sysRoleInfo.remark.trim() != ''"
>
AND a.remark = #{sysRoleInfo.remark}
</if>
<if
test=
"sysRoleInfo.status != null"
>
AND a.status = #{sysRoleInfo.status}
</if>
<if
test=
"sysRoleInfo.deleteFlag != null"
>
AND a.delete_flag = #{sysRoleInfo.deleteFlag}
</if>
<if
test=
"sysRoleInfo.dataAuth != null and sysRoleInfo.dataAuth.trim() != ''"
>
AND a.data_auth = #{sysRoleInfo.dataAuth}
</if>
<if
test=
"sysRoleInfo.createBy != null and sysRoleInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{sysRoleInfo.createBy}
</if>
<if
test=
"sysRoleInfo.createName != null and sysRoleInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{sysRoleInfo.createName}
</if>
<if
test=
"sysRoleInfo.createTime != null"
>
AND a.CREATE_TIME = #{sysRoleInfo.createTime}
</if>
<if
test=
"sysRoleInfo.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{sysRoleInfo.createTimeStart}
</if>
<if
test=
"sysRoleInfo.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{sysRoleInfo.createTimeEnd}
</if>
<if
test=
"sysRoleInfo.updateBy != null and sysRoleInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{sysRoleInfo.updateBy}
</if>
<if
test=
"sysRoleInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{sysRoleInfo.updateTime}
</if>
</if>
</sql>
<!--sysRoleInfo简单分页查询-->
<select
id=
"getSysRoleInfoPage"
resultMap=
"sysRoleInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_role_info a
<where>
a.delete_flag = 0
<include
refid=
"sysRoleInfo_where"
/>
</where>
order by a.CREATE_TIME desc
</select>
<!-- 根据用户Id获取所有的角色的权限-->
<select
id=
"getAllRoleDataAuthByUserId"
resultType=
"java.lang.String"
>
SELECT
a.data_auth
FROM sys_role_info a
left join sys_user_role_res r on r.role_id = a.fd_id
where a.delete_flag = 0 and r.user_id = #{userId}
</select>
<!-- 根据角色Id获取所有的角色的权限-->
<select
id=
"getRoleDataAuthByRoleId"
resultType=
"java.lang.String"
>
SELECT
a.data_auth
FROM sys_role_info a
where a.delete_flag = 0 and a.fd_id in
<foreach
item=
"idStr"
index=
"index"
collection=
"roleIdList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</select>
<!-- 查找名称是否存在-->
<select
id=
"checkExistenceRole"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM sys_role_info a
where a.delete_flag = 0 and a.role_name = #{roleName}
<if
test=
"roleId != null and roleId.trim() != ''"
>
AND a.fd_id != #{roleId}
</if>
</select>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysRoleMenuResMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!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.permission.mapper.SysRoleMenuResMapper"
>
<resultMap
id=
"sysRoleMenuResMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysRoleMenuRes"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"roleId"
column=
"role_id"
/>
<result
property=
"menuId"
column=
"menu_id"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.fd_id,
a.role_id,
a.menu_id
</sql>
<sql
id=
"sysRoleMenuRes_where"
>
<if
test=
"sysRoleMenuRes != null"
>
<if
test=
"sysRoleMenuRes.fdId != null and sysRoleMenuRes.fdId.trim() != ''"
>
AND a.fd_id = #{sysRoleMenuRes.fdId}
</if>
<if
test=
"sysRoleMenuRes.roleId != null and sysRoleMenuRes.roleId.trim() != ''"
>
AND a.role_id = #{sysRoleMenuRes.roleId}
</if>
<if
test=
"sysRoleMenuRes.menuId != null and sysRoleMenuRes.menuId.trim() != ''"
>
AND a.menu_id = #{sysRoleMenuRes.menuId}
</if>
</if>
</sql>
<!--sysRoleMenuRes简单分页查询-->
<select
id=
"getSysRoleMenuResPage"
resultMap=
"sysRoleMenuResMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_role_menu_res a
<where>
1=1
<include
refid=
"sysRoleMenuRes_where"
/>
</where>
</select>
<!-- 根据角色删除关联表 -->
<delete
id=
"deleteByRoleId"
>
delete from sys_role_menu_res where role_id = #{roleId}
</delete>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysUserInfoMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!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.permission.mapper.SysUserInfoMapper"
>
<resultMap
id=
"sysUserInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserInfo"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"fdName"
column=
"fd_name"
/>
<result
property=
"fdLoginName"
column=
"fd_login_name"
/>
<result
property=
"fdLdapDn"
column=
"fd_ldap_dn"
/>
<result
property=
"fdDeptName"
column=
"fd_dept_name"
/>
<result
property=
"fdMobileNo"
column=
"fd_mobile_no"
/>
<result
property=
"fdEmail"
column=
"fd_email"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"roleNames"
column=
"role_names"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.fd_id,
a.fd_name,
a.fd_login_name,
a.fd_ldap_dn,
a.fd_dept_name,
a.fd_mobile_no,
a.fd_email,
a.status,
GROUP_CONCAT(r.role_name ORDER BY r.create_time asc) as role_names,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql
id=
"sysUserInfo_where"
>
<if
test=
"sysUserInfo != null"
>
<if
test=
"sysUserInfo.fdId != null and sysUserInfo.fdId.trim() != ''"
>
AND a.fd_id = #{sysUserInfo.fdId}
</if>
<if
test=
"sysUserInfo.fdName != null and sysUserInfo.fdName.trim() != ''"
>
AND a.fd_name like concat('%',#{sysUserInfo.fdName},'%')
</if>
<if
test=
"sysUserInfo.fdLoginName != null and sysUserInfo.fdLoginName.trim() != ''"
>
AND a.fd_login_name = #{sysUserInfo.fdLoginName}
</if>
<if
test=
"sysUserInfo.fdLdapDn != null and sysUserInfo.fdLdapDn.trim() != ''"
>
AND a.fd_ldap_dn = #{sysUserInfo.fdLdapDn}
</if>
<if
test=
"sysUserInfo.fdDeptName != null and sysUserInfo.fdDeptName.trim() != ''"
>
AND a.fd_dept_name like concat('%',#{sysUserInfo.fdDeptName},'%')
</if>
<if
test=
"sysUserInfo.fdMobileNo != null and sysUserInfo.fdMobileNo.trim() != ''"
>
AND a.fd_mobile_no = #{sysUserInfo.fdMobileNo}
</if>
<if
test=
"sysUserInfo.fdEmail != null and sysUserInfo.fdEmail.trim() != ''"
>
AND a.fd_email = #{sysUserInfo.fdEmail}
</if>
<if
test=
"sysUserInfo.status != null"
>
AND a.status = #{sysUserInfo.status}
</if>
<if
test=
"sysUserInfo.createBy != null and sysUserInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{sysUserInfo.createBy}
</if>
<if
test=
"sysUserInfo.createName != null and sysUserInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{sysUserInfo.createName}
</if>
<if
test=
"sysUserInfo.createTime != null"
>
AND a.CREATE_TIME = #{sysUserInfo.createTime}
</if>
<if
test=
"sysUserInfo.updateBy != null and sysUserInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{sysUserInfo.updateBy}
</if>
<if
test=
"sysUserInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{sysUserInfo.updateTime}
</if>
</if>
</sql>
<!--sysUserInfo简单分页查询-->
<select
id=
"getSysUserInfoPage"
resultMap=
"sysUserInfoMap"
>
SELECT
a.fd_id,
a.fd_name,
a.fd_login_name,
a.fd_ldap_dn,
a.fd_dept_name,
a.fd_mobile_no,
a.fd_email,
a.status,
a.role_names,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
from (
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_user_info a
LEFT JOIN sys_user_role_res res on a.fd_id=res.user_id
LEFT JOIN sys_role_info r on res.role_id=r.fd_id and r.delete_flag = 0 and r.status = 0
<where>
1=1
<include
refid=
"sysUserInfo_where"
/>
</where>
GROUP BY a.fd_id
) a
<if
test=
"sysUserInfo != null"
>
<if
test=
"sysUserInfo.roleNames != null and sysUserInfo.roleNames.trim() != ''"
>
where a.role_names like concat('%',#{sysUserInfo.roleNames},'%')
</if>
</if>
order by a.CREATE_TIME desc
</select>
<!--list-->
<select
id=
"getEkpUser"
resultMap=
"sysUserInfoMap"
>
select e.fd_id,e.fd_name,p.fd_login_name,e.fd_ldap_dn
,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) AS fd_dept_name
,p.fd_mobile_no,p.fd_email
from sys_org_element e JOIN sys_org_person p on e.fd_id=p.fd_id
where e.fd_is_available = '1'
</select>
<!--list-->
<select
id=
"getResAndRoleNameUserId"
resultType=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserRoleRes"
>
SELECT
a.fd_id as fdId
,a.user_id as userId
,a.role_id as roleId
,r.role_name as roleName
FROM sys_user_role_res a
LEFT JOIN sys_role_info r on a.role_id=r.fd_id and r.delete_flag = 0 and r.status = 0
where a.user_id=#{userId}
</select>
<!--给EKP用的,获取列表是否全量的权限-->
<!--#全量0;部分全量1;数据权限2;客户a;商机b;报价单c;合同d;项目e;BUf;条线g;收入归属h;)-->
<select
id=
"getAuthByUserIdAndModelId"
resultType=
"java.lang.Integer"
>
select
case
when a.data_auth is null then 0
when a.data_auth like "%0%" then 1
when a.data_auth like "%a%" and a.CUSTOMER_ID is not null then 1
when a.data_auth like "%b%" and a.BUSSINESS_ID is not null then 1
when a.data_auth like "%c%" and a.QUOTATION_ID is not null then 1
when a.data_auth like "%d%" and a.CONTRACT_ID is not null then 1
when a.data_auth like "%e%" and a.DOMAIN_ID is not null then 1
when a.data_auth like "%f%" and a.BU_ID is not null then 1
when a.data_auth like "%g%" and a.LINE_ID is not null then 1
when a.data_auth like "%h%" and a.INCOME_ID is not null then 1
else 2 end
from (
SELECT
GROUP_CONCAT(DISTINCT a.data_auth) as data_auth
,b.INCOME_ID
,b.CUSTOMER_ID
,b.CONTRACT_ID
,b.BUSSINESS_ID
,b.QUOTATION_ID
,b.DOMAIN_ID
,b.BU_ID
,b.LINE_ID
FROM
sys_menu b
join sys_role_menu_res m on b.id=m.menu_id
join sys_role_info a on m.role_id = a.fd_id
join sys_user_role_res r on r.role_id = a.fd_id
where a.delete_flag = 0 and a.status = 0 and b.DELETE_STATUS='1' and b.PERMISSION_STATUS='0'
and r.user_id = #{userId} and b.MODEL_ID=#{modelId}
) a
</select>
<select
id=
"getUserByCodeOrLoginName"
resultMap=
"sysUserInfoMap"
>
SELECT
a.fd_id,
a.fd_name,
a.fd_login_name,
a.fd_dept_name
FROM sys_user_info a
<where>
1=1 and a.status = 0
<if
test=
"code != null and code != ''"
>
AND (a.fd_login_name like concat('%',#{code},'%') or a.fd_name like concat('%',#{code},'%'))
</if>
</where>
order by a.CREATE_TIME desc
</select>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysUserPermissionMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?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.permission.mapper.SysUserPermissionMapper"
>
<resultMap
id=
"sysUserPermissionMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserPermission"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empLoginName"
column=
"EMP_LOGIN_NAME"
/>
<result
property=
"empDept"
column=
"EMP_DEPT"
/>
<result
property=
"permissionType"
column=
"PERMISSION_TYPE"
/>
<result
property=
"name"
column=
"NAME"
/>
<result
property=
"code"
column=
"CODE"
/>
<result
property=
"isContains"
column=
"IS_CONTAINS"
/>
<result
property=
"permissionStatus"
column=
"PERMISSION_STATUS"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"sourceType"
column=
"SOURCE_TYPE"
/>
</resultMap>
<resultMap
id=
"sysUserPermissionExportMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.vo.SysUserPermissionExportVo"
>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empLoginName"
column=
"EMP_LOGIN_NAME"
/>
<result
property=
"empDept"
column=
"EMP_DEPT"
/>
<result
property=
"permissionType"
column=
"PERMISSION_TYPE"
/>
<result
property=
"name"
column=
"NAME"
/>
<result
property=
"code"
column=
"CODE"
/>
<result
property=
"isContains"
column=
"IS_CONTAINS"
/>
<result
property=
"permissionStatus"
column=
"PERMISSION_STATUS"
/>
</resultMap>
<resultMap
id=
"nameAndCodeMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.vo.SysUserDeptVo"
>
<result
property=
"name"
column=
"name"
/>
<result
property=
"code"
column=
"code"
/>
<result
property=
"domainId"
column=
"domainId"
/>
</resultMap>
<resultMap
id=
"dictMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.vo.SysDictVo"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.EMP_NAME,
a.EMP_LOGIN_NAME,
b.fd_dept_name as EMP_DEPT,
a.PERMISSION_TYPE,
a.NAME,
a.CODE,
a.IS_CONTAINS,
a.PERMISSION_STATUS,
a.DELETE_FLAG,
a.CREATE_TIME
</sql>
<sql
id=
"sysUserPermission_where"
>
<if
test=
"sysUserPermission != null"
>
<if
test=
"sysUserPermission.idList != null"
>
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"sysUserPermission.idList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<if
test=
"sysUserPermission.idList == null"
>
<if
test=
"sysUserPermission.empName != null and sysUserPermission.empName.trim() != ''"
>
AND a.EMP_NAME like concat('%',#{sysUserPermission.empName},'%')
</if>
<if
test=
"sysUserPermission.empLoginName != null and sysUserPermission.empLoginName.trim() != ''"
>
AND a.EMP_LOGIN_NAME = #{sysUserPermission.empLoginName}
</if>
<if
test=
"sysUserPermission.empDept != null and sysUserPermission.empDept.trim() != ''"
>
AND b.fd_dept_name like concat('%',#{sysUserPermission.empDept},'%')
</if>
<if
test=
"sysUserPermission.permissionType != null and sysUserPermission.permissionType.trim() != ''"
>
AND a.PERMISSION_TYPE = #{sysUserPermission.permissionType}
</if>
<if
test=
"sysUserPermission.name != null and sysUserPermission.name.trim() != ''"
>
AND a.NAME like concat('%',#{sysUserPermission.name},'%')
</if>
<if
test=
"sysUserPermission.code != null and sysUserPermission.code.trim() != ''"
>
AND a.CODE = #{sysUserPermission.code}
</if>
<if
test=
"sysUserPermission.permissionStatus != null and sysUserPermission.permissionStatus.trim() != ''"
>
AND a.PERMISSION_STATUS = #{sysUserPermission.permissionStatus}
</if>
</if>
</if>
</sql>
<!--sysUserPermission简单分页查询-->
<select
id=
"getSysUserPermissionPage"
resultMap=
"sysUserPermissionMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_user_permission a left join sys_user_info b on a.user_id = b.fd_id
<where>
a.DELETE_FLAG = '1'
<include
refid=
"sysUserPermission_where"
/>
</where>
order by a.CREATE_TIME desc
</select>
<select
id=
"userSelectCount"
resultType=
"java.lang.Long"
>
SELECT
count(1)
FROM sys_user_permission a left join sys_user_info b on a.user_id = b.fd_id
<where>
a.DELETE_FLAG = '1'
<include
refid=
"sysUserPermission_where"
/>
</where>
</select>
<select
id=
"userSelectList"
resultMap=
"sysUserPermissionExportMap"
>
SELECT
a.EMP_NAME,
a.EMP_LOGIN_NAME,
b.fd_dept_name as EMP_DEPT,
c.name AS PERMISSION_TYPE,
a.NAME,
a.CODE,
CASE WHEN a.IS_CONTAINS=0 THEN "是"
WHEN a.IS_CONTAINS =1 THEN "否"
ELSE a.IS_CONTAINS END as IS_CONTAINS,
CASE WHEN a.PERMISSION_STATUS=0 THEN "启用"
WHEN a.PERMISSION_STATUS =1 THEN "禁用"
ELSE a.PERMISSION_STATUS END as PERMISSION_STATUS
FROM sys_user_permission a
LEFT JOIN permission_type c on a.PERMISSION_TYPE = c.id
LEFT JOIN sys_user_info b on a.user_id = b.fd_id
<where>
a.DELETE_FLAG = '1'
<include
refid=
"sysUserPermission_where"
/>
</where>
limit #{sysUserPermission.limitStart},#{sysUserPermission.limitEnd}
</select>
<select
id=
"selectUnitVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3a9d1d4d438bfc code,a.fd_3a9d1d4caeeeb8 name
from ekp_05b7485fd444f95a6177 a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_3a9d1d4d438bfc like concat('%',#{name},'%') or a.fd_3a9d1d4caeeeb8 like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectContractVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3ade33763baa0e code,a.fd_3ade334bac0016 name
from ekp_0103c453b2848c3bb31c a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_3ade33763baa0e like concat('%',#{name},'%') or a.fd_3ade334bac0016 like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectSettleVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3a37fe508071fe code,a.fd_3a2b38c61ef9aa name
from ekp_24a8e6a7fc143bb8c48a a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_3a37fe508071fe like concat('%',#{name},'%') or a.fd_3a2b38c61ef9aa like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectContractSimpleVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.NAME,
a.CODE
from sys_user_permission a
where a.EMP_LOGIN_NAME = #{loginName} and a.PERMISSION_TYPE = #{type} and a.PERMISSION_STATUS = '0'
<if
test=
"name != null and name.trim() != ''"
>
AND (a.NAME like concat('%',#{name},'%') or a.CODE like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectBusinessVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3b107f1084fd96 code,a.fd_3b04b95268f19c name
from ekp_2f8e08660c542d8a169f a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_3b107f1084fd96 like concat('%',#{name},'%') or a.fd_3b04b95268f19c like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectQuotationVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3b04b9dc64a9f4 code,a.fd_3b04b9d8688cfa name
from ekp_fd1449d265845e087bf2 a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_3b04b9dc64a9f4 like concat('%',#{name},'%') or a.fd_3b04b9d8688cfa like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectDeptVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_no code,a.fd_name name,a.fd_id domainId
from sys_org_element a
where a.fd_is_available = '1' and a.fd_org_type = 2
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_no like concat('%',#{name},'%') or a.fd_name like concat('%',#{name},'%'))
</if>
</select>
<select
id=
"selectTwoGsVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3b1235d8f35c6c name
from ekp_793f0c590104b7ebd460 a
where 1 = 1
<if
test=
"name != null and name.trim() != ''"
>
AND a.fd_3b1235d8f35c6c like concat('%',#{name},'%')
</if>
</select>
<!-- 查找税务主体分页 -->
<select
id=
"selectTaxVO"
resultMap=
"nameAndCodeMap"
>
select a.fd_3afab4c6755286 AS name
from ekp_7e091e5e36848fb97451 a
where a.fd_3afab4c6755286 is not null
<if
test=
"name != null and name.trim() != ''"
>
AND a.fd_3afab4c6755286 like concat('%',#{name},'%')
</if>
GROUP BY a.fd_3afab4c6755286 ORDER BY a.fd_3afab4c6755286 desc
</select>
<!--根据部门编码查询id-->
<select
id=
"selectSettleByCode"
resultType=
"java.lang.String"
>
SELECT
a.fd_id
from sys_org_element a
where a.fd_is_available = '1' and a.fd_org_type = 2 and a.fd_no = #{code}
limit 1
</select>
<select
id=
"selectDictByType"
resultMap=
"dictMap"
>
SELECT
a.dict_id as id,a.name
from permission_type a
where a.dict_type = #{type}
</select>
<select
id=
"selectDictByTypeOne"
resultMap=
"dictMap"
>
SELECT
a.dict_id as id,a.name
from permission_type a
where a.dict_type = #{type} and a.user_id = #{userId}
</select>
<!--针对BU归属和条线类型时的存在判断-->
<select
id=
"selectDictByName"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from permission_type a
where a.dict_type = #{type} and a.name = #{name}
</select>
<!--判断对应维度的名称或者编码是否存在-->
<select
id=
"selectUnitCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_05b7485fd444f95a6177 a
where a.fd_3a9d1d4d438bfc = #{name}
</select>
<select
id=
"selectContractCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_0103c453b2848c3bb31c a
where a.fd_3ade33763baa0e = #{name}
</select>
<select
id=
"selectSettleCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_24a8e6a7fc143bb8c48a a
where a.fd_3a37fe508071fe = #{name}
</select>
<select
id=
"selectBusinessCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_2f8e08660c542d8a169f a
where a.fd_3b107f1084fd96 = #{name}
</select>
<select
id=
"selectQuotationCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_fd1449d265845e087bf2 a
where a.fd_3b04b9dc64a9f4 = #{name}
</select>
<select
id=
"selectDeptCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from sys_org_element a
where a.fd_is_available = '1' and fd_org_type = 2 and a.fd_no = #{name}
</select>
<select
id=
"selectTwoGsCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_793f0c590104b7ebd460 a
where a.fd_3b1235d8f35c6c = #{name}
</select>
<select
id=
"selectTaxCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
from ekp_7e091e5e36848fb97451 a
where a.fd_3afab4c6755286 = #{name}
</select>
<!-- 查找当前用户的所有权限 -->
<select
id=
"getUserPermissionByUserId"
resultMap=
"sysUserPermissionMap"
>
select
p.PERMISSION_TYPE,p.NAME,p.CODE,ifnull(p.IS_CONTAINS,'1') IS_CONTAINS
from
sys_user_permission p
where p.DELETE_FLAG='1' and p.PERMISSION_STATUS='0'
and p.USER_ID = #{userId}
ORDER BY p.PERMISSION_TYPE
</select>
<!-- 查找权限,用来新建 - 客户 -->
<select
id=
"getUserPermissionByAutoCreateKH"
resultMap=
"sysUserPermissionMap"
>
select
e.fd_name EMP_NAME ,p.fd_login_name EMP_LOGIN_NAME ,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'1' PERMISSION_TYPE ,d.fd_3a9d1d4caeeeb8 NAME ,d.fd_3a9d1d4d438bfc CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS ,'0' PERMISSION_STATUS ,'1' DELETE_FLAG ,e.fd_id USER_ID ,d.fd_id DOMAIN_ID
from ekp_fa3e25a1b6c472683e96 d
LEFT JOIN ekp_c472683e96_8b4d79b2c8 f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.fd_3b118b5e5d1024
JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId} GROUP BY e.fd_id
</select>
<!-- 查找权限,用来新建 - 商机 -->
<select
id=
"getUserPermissionByAutoCreateSJ"
resultMap=
"sysUserPermissionMap"
>
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'2' PERMISSION_TYPE,d.fd_3b04b95268f19c NAME,d.fd_3b107f1084fd96 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_24385b8cc934eb8a9231 d
LEFT JOIN ekp_34eb8a9231_8c4fb81d42 f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.fd_3b0e8c7f169ed2
JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId} GROUP BY e.fd_id
</select>
<!-- 查找权限,用来新建 - 报价单 -->
<select
id=
"getUserPermissionByAutoCreateBJD"
resultMap=
"sysUserPermissionMap"
>
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'3' PERMISSION_TYPE,d.fd_3b04b9d8688cfa NAME,d.fd_3b04b9dc64a9f4 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_fd06fd1251d4bac8cc91 d
LEFT JOIN ekp_d4bac8cc91_8aad2804b4 f1 on f1.fd_parent_id = d.fd_id
LEFT JOIN ekporg_18308def06b6c534b70e f on f.fd_parent_id = f1.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.sys_org_person_id JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId} GROUP BY e.fd_id
</select>
<!-- 查找权限,用来新建 - 合同 -->
<select
id=
"getUserPermissionByAutoCreateHT"
resultMap=
"sysUserPermissionMap"
>
select a.EMP_NAME,a.EMP_LOGIN_NAME,a.EMP_DEPT,a.PERMISSION_TYPE,a.NAME,a.CODE,a.SOURCE_TYPE,a.IS_CONTAINS,a.PERMISSION_STATUS,a.DELETE_FLAG,a.USER_ID,a.DOMAIN_ID
from (
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'4' PERMISSION_TYPE,d.fd_3ad97ed761c75c NAME,d.fd_3ade319226ed52 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_4834ce2ea964f1a8cfdb d
LEFT JOIN ekporg_183823dc7ae199aa37e9 f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.sys_org_person_id JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
union ALL
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'4' PERMISSION_TYPE,d.fd_3ad97ed761c75c NAME,d.fd_3ade319226ed52 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_4834ce2ea964f1a8cfdb d
LEFT JOIN sys_org_element e on e.fd_id = d.fd_3ade318b64b54c
JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
) a GROUP BY a.USER_ID
</select>
<!-- 查找权限,用来新建 - 项目 -->
<select
id=
"getUserPermissionByAutoCreateXM"
resultMap=
"sysUserPermissionMap"
>
select a.EMP_NAME,a.EMP_LOGIN_NAME,a.EMP_DEPT,a.PERMISSION_TYPE,a.NAME,a.CODE,a.SOURCE_TYPE,a.IS_CONTAINS,a.PERMISSION_STATUS,a.DELETE_FLAG,a.USER_ID,a.DOMAIN_ID
from (
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'5' PERMISSION_TYPE,d.fd_3a829ae9bab760 NAME,d.fd_3a829aea0b84a4 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_fb3b8d0c8f148639b8e2 d
LEFT JOIN ekporg_1832fea7d722404c1e92 f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.sys_org_person_id JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
union ALL
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'5' PERMISSION_TYPE,d.fd_3a829ae9bab760 NAME,d.fd_3a829aea0b84a4 CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_fb3b8d0c8f148639b8e2 d
LEFT JOIN sys_org_element e on e.fd_id = d.fd_3ae55447e30d62
JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
) a GROUP BY a.USER_ID
</select>
<!-- 查找权限,用来新建 - 合同变更 -->
<select
id=
"getUserPermissionByAutoCreateHTBG"
resultMap=
"sysUserPermissionMap"
>
select a.EMP_NAME,a.EMP_LOGIN_NAME,a.EMP_DEPT,a.PERMISSION_TYPE,a.NAME,a.CODE,a.SOURCE_TYPE,a.IS_CONTAINS,a.PERMISSION_STATUS,a.DELETE_FLAG,a.USER_ID,a.DOMAIN_ID
from (
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'4' PERMISSION_TYPE,d.fd_3b8797876dc13c_text NAME,d.fd_3b879793d37afe CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_224c54af6ae4418ae0a2 d
LEFT JOIN ekporg_186a02b160aa59dd70f4 f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.sys_org_person_id JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
union all
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'4' PERMISSION_TYPE,d.fd_3b8797876dc13c_text NAME,d.fd_3b879793d37afe CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_224c54af6ae4418ae0a2 d
left join ekp_0103c453b2848c3bb31c h on d.fd_3b879793d37afe=h.fd_3ade33763baa0e
LEFT JOIN sys_org_element e on e.fd_id = h.fd_3ade318b64b54c JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
) a
GROUP BY a.USER_ID
</select>
<!-- 查找权限,用来新建 - 项目变更 -->
<select
id=
"getUserPermissionByAutoCreateXMBG"
resultMap=
"sysUserPermissionMap"
>
select a.EMP_NAME,a.EMP_LOGIN_NAME,a.EMP_DEPT,a.PERMISSION_TYPE,a.NAME,a.CODE,a.SOURCE_TYPE,a.IS_CONTAINS,a.PERMISSION_STATUS,a.DELETE_FLAG,a.USER_ID,a.DOMAIN_ID
from (
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'5' PERMISSION_TYPE,d.fd_3b8797876dc13c_text NAME,d.fd_3b879793d37afe CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_d701e3e72794ff390ca8 d
LEFT JOIN ekporg_18622320f73771d520db f on f.fd_parent_id = d.fd_id
LEFT JOIN sys_org_element e on e.fd_id = f.sys_org_person_id JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
union all
select
e.fd_name EMP_NAME,p.fd_login_name EMP_LOGIN_NAME,SUBSTRING_INDEX(SUBSTRING_INDEX(e.fd_ldap_dn,',ou', 2),',ou=', -1) EMP_DEPT
,'5' PERMISSION_TYPE,d.fd_3b8797876dc13c_text NAME,d.fd_3b879793d37afe CODE,0 SOURCE_TYPE
,'1' IS_CONTAINS,'0' PERMISSION_STATUS,'1' DELETE_FLAG,e.fd_id USER_ID,d.fd_id DOMAIN_ID
from ekp_d701e3e72794ff390ca8 d
LEFT JOIN ekp_24a8e6a7fc143bb8c48a f on f.fd_3a37fe508071fe = d.fd_3b879793d37afe
LEFT JOIN sys_org_element e on e.fd_id = f.fd_3b212a2d7a65c6 JOIN sys_org_person p on e.fd_id=p.fd_id
where d.fd_id = #{fdId}
) a GROUP BY a.USER_ID
</select>
<!-- 查找fdId对应的code -->
<select
id=
"selectCodeByFdId"
resultType=
"java.lang.String"
>
select d.fd_3a9d1d4d438bfc CODE from ekp_fa3e25a1b6c472683e96 d where d.fd_id = #{fdId}
union ALL
select d.fd_3b107f1084fd96 CODE from ekp_24385b8cc934eb8a9231 d where d.fd_id = #{fdId}
union ALL
select d.fd_3b04b9dc64a9f4 CODE from ekp_fd06fd1251d4bac8cc91 d where d.fd_id = #{fdId}
union ALL
select d.fd_3ade319226ed52 CODE from ekp_4834ce2ea964f1a8cfdb d where d.fd_id = #{fdId}
union ALL
select d.fd_3a829aea0b84a4 CODE from ekp_fb3b8d0c8f148639b8e2 d where d.fd_id = #{fdId}
union ALL
select d.fd_3b879793d37afe CODE from ekp_d701e3e72794ff390ca8 d where d.fd_id = #{fdId}
union ALL
select d.fd_3b879793d37afe CODE from ekp_224c54af6ae4418ae0a2 d where d.fd_id = #{fdId}
limit 1
</select>
<!-- 删除EKP新建的 -->
<delete
id=
"deleteUserPermissionByIdAndType"
>
delete from sys_user_permission p
where SOURCE_TYPE = 0 and CODE = #{code} and PERMISSION_TYPE = #{permissionType}
</delete>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/SysUserRoleResMapper.xml
deleted
100644 → 0
View file @
65702e4f
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!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.permission.mapper.SysUserRoleResMapper"
>
<resultMap
id=
"sysUserRoleResMap"
type=
"com.yifu.cloud.plus.v1.yifu.permission.entity.SysUserRoleRes"
>
<id
property=
"fdId"
column=
"fd_id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"roleId"
column=
"role_id"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.fd_id,
a.user_id,
a.role_id
</sql>
<sql
id=
"sysUserRoleRes_where"
>
<if
test=
"sysUserRoleRes != null"
>
<if
test=
"sysUserRoleRes.fdId != null and sysUserRoleRes.fdId.trim() != ''"
>
AND a.fd_id = #{sysUserRoleRes.fdId}
</if>
<if
test=
"sysUserRoleRes.userId != null and sysUserRoleRes.userId.trim() != ''"
>
AND a.user_id = #{sysUserRoleRes.userId}
</if>
<if
test=
"sysUserRoleRes.roleId != null and sysUserRoleRes.roleId.trim() != ''"
>
AND a.role_id = #{sysUserRoleRes.roleId}
</if>
</if>
</sql>
<!--sysUserRoleRes简单分页查询-->
<select
id=
"getSysUserRoleResPage"
resultMap=
"sysUserRoleResMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_user_role_res a
<where>
1=1
<include
refid=
"sysUserRoleRes_where"
/>
</where>
</select>
<!--sysUserRoleRes简单分页查询-->
<select
id=
"getSysUserByRoleId"
resultType=
"java.lang.String"
>
SELECT
DISTINCT u.fd_name
FROM sys_user_role_res a
join sys_user_info u on a.user_id=u.fd_id
where a.role_id = #{roleId}
</select>
<!-- 根据账号删除关联表 -->
<delete
id=
"deleteByUserId"
>
delete from sys_user_role_res where user_id = #{userId}
</delete>
<!-- 根据角色删除关联表 -->
<delete
id=
"deleteByRoleId"
>
delete from sys_user_role_res where role_id = #{roleId}
</delete>
</mapper>
yifu-ekp/yifu-ekp-biz/src/main/resources/seata.conf
0 → 100644
View file @
b95ca88a
client
{
application
.
id
=
seata
-
server
## 应用唯一id
transaction
.
service
.
group
=
yifu_tx_group
## 所属事务组
}
\ No newline at end of file
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
b95ca88a
...
...
@@ -46,9 +46,11 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.ErrorDetailVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.ArchivesDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.EkpDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.InsuranceDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.ekp.vo.EkpPushSocialParam
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.EkpSocialViewVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TPaymentBySalaryVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TPaymentVo
;
...
...
@@ -61,6 +63,7 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.*;
import
com.yifu.cloud.plus.v1.yifu.social.service.TEkpChangeDeptLogService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TIncomeService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TPaymentInfoService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TSendEkpErrorService
;
import
com.yifu.cloud.plus.v1.yifu.social.util.DoJointSocialTask
;
import
com.yifu.cloud.plus.v1.yifu.social.util.ServiceUtil
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.*
;
...
...
@@ -139,6 +142,15 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
@Autowired
private
TPaymentSocialPushMapper
pushMapper
;
@Autowired
private
TPaymentSocialPushMapper
socialPushMapper
;
@Autowired
private
TSendEkpErrorService
tSendEkpErrorService
;
@Autowired
private
EkpDaprUtils
ekpDaprUtil
;
/**
* 缴费库简单分页查询
*
...
...
@@ -3125,12 +3137,11 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
int
i
=
(
int
)
Math
.
ceil
((
double
)
count
/
CommonConstants
.
TEN_THOUSAND_INT
);
for
(
int
j
=
0
;
j
<
i
;
j
++)
{
unPushInfo
=
baseMapper
.
getTPaymentInfoSumPushList
(
searchVo
);
synchronized
(
this
)
{
if
(
Common
.
isNotNull
(
unPushInfo
))
{
//推送数据封装并推送
doJointSocialTask
.
asynchronousEkpPaymentSocial
(
unPushInfo
,
mapSelectVo
);
}
this
.
asynchronousEkpPaymentSocial
(
unPushInfo
,
mapSelectVo
);
}
}
}
}
...
...
@@ -3997,4 +4008,332 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return
errorInfo
.
substring
(
0
,
errorInfo
.
length
()
-
1
);
}
}
/**
* @Description: 实缴数据推送
* @Author: huyc
* @Date: 2022-11-17
* @return: void
**/
public
void
asynchronousEkpPaymentSocial
(
List
<
TPaymentInfoPushVo
>
unPushInfo
,
Map
<
String
,
TSettleDomainSelectVo
>
mapSelectVo
)
{
log
.
info
(
"推送社保实缴费用到EKP-线程开始"
);
TSettleDomain
settleDomain
;
EkpPushSocialParam
socialParam
;
TPaymentSocialPush
a
;
List
<
EkpPushSocialParam
>
paramList
=
new
ArrayList
<>();
List
<
EkpPushSocialParam
>
insertList
=
new
ArrayList
<>();
Map
<
String
,
String
>
idMap
=
new
HashMap
<>();
for
(
TPaymentInfoPushVo
library
:
unPushInfo
)
{
try
{
//获取项目信息
if
(
Common
.
isNotNull
(
mapSelectVo
))
{
settleDomain
=
mapSelectVo
.
get
(
library
.
getSettleDomainCode
());
}
else
{
settleDomain
=
null
;
}
socialParam
=
new
EkpPushSocialParam
();
//员工姓名
socialParam
.
setFd_3adfe8c79989d4
(
library
.
getEmpName
());
//员工身份证
socialParam
.
setFd_3adfe8c7e4cf7a
(
library
.
getEmpIdcard
());
//单位养老金额
socialParam
.
setFd_3af9ec80a9de7a
(
CommonConstants
.
EMPTY_STRING
);
//单位医疗金额
socialParam
.
setFd_3af9eba5899c90
(
CommonConstants
.
EMPTY_STRING
);
//单位工伤金额
socialParam
.
setFd_3af9eba684f592
(
CommonConstants
.
EMPTY_STRING
);
//单位失业金额
socialParam
.
setFd_3af9eba5f6e19e
(
CommonConstants
.
EMPTY_STRING
);
//单位生育金额
socialParam
.
setFd_3af9eba71c0138
(
CommonConstants
.
EMPTY_STRING
);
//单位大病金额
socialParam
.
setFd_3af9eba863c0ee
(
CommonConstants
.
EMPTY_STRING
);
//预估个人养老
socialParam
.
setFd_3af9ebbd791662
(
CommonConstants
.
EMPTY_STRING
);
//预估个人医疗
socialParam
.
setFd_3af9ebbdd9797e
(
CommonConstants
.
EMPTY_STRING
);
//预估单位合计
socialParam
.
setFd_3adfeb4e8064a8
(
CommonConstants
.
EMPTY_STRING
);
//个人社保合计
socialParam
.
setFd_3adfeb52a4d2e2
(
CommonConstants
.
EMPTY_STRING
);
//预估个人大病救助
socialParam
.
setFd_3af9ebbf3e8be2
(
CommonConstants
.
EMPTY_STRING
);
//预估个人失业
socialParam
.
setFd_3af9ebbe29ce1c
(
CommonConstants
.
EMPTY_STRING
);
//结算状态
// hgw2022-9-30 12:03:05根据倩倩的需求,改为默认空,未结算
socialParam
.
setFd_3add9ea428879a
(
CommonConstants
.
SALARY_UNFLAG
);
//社保缴纳月份
if
(
Common
.
isNotNull
(
library
.
getSocialPayMonth
()))
{
socialParam
.
setFd_3adfe8cf632700
(
dateStringInsert
(
library
.
getSocialPayMonth
()));
}
else
{
socialParam
.
setFd_3adfe8cf632700
(
CommonConstants
.
EMPTY_STRING
);
}
//社保生成月份
if
(
Common
.
isNotNull
(
library
.
getSocialCreateMonth
()))
{
socialParam
.
setFd_3adfe8cb96c41e
(
dateStringInsert
(
library
.
getSocialCreateMonth
()));
}
else
{
socialParam
.
setFd_3adfe8cb96c41e
(
CommonConstants
.
EMPTY_STRING
);
}
//订单类型
socialParam
.
setFd_3add9dd7833db8
(
SocialConstants
.
DIFF_TYPE_THR
);
//是否有预估
if
(
Common
.
isNotNull
(
settleDomain
)
&&
Common
.
isNotNull
(
settleDomain
.
getSocialType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getSocialType
()))
{
socialParam
.
setFd_3add9de0be85e4
(
CommonConstants
.
IS_TRUE
);
}
else
{
socialParam
.
setFd_3add9de0be85e4
(
CommonConstants
.
IS_FALSE
);
}
//与工资合并结算
socialParam
.
setFd_3add9e1a670144
(
CommonConstants
.
IS_FALSE
);
//项目编码
socialParam
.
setFd_3adfe8c70d3fd4
(
library
.
getSettleDomainCode
());
//项目名称
socialParam
.
setFd_3adfe8c8468e54
(
library
.
getSettleDomainName
());
//单号
socialParam
.
setFd_3adfe95c169c48
(
CommonConstants
.
EMPTY_STRING
);
//客户编码
if
(
Common
.
isNotNull
(
settleDomain
)
&&
Common
.
isNotNull
(
settleDomain
.
getCustomerNo
()))
{
socialParam
.
setFd_3adfe8c73cb5a4
(
settleDomain
.
getCustomerNo
());
}
else
{
socialParam
.
setFd_3adfe8c73cb5a4
(
CommonConstants
.
EMPTY_STRING
);
}
//是否为BPO业务
socialParam
.
setFd_3b178dfcf9e3e6
(
library
.
getBpoFlag
());
//客户名称
if
(
Common
.
isNotNull
(
library
.
getUnitName
()))
{
socialParam
.
setFd_3adfe8c81a0e42
(
library
.
getUnitName
());
}
else
{
socialParam
.
setFd_3adfe8c81a0e42
(
CommonConstants
.
EMPTY_STRING
);
}
//社保户
if
(
Common
.
isNotNull
(
library
.
getSocialHousehold
()))
{
socialParam
.
setFd_3aeafa25916e82
(
library
.
getSocialHousehold
());
}
else
{
socialParam
.
setFd_3aeafa25916e82
(
CommonConstants
.
EMPTY_STRING
);
}
//结算月份
socialParam
.
setFd_3adfe8cff746bc
(
CommonConstants
.
EMPTY_STRING
);
//单位差异
socialParam
.
setFd_3adfeb53c70f72
(
CommonConstants
.
EMPTY_STRING
);
//个人差异
socialParam
.
setFd_3adfeb5413fb44
(
CommonConstants
.
EMPTY_STRING
);
//应收
socialParam
.
setFd_3adfeb7b624f06
(
CommonConstants
.
EMPTY_STRING
);
//收款状态
socialParam
.
setFd_3add9eaeed2560
(
CommonConstants
.
EMPTY_STRING
);
//结算单号
socialParam
.
setFd_3adfeb830523b6
(
CommonConstants
.
EMPTY_STRING
);
//收款单号
socialParam
.
setFd_3adfeb8489e6c2
(
CommonConstants
.
EMPTY_STRING
);
//应支出
socialParam
.
setFd_3adfeb7bd97464
(
CommonConstants
.
EMPTY_STRING
);
//支出结算状态
socialParam
.
setFd_3add9edfbc6f7e
(
CommonConstants
.
EMPTY_STRING
);
//付款状态
socialParam
.
setFd_3add9eed23894a
(
CommonConstants
.
EMPTY_STRING
);
//支出缴纳单号
socialParam
.
setFd_3adfeb83a704c8
(
CommonConstants
.
EMPTY_STRING
);
//实缴单位生育
if
(
Common
.
isNotNull
(
library
.
getUnitBirthMoney
()))
{
socialParam
.
setFd_3af9ee3afb34c2
(
library
.
getUnitBirthMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3afb34c2
(
CommonConstants
.
EMPTY_STRING
);
}
//付款单号
socialParam
.
setFd_3adfeb84175f28
(
CommonConstants
.
EMPTY_STRING
);
//实缴个人合计
if
(
Common
.
isNotNull
(
library
.
getSocialSecurityPersonalSum
()))
{
socialParam
.
setFd_3af9ee3cb6d4fa
(
library
.
getSocialSecurityPersonalSum
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3cb6d4fa
(
CommonConstants
.
EMPTY_STRING
);
}
//预估合计
socialParam
.
setFd_3af9ed7e813b86
(
CommonConstants
.
EMPTY_STRING
);
//实缴单位合计
if
(
Common
.
isNotNull
(
library
.
getUnitSocialSum
()))
{
socialParam
.
setFd_3af9ee3c0bf286
(
library
.
getUnitSocialSum
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3c0bf286
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴个人补缴利息
if
(
Common
.
isNotNull
(
library
.
getPersonalAccrual
()))
{
socialParam
.
setFd_3af9ee3d634946
(
library
.
getPersonalAccrual
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3d634946
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴单位医疗
if
(
Common
.
isNotNull
(
library
.
getUnitMedicalMoney
()))
{
socialParam
.
setFd_3af9ee39dea6a8
(
library
.
getUnitMedicalMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee39dea6a8
(
CommonConstants
.
EMPTY_STRING
);
}
//预估个人补缴利息
socialParam
.
setFd_3af9ebbecc4aa8
(
CommonConstants
.
EMPTY_STRING
);
//预估单位补缴利息
socialParam
.
setFd_3af9eba7c3da5e
(
CommonConstants
.
EMPTY_STRING
);
//实缴单位养老
if
(
Common
.
isNotNull
(
library
.
getUnitPensionMoney
()))
{
socialParam
.
setFd_3af9ee3938170a
(
library
.
getUnitPensionMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3938170a
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴个人失业
if
(
Common
.
isNotNull
(
library
.
getPersonalUnemploymentMoney
()))
{
socialParam
.
setFd_3af9ee3db44d96
(
library
.
getPersonalUnemploymentMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3db44d96
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴单位补缴利息
if
(
Common
.
isNotNull
(
library
.
getCompanyAccrual
()))
{
socialParam
.
setFd_3af9ee3b5ddae8
(
library
.
getCompanyAccrual
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3b5ddae8
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴单位大病救助
if
(
Common
.
isNotNull
(
library
.
getUnitBigmailmentMoney
()))
{
socialParam
.
setFd_3af9ee3ba76f54
(
library
.
getUnitBigmailmentMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3ba76f54
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴单位工伤
if
(
Common
.
isNotNull
(
library
.
getUnitInjuryMoney
()))
{
socialParam
.
setFd_3af9ee3aa9c84a
(
library
.
getUnitInjuryMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3aa9c84a
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴合计
if
(
Common
.
isNotNull
(
library
.
getSocialSum
()))
{
socialParam
.
setFd_3af9ee3c6bfc74
(
library
.
getSocialSum
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3c6bfc74
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴个人医疗
if
(
Common
.
isNotNull
(
library
.
getPersonalMedicalMoney
()))
{
socialParam
.
setFd_3af9ee3e066d48
(
library
.
getPersonalMedicalMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3e066d48
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴单位失业
if
(
Common
.
isNotNull
(
library
.
getUnitUnemploymentMoney
()))
{
socialParam
.
setFd_3af9ee3a46b7e6
(
library
.
getUnitUnemploymentMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3a46b7e6
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴个人养老
if
(
Common
.
isNotNull
(
library
.
getPersonalPensionMoney
()))
{
socialParam
.
setFd_3af9ee3e513962
(
library
.
getPersonalPensionMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3e513962
(
CommonConstants
.
EMPTY_STRING
);
}
//实缴个人大病救助
if
(
Common
.
isNotNull
(
library
.
getPersonalBigmailmentMoney
()))
{
socialParam
.
setFd_3af9ee3d0ba3b6
(
library
.
getPersonalBigmailmentMoney
().
toString
());
}
else
{
socialParam
.
setFd_3af9ee3d0ba3b6
(
CommonConstants
.
EMPTY_STRING
);
}
//创建人姓名
if
(
Common
.
isNotNull
(
library
.
getCreateName
()))
{
socialParam
.
setFd_3b438e33f37378
(
library
.
getCreateName
());
}
else
{
socialParam
.
setFd_3b438e33f37378
(
CommonConstants
.
EMPTY_STRING
);
}
// 缴纳地
if
(
Common
.
isNotNull
(
library
.
getSocialPayAddr
()))
{
socialParam
.
setFd_3b5cc58d1a70fe
(
library
.
getSocialPayAddr
());
}
else
{
socialParam
.
setFd_3b5cc58d1a70fe
(
CommonConstants
.
EMPTY_STRING
);
}
//我司到款单位
socialParam
.
setFd_3b01953871b8be
(
CommonConstants
.
EMPTY_STRING
);
//社保id
socialParam
.
setFd_3b0afbe1f94a08
(
library
.
getId
());
// 薪酬申请编号
socialParam
.
setFd_3b3cab77923f44
(
CommonConstants
.
EMPTY_STRING
);
insertList
.
add
(
socialParam
);
ekpDaprUtil
.
pushSocialInfoToEkp
(
insertList
);
String
body
=
""
;
if
(
Common
.
isEmpty
(
body
)
||
body
.
length
()
!=
32
)
{
paramList
.
add
(
socialParam
);
idMap
.
put
(
library
.
getId
(),
library
.
getIds
());
}
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
baseMapper
.
updateBySocialPaymentList
(
library
.
getIds
());
a
=
new
TPaymentSocialPush
();
a
.
setId
(
library
.
getId
());
a
.
setPaymentIds
(
library
.
getIds
());
socialPushMapper
.
insert
(
a
);
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
library
.
getId
());
error
.
setTitle
(
body
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
saveError
(
error
);
}
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
library
.
getId
());
error
.
setTitle
(
e
.
getMessage
());
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
saveError
(
error
);
log
.
error
(
"推送社保实缴费用到EKP错误"
,
e
);
}
}
//推送失败的数据重新推送
if
(!
paramList
.
isEmpty
())
{
for
(
EkpPushSocialParam
s:
paramList
)
{
try
{
String
body
=
""
;
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
baseMapper
.
updateBySocialPaymentList
(
idMap
.
get
(
s
.
getFd_3b0afbe1f94a08
()));
a
=
new
TPaymentSocialPush
();
a
.
setId
(
s
.
getFd_3b0afbe1f94a08
());
a
.
setPaymentIds
(
idMap
.
get
(
s
.
getFd_3b0afbe1f94a08
()));
socialPushMapper
.
insert
(
a
);
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
s
.
getFd_3b0afbe1f94a08
());
error
.
setTitle
(
body
);
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
saveError
(
error
);
}
}
catch
(
Exception
e
)
{
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateDay
(
DateUtil
.
getThisDay
());
error
.
setType
(
CommonConstants
.
THREE_STRING
);
error
.
setCreateUserName
(
"社保实缴费用推送"
);
error
.
setLinkId
(
s
.
getFd_3b0afbe1f94a08
());
error
.
setTitle
(
e
.
getMessage
());
error
.
setNums
(
CommonConstants
.
ONE_INT
);
tSendEkpErrorService
.
saveError
(
error
);
log
.
error
(
"推送社保实缴费用到EKP错误"
,
e
);
}
}
}
idMap
.
clear
();
log
.
info
(
"推送社保实缴费用到EKP结束"
);
}
/**
* @Description: 推送ekp时更改日期格式
* @Author: huyc
**/
public
String
dateStringInsert
(
String
month
)
{
StringBuilder
sb
=
new
StringBuilder
(
month
);
sb
.
insert
(
4
,
"-"
);
return
sb
.
toString
();
}
}
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