Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
f848382a
You need to sign in or sign up before continuing.
Commit
f848382a
authored
Aug 02, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
5b787bc8
cdb41c5d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
1451 additions
and
588 deletions
+1451
-588
DispatchEmpVo.java
...om/yifu/cloud/plus/v1/yifu/archives/vo/DispatchEmpVo.java
+4
-8
EmpContractDispatchVo.java
...cloud/plus/v1/yifu/archives/vo/EmpContractDispatchVo.java
+15
-0
EmpProjectDispatchVo.java
.../cloud/plus/v1/yifu/archives/vo/EmpProjectDispatchVo.java
+6
-0
UpdateEmpVo.java
.../com/yifu/cloud/plus/v1/yifu/archives/vo/UpdateEmpVo.java
+22
-0
TEmployeeInfoController.java
.../v1/yifu/archives/controller/TEmployeeInfoController.java
+11
-5
TEmployeeLogController.java
...s/v1/yifu/archives/controller/TEmployeeLogController.java
+1
-1
TEmployeeContractInfoService.java
...1/yifu/archives/service/TEmployeeContractInfoService.java
+3
-1
TEmployeeInfoService.java
...d/plus/v1/yifu/archives/service/TEmployeeInfoService.java
+2
-0
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+10
-8
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+61
-2
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+4
-4
CacheConstants.java
...oud.plus.v1/yifu/common/core/constant/CacheConstants.java
+6
-0
IdCardUtil.java
.../yifu/cloud/plus/v1/yifu/common/core/util/IdCardUtil.java
+123
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+1
-0
ArchivesDaprUtil.java
...cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
+25
-0
CheckDaprUtil.java
...fu/cloud/plus/v1/yifu/common/dapr/util/CheckDaprUtil.java
+33
-0
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+31
-2
TInsuranceDetail.java
...loud/plus/v1/yifu/insurances/entity/TInsuranceDetail.java
+12
-0
TInsuranceSettleCancel.java
...lus/v1/yifu/insurances/entity/TInsuranceSettleCancel.java
+5
-125
LocalDateUtil.java
...ifu/cloud/plus/v1/yifu/insurances/util/LocalDateUtil.java
+31
-1
ValidityUtil.java
...yifu/cloud/plus/v1/yifu/insurances/util/ValidityUtil.java
+9
-0
InsuranceAddParam.java
...u/cloud/plus/v1/yifu/insurances/vo/InsuranceAddParam.java
+13
-0
InsuranceBatchParam.java
...cloud/plus/v1/yifu/insurances/vo/InsuranceBatchParam.java
+13
-0
InsuranceListByIdCardVo.java
...d/plus/v1/yifu/insurances/vo/InsuranceListByIdCardVo.java
+20
-0
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+22
-6
TInsuranceTypeController.java
.../yifu/insurances/controller/TInsuranceTypeController.java
+2
-2
TInsuranceDetailMapper.java
...lus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
+1
-1
TInsuranceDetailService.java
...s/v1/yifu/insurances/service/TInsuranceDetailService.java
+11
-3
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+380
-230
TInsuranceTypeRateServiceImpl.java
...nsurances/service/impl/TInsuranceTypeRateServiceImpl.java
+2
-4
TInsuranceTypeStandardServiceImpl.java
...ances/service/impl/TInsuranceTypeStandardServiceImpl.java
+10
-0
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+5
-2
TInsuranceTypeMapper.xml
...es-biz/src/main/resources/mapper/TInsuranceTypeMapper.xml
+3
-1
DispatchConstants.java
...loud/plus/v1/yifu/social/constants/DispatchConstants.java
+8
-0
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+9
-0
TProvidentFund.java
...yifu/cloud/plus/v1/yifu/social/entity/TProvidentFund.java
+11
-1
TSocialInfo.java
...om/yifu/cloud/plus/v1/yifu/social/entity/TSocialInfo.java
+10
-1
FundHandleExportVo.java
...yifu/cloud/plus/v1/yifu/social/vo/FundHandleExportVo.java
+4
-4
SocialHandleExportVo.java
...fu/cloud/plus/v1/yifu/social/vo/SocialHandleExportVo.java
+13
-19
TDispatchImportVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
+4
-4
TDispatchInfoExportVo.java
...u/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
+2
-2
TDispatchInfoPageVo.java
...ifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoPageVo.java
+2
-2
TDispatchInfoSearchVo.java
...u/cloud/plus/v1/yifu/social/vo/TDispatchInfoSearchVo.java
+2
-2
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+3
-3
TPaymentInfoController.java
...lus/v1/yifu/social/controller/TPaymentInfoController.java
+47
-17
TDispatchInfoMapper.java
...cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
+1
-0
TPaymentInfoService.java
...loud/plus/v1/yifu/social/service/TPaymentInfoService.java
+14
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+283
-110
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+125
-13
ServiceUtil.java
.../com/yifu/cloud/plus/v1/yifu/social/util/ServiceUtil.java
+1
-0
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+9
-2
TProvidentFundMapper.xml
...al-biz/src/main/resources/mapper/TProvidentFundMapper.xml
+3
-1
TSocialInfoMapper.xml
...ocial-biz/src/main/resources/mapper/TSocialInfoMapper.xml
+3
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/DispatchEmpVo.java
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
javax.validation.constraints.Size
;
...
@@ -145,8 +148,6 @@ public class DispatchEmpVo implements Serializable {
...
@@ -145,8 +148,6 @@ public class DispatchEmpVo implements Serializable {
/**
/**
* 合同类型
* 合同类型
*/
*/
@NotBlank
(
message
=
"合同类型不能为空"
)
@Length
(
max
=
32
,
message
=
"合同类型不能超过32个字符"
)
@ExcelAttribute
(
name
=
"合同类型"
,
maxLength
=
32
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"合同类型"
,
maxLength
=
32
,
needExport
=
true
)
@Schema
(
description
=
"合同类型"
,
name
=
"contractName"
)
@Schema
(
description
=
"合同类型"
,
name
=
"contractName"
)
private
String
contractName
;
private
String
contractName
;
...
@@ -156,15 +157,12 @@ public class DispatchEmpVo implements Serializable {
...
@@ -156,15 +157,12 @@ public class DispatchEmpVo implements Serializable {
* 1 固定期限
* 1 固定期限
* 2 无固定期限
* 2 无固定期限
*/
*/
@NotBlank
(
message
=
"签订期限不能为空"
)
@Length
(
max
=
32
,
message
=
"签订期限不能超过32个字符"
)
@ExcelAttribute
(
name
=
"签订期限"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMPLOYEE_CONTRACT_TYPE
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"签订期限"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMPLOYEE_CONTRACT_TYPE
,
needExport
=
true
)
@Schema
(
description
=
"签订期限"
,
name
=
"contractType"
)
@Schema
(
description
=
"签订期限"
,
name
=
"contractType"
)
private
String
contractType
;
private
String
contractType
;
/**
/**
* 合同起始时间
* 合同起始时间
*/
*/
@NotBlank
(
message
=
"合同起始时间不能为空"
)
@ExcelAttribute
(
name
=
"合同起始时间"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"合同起始时间"
,
needExport
=
true
)
@Schema
(
description
=
"合同起始时间"
,
name
=
"contractStart"
)
@Schema
(
description
=
"合同起始时间"
,
name
=
"contractStart"
)
private
Date
contractStart
;
private
Date
contractStart
;
...
@@ -177,7 +175,6 @@ public class DispatchEmpVo implements Serializable {
...
@@ -177,7 +175,6 @@ public class DispatchEmpVo implements Serializable {
/**
/**
* 合同年限
* 合同年限
*/
*/
@NotBlank
(
message
=
"合同年限不能为空"
)
@ExcelAttribute
(
name
=
"合同年限"
,
errorInfo
=
"合同年限不能为空"
)
@ExcelAttribute
(
name
=
"合同年限"
,
errorInfo
=
"合同年限不能为空"
)
@Schema
(
description
=
"合同年限"
,
name
=
"contractTerm"
)
@Schema
(
description
=
"合同年限"
,
name
=
"contractTerm"
)
private
String
contractTerm
;
private
String
contractTerm
;
...
@@ -192,8 +189,6 @@ public class DispatchEmpVo implements Serializable {
...
@@ -192,8 +189,6 @@ public class DispatchEmpVo implements Serializable {
/**
/**
* 业务细分
* 业务细分
*/
*/
@NotBlank
(
message
=
"业务细分不能为空"
)
@Length
(
max
=
32
,
message
=
"业务细分不能超过32个字符"
)
@ExcelAttribute
(
name
=
"业务细分"
,
maxLength
=
32
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"业务细分"
,
maxLength
=
32
,
needExport
=
true
)
@Schema
(
description
=
"业务细分(存lable)"
,
name
=
"contractName"
)
@Schema
(
description
=
"业务细分(存lable)"
,
name
=
"contractName"
)
private
String
contractSubName
;
private
String
contractSubName
;
...
@@ -203,4 +198,5 @@ public class DispatchEmpVo implements Serializable {
...
@@ -203,4 +198,5 @@ public class DispatchEmpVo implements Serializable {
*/
*/
@Schema
(
description
=
"项目状态(0正常;1已减项)"
)
@Schema
(
description
=
"项目状态(0正常;1已减项)"
)
private
Integer
projectStatus
;
private
Integer
projectStatus
;
}
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmpContractDispatchVo.java
View file @
f848382a
...
@@ -200,4 +200,19 @@ public class EmpContractDispatchVo implements Serializable {
...
@@ -200,4 +200,19 @@ public class EmpContractDispatchVo implements Serializable {
@ExcelAttribute
(
name
=
"项目"
,
errorInfo
=
"项目不能为空"
,
isOrgan
=
true
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"项目"
,
errorInfo
=
"项目不能为空"
,
isOrgan
=
true
,
maxLength
=
32
)
@Schema
(
description
=
"项目"
,
name
=
"settleDomain"
)
@Schema
(
description
=
"项目"
,
name
=
"settleDomain"
)
private
String
settleDomain
;
private
String
settleDomain
;
/**
* 项目名称
*/
@Length
(
max
=
128
,
message
=
"项目名称不能超过128个字符"
)
@ExcelAttribute
(
name
=
"项目名称"
,
maxLength
=
128
)
@Schema
(
description
=
"项目名称"
,
name
=
"subjectDepart"
)
private
String
subjectDepart
;
/**
* 客户名称
*/
@Length
(
max
=
128
,
message
=
"客户名称不能超过128个字符"
)
@ExcelAttribute
(
name
=
"客户名称"
,
maxLength
=
128
)
@Schema
(
description
=
"客户名称"
,
name
=
"subjectUnit"
)
private
String
subjectUnit
;
}
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmpProjectDispatchVo.java
View file @
f848382a
...
@@ -73,6 +73,12 @@ public class EmpProjectDispatchVo implements Serializable {
...
@@ -73,6 +73,12 @@ public class EmpProjectDispatchVo implements Serializable {
@ExcelAttribute
(
name
=
"项目编码"
,
isNotEmpty
=
true
,
errorInfo
=
"项目编码不能为空"
,
maxLength
=
20
)
@ExcelAttribute
(
name
=
"项目编码"
,
isNotEmpty
=
true
,
errorInfo
=
"项目编码不能为空"
,
maxLength
=
20
)
private
String
deptNo
;
private
String
deptNo
;
/**
* 项目名称
*/
@Schema
(
description
=
"项目名称"
)
private
String
deptName
;
/**
/**
* 合同类型(字典值)
* 合同类型(字典值)
*/
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/UpdateEmpVo.java
0 → 100644
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author fxj
* @Date 2022/8/1
* @Description
* @Version 1.0
*/
@Data
public
class
UpdateEmpVo
implements
Serializable
{
// 员工身份认证
String
empIdCard
;
// 项目编码
String
projectNo
;
// 合同开始时间
String
contractName
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeInfoController.java
View file @
f848382a
...
@@ -23,10 +23,7 @@ import com.pig4cloud.plugin.excel.vo.ErrorMessage;
...
@@ -23,10 +23,7 @@ import com.pig4cloud.plugin.excel.vo.ErrorMessage;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDataAuth
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDataAuth
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.DispatchCheckVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.DispatchEmpVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDispatchAddVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.ErrorMessageVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
...
@@ -466,5 +463,14 @@ public class TEmployeeInfoController {
...
@@ -466,5 +463,14 @@ public class TEmployeeInfoController {
public
EmpDispatchAddVo
addDispatchInfo
(
@RequestBody
(
required
=
true
)
EmpDispatchAddVo
addVo
)
{
public
EmpDispatchAddVo
addDispatchInfo
(
@RequestBody
(
required
=
true
)
EmpDispatchAddVo
addVo
)
{
return
tEmployeeInfoService
.
addDispatchInfo
(
addVo
);
return
tEmployeeInfoService
.
addDispatchInfo
(
addVo
);
}
}
/**
* @Description: 派单审核通过 更新档案 合同 项目档案审核状态
* @Author: fxj
* @Date: 2022/08/01 18:52
**/
@Operation
(
summary
=
"通过EMP_ID查询人员档案变更日志"
,
description
=
"通过EMP_ID查询人员档案变更日志"
)
@GetMapping
(
"/inner/updateEmpInfo"
)
public
Boolean
updateEmpInfo
(
@RequestBody
UpdateEmpVo
vo
)
{
return
tEmployeeInfoService
.
updateEmpInfo
(
vo
);
}
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeLogController.java
View file @
f848382a
...
@@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
...
@@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeLog
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeLog
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeLogService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeLogService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.UpdateEmpVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
...
@@ -143,5 +144,4 @@ public class TEmployeeLogController {
...
@@ -143,5 +144,4 @@ public class TEmployeeLogController {
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"PROJECT_ID"
,
projectId
)
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"PROJECT_ID"
,
projectId
)
.
eq
(
"TYPE"
,
CommonConstants
.
ONE_INT
).
orderByDesc
(
CommonConstants
.
CREATE_TIME
)));
.
eq
(
"TYPE"
,
CommonConstants
.
ONE_INT
).
orderByDesc
(
CommonConstants
.
CREATE_TIME
)));
}
}
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeContractInfoService.java
View file @
f848382a
...
@@ -95,7 +95,9 @@ public interface TEmployeeContractInfoService extends IService<TEmployeeContract
...
@@ -95,7 +95,9 @@ public interface TEmployeeContractInfoService extends IService<TEmployeeContract
**/
**/
R
<
List
<
ErrorMessage
>>
updateContract
(
TEmployeeContractInfo
tEmployeeContractInfo
);
R
<
List
<
ErrorMessage
>>
updateContract
(
TEmployeeContractInfo
tEmployeeContractInfo
);
/**
String
getCode
(
boolean
isNew
);
/**
* @param tEmployeeContractInfo
* @param tEmployeeContractInfo
* @Description: 审核
* @Description: 审核
* @Author: hgw
* @Author: hgw
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeInfoService.java
View file @
f848382a
...
@@ -184,4 +184,6 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
...
@@ -184,4 +184,6 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
Map
<
String
,
DispatchEmpVo
>
getDispatchEmpVo
(
DispatchCheckVo
checkVo
);
Map
<
String
,
DispatchEmpVo
>
getDispatchEmpVo
(
DispatchCheckVo
checkVo
);
EmpDispatchAddVo
addDispatchInfo
(
EmpDispatchAddVo
addVo
);
EmpDispatchAddVo
addDispatchInfo
(
EmpDispatchAddVo
addVo
);
Boolean
updateEmpInfo
(
UpdateEmpVo
vo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
f848382a
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeConstants;
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeConstants;
import
com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeContractConstants
;
import
com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeContractConstants
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractExportVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractExportVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractUpdateVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractUpdateVO
;
...
@@ -75,7 +76,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -75,7 +76,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private
static
final
String
EMPINFO_IS_NOT_EXITS_BYID
=
"未找到人员档案与项目档案!"
;
private
static
final
String
EMPINFO_IS_NOT_EXITS_BYID
=
"未找到人员档案与项目档案!"
;
private
final
TEmployeeInfo
Service
tEmployeeInfoService
;
private
final
TEmployeeInfo
Mapper
tEmployeeInfoMapper
;
private
final
TEmployeeProjectService
tEmployeeProjectService
;
private
final
TEmployeeProjectService
tEmployeeProjectService
;
private
final
TSettleDomainService
tSettleDomainService
;
private
final
TSettleDomainService
tSettleDomainService
;
private
final
TCustomerInfoService
tCustomerInfoService
;
private
final
TCustomerInfoService
tCustomerInfoService
;
...
@@ -127,7 +128,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -127,7 +128,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private
R
<
List
<
ErrorMessage
>>
setBaseInfo
(
TEmployeeContractInfo
tEmployeeContractInfo
,
TEmployeeProject
tEmployeeProject
)
{
private
R
<
List
<
ErrorMessage
>>
setBaseInfo
(
TEmployeeContractInfo
tEmployeeContractInfo
,
TEmployeeProject
tEmployeeProject
)
{
// 获取人员档案
// 获取人员档案
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Service
.
ge
tById
(
tEmployeeContractInfo
.
getEmpId
());
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Mapper
.
selec
tById
(
tEmployeeContractInfo
.
getEmpId
());
// 获取项目
// 获取项目
if
(
tEmployeeProject
==
null
)
{
if
(
tEmployeeProject
==
null
)
{
tEmployeeProject
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
()
tEmployeeProject
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
()
...
@@ -234,7 +235,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -234,7 +235,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
* @Date: 2022/6/22 17:52
* @Date: 2022/6/22 17:52
* @return: java.lang.String
* @return: java.lang.String
**/
**/
private
synchronized
String
getCode
(
boolean
isNew
)
{
@Override
public
synchronized
String
getCode
(
boolean
isNew
)
{
String
nowDay
=
DateUtil
.
getThisDay
();
String
nowDay
=
DateUtil
.
getThisDay
();
int
nowNums
;
int
nowNums
;
String
empCode
=
null
;
String
empCode
=
null
;
...
@@ -398,7 +400,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -398,7 +400,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private
void
updateEmployeeContractStatus
(
String
empId
)
{
private
void
updateEmployeeContractStatus
(
String
empId
)
{
//查看未作废合同数
//查看未作废合同数
TEmployeeInfo
employeeInfo
=
tEmployeeInfo
Service
.
ge
tById
(
empId
);
TEmployeeInfo
employeeInfo
=
tEmployeeInfo
Mapper
.
selec
tById
(
empId
);
if
(
employeeInfo
!=
null
)
{
if
(
employeeInfo
!=
null
)
{
employeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
employeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
}
}
...
@@ -436,10 +438,10 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -436,10 +438,10 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
tEmployeeProjectService
.
updateById
(
tEmployeeProject
);
tEmployeeProjectService
.
updateById
(
tEmployeeProject
);
}
}
// 更新档案、项目合同状态为(1在用)
// 更新档案、项目合同状态为(1在用)
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Service
.
ge
tById
(
contractInfo
.
getEmpId
());
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Mapper
.
selec
tById
(
contractInfo
.
getEmpId
());
if
(
tEmployeeInfo
!=
null
)
{
if
(
tEmployeeInfo
!=
null
)
{
tEmployeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
tEmployeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
tEmployeeInfo
Service
.
updateById
(
tEmployeeInfo
);
tEmployeeInfo
Mapper
.
updateById
(
tEmployeeInfo
);
}
}
}
else
{
}
else
{
//先停用项目内的其他的员工合同————不要这个逻辑了
//先停用项目内的其他的员工合同————不要这个逻辑了
...
@@ -475,7 +477,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -475,7 +477,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
}
// 更新档案、项目合同状态为(0无合同 1在用 2不在用)
// 更新档案、项目合同状态为(0无合同 1在用 2不在用)
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Service
.
ge
tById
(
contractInfo
.
getEmpId
());
TEmployeeInfo
tEmployeeInfo
=
tEmployeeInfo
Mapper
.
selec
tById
(
contractInfo
.
getEmpId
());
if
(
tEmployeeInfo
!=
null
)
{
if
(
tEmployeeInfo
!=
null
)
{
// 判断人员有无审核通过的其他合同
// 判断人员有无审核通过的其他合同
TEmployeeContractInfo
contractInfoInUse
=
this
.
getOne
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
TEmployeeContractInfo
contractInfoInUse
=
this
.
getOne
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
...
@@ -488,7 +490,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -488,7 +490,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
else
{
}
else
{
tEmployeeInfo
.
setContractStatus
(
CommonConstants
.
TWO_INT
);
tEmployeeInfo
.
setContractStatus
(
CommonConstants
.
TWO_INT
);
}
}
tEmployeeInfo
Service
.
updateById
(
tEmployeeInfo
);
tEmployeeInfo
Mapper
.
updateById
(
tEmployeeInfo
);
}
}
}
}
}
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
f848382a
...
@@ -84,7 +84,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -84,7 +84,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
private
final
TEmpEducationService
tEmpEducationService
;
private
final
TEmpEducationService
tEmpEducationService
;
private
final
TSettleDomainService
tSettleDomainService
;
private
final
TSettleDomainService
tSettleDomainService
;
private
final
TEmployeeContractInfoMapper
contractMapper
;
private
final
TEmployeeContractInfoService
contractServicer
;
@Override
@Override
public
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
TEmployeeInfo
employeeInfo
,
String
sql
)
{
public
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
TEmployeeInfo
employeeInfo
,
String
sql
)
{
...
@@ -2083,6 +2085,54 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2083,6 +2085,54 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
return
addVo
;
return
addVo
;
}
}
/**
* @Author fxj
* @Description 派单审核通过 同步人员档案 项目档案 合同状态信息
* @Date 19:30 2022/8/1
* @Param
* @return
**/
@Override
public
Boolean
updateEmpInfo
(
UpdateEmpVo
vo
)
{
if
(
Common
.
isEmpty
(
vo
)){
if
(
Common
.
isEmpty
(
vo
.
getEmpIdCard
())){
TEmployeeInfo
employeeInfo
=
baseMapper
.
selectOne
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeInfo:
:
getEmpIdcard
,
vo
.
getEmpIdCard
())
.
eq
(
TEmployeeInfo:
:
getStatus
,
CommonConstants
.
ZERO_INT
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isEmpty
(
employeeInfo
)){
employeeInfo
.
setStatus
(
CommonConstants
.
ONE_INT
);
baseMapper
.
updateById
(
employeeInfo
);
}
if
(
Common
.
isNotNull
(
vo
.
getContractName
())){
TEmployeeContractInfo
c
=
contractServicer
.
getOne
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
.
eq
(
TEmployeeContractInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
vo
.
getEmpIdCard
())
.
eq
(
TEmployeeContractInfo:
:
getAuditStatus
,
CommonConstants
.
ONE_INT
)
.
eq
(
TEmployeeContractInfo:
:
getContractName
,
vo
.
getContractName
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
c
)){
c
.
setAuditStatus
(
CommonConstants
.
TWO_INT
);
contractServicer
.
updateById
(
c
);
}
}
if
(
Common
.
isNotNull
(
vo
.
getProjectNo
())){
TEmployeeProject
p
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ONE_STRING
)
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
vo
.
getEmpIdCard
())
.
eq
(
TEmployeeProject:
:
getDeptNo
,
vo
.
getProjectNo
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
p
)){
tEmployeeProjectService
.
updateById
(
p
);
}
}
}
}
return
true
;
}
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
Map
<
String
,
EmpContractDispatchVo
>
contractsMap
,
Map
<
String
,
EmpContractDispatchVo
>
contractsMap
,
Map
<
String
,
EmpAddDispatchVo
>
empAddsMap
)
{
Map
<
String
,
EmpAddDispatchVo
>
empAddsMap
)
{
...
@@ -2112,7 +2162,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2112,7 +2162,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
contract
.
setFileTown
(
emp
.
getFileTown
());
contract
.
setFileTown
(
emp
.
getFileTown
());
}
}
}
}
contractMapper
.
insert
(
contract
);
contract
.
setApplyNo
(
contractServicer
.
getCode
(
false
));
contractServicer
.
save
(
contract
);
contractAdd
.
setId
(
contract
.
getId
());
contractAdd
.
setId
(
contract
.
getId
());
contractAdd
.
setEmpNo
(
contract
.
getEmpNo
());
contractAdd
.
setEmpNo
(
contract
.
getEmpNo
());
contractsMap
.
put
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
contractAdd
.
getDeptNo
(),
contractAdd
);
contractsMap
.
put
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
contractAdd
.
getDeptNo
(),
contractAdd
);
...
@@ -2129,6 +2180,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2129,6 +2180,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
if
(
Common
.
isNotNull
(
empAddsMap
))
{
if
(
Common
.
isNotNull
(
empAddsMap
))
{
EmpAddDispatchVo
empAdd
;
EmpAddDispatchVo
empAdd
;
TEmployeeInfo
employeeInfo
;
TEmployeeInfo
employeeInfo
;
Date
date
;
for
(
Map
.
Entry
<
String
,
EmpAddDispatchVo
>
entry
:
empAddsMap
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
EmpAddDispatchVo
>
entry
:
empAddsMap
.
entrySet
())
{
empAdd
=
entry
.
getValue
();
empAdd
=
entry
.
getValue
();
try
{
try
{
...
@@ -2137,6 +2189,13 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2137,6 +2189,13 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
BeanUtil
.
copyProperties
(
empAdd
,
employeeInfo
);
BeanUtil
.
copyProperties
(
empAdd
,
employeeInfo
);
employeeInfo
.
setEmpCode
(
getCode
());
employeeInfo
.
setEmpCode
(
getCode
());
employeeInfo
.
setStatus
(
CommonConstants
.
ZERO_INT
);
employeeInfo
.
setStatus
(
CommonConstants
.
ZERO_INT
);
date
=
IdCardUtil
.
getBirthdate
(
employeeInfo
.
getEmpIdcard
());
if
(
Common
.
isNotNull
(
date
))
{
//初始化年龄
employeeInfo
.
setEmpAge
(
IdCardUtil
.
IdNOToAge
(
employeeInfo
.
getEmpIdcard
()));
employeeInfo
.
setEmpBirthday
(
date
);
}
employeeInfo
.
setEmpSex
(
IdCardUtil
.
getSex
(
employeeInfo
.
getEmpIdcard
()));
baseMapper
.
insert
(
employeeInfo
);
baseMapper
.
insert
(
employeeInfo
);
empAdd
.
setId
(
employeeInfo
.
getId
());
empAdd
.
setId
(
employeeInfo
.
getId
());
empAdd
.
setEmpCode
(
employeeInfo
.
getEmpCode
());
empAdd
.
setEmpCode
(
employeeInfo
.
getEmpCode
());
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
f848382a
...
@@ -669,7 +669,7 @@
...
@@ -669,7 +669,7 @@
<select
id=
"getDispatchEmpVo"
resultMap=
"dispatchEmpVoMap"
>
<select
id=
"getDispatchEmpVo"
resultMap=
"dispatchEmpVoMap"
>
select
select
a.ID,a.EMP_CODE,a.EMP_NA
TRUE,a.EMP_NA
ME,
a.ID,a.EMP_CODE,a.EMP_NAME,
a.EMP_IDCARD,a.EMP_NATIONAL,a.EMP_PHONE,a.ID_PROVINCE,a.ID_CITY,
a.EMP_IDCARD,a.EMP_NATIONAL,a.EMP_PHONE,a.ID_PROVINCE,a.ID_CITY,
a.ID_TOWN,a.EMP_REGIS_TYPE,a.FILE_PROVINCE,a.FILE_CITY,a.FILE_TOWN,a.HIGN_EDUCATION,a.FILE_STATUS,
a.ID_TOWN,a.EMP_REGIS_TYPE,a.FILE_PROVINCE,a.FILE_CITY,a.FILE_TOWN,a.HIGN_EDUCATION,a.FILE_STATUS,
...
@@ -677,9 +677,9 @@
...
@@ -677,9 +677,9 @@
b.CONTRACT_START,b.CONTRACT_END,b.CONTRACT_TERM,b.CONTRACT_SUB_NAME,b.CONTRACT_ID,
b.CONTRACT_START,b.CONTRACT_END,b.CONTRACT_TERM,b.CONTRACT_SUB_NAME,b.CONTRACT_ID,
c.UNIT_NAME,
c.UNIT_NAME,
c.UNIT_NO,c.DEPT_ID,c.DEPT_NAME,c.DEPT_NO,c.POST,c.EMP_NO,c.PROJECT_STATUS
c.UNIT_NO,c.DEPT_ID,c.DEPT_NAME,c.DEPT_NO,c.POST,c.EMP_NO,c.PROJECT_STATUS
,c.EMP_NATRUE
from (
from (
select e.ID,e.EMP_CODE,e.EMP_NA
TRUE,e.EMP_NA
ME,e.EMP_IDCARD,e.EMP_NATIONAL,e.EMP_PHONE,e.ID_PROVINCE,e.ID_CITY,
select e.ID,e.EMP_CODE,e.EMP_NAME,e.EMP_IDCARD,e.EMP_NATIONAL,e.EMP_PHONE,e.ID_PROVINCE,e.ID_CITY,
e.ID_TOWN,e.EMP_REGIS_TYPE,e.FILE_PROVINCE,e.FILE_CITY,e.FILE_TOWN,e.HIGN_EDUCATION,e.FILE_STATUS
e.ID_TOWN,e.EMP_REGIS_TYPE,e.FILE_PROVINCE,e.FILE_CITY,e.FILE_TOWN,e.HIGN_EDUCATION,e.FILE_STATUS
from t_employee_info e
from t_employee_info e
where 1=1
where 1=1
...
@@ -693,7 +693,7 @@
...
@@ -693,7 +693,7 @@
</if>
</if>
) a
) a
left join (
left join (
select p.UNIT_NAME,p.UNIT_NO,p.DEPT_ID,p.DEPT_NAME,p.DEPT_NO,p.POST,p.EMP_ID,p.EMP_NO,P.PROJECT_STATUS
select p.UNIT_NAME,p.UNIT_NO,p.DEPT_ID,p.DEPT_NAME,p.DEPT_NO,p.POST,p.EMP_ID,p.EMP_NO,P.PROJECT_STATUS
,p.EMP_NATRUE
from t_employee_project p
from t_employee_project p
where 1=1
where 1=1
<if
test=
"checkVo != null"
>
<if
test=
"checkVo != null"
>
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CacheConstants.java
View file @
f848382a
...
@@ -91,6 +91,12 @@ public interface CacheConstants {
...
@@ -91,6 +91,12 @@ public interface CacheConstants {
**/
**/
String
EVERYDAY_EMP_CONTRACT_CODE
=
"everyday_emp_contract_code"
;
String
EVERYDAY_EMP_CONTRACT_CODE
=
"everyday_emp_contract_code"
;
/**
* @Description: 派单申请编码
* @Author: fxj
**/
String
EVERYDAY_DISPATCH_CODE
=
"everyday_dispatch_code"
;
/**
/**
* 区域数据--标签
* 区域数据--标签
*/
*/
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/IdCardUtil.java
0 → 100644
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
core
.
util
;
import
lombok.extern.slf4j.Slf4j
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
static
java
.
util
.
regex
.
Pattern
.
compile
;
/**
* 身份证处理
* @Author fxj
* @Date 2019-11-15
* @return
**/
@Slf4j
public
class
IdCardUtil
{
public
static
int
IdNOToAge
(
String
IdNO
){
int
leh
=
IdNO
.
length
();
Date
dates
;
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy"
);
String
year
=
df
.
format
(
new
Date
());
dates
=
getBirthdate
(
IdNO
);
int
u
=
Integer
.
parseInt
(
year
)-
Integer
.
parseInt
(
df
.
format
(
dates
));
return
u
;
}
/**
* 提取身份证中的出生日期,身份证非法则返回空
* @param idNum
* @return
*/
public
static
Date
getBirthdate
(
String
idNum
){
Pattern
idNumPattern
=
null
;
Matcher
idNumMatcher
=
null
;
Date
date
=
null
;
//定义判别用户身份证号的正则表达式(要么是15位,要么是18位,最后一位可以为字母)
idNumPattern
=
compile
(
"(\\d{14}[0-9a-zA-Z])|(\\d{17}[0-9a-zA-Z])"
);
//通过Pattern获得Matcher
idNumMatcher
=
idNumPattern
.
matcher
(
idNum
);
//判断用户输入是否为身份证号
if
(
idNumMatcher
.
matches
()){
Pattern
birthDatePattern
=
null
;
Matcher
birthDateMather
=
null
;
String
year
=
null
;
if
(
idNum
.
length
()==
18
){
//如果是,定义正则表达式提取出身份证中的出生日期
birthDatePattern
=
compile
(
"\\d{6}(\\d{4})(\\d{2})(\\d{2}).*"
);
//身份证上的前6位以及出生年月日
//通过Pattern获得Matcher
birthDateMather
=
birthDatePattern
.
matcher
(
idNum
);
}
else
if
(
idNum
.
length
()==
15
){
//如果是,定义正则表达式提取出身份证中的出生日期
birthDatePattern
=
compile
(
"\\d{6}(\\d{2})(\\d{2})(\\d{2}).*"
);
//身份证上的前6位以及出生年月日
//通过Pattern获得Matcher
birthDateMather
=
birthDatePattern
.
matcher
(
idNum
);
}
//通过Matcher获得用户的出生年月日
if
(
birthDateMather
.
find
()){
if
(
idNum
.
length
()==
18
){
year
=
birthDateMather
.
group
(
1
);
}
else
if
(
idNum
.
length
()==
15
){
year
=
"19"
+
birthDateMather
.
group
(
1
);
}
String
month
=
birthDateMather
.
group
(
2
);
String
datetemp
=
birthDateMather
.
group
(
3
);
String
dateStr
=
year
+
"-"
+
month
+
"-"
+
datetemp
;
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
shijian
=
null
;
try
{
shijian
=
sdf
.
parse
(
dateStr
);
String
temp
=
sdf
.
format
(
shijian
);
if
(
dateStr
.
equals
(
temp
)){
//输出用户的出生年月日
date
=
shijian
;
}
}
catch
(
ParseException
e
)
{
//数据有误
}
}
}
return
date
;
}
/**
* 获取身份证的性别
* @Author fxj
* @Date 2019-12-25
* @param idNum
* @return
**/
public
static
String
getSex
(
String
idNum
){
Pattern
idNumPattern
=
null
;
Matcher
idNumMatcher
=
null
;
Date
date
=
null
;
//定义判别用户身份证号的正则表达式(要么是15位,要么是18位,最后一位可以为字母)
idNumPattern
=
compile
(
"(\\d{14}[0-9a-zA-Z])|(\\d{17}[0-9a-zA-Z])"
);
//通过Pattern获得Matcher
idNumMatcher
=
idNumPattern
.
matcher
(
idNum
);
//判断用户输入是否为身份证号
String
sex
=
null
;
if
(
idNumMatcher
.
matches
())
{
if
(
idNum
.
length
()
==
18
)
{
if
(
Integer
.
parseInt
(
idNum
.
substring
(
16
).
substring
(
0
,
1
))
%
2
==
0
)
{
// 判断性别
sex
=
"2"
;
}
else
{
sex
=
"1"
;
}
}
else
if
(
idNum
.
length
()
==
15
)
{
if
(
Integer
.
parseInt
(
idNum
.
substring
(
14
,
15
))
%
2
==
0
)
{
sex
=
"2"
;
}
else
{
sex
=
"1"
;
}
}
}
return
sex
;
}
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
f848382a
...
@@ -183,3 +183,4 @@ emp.dispatch.settleDomain.stop=\u6D3E\u589E\u5F02\u5E38\uFF1A \u5BF9\u5E94\u9879
...
@@ -183,3 +183,4 @@ emp.dispatch.settleDomain.stop=\u6D3E\u589E\u5F02\u5E38\uFF1A \u5BF9\u5E94\u9879
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
View file @
f848382a
...
@@ -6,6 +6,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo;
...
@@ -6,6 +6,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
@@ -14,6 +15,7 @@ import lombok.extern.log4j.Log4j2;
...
@@ -14,6 +15,7 @@ import lombok.extern.log4j.Log4j2;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -162,4 +164,27 @@ public class ArchivesDaprUtil {
...
@@ -162,4 +164,27 @@ public class ArchivesDaprUtil {
}
}
return
res
;
return
res
;
}
}
/**
* @Author fxj
* @Description 派单审核通过 同步人员档案 项目档案 合同状态信息
* @Date 19:30 2022/8/1
* @Param
* @return
**/
public
R
<
Boolean
>
updateEmpInfo
(
String
empIdCard
,
String
projectNo
,
String
contractName
){
if
(
Common
.
isEmpty
(
empIdCard
)
||
Common
.
isEmpty
(
projectNo
)
||
Common
.
isEmpty
(
contractName
)){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
}
UpdateEmpVo
vo
=
new
UpdateEmpVo
();
vo
.
setEmpIdCard
(
empIdCard
);
vo
.
setProjectNo
(
projectNo
);
vo
.
setContractName
(
contractName
);
R
<
Boolean
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
()
,
"/temployeeinfo/inner/updateEmpInfo"
,
JSON
.
toJSONString
(
vo
),
UpdateEmpVo
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"更新人员档案、项目档案、合同状态信息失败!"
);
}
return
res
;
}
}
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/CheckDaprUtil.java
View file @
f848382a
...
@@ -3,10 +3,12 @@ package com.yifu.cloud.plus.v1.yifu.common.dapr.util;
...
@@ -3,10 +3,12 @@ package com.yifu.cloud.plus.v1.yifu.common.dapr.util;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckIdCard
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckIdCard
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckMobile
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
@@ -46,4 +48,35 @@ public class CheckDaprUtil {
...
@@ -46,4 +48,35 @@ public class CheckDaprUtil {
return
res
;
return
res
;
}
}
public
R
<
Boolean
>
checkIdCardAndMobile
(
String
empName
,
String
idCard
,
String
mobile
){
if
(
Common
.
isNotNull
(
empName
)
&&
Common
.
isNotNull
(
idCard
)){
TCheckIdCard
tCheckIdCard
=
new
TCheckIdCard
();
tCheckIdCard
.
setIdCard
(
idCard
);
tCheckIdCard
.
setName
(
empName
);
R
<
TCheckIdCard
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprCheckProperties
.
getAppUrl
(),
daprCheckProperties
.
getAppId
(),
"/tcheckidcard/inner/checkIdCardSingle"
,
JSON
.
toJSONString
(
tCheckIdCard
),
TCheckIdCard
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)
||
Common
.
isEmpty
(
res
.
getData
())){
return
R
.
failed
(
"校验身份证信息失败!"
);
}
TCheckIdCard
checkIdCard
=
res
.
getData
();
if
(
Common
.
isEmpty
(
checkIdCard
.
getIsTrue
())
||
CommonConstants
.
ZERO_INT
==
checkIdCard
.
getIsTrue
().
intValue
()){
return
R
.
failed
(
checkIdCard
.
getReason
());
}
}
if
(
Common
.
isNotNull
(
mobile
)){
TCheckMobile
checkMobile
=
new
TCheckMobile
();
checkMobile
.
setMobile
(
mobile
);
R
<
TCheckMobile
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprCheckProperties
.
getAppUrl
(),
daprCheckProperties
.
getAppId
(),
"/tcheckmobile/inner/checkOneMobile"
,
JSON
.
toJSONString
(
checkMobile
),
TCheckMobile
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)
||
Common
.
isEmpty
(
res
.
getData
())){
return
R
.
failed
(
"校验手机号码信息失败!"
);
}
TCheckMobile
cm
=
res
.
getData
();
if
(
Common
.
isEmpty
(
cm
.
getStatus
())
||
!
CommonConstants
.
ONE_STRING
.
equals
(
cm
.
getStatus
())){
return
R
.
failed
(
cm
.
getMessage
());
}
}
return
R
.
ok
();
}
}
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
f848382a
...
@@ -436,6 +436,11 @@ public class InsurancesConstants {
...
@@ -436,6 +436,11 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
SETTLE_MONTH_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更结算月"
;
public
static
final
String
SETTLE_MONTH_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更结算月"
;
/**
* 商险投保退回,无法变更结算月
*/
public
static
final
String
SETTLE_MONTH_CHANGE_BUY_STATUS_FOUR_ERROR
=
"商险投保退回,无法变更结算月"
;
/**
/**
* 商险已减员,无法变更结算月
* 商险已减员,无法变更结算月
*/
*/
...
@@ -493,11 +498,21 @@ public class InsurancesConstants {
...
@@ -493,11 +498,21 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
DEPT_NO_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更项目"
;
public
static
final
String
DEPT_NO_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更项目"
;
/**
* 商险投保退回,无法变更项目
*/
public
static
final
String
DEPT_NO_CHANGE_BUY_STATUS_FOUR_ERROR
=
"商险投保退回,无法变更项目"
;
/**
/**
* 商险已减员,无法变更项目
* 商险已减员,无法变更项目
*/
*/
public
static
final
String
DEPT_NO_CHANGE_REFUND_STATUS_FOUR_ERROR
=
"商险已减员,无法变更项目"
;
public
static
final
String
DEPT_NO_CHANGE_REFUND_STATUS_FOUR_ERROR
=
"商险已减员,无法变更项目"
;
/**
* 商险已减员,无法变更项目
*/
public
static
final
String
DEPT_NO_CHANGE_REFUND_STATUS_ONE_ERROR
=
"商险减员中,无法变更项目"
;
/**
/**
* 商险结算中,无法变更项目
* 商险结算中,无法变更项目
*/
*/
...
@@ -554,9 +569,9 @@ public class InsurancesConstants {
...
@@ -554,9 +569,9 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
REFUND_EXPORT_FAILED
=
"减员办理失败"
;
public
static
final
String
REFUND_EXPORT_FAILED
=
"减员办理失败"
;
/**
/**
* 员工投保
信息
不存在
* 员工投保
记录
不存在
*/
*/
public
static
final
String
USER_DATA_IS_NOT_EXIST
=
"员工投保
信息
不存在"
;
public
static
final
String
USER_DATA_IS_NOT_EXIST
=
"员工投保
记录
不存在"
;
/**
/**
* 存在多条在保记录
* 存在多条在保记录
...
@@ -604,6 +619,20 @@ public class InsurancesConstants {
...
@@ -604,6 +619,20 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
DELETE_INSURANCE_TYPE_STANDARD
=
"删除购买标准"
;
public
static
final
String
DELETE_INSURANCE_TYPE_STANDARD
=
"删除购买标准"
;
/**
* 购买标准不能超过9999999.99
*/
public
static
final
String
INSURANCE_TYPE_STANDARD_MAX_ERROR
=
"购买标准不能超过9999999.99"
;
/**
* 医疗额度不能超过9999999.99
*/
public
static
final
String
MEDICAL_QUOTA_MAX_ERROR
=
"医疗额度不能超过9999999.99"
;
/**
* 身故和残疾不能超过9999999.99
*/
public
static
final
String
DIE_DISABLE_QUOTA_MAX_ERROR
=
"身故和残疾不能超过9999999.99"
;
/**
/**
* 导入减员数据
* 导入减员数据
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/entity/TInsuranceDetail.java
View file @
f848382a
...
@@ -75,6 +75,18 @@ public class TInsuranceDetail extends BaseEntity {
...
@@ -75,6 +75,18 @@ public class TInsuranceDetail extends BaseEntity {
@Schema
(
description
=
"购买标准"
)
@Schema
(
description
=
"购买标准"
)
private
String
buyStandard
;
private
String
buyStandard
;
/**
* 费率
*/
@Schema
(
description
=
"费率"
)
private
BigDecimal
rate
;
/**
* 计费方式
*/
@Schema
(
description
=
"计费方式(0:按天,1:按月)"
)
private
Integer
billingType
;
/**
/**
* 医疗额度
* 医疗额度
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/entity/TInsuranceSettleCancel.java
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
entity
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
entity
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -7,6 +10,8 @@ import java.util.Date;
...
@@ -7,6 +10,8 @@ import java.util.Date;
* 结算信息作废记录表(用于记录项目变更导致推信息送至EKP)
* 结算信息作废记录表(用于记录项目变更导致推信息送至EKP)
* @TableName t_insurance_settle_cancel
* @TableName t_insurance_settle_cancel
*/
*/
@Data
@Tag
(
name
=
"结算信息作废记录"
)
public
class
TInsuranceSettleCancel
implements
Serializable
{
public
class
TInsuranceSettleCancel
implements
Serializable
{
/**
/**
*
*
...
@@ -55,129 +60,4 @@ public class TInsuranceSettleCancel implements Serializable {
...
@@ -55,129 +60,4 @@ public class TInsuranceSettleCancel implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
public
String
getId
()
{
return
id
;
}
/**
*
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
/**
* 结算明细id
*/
public
String
getInsDetailId
()
{
return
insDetailId
;
}
/**
* 结算明细id
*/
public
void
setInsDetailId
(
String
insDetailId
)
{
this
.
insDetailId
=
insDetailId
;
}
/**
* 结算信息表id
*/
public
String
getSettleId
()
{
return
settleId
;
}
/**
* 结算信息表id
*/
public
void
setSettleId
(
String
settleId
)
{
this
.
settleId
=
settleId
;
}
/**
* 项目编码
*/
public
String
getDeptNo
()
{
return
deptNo
;
}
/**
* 项目编码
*/
public
void
setDeptNo
(
String
deptNo
)
{
this
.
deptNo
=
deptNo
;
}
/**
* 项目名称
*/
public
String
getDeptName
()
{
return
deptName
;
}
/**
* 项目名称
*/
public
void
setDeptName
(
String
deptName
)
{
this
.
deptName
=
deptName
;
}
/**
* 订单编号
*/
public
String
getOrderNo
()
{
return
orderNo
;
}
/**
* 订单编号
*/
public
void
setOrderNo
(
String
orderNo
)
{
this
.
orderNo
=
orderNo
;
}
/**
* 推送标识 1成功 0失败
*/
public
Integer
getIsCancelPush
()
{
return
isCancelPush
;
}
/**
* 推送标识 1成功 0失败
*/
public
void
setIsCancelPush
(
Integer
isCancelPush
)
{
this
.
isCancelPush
=
isCancelPush
;
}
/**
* 创建时间
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 创建时间
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 操作人
*/
public
String
getCreateUesr
()
{
return
createUesr
;
}
/**
* 操作人
*/
public
void
setCreateUesr
(
String
createUesr
)
{
this
.
createUesr
=
createUesr
;
}
}
}
\ No newline at end of file
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/LocalDateUtil.java
View file @
f848382a
...
@@ -270,7 +270,37 @@ public class LocalDateUtil {
...
@@ -270,7 +270,37 @@ public class LocalDateUtil {
return
dif
;
return
dif
;
}
}
/**
* 判断两个时间段是否有交集
*
* 思路:将有交集的情况列出,若不符合有交集的情况,则无交集
* 有交集的两种情况
* 1.第一个时间段的开始时间在第二个时间段的开始时间和结束时间当中
* 2.第二个时间段的开始时间在第一个时间段的开始时间和结束时间当中
*
* @author licancan
* @param leftStartDate 第一个时间段的开始时间
* @param leftEndDate 第一个时间段的结束时间
* @param rightStartDate 第二个时间段的开始时间
* @param rightEndDate 第二个时间段的结束时间
* @return {@link boolean} 若有交集, 返回true, 否则返回false
*/
public
static
boolean
hasOverlap
(
LocalDate
leftStartDate
,
LocalDate
leftEndDate
,
LocalDate
rightStartDate
,
LocalDate
rightEndDate
)
{
return
((
leftStartDate
.
equals
(
rightStartDate
)
||
leftStartDate
.
isAfter
(
rightStartDate
))
&&
leftStartDate
.
isBefore
(
rightEndDate
))
||
(
leftStartDate
.
isAfter
(
rightStartDate
)
&&
(
leftStartDate
.
equals
(
rightEndDate
)
||
leftStartDate
.
isBefore
(
rightEndDate
)))
||
((
rightStartDate
.
equals
(
leftStartDate
)
||
rightStartDate
.
isAfter
(
leftStartDate
))
&&
rightStartDate
.
isBefore
(
leftEndDate
))
||
(
rightStartDate
.
isAfter
(
leftStartDate
)
&&
(
rightStartDate
.
equals
(
leftEndDate
)
||
rightStartDate
.
isBefore
(
leftEndDate
)));
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
betweenMonth
(
"2022-10-03"
,
"2022-08-03"
));
boolean
hasOverlap
=
hasOverlap
(
parseLocalDate
(
"2022-08-03"
),
parseLocalDate
(
"2022-08-04"
),
parseLocalDate
(
"2022-08-03"
),
parseLocalDate
(
"2022-08-04"
));
System
.
out
.
println
(
hasOverlap
);
}
}
}
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/ValidityUtil.java
View file @
f848382a
...
@@ -168,6 +168,15 @@ public class ValidityUtil {
...
@@ -168,6 +168,15 @@ public class ValidityUtil {
if
(!
money
.
matches
(
ValidityConstants
.
POSITIVE_INTEGER_PATTERN_TWO_FLOAT
)){
if
(!
money
.
matches
(
ValidityConstants
.
POSITIVE_INTEGER_PATTERN_TWO_FLOAT
)){
return
Boolean
.
FALSE
;
return
Boolean
.
FALSE
;
}
}
return
Boolean
.
TRUE
;
}
/**
* 判断金额是否大于9999999.99
* @param money 金额
* @return boolean
*/
public
static
boolean
validateMoneyMax
(
final
String
money
)
{
BigDecimal
bigDecimalMoney
=
new
BigDecimal
(
money
);
BigDecimal
bigDecimalMoney
=
new
BigDecimal
(
money
);
boolean
max
=
bigDecimalMoney
.
compareTo
(
CommonConstants
.
MONEY_MAX
)
>
0
;
boolean
max
=
bigDecimalMoney
.
compareTo
(
CommonConstants
.
MONEY_MAX
)
>
0
;
if
(
max
){
if
(
max
){
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceAddParam.java
View file @
f848382a
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
/**
* @author licancan
* @author licancan
...
@@ -134,6 +135,18 @@ public class InsuranceAddParam implements Serializable {
...
@@ -134,6 +135,18 @@ public class InsuranceAddParam implements Serializable {
@JsonIgnore
@JsonIgnore
private
Long
insuranceTypeId
;
private
Long
insuranceTypeId
;
/**
* 费率
*/
@JsonIgnore
private
BigDecimal
rate
;
/**
* 计费方式
*/
@JsonIgnore
private
Integer
billingType
;
/**
/**
* 商险购买地省code
* 商险购买地省code
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceBatchParam.java
View file @
f848382a
...
@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
...
@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
/**
/**
...
@@ -130,6 +131,18 @@ public class InsuranceBatchParam implements Serializable {
...
@@ -130,6 +131,18 @@ public class InsuranceBatchParam implements Serializable {
@JsonIgnore
@JsonIgnore
private
Long
insuranceTypeId
;
private
Long
insuranceTypeId
;
/**
* 费率
*/
@JsonIgnore
private
BigDecimal
rate
;
/**
* 计费方式
*/
@JsonIgnore
private
Integer
billingType
;
/**
/**
* 商险购买地省code
* 商险购买地省code
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceListByIdCardVo.java
0 → 100644
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceDetail
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
/**
* @author zhaji
* @description TODO
* @date 2022-08-01 18:11:59
*/
@Data
public
class
InsuranceListByIdCardVo
extends
TInsuranceDetail
{
/**
* 购买月数
*/
@Schema
(
description
=
"购买月数"
)
private
Long
buyMonth
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
f848382a
...
@@ -3,6 +3,9 @@ package com.yifu.cloud.plus.v1.yifu.insurances.controller;
...
@@ -3,6 +3,9 @@ package com.yifu.cloud.plus.v1.yifu.insurances.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceCompany
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceDetail
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceDetail
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.Dept
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.Dept
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceDetailService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceDetailService
;
...
@@ -37,6 +40,21 @@ public class TInsuranceDetailController {
...
@@ -37,6 +40,21 @@ public class TInsuranceDetailController {
/***********************商险办理********************************/
/***********************商险办理********************************/
/**
* 每日定时刷新商险到期数据
*
* @author licancan
* @param
* @return void
*/
@Operation
(
summary
=
"每日定时刷新商险到期数据"
,
description
=
"每日定时刷新商险到期数据"
)
@SysLog
(
"每日定时刷新商险到期数据"
)
@Inner
@GetMapping
(
"/inner/updateOverdueByTask"
)
public
void
updateOverdueByTask
()
{
tInsuranceDetailService
.
updateOverdueByTask
();
}
/**
/**
* EKP2INSURANCES 更新结算状态
* EKP2INSURANCES 更新结算状态
*
*
...
@@ -409,14 +427,13 @@ public class TInsuranceDetailController {
...
@@ -409,14 +427,13 @@ public class TInsuranceDetailController {
* 出险
* 出险
*
*
* @author zhaji
* @author zhaji
* @param userName 姓名
* @param empIdcardNo 身份证
* @param empIdcardNo 身份证
* @return {@link R<List< RefundExportListVo >>}
* @return {@link R<List< RefundExportListVo >>}
*/
*/
@Operation
(
summary
=
"紧急出险"
,
description
=
"紧急出险"
)
@Operation
(
summary
=
"紧急出险"
,
description
=
"紧急出险"
)
@GetMapping
(
"/urgentUpdateIsUse"
)
@GetMapping
(
"/urgentUpdateIsUse"
)
public
R
urgentUpdateIsUse
(
String
userName
,
String
empIdcardNo
)
{
public
R
urgentUpdateIsUse
(
String
empIdcardNo
)
{
return
tInsuranceDetailService
.
urgentUpdateIsUse
(
userName
,
empIdcardNo
);
return
tInsuranceDetailService
.
urgentUpdateIsUse
(
empIdcardNo
);
}
}
/**
/**
...
@@ -426,9 +443,8 @@ public class TInsuranceDetailController {
...
@@ -426,9 +443,8 @@ public class TInsuranceDetailController {
* @return
* @return
*/
*/
@Operation
(
summary
=
"根据身份证查询所有的商险列表"
,
description
=
"根据身份证查询所有的商险列表"
)
@Operation
(
summary
=
"根据身份证查询所有的商险列表"
,
description
=
"根据身份证查询所有的商险列表"
)
@PostMapping
(
"/getInsuranceListByIdCard"
)
@GetMapping
(
"/getInsuranceListByIdCard"
)
public
R
<
IPage
<
TInsuranceDetail
>>
getInsuranceListByIdCard
(
Page
<
TInsuranceDetail
>
page
,
public
R
<
IPage
<
InsuranceListByIdCardVo
>>
getInsuranceListByIdCard
(
Page
page
,
String
idCard
)
{
@RequestParam
String
idCard
)
{
return
new
R
<>(
tInsuranceDetailService
.
getInsuranceListByIdCard
(
page
,
idCard
));
return
new
R
<>(
tInsuranceDetailService
.
getInsuranceListByIdCard
(
page
,
idCard
));
}
}
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceTypeController.java
View file @
f848382a
...
@@ -41,8 +41,8 @@ public class TInsuranceTypeController {
...
@@ -41,8 +41,8 @@ public class TInsuranceTypeController {
* @return
* @return
*/
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@
Pos
tMapping
(
"/page"
)
@
Ge
tMapping
(
"/page"
)
public
R
<
IPage
<
InsuranceTypeVo
>>
getInsuranceTypePage
(
Page
<
TInsuranceType
>
page
,
@RequestBody
TInsuranceType
insuranceType
)
{
public
R
<
IPage
<
InsuranceTypeVo
>>
getInsuranceTypePage
(
Page
<
TInsuranceType
>
page
,
TInsuranceType
insuranceType
)
{
return
R
.
ok
(
insuranceTypeService
.
pageDiy
(
page
,
insuranceType
));
return
R
.
ok
(
insuranceTypeService
.
pageDiy
(
page
,
insuranceType
));
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
View file @
f848382a
...
@@ -176,5 +176,5 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
...
@@ -176,5 +176,5 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
* @date 2022-08-01
* @date 2022-08-01
* @return
* @return
*/
*/
IPage
<
TInsuranceDetail
>
getInsuranceListByIdCard
(
Page
<
TInsuranceDetail
>
page
,
@Param
(
"idCard"
)
String
idCard
);
IPage
<
InsuranceListByIdCardVo
>
getInsuranceListByIdCard
(
Page
<
TInsuranceDetail
>
page
,
@Param
(
"idCard"
)
String
idCard
);
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/TInsuranceDetailService.java
View file @
f848382a
...
@@ -19,6 +19,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -19,6 +19,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
/***********************商险办理********************************/
/***********************商险办理********************************/
/**
* 每日定时刷新商险到期数据
*
* @author licancan
* @param
* @return void
*/
void
updateOverdueByTask
();
/**
/**
* EKP2INSURANCES 更新结算状态
* EKP2INSURANCES 更新结算状态
*
*
...
@@ -280,11 +289,10 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -280,11 +289,10 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
* EKP紧急出险
* EKP紧急出险
*
*
* @author zhaji
* @author zhaji
* @param userName
* @param empIdcardNo
* @param empIdcardNo
* @return {@link R}
* @return {@link R}
*/
*/
R
urgentUpdateIsUse
(
String
userName
,
String
empIdcardNo
);
R
urgentUpdateIsUse
(
String
empIdcardNo
);
/**
/**
* 根据身份证查询商险列表
* 根据身份证查询商险列表
...
@@ -293,6 +301,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -293,6 +301,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
* @param
* @param
* @return {@link R}
* @return {@link R}
*/
*/
IPage
<
TInsuranceDetail
>
getInsuranceListByIdCard
(
Page
<
TInsuranceDetail
>
page
,
String
idCard
);
IPage
<
InsuranceListByIdCardVo
>
getInsuranceListByIdCard
(
Page
<
TInsuranceDetail
>
page
,
String
idCard
);
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
f848382a
This diff is collapsed.
Click to expand it.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceTypeRateServiceImpl.java
View file @
f848382a
...
@@ -10,10 +10,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
...
@@ -10,10 +10,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.insurances.constants.InsurancesConstants
;
import
com.yifu.cloud.plus.v1.yifu.insurances.constants.InsurancesConstants
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceCompany
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceOperate
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceType
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeRate
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.TInsuranceTypeRateMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.TInsuranceTypeRateMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceOperateService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceOperateService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceTypeRateService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.TInsuranceTypeRateService
;
...
@@ -58,6 +55,7 @@ public class TInsuranceTypeRateServiceImpl extends ServiceImpl<TInsuranceTypeRat
...
@@ -58,6 +55,7 @@ public class TInsuranceTypeRateServiceImpl extends ServiceImpl<TInsuranceTypeRat
}
}
LambdaQueryWrapper
<
TInsuranceTypeRate
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
TInsuranceTypeRate
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
TInsuranceTypeRate:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
).
eq
(
TInsuranceTypeRate:
:
getInsuranceTypeId
,
id
);
queryWrapper
.
eq
(
TInsuranceTypeRate:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
).
eq
(
TInsuranceTypeRate:
:
getInsuranceTypeId
,
id
);
queryWrapper
.
orderByDesc
(
TInsuranceTypeRate:
:
getCreateTime
);
return
R
.
ok
(
list
(
queryWrapper
));
return
R
.
ok
(
list
(
queryWrapper
));
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceTypeStandardServiceImpl.java
View file @
f848382a
...
@@ -61,6 +61,7 @@ public class TInsuranceTypeStandardServiceImpl extends ServiceImpl<TInsuranceTyp
...
@@ -61,6 +61,7 @@ public class TInsuranceTypeStandardServiceImpl extends ServiceImpl<TInsuranceTyp
}
}
LambdaQueryWrapper
<
TInsuranceTypeStandard
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
TInsuranceTypeStandard
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
TInsuranceTypeStandard:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
).
eq
(
TInsuranceTypeStandard:
:
getInsuranceTypeId
,
id
);
queryWrapper
.
eq
(
TInsuranceTypeStandard:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
).
eq
(
TInsuranceTypeStandard:
:
getInsuranceTypeId
,
id
);
queryWrapper
.
orderByDesc
(
TInsuranceTypeStandard
::
getCreateTime
);
return
R
.
ok
(
list
(
queryWrapper
));
return
R
.
ok
(
list
(
queryWrapper
));
}
}
...
@@ -124,12 +125,21 @@ public class TInsuranceTypeStandardServiceImpl extends ServiceImpl<TInsuranceTyp
...
@@ -124,12 +125,21 @@ public class TInsuranceTypeStandardServiceImpl extends ServiceImpl<TInsuranceTyp
if
(!
ValidityUtil
.
validateMoney
(
buyStandard
)){
if
(!
ValidityUtil
.
validateMoney
(
buyStandard
)){
return
R
.
failed
(
"购买标准格式不正确"
);
return
R
.
failed
(
"购买标准格式不正确"
);
}
}
if
(!
ValidityUtil
.
validateMoneyMax
(
buyStandard
)){
return
R
.
failed
(
InsurancesConstants
.
INSURANCE_TYPE_STANDARD_MAX_ERROR
);
}
if
(!
ValidityUtil
.
validateMoney
(
medicalQuota
)){
if
(!
ValidityUtil
.
validateMoney
(
medicalQuota
)){
return
R
.
failed
(
"医疗额度格式不正确"
);
return
R
.
failed
(
"医疗额度格式不正确"
);
}
}
if
(!
ValidityUtil
.
validateMoneyMax
(
medicalQuota
)){
return
R
.
failed
(
InsurancesConstants
.
MEDICAL_QUOTA_MAX_ERROR
);
}
if
(!
ValidityUtil
.
validateMoney
(
dieDisableQuota
)){
if
(!
ValidityUtil
.
validateMoney
(
dieDisableQuota
)){
return
R
.
failed
(
"身故或残疾额度格式不正确"
);
return
R
.
failed
(
"身故或残疾额度格式不正确"
);
}
}
if
(!
ValidityUtil
.
validateMoneyMax
(
dieDisableQuota
)){
return
R
.
failed
(
InsurancesConstants
.
DIE_DISABLE_QUOTA_MAX_ERROR
);
}
LambdaQueryWrapper
<
TInsuranceTypeStandard
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
TInsuranceTypeStandard
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
TInsuranceTypeStandard:
:
getInsuranceTypeId
,
insuranceTypeStandard
.
getInsuranceTypeId
())
queryWrapper
.
eq
(
TInsuranceTypeStandard:
:
getInsuranceTypeId
,
insuranceTypeStandard
.
getInsuranceTypeId
())
.
eq
(
TInsuranceTypeStandard:
:
getBuyStandard
,
insuranceTypeStandard
.
getBuyStandard
())
.
eq
(
TInsuranceTypeStandard:
:
getBuyStandard
,
insuranceTypeStandard
.
getBuyStandard
())
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
f848382a
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
<result
property=
"insuranceTypeName"
column=
"INSURANCE_TYPE_NAME"
jdbcType=
"VARCHAR"
/>
<result
property=
"insuranceTypeName"
column=
"INSURANCE_TYPE_NAME"
jdbcType=
"VARCHAR"
/>
<result
property=
"insuranceTypeId"
column=
"INSURANCE_TYPE_ID"
jdbcType=
"BIGINT"
/>
<result
property=
"insuranceTypeId"
column=
"INSURANCE_TYPE_ID"
jdbcType=
"BIGINT"
/>
<result
property=
"buyStandard"
column=
"BUY_STANDARD"
jdbcType=
"VARCHAR"
/>
<result
property=
"buyStandard"
column=
"BUY_STANDARD"
jdbcType=
"VARCHAR"
/>
<result
property=
"rate"
column=
"RATE"
jdbcType=
"DECIMAL"
/>
<result
property=
"billingType"
column=
"BILLING_TYPE"
jdbcType=
"TINYINT"
/>
<result
property=
"medicalQuota"
column=
"MEDICAL_QUOTA"
jdbcType=
"VARCHAR"
/>
<result
property=
"medicalQuota"
column=
"MEDICAL_QUOTA"
jdbcType=
"VARCHAR"
/>
<result
property=
"dieDisableQuota"
column=
"DIE_DISABLE_QUOTA"
jdbcType=
"VARCHAR"
/>
<result
property=
"dieDisableQuota"
column=
"DIE_DISABLE_QUOTA"
jdbcType=
"VARCHAR"
/>
<result
property=
"policyNo"
column=
"POLICY_NO"
jdbcType=
"VARCHAR"
/>
<result
property=
"policyNo"
column=
"POLICY_NO"
jdbcType=
"VARCHAR"
/>
...
@@ -54,7 +56,7 @@
...
@@ -54,7 +56,7 @@
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID,EMP_NAME,
ID,EMP_NAME,
EMP_IDCARD_NO,DEPT_NO,POST,INSURANCE_COMPANY_NAME,INSURANCE_TYPE_NAME,
EMP_IDCARD_NO,DEPT_NO,POST,INSURANCE_COMPANY_NAME,INSURANCE_TYPE_NAME,
INSURANCE_TYPE_ID,BUY_STANDARD,MEDICAL_QUOTA,DIE_DISABLE_QUOTA,POLICY_NO,
INSURANCE_TYPE_ID,BUY_STANDARD,
RATE,BILLING_TYPE,
MEDICAL_QUOTA,DIE_DISABLE_QUOTA,POLICY_NO,
POLICY_START,POLICY_END,POLICY_EFFECT,
POLICY_START,POLICY_END,POLICY_EFFECT,
BATCH_DATE,SETTLE_MONTH,INVOICE_NO,
BATCH_DATE,SETTLE_MONTH,INVOICE_NO,
BUY_TYPE,INSURANCE_PROVINCE,INSURANCE_PROVINCE_NAME,INSURANCE_CITY,INSURANCE_CITY_NAME,
BUY_TYPE,INSURANCE_PROVINCE,INSURANCE_PROVINCE_NAME,INSURANCE_CITY,INSURANCE_CITY_NAME,
...
@@ -761,13 +763,14 @@
...
@@ -761,13 +763,14 @@
</update>
</update>
<!--getInsuranceListByIdCard-->
<!--getInsuranceListByIdCard-->
<select
id=
"getInsuranceListByIdCard"
result
Map=
"BaseResultMap
"
>
<select
id=
"getInsuranceListByIdCard"
result
Type=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceListByIdCardVo
"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM t_insurance_detail
FROM t_insurance_detail
<where>
<where>
1=1
1=1
AND EMP_IDCARD_NO = #{idCard}
AND EMP_IDCARD_NO = #{idCard}
AND IS_EFFECT = 0
</where>
</where>
ORDER BY CREATE_TIME desc
ORDER BY CREATE_TIME desc
</select>
</select>
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceTypeMapper.xml
View file @
f848382a
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
INSURANCE_TYPE_ID = #{id}
INSURANCE_TYPE_ID = #{id}
and
and
DELETE_FLAG = 0
DELETE_FLAG = 0
ORDER BY CREATE_TIME DESC
</select>
</select>
<select
id=
"selectInsuranceTypeStandardList"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeStandard"
>
<select
id=
"selectInsuranceTypeStandardList"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeStandard"
>
...
@@ -52,6 +53,7 @@
...
@@ -52,6 +53,7 @@
INSURANCE_TYPE_ID = #{id}
INSURANCE_TYPE_ID = #{id}
and
and
DELETE_FLAG = 0
DELETE_FLAG = 0
ORDER BY CREATE_TIME DESC
</select>
</select>
<select
id=
"selectInsuranceTypePage"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
<select
id=
"selectInsuranceTypePage"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
select
select
...
@@ -69,7 +71,7 @@
...
@@ -69,7 +71,7 @@
a.INSURANCE_COMPANY_ID = b.ID
a.INSURANCE_COMPANY_ID = b.ID
and
and
a.DELETE_FLAG = 0
a.DELETE_FLAG = 0
ORDER BY a.
create_time
DESC
ORDER BY a.
CREATE_TIME
DESC
</select>
</select>
<select
id=
"getInsuranceTypeDetailById"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
<select
id=
"getInsuranceTypeDetailById"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
select
select
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/constants/DispatchConstants.java
View file @
f848382a
...
@@ -34,6 +34,14 @@ public class DispatchConstants {
...
@@ -34,6 +34,14 @@ public class DispatchConstants {
public
static
final
String
DISPATCH_SOCIAL_REDUCE
=
"社保派减"
;
public
static
final
String
DISPATCH_SOCIAL_REDUCE
=
"社保派减"
;
public
static
final
String
SOCIAL_RECORD_ROSTER_EXPORT
=
"社保花名册导出"
;
public
static
final
String
SOCIAL_RECORD_ROSTER_EXPORT
=
"社保花名册导出"
;
public
static
final
String
SOCIAL_RECORD_EXPORT
=
"公积金变更清册导出"
;
public
static
final
String
SOCIAL_RECORD_EXPORT
=
"公积金变更清册导出"
;
public
static
final
String
DISPATCH_PENSION
=
"养老、"
;
public
static
final
String
DISPATCH_MEDICAL
=
"医疗、"
;
public
static
final
String
DISPATCH_BIRTH
=
"生育、"
;
public
static
final
String
DISPATCH_INJURY
=
"工伤、"
;
public
static
final
String
DISPATCH_UNEMP
=
"失业、"
;
public
static
final
String
DISPATCH_BIGMAILMENT
=
"大病、"
;
public
static
final
String
DISPATCH_FUND
=
"公积金、"
;
/**
/**
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
f848382a
...
@@ -566,4 +566,13 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -566,4 +566,13 @@ public class TDispatchInfo extends BaseEntity {
@ExcelProperty
(
"身份证所在地"
)
@ExcelProperty
(
"身份证所在地"
)
private
String
idCardAddress
;
private
String
idCardAddress
;
/**
* 申请编码
*/
@ExcelAttribute
(
name
=
"申请编码"
)
@Schema
(
description
=
"申请编码"
)
@ExcelProperty
(
"申请编码"
)
private
String
applyNo
;
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TProvidentFund.java
View file @
f848382a
...
@@ -62,7 +62,7 @@ public class TProvidentFund extends BaseEntity {
...
@@ -62,7 +62,7 @@ public class TProvidentFund extends BaseEntity {
/**
/**
* 公积金户名称
* 公积金户名称
*/
*/
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"公积金户名称"
)
@Schema
(
description
=
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
private
String
providentHouseholdName
;
private
String
providentHouseholdName
;
...
@@ -247,6 +247,7 @@ public class TProvidentFund extends BaseEntity {
...
@@ -247,6 +247,7 @@ public class TProvidentFund extends BaseEntity {
@Schema
(
description
=
"单边小数点 ,如:四舍五入、见角进元等"
)
@Schema
(
description
=
"单边小数点 ,如:四舍五入、见角进元等"
)
@ExcelProperty
(
"单边小数点 ,如:四舍五入、见角进元等"
)
@ExcelProperty
(
"单边小数点 ,如:四舍五入、见角进元等"
)
private
String
fundPayPoint
;
private
String
fundPayPoint
;
/**
/**
* 流程实例ID
* 流程实例ID
*/
*/
...
@@ -338,6 +339,15 @@ public class TProvidentFund extends BaseEntity {
...
@@ -338,6 +339,15 @@ public class TProvidentFund extends BaseEntity {
@Schema
(
description
=
"补缴是否采用最新基数0是1否"
)
@Schema
(
description
=
"补缴是否采用最新基数0是1否"
)
@ExcelProperty
(
"补缴是否采用最新基数0是1否"
)
@ExcelProperty
(
"补缴是否采用最新基数0是1否"
)
private
String
insuranceIsLatestCardinality
;
private
String
insuranceIsLatestCardinality
;
/**
* 补缴政策
*/
@Length
(
max
=
255
,
message
=
"补缴政策不能超过255个字符"
)
@ExcelAttribute
(
name
=
"补缴政策"
,
maxLength
=
255
)
@Schema
(
description
=
"补缴政策"
)
@ExcelProperty
(
"补缴政策"
)
private
String
payPolicy
;
/**
/**
* 是否含当月 0:是,1:否
* 是否含当月 0:是,1:否
*/
*/
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocialInfo.java
View file @
f848382a
...
@@ -61,7 +61,7 @@ public class TSocialInfo extends BaseEntity {
...
@@ -61,7 +61,7 @@ public class TSocialInfo extends BaseEntity {
/**
/**
* 社保户名称
* 社保户名称
*/
*/
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"社保户名称"
)
@Schema
(
description
=
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
private
String
socialHouseholdName
;
private
String
socialHouseholdName
;
...
@@ -568,6 +568,15 @@ public class TSocialInfo extends BaseEntity {
...
@@ -568,6 +568,15 @@ public class TSocialInfo extends BaseEntity {
@Schema
(
description
=
"补缴是否采用最新基数0是1否"
)
@Schema
(
description
=
"补缴是否采用最新基数0是1否"
)
@ExcelProperty
(
"补缴是否采用最新基数0是1否"
)
@ExcelProperty
(
"补缴是否采用最新基数0是1否"
)
private
String
insuranceIsLatestCardinality
;
private
String
insuranceIsLatestCardinality
;
/**
* 补缴政策
*/
@Length
(
max
=
255
,
message
=
"补缴政策不能超过255个字符"
)
@ExcelAttribute
(
name
=
"补缴政策"
,
maxLength
=
255
)
@Schema
(
description
=
"补缴政策"
)
@ExcelProperty
(
"补缴政策"
)
private
String
payPolicy
;
/**
/**
* 派减办理人
* 派减办理人
*/
*/
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/FundHandleExportVo.java
View file @
f848382a
...
@@ -71,19 +71,19 @@ public class FundHandleExportVo implements Serializable {
...
@@ -71,19 +71,19 @@ public class FundHandleExportVo implements Serializable {
/**
/**
* 公积金缴纳地-省
* 公积金缴纳地-省
*/
*/
@ExcelAttribute
(
name
=
"公积金缴纳地-省"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
""
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"公积金缴纳地-省"
,
maxLength
=
32
,
isArea
=
true
,
needExport
=
true
)
@ExcelProperty
(
"公积金缴纳地-省"
)
@ExcelProperty
(
"公积金缴纳地-省"
)
private
String
fundProvince
;
private
String
fundProvince
;
/**
/**
* 公积金缴纳地-市
* 公积金缴纳地-市
*/
*/
@ExcelAttribute
(
name
=
"公积金缴纳地-市"
,
maxLength
=
32
,
is
DataId
=
true
,
is
Area
=
true
,
parentField
=
"fundProvince"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"公积金缴纳地-市"
,
maxLength
=
32
,
isArea
=
true
,
parentField
=
"fundProvince"
,
needExport
=
true
)
@ExcelProperty
(
"公积金缴纳地-市"
)
@ExcelProperty
(
"公积金缴纳地-市"
)
private
String
fundCity
;
private
String
fundCity
;
/**
/**
* 公积金缴纳地-县
* 公积金缴纳地-县
*/
*/
@ExcelAttribute
(
name
=
"公积金缴纳地-县"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
"fundCity"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"公积金缴纳地-县"
,
maxLength
=
32
,
isArea
=
true
,
parentField
=
"fundCity"
,
needExport
=
true
)
@ExcelProperty
(
"公积金缴纳地-县"
)
@ExcelProperty
(
"公积金缴纳地-县"
)
private
String
fundTown
;
private
String
fundTown
;
/**
/**
...
@@ -131,7 +131,7 @@ public class FundHandleExportVo implements Serializable {
...
@@ -131,7 +131,7 @@ public class FundHandleExportVo implements Serializable {
/**
/**
* 公积金户
* 公积金户
*/
*/
@ExcelAttribute
(
name
=
"公积金户"
,
errorInfo
=
"公积金户不能为空"
,
maxLength
=
32
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"公积金户"
,
errorInfo
=
"公积金户不能为空"
,
maxLength
=
50
,
needExport
=
true
)
@ExcelProperty
(
"公积金户"
)
@ExcelProperty
(
"公积金户"
)
private
String
providentHouseholdName
;
private
String
providentHouseholdName
;
/**
/**
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/SocialHandleExportVo.java
View file @
f848382a
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
social
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
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.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.util.Date
;
import
java.time.LocalDateTime
;
/**
/**
* @Author fxj
* @Author fxj
...
@@ -178,14 +172,14 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -178,14 +172,14 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"合同起始时间"
,
errorInfo
=
"合同起始时间不能为空"
,
dateFormat
=
DateUtil
.
ISO_DATE_FORMAT
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"合同起始时间"
,
errorInfo
=
"合同起始时间不能为空"
,
dateFormat
=
DateUtil
.
ISO_DATE_FORMAT
,
needExport
=
true
)
@Schema
(
description
=
"合同起始时间"
)
@Schema
(
description
=
"合同起始时间"
)
@ExcelProperty
(
"合同起始时间"
)
@ExcelProperty
(
"合同起始时间"
)
private
Local
Date
contractStart
;
private
Date
contractStart
;
/**
/**
* 合同到期时间
* 合同到期时间
*/
*/
@ExcelAttribute
(
name
=
"合同到期时间"
,
needExport
=
true
,
dateFormat
=
DateUtil
.
ISO_DATE_FORMAT
)
@ExcelAttribute
(
name
=
"合同到期时间"
,
needExport
=
true
,
dateFormat
=
DateUtil
.
ISO_DATE_FORMAT
)
@Schema
(
description
=
"合同到期时间"
)
@Schema
(
description
=
"合同到期时间"
)
@ExcelProperty
(
"合同到期时间"
)
@ExcelProperty
(
"合同到期时间"
)
private
Local
Date
contractEnd
;
private
Date
contractEnd
;
/**
/**
* 创建人姓名
* 创建人姓名
*/
*/
...
@@ -208,7 +202,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -208,7 +202,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"缴纳类型"
,
isDataId
=
true
,
readConverterExp
=
"0=最低缴纳,1=自定义,2=最高缴纳"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"缴纳类型"
,
isDataId
=
true
,
readConverterExp
=
"0=最低缴纳,1=自定义,2=最高缴纳"
,
needExport
=
true
)
@Schema
(
description
=
"缴纳类型(0最低缴纳、1自定义、2最高缴纳)"
)
@Schema
(
description
=
"缴纳类型(0最低缴纳、1自定义、2最高缴纳)"
)
@ExcelProperty
(
"缴纳类型"
)
@ExcelProperty
(
"缴纳类型"
)
private
Integer
paymentType
;
private
String
paymentType
;
/**
/**
* 社保户
* 社保户
*/
*/
...
@@ -222,28 +216,28 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -222,28 +216,28 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"社保缴纳地-省"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
""
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"社保缴纳地-省"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
""
,
needExport
=
true
)
@Schema
(
description
=
"社保缴纳地-省"
)
@Schema
(
description
=
"社保缴纳地-省"
)
@ExcelProperty
(
"社保缴纳地-省"
)
@ExcelProperty
(
"社保缴纳地-省"
)
private
Integer
socialProvince
;
private
String
socialProvince
;
/**
/**
* 缴纳地-市
* 缴纳地-市
*/
*/
@ExcelAttribute
(
name
=
"社保缴纳地-市"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
"socialProvince"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"社保缴纳地-市"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
"socialProvince"
,
needExport
=
true
)
@Schema
(
description
=
"社保缴纳地-市"
)
@Schema
(
description
=
"社保缴纳地-市"
)
@ExcelProperty
(
"社保缴纳地-市"
)
@ExcelProperty
(
"社保缴纳地-市"
)
private
Integer
socialCity
;
private
String
socialCity
;
/**
/**
* 缴纳地-县
* 缴纳地-县
*/
*/
@ExcelAttribute
(
name
=
"社保缴纳地-县"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
"socialCity"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"社保缴纳地-县"
,
maxLength
=
32
,
isDataId
=
true
,
isArea
=
true
,
parentField
=
"socialCity"
,
needExport
=
true
)
@Schema
(
description
=
"社保缴纳地-县"
)
@Schema
(
description
=
"社保缴纳地-县"
)
@ExcelProperty
(
"社保缴纳地-县"
)
@ExcelProperty
(
"社保缴纳地-县"
)
private
Integer
socialTown
;
private
String
socialTown
;
/**
/**
* 养老起缴日期
* 养老起缴日期
*/
*/
@ExcelAttribute
(
name
=
"养老起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"养老起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"养老起缴日期"
)
@Schema
(
description
=
"养老起缴日期"
)
@ExcelProperty
(
"养老起缴日期"
)
@ExcelProperty
(
"养老起缴日期"
)
private
LocalDateTim
e
pensionStart
;;
private
Dat
e
pensionStart
;;
/**
/**
* 养老基数
* 养老基数
...
@@ -259,7 +253,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -259,7 +253,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"医疗起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"医疗起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"医疗起缴日期"
)
@Schema
(
description
=
"医疗起缴日期"
)
@ExcelProperty
(
"医疗起缴日期"
)
@ExcelProperty
(
"医疗起缴日期"
)
private
LocalDateTim
e
medicalStart
;
private
Dat
e
medicalStart
;
/**
/**
* 医疗基数
* 医疗基数
*/
*/
...
@@ -273,7 +267,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -273,7 +267,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"失业起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"失业起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"失业起缴日期"
)
@Schema
(
description
=
"失业起缴日期"
)
@ExcelProperty
(
"失业起缴日期"
)
@ExcelProperty
(
"失业起缴日期"
)
private
LocalDateTim
e
unemployStart
;
private
Dat
e
unemployStart
;
/**
/**
* 失业基数
* 失业基数
*/
*/
...
@@ -287,7 +281,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -287,7 +281,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"工伤起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"工伤起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"工伤起缴日期"
)
@Schema
(
description
=
"工伤起缴日期"
)
@ExcelProperty
(
"工伤起缴日期"
)
@ExcelProperty
(
"工伤起缴日期"
)
private
LocalDateTim
e
workInjuryStart
;
private
Dat
e
workInjuryStart
;
/**
/**
* 工伤基数
* 工伤基数
*/
*/
...
@@ -301,7 +295,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -301,7 +295,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"生育起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"生育起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"生育起缴日期"
)
@Schema
(
description
=
"生育起缴日期"
)
@ExcelProperty
(
"生育起缴日期"
)
@ExcelProperty
(
"生育起缴日期"
)
private
LocalDateTim
e
birthStart
;
private
Dat
e
birthStart
;
/**
/**
* 生育基数
* 生育基数
*/
*/
...
@@ -315,7 +309,7 @@ public class SocialHandleExportVo implements Serializable {
...
@@ -315,7 +309,7 @@ public class SocialHandleExportVo implements Serializable {
@ExcelAttribute
(
name
=
"大病起缴日期"
,
needExport
=
true
)
@ExcelAttribute
(
name
=
"大病起缴日期"
,
needExport
=
true
)
@Schema
(
description
=
"大病起缴日期"
)
@Schema
(
description
=
"大病起缴日期"
)
@ExcelProperty
(
"大病起缴日期"
)
@ExcelProperty
(
"大病起缴日期"
)
private
LocalDateTim
e
bigailmentStart
;
private
Dat
e
bigailmentStart
;
/**
/**
* 大病缴纳基数
* 大病缴纳基数
*/
*/
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
View file @
f848382a
...
@@ -257,8 +257,8 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -257,8 +257,8 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
/**
/**
* 社保户
* 社保户
*/
*/
@Length
(
max
=
32
,
message
=
"社保户 不能超过32
个字符"
)
@Length
(
max
=
50
,
message
=
"社保户 不能超过50
个字符"
)
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
50
)
@Schema
(
description
=
"社保户"
)
@Schema
(
description
=
"社保户"
)
@ExcelProperty
(
"社保户"
)
@ExcelProperty
(
"社保户"
)
private
String
socialHousehold
;
private
String
socialHousehold
;
...
@@ -362,8 +362,8 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -362,8 +362,8 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
/**
/**
* 公积金户
* 公积金户
*/
*/
@Length
(
max
=
32
,
message
=
"公积金户 不能超过32
个字符"
)
@Length
(
max
=
50
,
message
=
"公积金户 不能超过50
个字符"
)
@ExcelAttribute
(
name
=
"公积金户"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"公积金户"
,
maxLength
=
50
)
@Schema
(
description
=
"公积金户"
)
@Schema
(
description
=
"公积金户"
)
@ExcelProperty
(
"公积金户"
)
@ExcelProperty
(
"公积金户"
)
private
String
providentHousehold
;
private
String
providentHousehold
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
View file @
f848382a
...
@@ -93,12 +93,12 @@ public class TDispatchInfoExportVo {
...
@@ -93,12 +93,12 @@ public class TDispatchInfoExportVo {
@ExcelProperty
(
"派单项"
)
@ExcelProperty
(
"派单项"
)
private
String
dispatchItem
;
private
String
dispatchItem
;
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
50
)
@Schema
(
description
=
"社保户"
)
@Schema
(
description
=
"社保户"
)
@ExcelProperty
(
"社保户"
)
@ExcelProperty
(
"社保户"
)
private
String
socialHouseholdName
;
private
String
socialHouseholdName
;
@ExcelAttribute
(
name
=
"公积金户"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"公积金户"
,
maxLength
=
50
)
@Schema
(
description
=
"公积金户"
)
@Schema
(
description
=
"公积金户"
)
@ExcelProperty
(
"公积金户"
)
@ExcelProperty
(
"公积金户"
)
private
String
providentHouseholdName
;
private
String
providentHouseholdName
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoPageVo.java
View file @
f848382a
...
@@ -39,7 +39,7 @@ public class TDispatchInfoPageVo extends TDispatchInfo {
...
@@ -39,7 +39,7 @@ public class TDispatchInfoPageVo extends TDispatchInfo {
/**
/**
* 社保户名称
* 社保户名称
*/
*/
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"社保户名称"
)
@Schema
(
description
=
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
private
String
socialHouseholdName
;
private
String
socialHouseholdName
;
...
@@ -47,7 +47,7 @@ public class TDispatchInfoPageVo extends TDispatchInfo {
...
@@ -47,7 +47,7 @@ public class TDispatchInfoPageVo extends TDispatchInfo {
/**
/**
* 公积金户名称
* 公积金户名称
*/
*/
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"公积金户名称"
)
@Schema
(
description
=
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
private
String
providentHouseholdName
;
private
String
providentHouseholdName
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoSearchVo.java
View file @
f848382a
...
@@ -70,7 +70,7 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
...
@@ -70,7 +70,7 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
/**
/**
* 社保户名称
* 社保户名称
*/
*/
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"社保户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"社保户名称"
)
@Schema
(
description
=
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
@ExcelProperty
(
"社保户名称"
)
private
String
socialHouseholdName
;
private
String
socialHouseholdName
;
...
@@ -78,7 +78,7 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
...
@@ -78,7 +78,7 @@ public class TDispatchInfoSearchVo extends TDispatchInfo {
/**
/**
* 公积金户名称
* 公积金户名称
*/
*/
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"公积金户名称"
,
maxLength
=
50
)
@Schema
(
description
=
"公积金户名称"
)
@Schema
(
description
=
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
@ExcelProperty
(
"公积金户名称"
)
private
String
providentHouseholdName
;
private
String
providentHouseholdName
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
f848382a
...
@@ -288,8 +288,8 @@ public class TDispatchInfoController {
...
@@ -288,8 +288,8 @@ public class TDispatchInfoController {
//@PreAuthorize("@pms.hasPermission('wxhr:tdispatchinfo_addApplyHandle')")
//@PreAuthorize("@pms.hasPermission('wxhr:tdispatchinfo_addApplyHandle')")
public
R
<
List
<
ErrorMessage
>>
addApplyHandle
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
,
public
R
<
List
<
ErrorMessage
>>
addApplyHandle
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
,
@RequestParam
(
name
=
"typeSub"
,
required
=
true
)
String
typeSub
,
@RequestParam
(
name
=
"typeSub"
,
required
=
true
)
String
typeSub
,
@RequestParam
(
name
=
"
audit
Status"
,
required
=
true
)
String
handleStatus
,
@RequestParam
(
name
=
"
handle
Status"
,
required
=
true
)
String
handleStatus
,
@RequestParam
(
name
=
"
audit
Remark"
,
required
=
false
)
String
handleRemark
,
@RequestParam
(
name
=
"
handle
Remark"
,
required
=
false
)
String
handleRemark
,
@RequestParam
(
name
=
"socialType"
,
required
=
false
)
String
socialType
)
{
@RequestParam
(
name
=
"socialType"
,
required
=
false
)
String
socialType
)
{
return
tDispatchInfoService
.
addApplyHandle
(
ids
,
typeSub
,
handleStatus
,
handleRemark
,
socialType
);
return
tDispatchInfoService
.
addApplyHandle
(
ids
,
typeSub
,
handleStatus
,
handleRemark
,
socialType
);
}
}
...
@@ -304,7 +304,7 @@ public class TDispatchInfoController {
...
@@ -304,7 +304,7 @@ public class TDispatchInfoController {
@PostMapping
(
"/doexportSocialRecordRoster"
)
@PostMapping
(
"/doexportSocialRecordRoster"
)
@Operation
(
description
=
"导出社保花名册 hasPermission('wxhr:tdispatchinfo_doexportSocialRecordRoster')"
)
@Operation
(
description
=
"导出社保花名册 hasPermission('wxhr:tdispatchinfo_doexportSocialRecordRoster')"
)
@SysLog
(
"导出社保花名册信息"
)
@SysLog
(
"导出社保花名册信息"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tdispatchinfo_doexportSocialRecordRoster')"
)
//
@PreAuthorize("@pms.hasPermission('wxhr:tdispatchinfo_doexportSocialRecordRoster')")
public
void
doexportSocialRecordRoster
(
HttpServletResponse
response
,
HttpServletRequest
request
,
public
void
doexportSocialRecordRoster
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestParam
(
name
=
"idStr"
,
required
=
false
)
String
idStr
,
@RequestParam
(
name
=
"idStr"
,
required
=
false
)
String
idStr
,
@RequestBody
String
[]
exportFields
,
SocialHandleSearchVo
searchVo
)
{
@RequestBody
String
[]
exportFields
,
SocialHandleSearchVo
searchVo
)
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TPaymentInfoController.java
View file @
f848382a
...
@@ -53,68 +53,73 @@ public class TPaymentInfoController {
...
@@ -53,68 +53,73 @@ public class TPaymentInfoController {
/**
/**
* 简单分页查询
* 简单分页查询
* @param page 分页对象
*
* @param page 分页对象
* @param tPaymentInfo 缴费库
* @param tPaymentInfo 缴费库
* @return
* @return
*/
*/
@Operation
(
description
=
"简单分页查询"
)
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
TPaymentInfo
>>
getTPaymentInfoPage
(
Page
<
TPaymentInfo
>
page
,
TPaymentInfoSearchVo
tPaymentInfo
)
{
public
R
<
IPage
<
TPaymentInfo
>>
getTPaymentInfoPage
(
Page
<
TPaymentInfo
>
page
,
TPaymentInfoSearchVo
tPaymentInfo
)
{
return
new
R
<>(
tPaymentInfoService
.
getTPaymentInfoPage
(
page
,
tPaymentInfo
));
return
new
R
<>(
tPaymentInfoService
.
getTPaymentInfoPage
(
page
,
tPaymentInfo
));
}
}
/**
/**
* 通过id查询缴费库
* 通过id查询缴费库
*
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
public
R
<
TPaymentInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
public
R
<
TPaymentInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tPaymentInfoService
.
getById
(
id
));
return
R
.
ok
(
tPaymentInfoService
.
getById
(
id
));
}
}
/**
/**
* 修改缴费库
* 修改缴费库
*
* @param tPaymentInfo 缴费库
* @param tPaymentInfo 缴费库
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"修改缴费库"
,
description
=
"修改缴费库:hasPermission('social_tpaymentinfo_edit')"
)
@Operation
(
summary
=
"修改缴费库"
,
description
=
"修改缴费库:hasPermission('social_tpaymentinfo_edit')"
)
@SysLog
(
"修改缴费库"
)
@SysLog
(
"修改缴费库"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TPaymentInfo
tPaymentInfo
)
{
public
R
<
Boolean
>
updateById
(
@RequestBody
TPaymentInfo
tPaymentInfo
)
{
return
R
.
ok
(
tPaymentInfoService
.
updateById
(
tPaymentInfo
));
return
R
.
ok
(
tPaymentInfoService
.
updateById
(
tPaymentInfo
));
}
}
/**
/**
* 通过id删除缴费库
* 通过id删除缴费库
*
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id删除缴费库"
,
description
=
"通过id删除缴费库:hasPermission('social_tpaymentinfo_del')"
)
@Operation
(
summary
=
"通过id删除缴费库"
,
description
=
"通过id删除缴费库:hasPermission('social_tpaymentinfo_del')"
)
@SysLog
(
"通过id删除缴费库"
)
@SysLog
(
"通过id删除缴费库"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_del')"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
public
R
removeById
(
@PathVariable
String
id
)
{
return
tPaymentInfoService
.
removeInFoById
(
id
);
return
tPaymentInfoService
.
removeInFoById
(
id
);
}
}
/**
/**
* 通过ids删除一条记录
* 通过ids删除一条记录
*
* @param ids
* @param ids
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过ids删除缴费库"
,
description
=
"通过ids删除缴费库
:hasPermission('social_tpaymentinfo_del')
"
)
@Operation
(
summary
=
"通过ids删除缴费库"
,
description
=
"通过ids删除缴费库"
)
@SysLog
(
"删除缴费库"
)
@SysLog
(
"删除缴费库"
)
@DeleteMapping
(
"/removeBatchByIds"
)
@DeleteMapping
(
"/removeBatchByIds"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_del')"
)
public
R
<
Boolean
>
removeBatchByIds
(
String
ids
)
{
public
R
<
Boolean
>
removeBatchByIds
(
String
ids
)
{
return
tPaymentInfoService
.
removeAllInfoById
(
ids
);
return
tPaymentInfoService
.
removeAllInfoById
(
ids
);
}
}
/**
/**
* 通过id查询单条记录(包含明细)
* 通过id查询单条记录(包含明细)
*
* @param id
* @param id
* @return R
* @return R
*/
*/
...
@@ -126,6 +131,7 @@ public class TPaymentInfoController {
...
@@ -126,6 +131,7 @@ public class TPaymentInfoController {
/**
/**
* 省市社保 批量导入
* 省市社保 批量导入
*
* @author huyc
* @author huyc
* @date 2022-07-22
* @date 2022-07-22
**/
**/
...
@@ -134,12 +140,13 @@ public class TPaymentInfoController {
...
@@ -134,12 +140,13 @@ public class TPaymentInfoController {
@SysLog
(
"批量新增缴费库"
)
@SysLog
(
"批量新增缴费库"
)
@PostMapping
(
"/importListAdd"
)
@PostMapping
(
"/importListAdd"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_batchImport')"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_batchImport')"
)
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
,
@RequestParam
String
random
){
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
,
@RequestParam
String
random
)
{
return
tPaymentInfoService
.
importSocialDiy
(
file
.
getInputStream
(),
random
);
return
tPaymentInfoService
.
importSocialDiy
(
file
.
getInputStream
(),
random
);
}
}
/**
/**
* 导入省市社保-合肥三险
* 导入省市社保-合肥三险
*
* @author huyc
* @author huyc
* @date 2022-07-22
* @date 2022-07-22
**/
**/
...
@@ -148,12 +155,13 @@ public class TPaymentInfoController {
...
@@ -148,12 +155,13 @@ public class TPaymentInfoController {
@SysLog
(
"批量新增缴费库-合肥三险"
)
@SysLog
(
"批量新增缴费库-合肥三险"
)
@PostMapping
(
"/importListSocialHeFei"
)
@PostMapping
(
"/importListSocialHeFei"
)
public
R
<
List
<
ErrorMessage
>>
importListSocialHeFei
(
@RequestBody
MultipartFile
file
,
@RequestParam
String
random
,
public
R
<
List
<
ErrorMessage
>>
importListSocialHeFei
(
@RequestBody
MultipartFile
file
,
@RequestParam
String
random
,
@RequestParam
(
value
=
"type"
)
String
type
)
{
@RequestParam
(
value
=
"type"
)
String
type
)
{
return
tPaymentInfoService
.
importSocialHeFeiDiy
(
file
.
getInputStream
(),
random
,
type
);
return
tPaymentInfoService
.
importSocialHeFeiDiy
(
file
.
getInputStream
(),
random
,
type
);
}
}
/**
/**
* 导入公积金
* 导入公积金
*
* @author huyc
* @author huyc
* @date 2022-07-27
* @date 2022-07-27
**/
**/
...
@@ -162,12 +170,13 @@ public class TPaymentInfoController {
...
@@ -162,12 +170,13 @@ public class TPaymentInfoController {
@SysLog
(
"导入公积金"
)
@SysLog
(
"导入公积金"
)
@PostMapping
(
"/batchImportPaymentFundInfo"
)
@PostMapping
(
"/batchImportPaymentFundInfo"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_batchImport')"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_batchImport')"
)
public
R
<
List
<
ErrorMessage
>>
importListFund
(
@RequestBody
MultipartFile
file
){
public
R
<
List
<
ErrorMessage
>>
importListFund
(
@RequestBody
MultipartFile
file
)
{
return
tPaymentInfoService
.
batchImportPaymentFundInfo
(
file
.
getInputStream
());
return
tPaymentInfoService
.
batchImportPaymentFundInfo
(
file
.
getInputStream
());
}
}
/**
/**
* 缴费库 批量导出
* 缴费库 批量导出
*
* @author huyc
* @author huyc
* @date 2022-07-22
* @date 2022-07-22
**/
**/
...
@@ -175,7 +184,28 @@ public class TPaymentInfoController {
...
@@ -175,7 +184,28 @@ public class TPaymentInfoController {
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_export')"
)
@PreAuthorize
(
"@pms.hasPermission('social_tpaymentinfo_export')"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TPaymentInfoSearchVo
searchVo
)
{
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TPaymentInfoSearchVo
searchVo
)
{
tPaymentInfoService
.
listExport
(
response
,
searchVo
);
tPaymentInfoService
.
listExport
(
response
,
searchVo
);
}
}
/**
* 根据条件批量删除
*
* @param empIdCard 员工身份证
* @param socialHouseId 社保户
* @param fundHouseId 公积金户
* @param socialCreateMonth 生成月份
* @param socialPayMonth 缴纳月份
* @return R
*/
@Operation
(
description
=
"根据条件批量删除"
)
@SysLog
(
"根据条件批量删除"
)
@PostMapping
(
"/removeBatchByIdsAndType"
)
public
R
removeBatchByIdsAndType
(
@RequestParam
(
name
=
"empIdCard"
,
required
=
false
)
String
empIdCard
,
@RequestParam
(
name
=
"socialHouseId"
,
required
=
false
)
String
socialHouseId
,
@RequestParam
(
name
=
"fundHouseId"
,
required
=
false
)
String
fundHouseId
,
@RequestParam
(
name
=
"socialCreateMonth"
,
required
=
false
)
String
socialCreateMonth
,
@RequestParam
(
name
=
"socialPayMonth"
,
required
=
false
)
String
socialPayMonth
)
{
return
tPaymentInfoService
.
removeBatchByInfo
(
empIdCard
,
socialHouseId
,
fundHouseId
,
socialCreateMonth
,
socialPayMonth
);
}
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TDispatchInfoMapper.java
View file @
f848382a
...
@@ -134,4 +134,5 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
...
@@ -134,4 +134,5 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
@Param
(
"settleDomainIds"
)
List
<
String
>
settleDomainIds
,
@Param
(
"settleDomainIds"
)
List
<
String
>
settleDomainIds
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
,
@Param
(
"sql"
)
String
sql
);
@Param
(
"sql"
)
String
sql
);
String
getMaxDispatchCode
();
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TPaymentInfoService.java
View file @
f848382a
...
@@ -99,4 +99,18 @@ public interface TPaymentInfoService extends IService<TPaymentInfo> {
...
@@ -99,4 +99,18 @@ public interface TPaymentInfoService extends IService<TPaymentInfo> {
**/
**/
R
getAllInfoById
(
String
id
);
R
getAllInfoById
(
String
id
);
/**
* 根据条件批量删除
* @Author huyc
* @Date 2022-07-29
* @param empIdCard 员工身份证
* @param socialHouseId 社保户
* @param fundHouseId 公积金户
* @param socialCreateMonth 生成月份
* @param socialPayMonth 缴纳月份
* @return
**/
R
removeBatchByInfo
(
String
empIdCard
,
String
socialHouseId
,
String
fundHouseId
,
String
socialCreateMonth
,
String
socialPayMonth
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
f848382a
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
f848382a
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/util/ServiceUtil.java
View file @
f848382a
...
@@ -177,6 +177,7 @@ public class ServiceUtil {
...
@@ -177,6 +177,7 @@ public class ServiceUtil {
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
canOverpay
)){
}
else
if
(
CommonConstants
.
ONE_STRING
.
equals
(
canOverpay
)){
temp
=
socialStartDate
;
temp
=
socialStartDate
;
}
}
boolean
falg
=
isaBoolean
(
temp
,
now
);
return
(
null
!=
temp
&&
(
temp
.
getYear
()
<
now
.
getYear
()
||
isaBoolean
(
temp
,
now
)));
return
(
null
!=
temp
&&
(
temp
.
getYear
()
<
now
.
getYear
()
||
isaBoolean
(
temp
,
now
)));
}
}
private
static
boolean
isaBoolean
(
LocalDateTime
temp
,
LocalDateTime
now
)
{
private
static
boolean
isaBoolean
(
LocalDateTime
temp
,
LocalDateTime
now
)
{
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
f848382a
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
<result
property=
"idCardCity"
column=
"ID_CARD_CITY"
/>
<result
property=
"idCardCity"
column=
"ID_CARD_CITY"
/>
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
<result
property=
"applyNo"
column=
"APPLY_NO"
/>
</resultMap>
</resultMap>
<resultMap
id=
"dispatchPageMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo"
extends=
"tDispatchInfoMap"
>
<resultMap
id=
"dispatchPageMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPageVo"
extends=
"tDispatchInfoMap"
>
<result
property=
"providentHouseholdName"
column=
"PROVIDENT_HOUSEHOLD_NAME"
/>
<result
property=
"providentHouseholdName"
column=
"PROVIDENT_HOUSEHOLD_NAME"
/>
...
@@ -203,7 +204,8 @@
...
@@ -203,7 +204,8 @@
a.ID_CARD_PROVINCE,
a.ID_CARD_PROVINCE,
a.ID_CARD_CITY,
a.ID_CARD_CITY,
a.ID_CARD_TOWN,
a.ID_CARD_TOWN,
a.ID_CARD_ADDRESS
a.ID_CARD_ADDRESS,
a.APPLY_NO
</sql>
</sql>
<sql
id=
"tDispatchInfo_where"
>
<sql
id=
"tDispatchInfo_where"
>
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo != null"
>
...
@@ -537,7 +539,7 @@
...
@@ -537,7 +539,7 @@
a.CONTRACT_TERM,
a.CONTRACT_TERM,
a.CONTRACT_START,
a.CONTRACT_START,
a.CONTRACT_END,
a.CONTRACT_END,
a.CREA
STE_USER
_NAME,
a.CREA
TE
_NAME,
b.RECORD_BASE,
b.RECORD_BASE,
b.PAYMENT_TYPE,
b.PAYMENT_TYPE,
b.SOCIAL_HOUSEHOLD_NAME,
b.SOCIAL_HOUSEHOLD_NAME,
...
@@ -825,4 +827,9 @@
...
@@ -825,4 +827,9 @@
order by a.CREATE_TIME desc
order by a.CREATE_TIME desc
</where>
</where>
</sql>
</sql>
<!-- 获取当日最大的编码 -->
<select
id=
"getMaxDispatchCode"
resultType=
"java.lang.String"
>
SELECT ifnull(max(right(e.APPLY_NO,4)),0) APPLY_NO FROM t_dispatch_info e where e.DELETE_FLAG = 0 and e.CREATE_TIME>DATE_FORMAT(now(),'%Y-%m-%d')
</select>
</mapper>
</mapper>
yifu-social/yifu-social-biz/src/main/resources/mapper/TProvidentFundMapper.xml
View file @
f848382a
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"payPolicy"
column=
"PAY_POLICY"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
a.ID,
a.ID,
...
@@ -123,7 +124,8 @@
...
@@ -123,7 +124,8 @@
a.CREATE_BY,
a.CREATE_BY,
a.UPDATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
a.CREATE_NAME,
a.UPDATE_TIME
a.UPDATE_TIME,
a.PAY_POLICY
</sql>
</sql>
<sql
id=
"tProvidentFund_where"
>
<sql
id=
"tProvidentFund_where"
>
<if
test=
"tProvidentFund != null"
>
<if
test=
"tProvidentFund != null"
>
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TSocialInfoMapper.xml
View file @
f848382a
...
@@ -120,6 +120,7 @@
...
@@ -120,6 +120,7 @@
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"payPolicy"
column=
"PAY_POLICY"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
a.ID,
a.ID,
...
@@ -219,7 +220,8 @@
...
@@ -219,7 +220,8 @@
a.CREATE_BY,
a.CREATE_BY,
a.UPDATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
a.CREATE_NAME,
a.UPDATE_TIME
a.UPDATE_TIME,
a.PAY_POLICY
</sql>
</sql>
<sql
id=
"tSocialInfo_where"
>
<sql
id=
"tSocialInfo_where"
>
<if
test=
"tSocialInfo != null"
>
<if
test=
"tSocialInfo != null"
>
...
...
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