Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
398cfd97
Commit
398cfd97
authored
Nov 14, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
3c96e062
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
26 deletions
+107
-26
TDispatchInfoExportVo.java
...u/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
+20
-23
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+19
-0
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+68
-3
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchInfoExportVo.java
View file @
398cfd97
...
...
@@ -76,12 +76,6 @@ public class TDispatchInfoExportVo {
@ExcelProperty
(
"项目名称"
)
private
String
settleDomainName
;
@ExcelAttribute
(
name
=
"项目编码"
,
maxLength
=
50
)
@Schema
(
description
=
"项目编码"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"项目编码"
)
private
String
settleDomainCode
;
@ExcelAttribute
(
name
=
"员工类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
EMP_NATRUE
)
@Schema
(
description
=
"员工类型"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -102,6 +96,7 @@ public class TDispatchInfoExportVo {
*/
@ExcelAttribute
(
name
=
"业务细分"
,
dataType
=
ExcelAttributeConstants
.
PERSONNEL_TYPE_SUB
,
needExport
=
true
)
@Schema
(
description
=
"业务细分(存lable)"
,
name
=
"contractName"
)
@ExcelProperty
(
value
=
"业务细分"
)
private
String
contractSubName
;
/**
...
...
@@ -116,6 +111,7 @@ public class TDispatchInfoExportVo {
/**
* 合同起始时间
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"合同起始时间"
,
isDate
=
true
)
@Schema
(
description
=
"合同起始时间"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -124,6 +120,7 @@ public class TDispatchInfoExportVo {
/**
* 合同到期时间
*/
@DateTimeFormat
(
"yyyy-MM-dd"
)
@ExcelAttribute
(
name
=
"合同到期时间"
,
isDate
=
true
)
@Schema
(
description
=
"合同到期时间"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
...
...
@@ -237,10 +234,10 @@ public class TDispatchInfoExportVo {
/**
* 审核状态(0待审核/1已审核)
*/
@ExcelAttribute
(
name
=
"公积金审核状态"
,
readConverterExp
=
"0=
待审核,1=已审核
"
)
@ExcelAttribute
(
name
=
"公积金审核状态"
,
readConverterExp
=
"0=
未审核,1=审核通过,2=审核不通过
"
)
@Schema
(
description
=
"公积金审核状态:(0待审核/1已审核)"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"公积金审核状态
(0待审核/1已审核)
"
)
@ExcelProperty
(
"公积金审核状态"
)
private
String
fundAuditStatus
;
/**
...
...
@@ -266,7 +263,7 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"公积金办理人"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"公积金办理人"
)
private
String
fund
h
HandleUser
;
private
String
fundHandleUser
;
/**
* 公积金办理时间
*/
...
...
@@ -283,7 +280,7 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"养老基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"养老基数"
)
private
BigDecimal
p
ensionCardinal
;
private
BigDecimal
unitP
ensionCardinal
;
/**
* 医疗基数
*/
...
...
@@ -291,7 +288,7 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"医疗基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"医疗基数"
)
private
BigDecimal
m
edicalCardinal
;
private
BigDecimal
unitM
edicalCardinal
;
/**
* 失业基数
*/
...
...
@@ -299,7 +296,7 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"失业基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"失业基数"
)
private
BigDecimal
unemploymentCardinal
;
private
BigDecimal
un
itUn
employmentCardinal
;
/**
* 工伤基数
...
...
@@ -308,7 +305,7 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"工伤基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"工伤基数"
)
private
BigDecimal
w
orkInjuryCardinal
;
private
BigDecimal
unitW
orkInjuryCardinal
;
/**
* 生育基数
*/
...
...
@@ -316,7 +313,16 @@ public class TDispatchInfoExportVo {
@Schema
(
description
=
"生育基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"生育基数"
)
private
BigDecimal
birthCardinal
;
private
BigDecimal
unitBirthCardinal
;
/**
* 大病基数
*/
@ExcelAttribute
(
name
=
"大病基数"
,
isFloat
=
true
,
max
=
"999999999.99"
)
@Schema
(
description
=
"大病基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病基数"
)
private
BigDecimal
unitBigailmentCardinal
;
/**
* 委托备注
...
...
@@ -328,15 +334,6 @@ public class TDispatchInfoExportVo {
@ExcelProperty
(
"委托备注"
)
private
String
trustRemark
;
/**
* 大病基数
*/
@ExcelAttribute
(
name
=
"大病基数"
,
isFloat
=
true
,
max
=
"999999999.99"
)
@Schema
(
description
=
"大病基数"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"大病基数"
)
private
BigDecimal
bigailmentCardinal
;
/**
* 离职日期
*/
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
398cfd97
...
...
@@ -29,6 +29,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.AllUserNaVo
;
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.TEmployeeProject
;
...
...
@@ -42,6 +43,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.ArchivesDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.CheckDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.social.constants.DispatchConstants
;
...
...
@@ -104,6 +106,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
@Autowired
private
final
CheckDaprUtil
checkDaprUtil
;
@Autowired
private
UpmsDaprUtils
upmsDaprUtils
;
private
final
TForecastLibraryService
forecastLibraryService
;
private
final
TIncomeDetailService
detailService
;
...
...
@@ -143,7 +148,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
List
<
TDispatchInfoExportVo
>
list
=
new
ArrayList
<>();
long
count
=
noPageCountDiy
(
searchVo
);
ServletOutputStream
out
=
null
;
HashMap
<
String
,
String
>
userMap
=
new
HashMap
<>();
try
{
R
<
AllUserNaVo
>
userListR
=
upmsDaprUtils
.
getAllUserName
();
if
(
Common
.
isNotNull
(
userListR
))
{
AllUserNaVo
userList
=
userListR
.
getData
();
if
(
null
!=
userList
&&
!
userList
.
getUserNames
().
isEmpty
())
{
userMap
=
userList
.
getUserNames
();
}
}
out
=
response
.
getOutputStream
();
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
...
...
@@ -162,6 +175,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
list
))
{
util
=
new
ExcelUtil
<>(
TDispatchInfoExportVo
.
class
);
for
(
TDispatchInfoExportVo
vo
:
list
)
{
if
(!
userMap
.
isEmpty
())
{
vo
.
setFundHandleUser
(
null
!=
userMap
.
get
(
vo
.
getFundHandleUser
())
?
userMap
.
get
(
vo
.
getFundHandleUser
())
:
""
);
vo
.
setAuditUserName
(
null
!=
userMap
.
get
(
vo
.
getAuditUserName
())
?
userMap
.
get
(
vo
.
getAuditUserName
())
:
""
);
vo
.
setFundAuditUser
(
null
!=
userMap
.
get
(
vo
.
getFundAuditUser
())
?
userMap
.
get
(
vo
.
getFundAuditUser
())
:
""
);
vo
.
setHandleUser
(
null
!=
userMap
.
get
(
vo
.
getHandleUser
())
?
userMap
.
get
(
vo
.
getHandleUser
())
:
""
);
}
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
398cfd97
...
...
@@ -110,7 +110,6 @@
<result
property=
"empType"
column=
"EMP_TYPE"
/>
<result
property=
"belongUnitName"
column=
"BELONG_UNIT_NAME"
/>
<result
property=
"settleDomainName"
column=
"SETTLE_DOMAIN_NAME"
/>
<result
property=
"settleDomainCode"
column=
"SETTLE_DOMAIN_CODE"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"socialHouseholdName"
column=
"SOCIAL_HOUSEHOLD_NAME"
/>
<result
property=
"providentHouseholdName"
column=
"PROVIDENT_HOUSEHOLD_NAME"
/>
...
...
@@ -125,6 +124,40 @@
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"organName"
column=
"ORGAN_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"contractType"
column=
"CONTRACT_TYPE"
/>
<result
property=
"contractSubName"
column=
"CONTRACT_SUB_NAME"
/>
<result
property=
"contractTerm"
column=
"CONTRACT_TERM"
/>
<result
property=
"contractStart"
column=
"CONTRACT_START"
/>
<result
property=
"contractEnd"
column=
"CONTRACT_END"
/>
<result
property=
"auditUserName"
column=
"AUDIT_USER_NAME"
/>
<result
property=
"auditRemark"
column=
"AUDIT_REMARK"
/>
<result
property=
"trustRemark"
column=
"TRUST_REMARK"
/>
<result
property=
"leaveDate"
column=
"LEAVE_DATE"
/>
<result
property=
"reduceReason"
column=
"REDUCE_REASON"
/>
<result
property=
"status"
column=
"STATUS"
/>
<result
property=
"auditUser"
column=
"AUDIT_USER"
/>
<result
property=
"auditTime"
column=
"AUDIT_TIME"
/>
<result
property=
"fundHandleRemark"
column=
"FUND_HANDLE_REMARK"
/>
<result
property=
"socialHandleRemark"
column=
"SOCIAL_HANDLE_REMARK"
/>
<result
property=
"providentStart"
column=
"PROVIDENT_START"
/>
<result
property=
"fundAuditStatus"
column=
"FUND_AUDIT_STATUS"
/>
<result
property=
"fundAuditUser"
column=
"FUND_AUDIT_USER"
/>
<result
property=
"fundHandleUser"
column=
"FUND_HANDLE_USER"
/>
<result
property=
"fundHandleTime"
column=
"FUND_HANDLE_TIME"
/>
<result
property=
"auditStatus"
column=
"AUDIT_STATUS"
/>
<result
property=
"socialStartDate"
column=
"SOCIAL_START_DATE"
/>
<result
property=
"socialReduceDate"
column=
"SOCIAL_REDUCE_DATE"
/>
<result
property=
"recordBase"
column=
"RECORD_BASE"
/>
<result
property=
"handleUser"
column=
"HANDLE_USER"
/>
<result
property=
"handleTime"
column=
"HANDLE_TIME"
/>
<result
property=
"unitPensionCardinal"
column=
"UNIT_PENSION_CARDINAL"
/>
<result
property=
"unitMedicalCardinal"
column=
"UNIT_MEDICAL_CARDINAL"
/>
<result
property=
"unitUnemploymentCardinal"
column=
"UNIT_UNEMPLOYMENT_CARDINAL"
/>
<result
property=
"unitBigailmentCardinal"
column=
"UNIT_BIGAILMENT_CARDINAL"
/>
<result
property=
"unitWorkInjuryCardinal"
column=
"UNIT_WORK_INJURY_CARDINAL"
/>
<result
property=
"unitBirthCardinal"
column=
"UNIT_BIRTH_CARDINAL"
/>
</resultMap>
<resultMap
id=
"fundSupplementaryMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.vo.FundSupplementaryExportVo"
>
...
...
@@ -570,7 +603,6 @@
a.EMP_TYPE,
a.BELONG_UNIT_NAME,
a.SETTLE_DOMAIN_NAME,
a.SETTLE_DOMAIN_CODE,
a.TYPE,
a.SOCIAL_HOUSEHOLD_NAME,
a.PROVIDENT_HOUSEHOLD_NAME,
...
...
@@ -584,9 +616,42 @@
a.FUND_HANDLE_STATUS,
a.CREATE_NAME,
a.ORGAN_NAME,
a.CREATE_TIME
a.CREATE_TIME,
a.CONTRACT_TYPE,
a.CONTRACT_SUB_NAME,
a.CONTRACT_TERM,
a.CONTRACT_START,
a.CONTRACT_END,
a.AUDIT_REMARK,
a.TRUST_REMARK,
a.LEAVE_DATE,
a.REDUCE_REASON,
a.STATUS,
a.AUDIT_USER_NAME as AUDIT_USER,
a.AUDIT_TIME,
a.FUND_HANDLE_REMARK,
a.SOCIAL_HANDLE_REMARK,
c.PROVIDENT_START,
c.AUDIT_STATUS as FUND_AUDIT_STATUS,
c.AUDIT_USER as FUND_AUDIT_USER,
c.HANDLE_USER as FUND_HANDLE_USER,
c.HANDLE_TIME as FUND_HANDLE_TIME,
s.AUDIT_USER as AUDIT_USER_NAME,
s.AUDIT_STATUS,
s.SOCIAL_START_DATE,
s.SOCIAL_REDUCE_DATE,
s.RECORD_BASE,
s.HANDLE_USER,
s.HANDLE_TIME,
s.UNIT_PENSION_CARDINAL,
s.UNIT_MEDICAL_CARDINAL,
s.UNIT_UNEMPLOYMENT_CARDINAL,
s.UNIT_BIGAILMENT_CARDINAL,
s.UNIT_WORK_INJURY_CARDINAL,
s.UNIT_BIRTH_CARDINAL
from t_dispatch_info a
left join t_social_info s on s.id=a.SOCIAL_ID
left join t_provident_fund c on c.id=a.FUND_ID
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tDispatchInfo_where"
/>
...
...
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