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
c4606483
Commit
c4606483
authored
Aug 17, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有工资无社保 & 最低工资提醒 & 代码优化
parent
2f6ff279
Show whitespace changes
Inline
Side-by-side
Showing
76 changed files
with
632 additions
and
888 deletions
+632
-888
FddContractInfoServiceImpl.java
...ifu/archives/service/impl/FddContractInfoServiceImpl.java
+1
-1
TEmpBadRecordServiceImpl.java
.../yifu/archives/service/impl/TEmpBadRecordServiceImpl.java
+2
-2
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+6
-6
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+6
-6
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+3
-3
AuthUtils.java
...fu.cloud.plus.v1/yifu/common/security/util/AuthUtils.java
+1
-1
SysMessageSalary.java
...fu/cloud/plus/v1/yifu/salary/entity/SysMessageSalary.java
+15
-0
THaveSalaryNosocial.java
...cloud/plus/v1/yifu/salary/entity/THaveSalaryNosocial.java
+8
-1
SysMessageSalaryExportVo.java
...loud/plus/v1/yifu/salary/vo/SysMessageSalaryExportVo.java
+140
-0
SysMessageSalarySearchVo.java
...loud/plus/v1/yifu/salary/vo/SysMessageSalarySearchVo.java
+1
-1
THaveSalaryNoSocialExportVo.java
...d/plus/v1/yifu/salary/vo/THaveSalaryNoSocialExportVo.java
+11
-21
MTitleConfigController.java
...lus/v1/yifu/salary/controller/MTitleConfigController.java
+0
-2
SysMessageSalaryController.java
...v1/yifu/salary/controller/SysMessageSalaryController.java
+53
-394
TApprovalRecordController.java
.../v1/yifu/salary/controller/TApprovalRecordController.java
+1
-1
THaveSalaryNosocialController.java
...yifu/salary/controller/THaveSalaryNosocialController.java
+9
-7
TSalaryStandardController.java
.../v1/yifu/salary/controller/TSalaryStandardController.java
+0
-1
TStatisticsBonusController.java
...v1/yifu/salary/controller/TStatisticsBonusController.java
+2
-2
TStatisticsDeclarerController.java
...yifu/salary/controller/TStatisticsDeclarerController.java
+2
-2
MSalaryPaymentResMapper.java
...d/plus/v1/yifu/salary/mapper/MSalaryPaymentResMapper.java
+2
-2
MTitleConfigMapper.java
.../cloud/plus/v1/yifu/salary/mapper/MTitleConfigMapper.java
+2
-2
SysMessageSalaryMapper.java
...ud/plus/v1/yifu/salary/mapper/SysMessageSalaryMapper.java
+10
-14
TConfigSalaryMapper.java
...cloud/plus/v1/yifu/salary/mapper/TConfigSalaryMapper.java
+0
-1
TDeptSeeMapper.java
...yifu/cloud/plus/v1/yifu/salary/mapper/TDeptSeeMapper.java
+2
-2
TPauseSalaryMapper.java
.../cloud/plus/v1/yifu/salary/mapper/TPauseSalaryMapper.java
+2
-2
TSalaryAccount2022Mapper.java
.../plus/v1/yifu/salary/mapper/TSalaryAccount2022Mapper.java
+2
-2
TSalaryAccountMapper.java
...loud/plus/v1/yifu/salary/mapper/TSalaryAccountMapper.java
+2
-2
TSalaryAttaMapper.java
...u/cloud/plus/v1/yifu/salary/mapper/TSalaryAttaMapper.java
+2
-2
TSalaryEmployeeMapper.java
...oud/plus/v1/yifu/salary/mapper/TSalaryEmployeeMapper.java
+2
-2
TSalaryExcelCheckMapper.java
...d/plus/v1/yifu/salary/mapper/TSalaryExcelCheckMapper.java
+2
-2
TSalaryLockMapper.java
...u/cloud/plus/v1/yifu/salary/mapper/TSalaryLockMapper.java
+2
-2
TSalaryStandardMapper.java
...oud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
+2
-2
TStatisticsCurrentReportMapper.java
...v1/yifu/salary/mapper/TStatisticsCurrentReportMapper.java
+2
-2
TStatisticsCurrentReportMarketMapper.java
...u/salary/mapper/TStatisticsCurrentReportMarketMapper.java
+2
-2
TStatisticsLaborMapper.java
...ud/plus/v1/yifu/salary/mapper/TStatisticsLaborMapper.java
+2
-2
TStatisticsRemunerationMapper.java
.../v1/yifu/salary/mapper/TStatisticsRemunerationMapper.java
+2
-2
TStatisticsTaxSalaryMapper.java
...lus/v1/yifu/salary/mapper/TStatisticsTaxSalaryMapper.java
+2
-2
TStatisticsTaxSalaryRuleMapper.java
...v1/yifu/salary/mapper/TStatisticsTaxSalaryRuleMapper.java
+2
-2
SysMessageSalaryService.java
.../plus/v1/yifu/salary/service/SysMessageSalaryService.java
+16
-27
TApprovalRecordService.java
...d/plus/v1/yifu/salary/service/TApprovalRecordService.java
+3
-2
THaveSalaryNosocialService.java
...us/v1/yifu/salary/service/THaveSalaryNosocialService.java
+1
-12
TSalaryAccountItemService.java
...lus/v1/yifu/salary/service/TSalaryAccountItemService.java
+0
-3
TSalaryAccountService.java
...ud/plus/v1/yifu/salary/service/TSalaryAccountService.java
+3
-5
TStatisticsBonusService.java
.../plus/v1/yifu/salary/service/TStatisticsBonusService.java
+3
-2
TStatisticsDeclarerService.java
...us/v1/yifu/salary/service/TStatisticsDeclarerService.java
+2
-3
SysMessageSalaryServiceImpl.java
...yifu/salary/service/impl/SysMessageSalaryServiceImpl.java
+120
-53
TApprovalRecordServiceImpl.java
.../yifu/salary/service/impl/TApprovalRecordServiceImpl.java
+6
-5
TConfigSalaryServiceImpl.java
...v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
+0
-4
THaveSalaryNosocialServiceImpl.java
...u/salary/service/impl/THaveSalaryNosocialServiceImpl.java
+4
-43
TPauseSalaryServiceImpl.java
.../v1/yifu/salary/service/impl/TPauseSalaryServiceImpl.java
+3
-31
TSalaryAccountItemServiceImpl.java
...fu/salary/service/impl/TSalaryAccountItemServiceImpl.java
+0
-5
TSalaryAccountServiceImpl.java
...1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
+5
-12
TSalaryEmployeeServiceImpl.java
.../yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
+2
-2
TSalaryStandardServiceImpl.java
.../yifu/salary/service/impl/TSalaryStandardServiceImpl.java
+12
-8
TStatisticsBonusServiceImpl.java
...yifu/salary/service/impl/TStatisticsBonusServiceImpl.java
+16
-17
TStatisticsCurrentReportMarketServiceImpl.java
...rvice/impl/TStatisticsCurrentReportMarketServiceImpl.java
+2
-2
TStatisticsCurrentReportServiceImpl.java
...ary/service/impl/TStatisticsCurrentReportServiceImpl.java
+2
-2
TStatisticsDeclarerServiceImpl.java
...u/salary/service/impl/TStatisticsDeclarerServiceImpl.java
+14
-16
TStatisticsLaborServiceImpl.java
...yifu/salary/service/impl/TStatisticsLaborServiceImpl.java
+2
-2
TStatisticsRemunerationServiceImpl.java
...lary/service/impl/TStatisticsRemunerationServiceImpl.java
+2
-2
TStatisticsTaxSalaryServiceImpl.java
.../salary/service/impl/TStatisticsTaxSalaryServiceImpl.java
+2
-2
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+0
-2
SysMessageSalaryMapper.xml
...-biz/src/main/resources/mapper/SysMessageSalaryMapper.xml
+50
-76
THaveSalaryNosocialMapper.xml
...z/src/main/resources/mapper/THaveSalaryNosocialMapper.xml
+32
-25
TAuditInfoServiceImpl.java
...us/v1/yifu/social/service/impl/TAuditInfoServiceImpl.java
+2
-2
TDispatchDayConfServiceImpl.java
...yifu/social/service/impl/TDispatchDayConfServiceImpl.java
+2
-2
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+2
-2
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+2
-2
TPaymentInfoImportLogServiceImpl.java
...social/service/impl/TPaymentInfoImportLogServiceImpl.java
+2
-2
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+2
-2
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+2
-2
TProvidentFundServiceImpl.java
...1/yifu/social/service/impl/TProvidentFundServiceImpl.java
+2
-2
TSocialFundHistoryServiceImpl.java
...fu/social/service/impl/TSocialFundHistoryServiceImpl.java
+2
-2
TSocialFundInfoServiceImpl.java
.../yifu/social/service/impl/TSocialFundInfoServiceImpl.java
+2
-2
TSocialInfoServiceImpl.java
...s/v1/yifu/social/service/impl/TSocialInfoServiceImpl.java
+2
-2
ServiceImpl.java.vm
...u-codegen/src/main/resources/template/ServiceImpl.java.vm
+2
-2
I18nUtil.java
...n/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractInfoServiceImpl.java
View file @
c4606483
...
...
@@ -546,7 +546,7 @@ public class FddContractInfoServiceImpl extends ServiceImpl<FddContractInfoMappe
BufferedOutputStream
fos
=
new
BufferedOutputStream
(
response
.
getOutputStream
());
response
.
reset
();
response
.
setContentType
(
"application/zip;"
);
response
.
setHeader
(
"Content-disposition"
,
"attachment; filename="
+
URLEncoder
.
encode
(
"合同.zip"
,
CommonConstants
.
UTF8
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
"attachment; filename="
+
URLEncoder
.
encode
(
"合同.zip"
,
CommonConstants
.
UTF8
));
fos
.
write
(
rspData
.
getFileBytes
());
}
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpBadRecordServiceImpl.java
View file @
c4606483
...
...
@@ -211,9 +211,9 @@ public class TEmpBadRecordServiceImpl extends ServiceImpl<TEmpBadRecordMapper, T
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TEmpBadRecord
.
class
).
build
();
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
c4606483
...
...
@@ -921,9 +921,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeContractExportVO
.
class
).
includeColumnFiledNames
(
contractInfo
.
getExportFields
())
.
sheet
(
"员工合同"
).
doWrite
(
list
);
...
...
@@ -961,9 +961,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeContractExportVO
.
class
).
includeColumnFiledNames
(
contractInfo
.
getExportFields
())
.
sheet
(
"员工合同【合并历史】"
).
doWrite
(
list
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
c4606483
...
...
@@ -1979,9 +1979,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeExportVO
.
class
).
includeColumnFiledNames
(
employeeInfo
.
getExportFields
())
.
sheet
(
"人员档案"
).
doWrite
(
list
);
...
...
@@ -2020,9 +2020,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeExportVO
.
class
).
includeColumnFiledNames
(
employeeInfo
.
getExportFields
())
.
sheet
(
"离职档案"
).
doWrite
(
list
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
c4606483
...
...
@@ -1223,9 +1223,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
for
(
EmployeeProjectExportVO
vo
:
list
)
{
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
EmployeeProjectExportVO
.
class
).
includeColumnFiledNames
(
includeColumnFiledNames
).
sheet
(
"项目档案"
)
.
doWrite
(
list
);
...
...
yifu-common/yifu-common-security/src/main/java/com/yifu.cloud.plus.v1/yifu/common/security/util/AuthUtils.java
View file @
c4606483
...
...
@@ -42,7 +42,7 @@ public class AuthUtils {
@SneakyThrows
public
String
[]
extractAndDecodeHeader
(
String
header
)
{
byte
[]
base64Token
=
header
.
substring
(
6
).
getBytes
(
"UTF-8"
);
byte
[]
base64Token
=
header
.
substring
(
6
).
getBytes
(
CommonConstants
.
UTF8
);
byte
[]
decoded
;
try
{
decoded
=
Base64
.
decode
(
base64Token
);
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/SysMessageSalary.java
View file @
c4606483
...
...
@@ -19,9 +19,11 @@ package com.yifu.cloud.plus.v1.yifu.salary.entity;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
...
...
@@ -184,5 +186,18 @@ public class SysMessageSalary extends BaseEntity {
@Length
(
max
=
50
,
message
=
"客户名称不能超过50个字符"
)
@ExcelProperty
(
"客户名称"
)
private
String
customerName
;
/**
* 原因大类 根据数据字典来判断
*/
@Schema
(
description
=
"原因大类 根据数据字典来判断 "
,
name
=
"reasonType"
)
@ExcelAttribute
(
name
=
"原因大类"
,
errorInfo
=
"原因大类不能为空"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
HAVE_SALARY_NO_SOCIAL_TYPE
,
needExport
=
false
)
private
Integer
reasonType
;
/**
* 反馈原因
*/
@Schema
(
description
=
"反馈原因"
,
name
=
"reasonType"
)
@ExcelAttribute
(
name
=
"反馈原因"
,
maxLength
=
32
)
@ExcelProperty
(
value
=
"反馈原因"
)
private
Integer
feedBack
;
}
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/THaveSalaryNosocial.java
View file @
c4606483
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
@@ -121,9 +122,15 @@ public class THaveSalaryNosocial extends BaseEntity {
/**
* 原因大类 根据数据字典来判断
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"原因大类 根据数据字典来判断 "
,
name
=
"reasonType"
)
@ExcelAttribute
(
name
=
"原因大类"
,
errorInfo
=
"原因大类不能为空"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
HAVE_SALARY_NO_SOCIAL_TYPE
,
needExport
=
true
)
private
Integer
reasonType
;
/**
* 反馈原因
*/
@Schema
(
description
=
"反馈原因"
,
name
=
"reasonType"
)
@ExcelAttribute
(
name
=
"反馈原因"
,
maxLength
=
32
,
needExport
=
true
)
@ExcelProperty
(
value
=
"反馈原因"
)
private
String
feedBack
;
}
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/SysMessageSalaryExportVo.java
0 → 100644
View file @
c4606483
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.TableField
;
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.salary.entity.SysMessageSalary
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* 最低工资提醒-每月更新一次
*
* @author fxj
* @date 2022-08-05 11:40:14
*/
@Data
public
class
SysMessageSalaryExportVo
extends
SysMessageSalary
{
/**
* 客户名称
*/
@ExcelAttribute
(
name
=
"客户名称"
,
isNotEmpty
=
true
,
errorInfo
=
"客户名称不能为空"
,
maxLength
=
50
)
@NotBlank
(
message
=
"客户名称不能为空"
)
@Length
(
max
=
50
,
message
=
"客户名称不能超过50个字符"
)
@ExcelProperty
(
"客户名称"
)
private
String
customerName
;
/**
* 部门名称
*/
@ExcelAttribute
(
name
=
"部门名称"
,
isNotEmpty
=
true
,
errorInfo
=
"部门名称不能为空"
,
maxLength
=
50
)
@NotBlank
(
message
=
"部门名称不能为空"
)
@Length
(
max
=
50
,
message
=
"部门名称不能超过50个字符"
)
@ExcelProperty
(
"部门名称"
)
private
String
departName
;
/**
* 员工姓名
*/
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"employeeName不能超过50个字符"
)
@ExcelProperty
(
"员工姓名"
)
private
String
employeeName
;
/**
* employeeIdnum
*/
@ExcelAttribute
(
name
=
"employeeIdnum"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"employeeIdnum不能超过50个字符"
)
@ExcelProperty
(
"employeeIdnum"
)
private
String
employeeIdnum
;
/**
* 工资月
*/
@ExcelAttribute
(
name
=
"工资月"
,
maxLength
=
10
)
@Length
(
max
=
10
,
message
=
"工资月不能超过10个字符"
)
@ExcelProperty
(
"工资月"
)
private
String
salaryMonth
;
/**
* 实发工资
*/
@ExcelAttribute
(
name
=
"实发工资"
,
isNotEmpty
=
true
,
errorInfo
=
"实发工资不能为空"
)
@NotBlank
(
message
=
"实发工资不能为空"
)
@ExcelProperty
(
"实发工资"
)
private
BigDecimal
actualSalary
;
/**
* 应发工资
*/
@ExcelAttribute
(
name
=
"应发工资"
)
@ExcelProperty
(
"应发工资"
)
private
BigDecimal
relaySalary
;
/**
* 省
*/
@ExcelAttribute
(
name
=
"省"
)
@ExcelProperty
(
"省"
)
private
Integer
province
;
/**
* 市
*/
@ExcelAttribute
(
name
=
"市"
)
@ExcelProperty
(
"市"
)
private
Integer
city
;
/**
* 县
*/
@ExcelAttribute
(
name
=
"县"
)
@ExcelProperty
(
"县"
)
private
Integer
town
;
/**
* 最低工资标准
*/
@ExcelAttribute
(
name
=
"最低工资标准"
)
@ExcelProperty
(
"最低工资标准"
)
private
BigDecimal
salaryBase
;
/**
* 工资制表人-创建人
*/
@ExcelAttribute
(
name
=
"工资制表人-创建人"
,
maxLength
=
32
)
@Length
(
max
=
32
,
message
=
"工资制表人-创建人不能超过32个字符"
)
@ExcelProperty
(
"创建人"
)
private
String
salaryMakeMan
;
/**
* 反馈
*/
@ExcelAttribute
(
name
=
"反馈"
,
maxLength
=
300
)
@Length
(
max
=
300
,
message
=
"反馈不能超过300个字符"
)
@ExcelProperty
(
"反馈"
)
private
String
feedback
;
/**
* 原因大类 根据数据字典来判断
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"原因大类 根据数据字典来判断 "
,
name
=
"reasonType"
)
@ExcelAttribute
(
name
=
"原因大类"
,
errorInfo
=
"原因大类不能为空"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
HAVE_SALARY_NO_SOCIAL_TYPE
,
needExport
=
true
)
private
Integer
reasonType
;
}
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/SysMessageSalarySearchVo.java
View file @
c4606483
...
...
@@ -25,7 +25,7 @@ import java.time.LocalDateTime;
/**
* 最低工资提醒-每月更新一次
*
* @author
hgw
* @author
fxj
* @date 2022-08-05 11:40:14
*/
@Data
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/THaveSalaryNoSocialExportVo.java
View file @
c4606483
...
...
@@ -28,6 +28,7 @@ public class THaveSalaryNoSocialExportVo extends THaveSalaryNosocial implements
@Length
(
max
=
50
,
message
=
"客户名称不能超过50个字符"
)
@ExcelAttribute
(
name
=
"客户名称"
,
maxLength
=
50
,
needExport
=
true
)
@Schema
(
description
=
"客户名称"
,
name
=
"customerName"
)
@ExcelProperty
(
value
=
"客户名称"
)
private
String
customerName
;
/**
* 结算主体名称
...
...
@@ -36,6 +37,7 @@ public class THaveSalaryNoSocialExportVo extends THaveSalaryNosocial implements
@Length
(
max
=
50
,
message
=
"结算主体名称不能超过50个字符"
)
@ExcelAttribute
(
name
=
"结算主体名称"
,
isNotEmpty
=
true
,
errorInfo
=
"结算主体名称不能为空"
,
maxLength
=
50
,
needExport
=
true
)
@Schema
(
description
=
"结算主体名称"
,
name
=
"settlementOrganName"
)
@ExcelProperty
(
value
=
"项目名称"
)
private
String
settlementOrganName
;
/**
* 员工名称
...
...
@@ -43,6 +45,7 @@ public class THaveSalaryNoSocialExportVo extends THaveSalaryNosocial implements
@Length
(
max
=
32
,
message
=
"员工名称不能超过32个字符"
)
@ExcelAttribute
(
name
=
"员工名称"
,
maxLength
=
32
,
needExport
=
true
)
@Schema
(
description
=
"员工名称"
,
name
=
"employeeName"
)
@ExcelProperty
(
value
=
"员工名称"
)
private
String
employeeName
;
/**
* 身份证号
...
...
@@ -50,22 +53,16 @@ public class THaveSalaryNoSocialExportVo extends THaveSalaryNosocial implements
@Length
(
max
=
32
,
message
=
"身份证号不能超过32个字符"
)
@ExcelAttribute
(
name
=
"身份证号"
,
maxLength
=
32
,
needExport
=
true
)
@Schema
(
description
=
"身份证号"
,
name
=
"employeeIdCard"
)
@ExcelProperty
(
value
=
"身份证号"
)
private
String
employeeIdCard
;
/**
* 员工类型
*/
@TableField
(
exist
=
false
)
@ExcelAttribute
(
name
=
"员工类型"
,
errorInfo
=
"员工类型不能为空"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
PERSONNEL_TYPE
,
needExport
=
true
)
@Schema
(
description
=
"员工类型"
,
name
=
"empType"
)
private
String
empType
;
/**
* 工资月份
*/
@NotBlank
(
message
=
"工资月份不能为空"
)
@ExcelAttribute
(
name
=
"工资月份"
,
isNotEmpty
=
true
,
errorInfo
=
"工资月份不能为空"
,
needExport
=
true
)
@Schema
(
description
=
"工资月份"
,
name
=
"month"
)
@ExcelProperty
(
value
=
"工资月份"
)
private
String
month
;
/**
...
...
@@ -73,23 +70,16 @@ public class THaveSalaryNoSocialExportVo extends THaveSalaryNosocial implements
*/
@Schema
(
description
=
"应发工资"
,
name
=
"relaySalary"
)
@ExcelAttribute
(
name
=
"应发工资"
,
isNotEmpty
=
true
,
errorInfo
=
"应发工资不能为空"
,
needExport
=
true
)
@ExcelProperty
(
value
=
"应发工资"
)
private
String
relaySalary
;
/**
* 在职状态 (0在职;1离职)
*/
@TableField
(
exist
=
false
)
@ExcelAttribute
(
name
=
"在职状态"
,
errorInfo
=
"在职状态 0是/1否不能为空"
,
maxLength
=
1
,
isDataId
=
true
,
readConverterExp
=
"0=在职,1=离职"
,
needExport
=
true
)
@Schema
(
description
=
"在职状态 0是/1否"
,
name
=
"workFlag"
)
private
String
workFlag
;
/**
* 原因大类 根据数据字典来判断
* 反馈原因
*/
@
TableField
(
exist
=
false
)
@
Schema
(
description
=
"原因大类 根据数据字典来判断 "
,
name
=
"reasonType"
)
@Excel
Attribute
(
name
=
"原因大类"
,
errorInfo
=
"原因大类不能为空"
,
maxLength
=
32
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
HAVE_SALARY_NO_SOCIAL_TYPE
,
needExport
=
true
)
private
Integer
reasonType
;
@
Schema
(
description
=
"反馈原因"
,
name
=
"reasonType"
)
@
ExcelAttribute
(
name
=
"反馈原因"
,
maxLength
=
32
,
needExport
=
true
)
@Excel
Property
(
value
=
"反馈原因"
)
private
String
feedBack
;
/**
* 创建者-姓名
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/MTitleConfigController.java
View file @
c4606483
...
...
@@ -30,8 +30,6 @@ import lombok.RequiredArgsConstructor;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 原表表头与配置关联表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/SysMessageSalaryController.java
View file @
c4606483
...
...
@@ -2,44 +2,27 @@ package com.yifu.cloud.plus.v1.yifu.salary.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Maps
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil
;
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.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.SysMessageSalaryService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryHandelExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryTemplExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalarySearchVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.CharEncoding
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.net.URLEncoder
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* 最低工资提醒-每月更新一次
*
* @author hgw
* @date 2019-11-21 17:18:10
*/
* @Author fxj
* @Description 最低工资提醒-每月更新一次
* @Date 17:59 2022/8/17
**/
@RestController
@AllArgsConstructor
@RequestMapping
(
"/sysmessagesalary"
)
...
...
@@ -47,23 +30,10 @@ import java.util.List;
@Slf4j
public
class
SysMessageSalaryController
{
public
static
final
String
EMPLOYEE_ID
=
"employeeId"
;
public
static
final
String
MULTIPART_FORM_DATA
=
"multipart/form-data"
;
public
static
final
String
CONTENT_DISPOSITION
=
"Content-Disposition"
;
public
static
final
String
ATTACHMENT_FILENAME
=
"attachment;filename="
;
private
final
SysMessageSalaryService
sysMessageSalaryService
;
/* @Autowired
private RemoteSysDictService remoteSysDictService;
@Autowired
private PreRemoteBasicArchivesService preRemoteBasicArchivesService;
@Autowired
private RemoteUserService remoteUserService;
@Autowired
private RemoteBasicArchivesService remoteBasicArchivesService;*/
/**
* 简单分页查询
*
* @param page 分页对象
* @param sysMessageSalary 最低工资提醒-每月更新一次
* @return
...
...
@@ -74,7 +44,6 @@ public class SysMessageSalaryController {
return
new
R
<>(
sysMessageSalaryService
.
getSysMessageSalaryPage
(
page
,
sysMessageSalary
));
}
/**
* 简单分页查询
*
...
...
@@ -88,7 +57,6 @@ public class SysMessageSalaryController {
return
new
R
<>(
sysMessageSalaryService
.
getSysMessageSalaryHandlePage
(
page
,
sysMessageSalary
));
}
/**
* 通过id查询单条记录
*
...
...
@@ -102,10 +70,10 @@ public class SysMessageSalaryController {
}
/**
*
生成最低工资提醒
*
hgw
*
2019-11-21 18:35:56
*/
*
@Author fxj
*
@Description 生成最低工资提醒
*
@Date 18:00 2022/8/17
*
*/
@Inner
@Operation
(
description
=
"生成最低工资提醒"
)
@GetMapping
(
"/inner/createSysMessageSalary"
)
...
...
@@ -117,15 +85,12 @@ public class SysMessageSalaryController {
//2:开始生成:
//2.1:普通工资
sysMessageSalaryService
.
insertSalaryBySettleMonth
(
settleMonth
);
}
/**
* @param
* @Author: wangan
* @Date: 2021/1/11
* @Description: 为了生成之前的月份
* @return: void
* @Author fxj
* @Description 为了生成之前的月份
* @Date 18:00 2022/8/17
**/
@Operation
(
description
=
"生成最低工资提醒外部接口调用"
)
@SysLog
(
"生成最低工资提醒外部接口调用"
)
...
...
@@ -136,16 +101,15 @@ public class SysMessageSalaryController {
//2:开始生成:
//2.1:普通工资
sysMessageSalaryService
.
insertSalaryBySettleMonth
(
settleMonth
);
}
/**
* @
param
* @
Author: wangan
* @Date
: 2020/12
/17
* @
Description: 最低工资提醒-临时人员连续购买最低工资次数
* @return
: void
* @
Author fxj
* @
Description 最低工资提醒-临时人员连续购买最低工资次数
* @Date
18:00 2022/8
/17
* @
Param
* @return
**/
@Inner
@GetMapping
(
"/inner/createSysMessageSalaryTemp"
)
...
...
@@ -157,11 +121,9 @@ public class SysMessageSalaryController {
}
/**
* @param
* @Author: wangan
* @Date: 2021/1/11
* @Description: 为了生成之前的月份
* @return: void
* @Author fxj
* @Description 临时人员连续购买最低工资次数外部接口调用
* @Date 18:01 2022/8/17
**/
@Operation
(
description
=
"临时人员连续购买最低工资次数外部接口调用"
)
@SysLog
(
"临时人员连续购买最低工资次数外部接口调用"
)
...
...
@@ -171,338 +133,35 @@ public class SysMessageSalaryController {
}
/**
* @param
* @Author: wangan
* @Date: 2019/11/26
* @Description: 获取导出的中文字段
* @return: com.yifu.cloud.v1.common.core.util.R
**/
@Operation
(
description
=
"获取导出的中文字段"
)
@GetMapping
(
"/getExportFieldName"
)
public
R
<
List
<
String
>>
getExportFieldName
()
{
return
ExcelUtil
.
getExportfieldsName
(
SysMessageSalary
.
class
);
}
@GetMapping
(
"/export"
)
@Operation
(
description
=
"导出"
)
@SysLog
(
"导出"
)
public
void
exportHandle
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestParam
(
name
=
"idStr"
,
required
=
false
)
String
[]
idstr
,
@RequestParam
(
name
=
"exportFields"
,
required
=
true
)
String
[]
exportFields
,
SysMessageSalary
vo
)
{
List
<
SysMessageSalary
>
list
;
OutputStream
ouputStream
=
null
;
HSSFWorkbook
workbook
;
ExcelUtil
<
SysMessageSalary
>
util1
;
util1
=
new
ExcelUtil
<>(
SysMessageSalary
.
class
);
if
(
Common
.
isNotNull
(
idstr
))
{
list
=
sysMessageSalaryService
.
getByIdExport
(
idstr
);
}
else
{
list
=
sysMessageSalaryService
.
getExport
(
vo
);
}
try
{
HashMap
<
String
,
String
>
dicMap
=
Maps
.
newHashMap
();
//获取所有用户
if
(!
list
.
isEmpty
())
{
/*Map<String, String> userNameMap = null;//RemoteExportUtil.getUserNameMap(remoteUserService);
//字典数据
R<List<SysDict>> res = remoteSysDictService.findDetailsByItemTypeAndClientId("", ServiceNameConstants.SERVICE_NAME_WXHR, SecurityConstants.FROM_IN);
//区域数据
R<List<SysArea>> sysAreaR = preRemoteBasicArchivesService.getSysAreaList(SecurityUtils.getUser());
dicMap = ServiceUtil.initMapForExport(null == res ? null : res.getData(), null, null == sysAreaR ? null : sysAreaR.getData(), userNameMap);
//获取员工
Map<String, TEmployeeInfo> employeeInfoMap = RemoteExportUtil.getTEmployeeInfoMap(remoteBasicArchivesService, Common.listObjectToStr(list, EMPLOYEE_ID, CommonConstants.COMMA_STRING));
//塞员工值
for (SysMessageSalary salary : list) {
TEmployeeInfo employeeInfo = employeeInfoMap.get(salary.getEmployeeId());
if (employeeInfo != null) {
salary.setEmpType(employeeInfo.getEmpType());
salary.setFileProvince(employeeInfo.getFileProvince());
salary.setFileCity(employeeInfo.getFileCity());
salary.setFileTown(employeeInfo.getFileTown());
salary.setWorkFlag(employeeInfo.getWorkFlag());
salary.setWorkingStatusSub(employeeInfo.getWorkingStatusSub());
}
}*/
}
workbook
=
null
;
// util1.listToExcelByDicMap(list, exportFields, "最低工资提醒信息", dicMap, DateUtil.ISO_EXPANDED_DATE_FORMAT);
String
fileName
=
"最低工资提醒信息"
+
LocalDateTime
.
now
()
+
".xls"
;
response
.
setContentType
(
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CONTENT_DISPOSITION
,
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CharEncoding
.
UTF_8
));
ouputStream
=
response
.
getOutputStream
();
workbook
.
write
(
ouputStream
);
ouputStream
.
flush
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
ouputStream
)
{
ouputStream
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
/**
* @param
* @Author: wangan
* @Date: 2020/12/16
* @Description:
* @return: com.yifu.cloud.v1.common.core.util.R<java.util.List < java.lang.String>>
**/
@Operation
(
description
=
"获取反馈审核导出的中文字段"
)
@GetMapping
(
"/getHandleExportFieldName"
)
public
R
<
List
<
String
>>
getHandleExportFieldName
()
{
Class
<?
super
SysMessageSalaryHandelExportVo
>
superClazz
=
SysMessageSalaryHandelExportVo
.
class
.
getSuperclass
();
R
<
List
<
String
>>
superExportfieldsName
=
ExcelUtil
.
getExportfieldsName
(
superClazz
);
R
<
List
<
String
>>
exportfieldsName
=
ExcelUtil
.
getExportfieldsName
(
SysMessageSalaryHandelExportVo
.
class
);
List
<
String
>
data
=
superExportfieldsName
.
getData
();
data
.
addAll
(
exportfieldsName
.
getData
());
return
R
.
ok
(
data
);
}
/**
* @param response
* @param request
* @param idstr
* @param exportFields
* @param vo
* @Author: wangan
* @Date: 2020/12/17
* @Description:
* @return: void
**/
@GetMapping
(
"/handle/export"
)
@Operation
(
description
=
"反馈审核人员导出"
)
@SysLog
(
"反馈审核人员导出"
)
public
void
exportHandle
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestParam
(
name
=
"idStr"
,
required
=
false
)
String
[]
idstr
,
@RequestParam
(
name
=
"exportFields"
,
required
=
true
)
String
[]
exportFields
,
SysMessageSalaryHandelExportVo
vo
)
{
if
(
Common
.
isEmpty
(
vo
.
getSettleMonth
()))
{
return
;
}
List
<
SysMessageSalaryHandelExportVo
>
list
;
OutputStream
ouputStream
=
null
;
HSSFWorkbook
workbook
;
ExcelUtil
<
SysMessageSalaryHandelExportVo
>
util1
;
util1
=
new
ExcelUtil
<>(
SysMessageSalaryHandelExportVo
.
class
);
if
(
Common
.
isNotNull
(
idstr
))
{
list
=
sysMessageSalaryService
.
getByIdHandleExport
(
idstr
);
}
else
{
list
=
sysMessageSalaryService
.
getHandleExport
(
vo
);
}
try
{
//通过员工id+结算月份查询所有消息提醒数据。
SimpleDateFormat
sf
=
new
SimpleDateFormat
(
"yyyyMM"
);
Calendar
instance
=
Calendar
.
getInstance
();
Date
date
=
sf
.
parse
(
vo
.
getSettleMonth
());
instance
.
setTime
(
date
);
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastOneMonth
=
sf
.
format
(
instance
.
getTime
());
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastTwoMonth
=
sf
.
format
(
instance
.
getTime
());
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastThreeMonth
=
sf
.
format
(
instance
.
getTime
());
List
<
SysMessageSalary
>
lastTHaveSalaryNosocial
=
sysMessageSalaryService
.
getLastTHaveSalaryNosocial
(
lastOneMonth
,
lastTwoMonth
,
lastThreeMonth
);
HashMap
<
String
,
Integer
>
lastHashMap
=
Maps
.
newHashMap
();
for
(
SysMessageSalary
entity
:
lastTHaveSalaryNosocial
)
{
lastHashMap
.
put
(
entity
.
getSettleMonth
()
+
entity
.
getEmployeeId
(),
null
);
}
HashMap
<
String
,
String
>
dicMap
=
Maps
.
newHashMap
();
//获取所有用户
if
(!
list
.
isEmpty
())
{
/* Map<String, String> userNameMap = null;// RemoteExportUtil.getUserNameMap(remoteUserService);
//字典数据
R<List<SysDict>> res = remoteSysDictService.findDetailsByItemTypeAndClientId("", ServiceNameConstants.SERVICE_NAME_WXHR, SecurityConstants.FROM_IN);
//区域数据
R<List<SysArea>> sysAreaR = preRemoteBasicArchivesService.getSysAreaList(SecurityUtils.getUser());
dicMap = ServiceUtil.initMapForExport(null == res ? null : res.getData(), null, null == sysAreaR ? null : sysAreaR.getData(), userNameMap);
//获取员工
Map<String, TEmployeeInfo> employeeInfoMap = RemoteExportUtil.getTEmployeeInfoMap(remoteBasicArchivesService, Common.listObjectToStr(list, EMPLOYEE_ID, CommonConstants.COMMA_STRING));
//塞员工值
for (SysMessageSalaryHandelExportVo handelExportVo : list) {
TEmployeeInfo employeeInfo = employeeInfoMap.get(handelExportVo.getEmployeeId());
if (employeeInfo != null) {
handelExportVo.setEmpType(employeeInfo.getEmpType());
handelExportVo.setFileProvince(employeeInfo.getFileProvince());
handelExportVo.setFileCity(employeeInfo.getFileCity());
handelExportVo.setFileTown(employeeInfo.getFileTown());
handelExportVo.setWorkFlag(employeeInfo.getWorkFlag());
handelExportVo.setWorkingStatusSub(employeeInfo.getWorkingStatusSub());
}
//从map汇总获取前三个月的反馈数据
handelExportVo.setLastOneReasonType(lastHashMap.get(lastOneMonth + handelExportVo.getEmployeeId()));
handelExportVo.setLastTwoReasonType(lastHashMap.get(lastTwoMonth + handelExportVo.getEmployeeId()));
handelExportVo.setLastThreeReasonType(lastHashMap.get(lastThreeMonth + handelExportVo.getEmployeeId()));
}*/
}
workbook
=
null
;
//util1.listToExcelByDicMap(list, exportFields, "最低工资反馈导出", dicMap, DateUtil.ISO_EXPANDED_DATE_FORMAT);
String
fileName
=
"最低工资反馈导出"
+
LocalDateTime
.
now
()
+
".xls"
;
response
.
setContentType
(
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CONTENT_DISPOSITION
,
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CharEncoding
.
UTF_8
));
ouputStream
=
response
.
getOutputStream
();
workbook
.
write
(
ouputStream
);
ouputStream
.
flush
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
ouputStream
)
{
ouputStream
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
/**
* @param
* @Author: wangan
* @Date: 2020/12/16
* @Description:
* @return: com.yifu.cloud.v1.common.core.util.R<java.util.List < java.lang.String>>
**/
@Operation
(
description
=
"获取临时人员导出的中文字段"
)
@GetMapping
(
"/getTempExportFieldName"
)
public
R
<
List
<
String
>>
getTempExportFieldName
()
{
Class
<?
super
SysMessageSalaryTemplExportVo
>
superClazz
=
SysMessageSalaryTemplExportVo
.
class
.
getSuperclass
();
R
<
List
<
String
>>
superExportfieldsName
=
ExcelUtil
.
getExportfieldsName
(
superClazz
);
R
<
List
<
String
>>
exportfieldsName
=
ExcelUtil
.
getExportfieldsName
(
SysMessageSalaryTemplExportVo
.
class
);
List
<
String
>
data
=
superExportfieldsName
.
getData
();
data
.
addAll
(
exportfieldsName
.
getData
());
return
R
.
ok
(
data
);
}
/**
* @param response
* @param request
* @param idstr
* @param exportFields
* @param vo
* @Author: wangan
* @Date: 2020/12/17
* @Description:
* @return: void
* @Author fxj
* @Description 最低工资提醒导出
* @Date 15:28 2022/8/17
* @Param
* @return
**/
@GetMapping
(
"/temp/export"
)
@Operation
(
description
=
"临时人员导出"
)
@SysLog
(
"临时人员导出"
)
public
void
tempExportHandle
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestParam
(
name
=
"idStr"
,
required
=
false
)
String
[]
idstr
,
@RequestParam
(
name
=
"exportFields"
,
required
=
true
)
String
[]
exportFields
,
SysMessageSalaryTemplExportVo
vo
)
{
if
(
Common
.
isEmpty
(
vo
.
getSettleMonth
()))
{
return
;
@SysLog
(
"最低工资提醒导出"
)
@Operation
(
description
=
"最低工资提醒导出"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SysMessageSalarySearchVo
searchVo
)
{
sysMessageSalaryService
.
listExport
(
response
,
searchVo
);
}
List
<
SysMessageSalaryTemplExportVo
>
list
;
OutputStream
ouputStream
=
null
;
HSSFWorkbook
workbook
;
ExcelUtil
<
SysMessageSalaryTemplExportVo
>
util1
;
util1
=
new
ExcelUtil
<>(
SysMessageSalaryTemplExportVo
.
class
);
list
=
sysMessageSalaryService
.
getTempExport
(
vo
.
getSettleMonth
());
try
{
//通过员工id+结算月份查询所有消息提醒数据。
SimpleDateFormat
sf
=
new
SimpleDateFormat
(
"yyyyMM"
);
Calendar
instance
=
Calendar
.
getInstance
();
Date
date
=
sf
.
parse
(
vo
.
getSettleMonth
());
instance
.
setTime
(
date
);
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastOneMonth
=
sf
.
format
(
instance
.
getTime
());
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastTwoMonth
=
sf
.
format
(
instance
.
getTime
());
instance
.
add
(
Calendar
.
MONTH
,
-
1
);
String
lastThreeMonth
=
sf
.
format
(
instance
.
getTime
());
List
<
SysMessageSalary
>
lastTHaveSalaryNosocial
=
sysMessageSalaryService
.
getLastTHaveSalaryNosocial
(
lastOneMonth
,
lastTwoMonth
,
lastThreeMonth
);
HashMap
<
String
,
Integer
>
lastHashMap
=
Maps
.
newHashMap
();
for
(
SysMessageSalary
entity
:
lastTHaveSalaryNosocial
)
{
lastHashMap
.
put
(
entity
.
getSalaryMonth
()
+
entity
.
getEmployeeId
(),
null
);
}
HashMap
<
String
,
String
>
dicMap
=
Maps
.
newHashMap
();
//获取所有用户
if
(!
list
.
isEmpty
())
{
/* Map<String, String> userNameMap = RemoteExportUtil.getUserNameMap(remoteUserService);
//字典数据
R<List<SysDict>> res = remoteSysDictService.findDetailsByItemTypeAndClientId("", ServiceNameConstants.SERVICE_NAME_WXHR, SecurityConstants.FROM_IN);
//区域数据
R<List<SysArea>> sysAreaR = preRemoteBasicArchivesService.getSysAreaList(SecurityUtils.getUser());
dicMap = ServiceUtil.initMapForExport(null == res ? null : res.getData(), null, null == sysAreaR ? null : sysAreaR.getData(), userNameMap);
//获取员工
Map<String, TEmployeeInfo> employeeInfoMap = RemoteExportUtil.getTEmployeeInfoMap(remoteBasicArchivesService, Common.listObjectToStr(list, EMPLOYEE_ID, CommonConstants.COMMA_STRING));
//塞员工值
for (SysMessageSalaryTemplExportVo exportVo : list) {
TEmployeeInfo employeeInfo = employeeInfoMap.get(exportVo.getEmployeeId());
if (employeeInfo != null) {
*//*exportVo.setEmpType(employeeInfo.getEmpType());
exportVo.setFileProvince(employeeInfo.getFileProvince());
exportVo.setFileCity(employeeInfo.getFileCity());
exportVo.setFileTown(employeeInfo.getFileTown());
exportVo.setWorkFlag(employeeInfo.getWorkFlag());
exportVo.setWorkingStatusSub(employeeInfo.getWorkingStatusSub());*//*
}
//从map汇总获取前三个月的反馈数据
exportVo.setLastOneReasonType(lastHashMap.get(lastOneMonth + exportVo.getEmployeeId()));
exportVo.setLastTwoReasonType(lastHashMap.get(lastTwoMonth + exportVo.getEmployeeId()));
exportVo.setLastThreeReasonType(lastHashMap.get(lastThreeMonth + exportVo.getEmployeeId()));
}*/
}
workbook
=
null
;
//util1.listToExcelByDicMap(list, exportFields, "最低工资临时人员", dicMap, DateUtil.ISO_EXPANDED_DATE_FORMAT);
String
fileName
=
"最低工资临时人员"
+
LocalDateTime
.
now
()
+
".xls"
;
response
.
setContentType
(
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CONTENT_DISPOSITION
,
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CharEncoding
.
UTF_8
));
ouputStream
=
response
.
getOutputStream
();
workbook
.
write
(
ouputStream
);
ouputStream
.
flush
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
ouputStream
)
{
ouputStream
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
/**
* @param
* @Author: wangan
* @Date: 2019/11/22
* @Description: 工作台消息提醒:最低工资提醒
* @return: com.yifu.cloud.v1.common.core.util.R<java.util.Map < java.lang.String, java.lang.Object>>
* @Author fxj
* @Description 只有创建人为自己才能反馈
* @Date 17:15 2022/8/17
* @Param
* @return
**/
/*@PostMapping("/inner/workBranch/getSalaryMessageWarn")
@Inner
public R<List<WorkBanchWarnVo>> getSalaryMessageWarn(@RequestBody List<TSettleDomainSelectVo> remoteSettleDomainVoData) {
List<WorkBanchWarnVo> resultList = Lists.newArrayList();
List<String> settleDomainIds = Common.listObjectToStrList(remoteSettleDomainVoData, "id");
//最低工资提醒
int lowestalaryWarnCount = 0;
if (settleDomainIds != null && !settleDomainIds.isEmpty()) {
lowestalaryWarnCount = sysMessageSalaryService.count(Wrappers.<SysMessageSalary>query().lambda()
.in(SysMessageSalary::getDepartId, settleDomainIds));
}
if (lowestalaryWarnCount > 0) {
WorkBanchWarnVo noBuyInsuranceWorkBanchWarnVo = new WorkBanchWarnVo();
noBuyInsuranceWorkBanchWarnVo.setMesage(lowestalaryWarnCount + "个最低工资提醒");
noBuyInsuranceWorkBanchWarnVo.setCount(lowestalaryWarnCount);
noBuyInsuranceWorkBanchWarnVo.setUrl(WorkBanchConstants.LOWERST_SALARY_WARN_NAME_URL);
resultList.add(noBuyInsuranceWorkBanchWarnVo);
@Operation
(
description
=
"最低工资提醒导出反馈"
)
@SysLog
(
"最低工资提醒导出反馈"
)
@PostMapping
(
"/feedback"
)
public
R
<
String
>
feedback
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
,
@RequestParam
(
name
=
"reasonType"
,
required
=
true
)
Integer
reasonType
,
@RequestParam
(
name
=
"feedBack"
,
required
=
true
)
String
feedBack
)
{
return
sysMessageSalaryService
.
feedback
(
reasonType
,
id
,
feedBack
);
}
return new R(resultList);
}*/
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TApprovalRecordController.java
View file @
c4606483
...
...
@@ -23,10 +23,10 @@ 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.salary.entity.TApprovalRecord
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TApprovalRecordService
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/THaveSalaryNosocialController.java
View file @
c4606483
...
...
@@ -118,13 +118,13 @@ public class THaveSalaryNosocialController {
/**
* @Author fxj
* @Description 消息提醒导出
* @Description
有工资无社保
消息提醒导出
* @Date 15:28 2022/8/17
* @Param
* @return
**/
@SysLog
(
"消息提醒导出"
)
@Operation
(
description
=
"导出"
)
@SysLog
(
"
有工资无社保
消息提醒导出"
)
@Operation
(
description
=
"
有工资无社保消息提醒
导出"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
THaveSalaryNosocialSearchVo
searchVo
)
{
...
...
@@ -138,11 +138,13 @@ public class THaveSalaryNosocialController {
* @Param
* @return
**/
@Operation
(
description
=
"反馈"
)
@SysLog
(
"有工资无社保消息提醒反馈"
)
@Operation
(
description
=
"有工资无社保消息提醒反馈"
)
@PostMapping
(
"/feedback"
)
public
R
<
String
>
feedback
(
@RequestParam
(
name
=
"reasonType"
,
required
=
true
)
Integer
reasonType
,
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
return
tHaveSalaryNosocialService
.
feedback
(
reasonType
,
id
);
public
R
<
String
>
feedback
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
,
@RequestParam
(
name
=
"reasonType"
,
required
=
true
)
Integer
reasonType
,
@RequestParam
(
name
=
"feedBack"
,
required
=
true
)
String
feedBack
)
{
return
tHaveSalaryNosocialService
.
feedback
(
reasonType
,
id
,
feedBack
);
}
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryStandardController.java
View file @
c4606483
...
...
@@ -38,7 +38,6 @@ import org.springframework.security.access.prepost.PreAuthorize;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TStatisticsBonusController.java
View file @
c4606483
...
...
@@ -26,11 +26,11 @@ import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsBonus
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsBonusService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusSearchVo
;
import
lombok.SneakyThrows
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TStatisticsDeclarerController.java
View file @
c4606483
...
...
@@ -26,11 +26,11 @@ import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsDeclarer
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsDeclarerService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerSearchVo
;
import
lombok.SneakyThrows
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/MSalaryPaymentResMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.MSalaryPaymentRes
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.MSalaryPaymentRes
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/MTitleConfigMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.MTitleConfig
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.MTitleConfig
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 原表表头与配置关联表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/SysMessageSalaryMapper.java
View file @
c4606483
...
...
@@ -5,8 +5,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalary
Handel
ExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalary
TemplExport
Vo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalary
Search
Vo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -58,17 +58,13 @@ public interface SysMessageSalaryMapper extends BaseMapper<SysMessageSalary> {
**/
void
deleteAllBySettleMonth
(
@Param
(
"settleMonth"
)
String
settleMonth
);
List
<
SysMessageSalary
>
getByIdExport
(
String
[]
ids
);
List
<
SysMessageSalaryExportVo
>
noPageDiy
(
@Param
(
"sysMessageSalary"
)
SysMessageSalarySearchVo
searchVo
,
@Param
(
"settleDomainIds"
)
List
<
String
>
settleDomains
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
,
@Param
(
"sql"
)
String
sql
);
List
<
SysMessageSalary
>
getExport
(
@Param
(
"sysMessageSalary"
)
SysMessageSalary
vo
,
@Param
(
"settleDomainVos"
)
List
<
TSettleDomainSelectVo
>
settleDomainVos
);
List
<
SysMessageSalaryHandelExportVo
>
getByIdHandleExport
(
String
[]
ids
);
List
<
SysMessageSalaryHandelExportVo
>
getHandleExport
(
@Param
(
"sysMessageSalary"
)
SysMessageSalaryHandelExportVo
vo
);
List
<
SysMessageSalary
>
getLastTHaveSalaryNosocial
(
@Param
(
"lastOneMonth"
)
String
lastOneMonth
,
@Param
(
"lastTwoMonth"
)
String
lastTwoMonth
,
@Param
(
"lastThreeMonth"
)
String
lastThreeMonth
);
List
<
SysMessageSalaryTemplExportVo
>
getTempExport
(
@Param
(
"settleMonth"
)
String
settleMonth
);
int
noPageCountDiy
(
@Param
(
"sysMessageSalary"
)
SysMessageSalarySearchVo
searchVo
,
@Param
(
"settleDomainIds"
)
List
<
String
>
settleDomains
,
@Param
(
"idsStr"
)
List
<
String
>
idsStr
,
@Param
(
"sql"
)
String
sql
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TConfigSalaryMapper.java
View file @
c4606483
...
...
@@ -3,7 +3,6 @@ package com.yifu.cloud.plus.v1.yifu.salary.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TConfigSalary
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TDeptSeeMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TDeptSee
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TDeptSee
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 项目薪资查询权限配置表-薪资配置1
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TPauseSalaryMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TPauseSalary
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TPauseSalary
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 暂停发表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryAccount2022Mapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount2022
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount2022
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 工资报账主表2022
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryAccountMapper.java
View file @
c4606483
...
...
@@ -18,12 +18,12 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.THaveSalaryNosocial
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.AccountCheckVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryAttaMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAtta
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAtta
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryEmployeeMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryEmployee
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryEmployee
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 薪酬人员表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryExcelCheckMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryExcelCheck
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryExcelCheck
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 工资EXCEL校验配置表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryLockMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryLock
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryLock
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 薪资导入、删除锁定表(锁定后不可导入删除,除非清理掉数据)
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
View file @
c4606483
...
...
@@ -18,12 +18,12 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryStandard
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardSearchVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsCurrentReportMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsCurrentReport
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsCurrentReport
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 统计-本期申报
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsCurrentReportMarketMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsCurrentReportMarket
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsCurrentReportMarket
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 统计-本期申报-回盘数据
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsLaborMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsLabor
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsLabor
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsRemunerationMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsRemuneration
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsRemuneration
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsTaxSalaryMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsTaxSalary
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsTaxSalary
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 统计-工资薪金
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TStatisticsTaxSalaryRuleMapper.java
View file @
c4606483
...
...
@@ -18,10 +18,10 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsTaxSalaryRule
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsTaxSalaryRule
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 个税申报手动刷新限制表
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/SysMessageSalaryService.java
View file @
c4606483
...
...
@@ -3,12 +3,12 @@ package com.yifu.cloud.plus.v1.yifu.salary.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryHandelExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryTemplExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalarySearchVo
;
import
org.apache.ibatis.annotations.Param
;
import
java
.util.List
;
import
java
x.servlet.http.HttpServletResponse
;
/**
* 最低工资提醒-每月更新一次
...
...
@@ -29,37 +29,26 @@ public interface SysMessageSalaryService extends IService<SysMessageSalary> {
IPage
<
SysMessageSalary
>
getSysMessageSalaryHandlePage
(
Page
<
SysMessageSalary
>
page
,
SysMessageSalary
sysMessageSalary
);
/**
* @param settleMonth
* @Description: 新增-普通工资
* @Author: hgw
* @Date: 2019/11/21 18:10
* @return: java.util.List<com.yifu.cloud.v1.hrms.api.vo.SysMessageSalaryVo>
* @Author fxj
* @Description 新增-普通工资
* @Date 19:43 2022/8/17
**/
void
insertSalaryBySettleMonth
(
@Param
(
"settleMonth"
)
String
settleMonth
);
/**
* @
param settleMonth 结算月
* @Description
:
生成前,先删除老数据
* @
Author: hgw
* @
Date: 2019/11/21 17:28
* @return
: void
* @
Author fxj
* @Description 生成前,先删除老数据
* @
Date 19:42 2022/8/17
* @
Param settleMonth 结算月
* @return
**/
void
deleteAllBySettleMonth
(
String
settleMonth
);
void
createSysMessageSalaryTemp
(
String
settleMonth
);
List
<
SysMessageSalary
>
getByIdExport
(
String
[]
ids
);
List
<
SysMessageSalary
>
getExport
(
SysMessageSalary
vo
);
List
<
SysMessageSalaryHandelExportVo
>
getByIdHandleExport
(
String
[]
ids
);
List
<
SysMessageSalaryHandelExportVo
>
getHandleExport
(
SysMessageSalaryHandelExportVo
vo
);
List
<
SysMessageSalaryTemplExportVo
>
getTempExport
(
String
settleMonth
);
List
<
SysMessageSalary
>
getLastTHaveSalaryNosocial
(
String
lastOneMonth
,
String
lastTwoMonth
,
String
lastThreeMonth
);
void
listExport
(
HttpServletResponse
response
,
SysMessageSalarySearchVo
searchVo
);
void
createSysMessageSalaryTemp
(
String
settleMonth
);
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
,
String
feedBack
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TApprovalRecordService.java
View file @
c4606483
...
...
@@ -17,10 +17,11 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord
;
import
java.util.List
;
/**
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/THaveSalaryNosocialService.java
View file @
c4606483
...
...
@@ -5,11 +5,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.THaveSalaryNosocial
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNosocialHandleExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNosocialSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 有资没有社保(首页提醒定时任务)
...
...
@@ -32,17 +30,8 @@ public interface THaveSalaryNosocialService extends IService<THaveSalaryNosocial
void
generate
(
String
settleMonth
);
List
<
THaveSalaryNosocial
>
getByIdExport
(
String
[]
ids
);
List
<
THaveSalaryNosocial
>
getExport
(
THaveSalaryNosocial
vo
);
List
<
THaveSalaryNosocialHandleExportVo
>
getByIdHandleExport
(
String
[]
ids
);
List
<
THaveSalaryNosocialHandleExportVo
>
getHandleExport
(
THaveSalaryNosocial
vo
);
List
<
THaveSalaryNosocial
>
getLastTHaveSalaryNosocial
(
String
lastOneMonth
,
String
lastTwoMonth
,
String
lastThreeMonth
);
void
listExport
(
HttpServletResponse
response
,
THaveSalaryNosocialSearchVo
searchVo
);
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
);
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
,
String
feedBack
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TSalaryAccountItemService.java
View file @
c4606483
...
...
@@ -6,9 +6,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccountItem
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.Map
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TSalaryAccountService.java
View file @
c4606483
...
...
@@ -17,16 +17,14 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.THaveSalaryNosocial
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
import
java.util.Map
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TStatisticsBonusService.java
View file @
c4606483
...
...
@@ -17,13 +17,14 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsBonus
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsBonus
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TStatisticsDeclarerService.java
View file @
c4606483
...
...
@@ -17,14 +17,13 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsDeclarer
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsDeclarer
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerSearchVo
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SysMessageSalaryServiceImpl.java
View file @
c4606483
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -9,25 +12,31 @@ import com.google.common.collect.Maps;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
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.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil
;
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.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalaryTemp
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.SysMessageSalaryMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.SysMessageSalaryService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.SysMessageSalaryTempService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryHandelExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalaryTemp
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryTemplExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalarySearchVo
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -86,11 +95,9 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
}
/**
* @param settleMonth
* @Description: 新增-普通工资
* @Author: hgw
* @Date: 2019/11/21 18:10
* @return: java.util.List<com.yifu.cloud.v1.hrms.api.vo.SysMessageSalaryVo>
* @Author fxj
* @Description 新增-普通工资
* @Date 18:19 2022/8/17
**/
@Transactional
@Override
...
...
@@ -144,49 +151,6 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
baseMapper
.
deleteAllBySettleMonth
(
settleMonth
);
}
@Override
public
List
<
SysMessageSalary
>
getByIdExport
(
String
[]
ids
)
{
return
baseMapper
.
getByIdExport
(
ids
);
}
@Override
public
List
<
SysMessageSalary
>
getExport
(
SysMessageSalary
vo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
/*if (!SecurityUtils.isHaveAllOrg(ServiceNameConstants.SERVICE_NAME_WXHR, user)) {
R<List<TSettleDomainSelectVo>> remoteGetTSettleDomainVo = preRemoteBasicArchivesService.getInnerSettleDomainSelectVosByExtendUser(SecurityUtils.getUser());
if (remoteGetTSettleDomainVo == null) {
throw new CheckedException("调用结算主体服务失败");
}
if (CommonConstants.SUCCESS != remoteGetTSettleDomainVo.getCode()) {
throw new CheckedException("调用结算主体返回失败");
}
List<TSettleDomainSelectVo> remoteSettleDomainVoData = remoteGetTSettleDomainVo.getData();
return baseMapper.getExport(vo, remoteSettleDomainVoData);
} else {
}*/
return
baseMapper
.
getExport
(
vo
,
null
);
}
@Override
public
List
<
SysMessageSalaryTemplExportVo
>
getTempExport
(
String
settleMonth
)
{
return
baseMapper
.
getTempExport
(
settleMonth
);
}
@Override
public
List
<
SysMessageSalaryHandelExportVo
>
getByIdHandleExport
(
String
[]
ids
)
{
return
baseMapper
.
getByIdHandleExport
(
ids
);
}
@Override
public
List
<
SysMessageSalaryHandelExportVo
>
getHandleExport
(
SysMessageSalaryHandelExportVo
vo
)
{
return
baseMapper
.
getHandleExport
(
vo
);
}
@Override
public
List
<
SysMessageSalary
>
getLastTHaveSalaryNosocial
(
String
lastOneMonth
,
String
lastTwoMonth
,
String
lastThreeMonth
)
{
return
baseMapper
.
getLastTHaveSalaryNosocial
(
lastOneMonth
,
lastTwoMonth
,
lastThreeMonth
);
}
@Override
public
void
createSysMessageSalaryTemp
(
String
month
)
{
...
...
@@ -235,4 +199,107 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
}
/**
* @Author fxj
* @Description 最低工资提醒导出
* @Date 18:12 2022/8/17
**/
@Override
public
void
listExport
(
HttpServletResponse
response
,
SysMessageSalarySearchVo
searchVo
)
{
String
fileName
=
"最低工资提醒导出"
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
SysMessageSalaryExportVo
>
list
=
new
ArrayList
<>();
// TODO
List
<
String
>
settleDomainIds
=
null
;
List
<
String
>
ids
=
null
;
String
sql
=
null
;
int
count
=
noPageCountDiy
(
searchVo
,
settleDomainIds
,
ids
,
sql
);
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
CommonConstants
.
UTF8
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
SysMessageSalaryExportVo
.
class
).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
){
for
(
int
i
=
0
;
i
<=
count
;
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
noPageDiy
(
searchVo
,
settleDomainIds
,
ids
,
sql
);
if
(
Common
.
isNotNull
(
list
)){
ExcelUtil
<
SysMessageSalaryExportVo
>
util
=
new
ExcelUtil
<>(
SysMessageSalaryExportVo
.
class
);
for
(
SysMessageSalaryExportVo
vo:
list
){
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
}
if
(
Common
.
isNotNull
(
list
)){
WriteSheet
writeSheet
=
EasyExcel
.
writerSheet
(
"消息提醒"
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
index
++;
}
i
=
i
+
CommonConstants
.
EXCEL_EXPORT_LIMIT
;
if
(
Common
.
isNotNull
(
list
)){
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcel
.
writerSheet
(
"消息提醒"
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
}
if
(
Common
.
isNotNull
(
list
)){
list
.
clear
();
}
out
.
flush
();
excelWriter
.
finish
();
}
catch
(
Exception
e
){
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
out
)
{
out
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
private
List
<
SysMessageSalaryExportVo
>
noPageDiy
(
SysMessageSalarySearchVo
searchVo
,
List
<
String
>
settleDomainIds
,
List
<
String
>
ids
,
String
sql
)
{
return
baseMapper
.
noPageDiy
(
searchVo
,
settleDomainIds
,
ids
,
sql
);
}
private
int
noPageCountDiy
(
SysMessageSalarySearchVo
searchVo
,
List
<
String
>
settleDomainIds
,
List
<
String
>
ids
,
String
sql
)
{
return
baseMapper
.
noPageCountDiy
(
searchVo
,
settleDomainIds
,
ids
,
sql
);
}
/**
* @Author fxj
* @Description 反馈信息
* @Date 17:23 2022/8/17
* @Param
* @return
**/
@Override
public
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
,
String
feedBack
)
{
SysMessageSalary
entity
=
baseMapper
.
selectById
(
id
);
if
(
Common
.
isEmpty
(
entity
)){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
}
entity
.
setReasonType
(
reasonType
);
entity
.
setFeedback
(
feedBack
);
int
res
=
baseMapper
.
updateById
(
entity
);
if
(
res
==
CommonConstants
.
ONE_INT_NEGATE
){
return
R
.
failed
(
CommonConstants
.
SAVE_FAILED
);
}
return
R
.
ok
(
null
,
CommonConstants
.
SAVE_SUCCESS
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TApprovalRecordServiceImpl.java
View file @
c4606483
...
...
@@ -16,19 +16,20 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TApprovalRecordMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TApprovalRecordService
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
/**
* 审批记录表
*
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
View file @
c4606483
...
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainListVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
...
@@ -15,11 +14,8 @@ import com.yifu.cloud.plus.v1.yifu.salary.entity.TConfigSalary;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TConfigSalaryMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TConfigSalaryService
;
import
lombok.AllArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* @Author fxj
* @Description 工资报账配置
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/THaveSalaryNosocialServiceImpl.java
View file @
c4606483
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.google.common.collect.Maps
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.AllUserNaVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainListVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TSettleDomainSelectVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
...
...
@@ -23,14 +20,12 @@ 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.SocialDaprUtils
;
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.salary.entity.THaveSalaryNosocial
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.THaveSalaryNosocialMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.THaveSalaryNosocialService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNoSocialExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNosocialHandleExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNosocialSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TPaymentInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.HaveSalaryNoSocialVo
;
...
...
@@ -167,41 +162,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
}
@Override
public
List
<
THaveSalaryNosocial
>
getByIdExport
(
String
[]
ids
)
{
return
baseMapper
.
getByIdExport
(
ids
);
}
@Override
public
List
<
THaveSalaryNosocial
>
getExport
(
THaveSalaryNosocial
vo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
/* TODO if (!SecurityUtils.isHaveAllOrg(ServiceNameConstants.SERVICE_NAME_WXHR, user)) {
R<List<TSettleDomainSelectVo>> remoteGetTSettleDomainVo =
preRemoteBasicArchivesService.getInnerSettleDomainSelectVosByExtendUser(SecurityUtils.getUser());
if (remoteGetTSettleDomainVo == null || remoteGetTSettleDomainVo.getData() == null) {
throw new CheckedException("未获取到相关结算信息");
}
return baseMapper.getExport(vo, remoteGetTSettleDomainVo.getData());
}*/
return
baseMapper
.
getExport
(
vo
,
null
);
}
@Override
public
List
<
THaveSalaryNosocialHandleExportVo
>
getByIdHandleExport
(
String
[]
ids
)
{
return
baseMapper
.
getByIdHandleExport
(
ids
);
}
@Override
public
List
<
THaveSalaryNosocialHandleExportVo
>
getHandleExport
(
THaveSalaryNosocial
vo
)
{
return
baseMapper
.
getHandleExport
(
vo
);
}
@Override
public
List
<
THaveSalaryNosocial
>
getLastTHaveSalaryNosocial
(
String
lastOneMonth
,
String
lastTwoMonth
,
String
lastThreeMonth
)
{
return
baseMapper
.
getLastTHaveSalaryNosocial
(
lastOneMonth
,
lastTwoMonth
,
lastThreeMonth
);
}
public
List
<
THaveSalaryNoSocialExportVo
>
noPageDiy
(
THaveSalaryNosocialSearchVo
searchVo
,
List
<
String
>
settleDomainIds
,
List
<
String
>
ids
,
...
...
@@ -236,9 +196,9 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
THaveSalaryNoSocialExportVo
.
class
).
build
();
int
index
=
0
;
...
...
@@ -294,12 +254,13 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
* @return
**/
@Override
public
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
)
{
public
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
,
String
feedBack
)
{
THaveSalaryNosocial
entity
=
baseMapper
.
selectById
(
id
);
if
(
Common
.
isEmpty
(
entity
)){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_ERROR
);
}
entity
.
setReasonType
(
reasonType
);
entity
.
setFeedBack
(
feedBack
);
int
res
=
baseMapper
.
updateById
(
entity
);
if
(
res
==
CommonConstants
.
ONE_INT_NEGATE
){
return
R
.
failed
(
CommonConstants
.
SAVE_FAILED
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TPauseSalaryServiceImpl.java
View file @
c4606483
...
...
@@ -16,43 +16,15 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TPauseSalary
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TPauseSalaryVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TPauseSalaryMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TPauseSalaryService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TPauseSalarySearchVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TPauseSalarySearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.read.listener.ReadListener
;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 暂停发表
*
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryAccountItemServiceImpl.java
View file @
c4606483
...
...
@@ -11,11 +11,6 @@ import com.yifu.cloud.plus.v1.yifu.salary.mapper.TSalaryAccountItemMapper;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountItemService
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigDecimal
;
import
java.util.*
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
View file @
c4606483
...
...
@@ -16,14 +16,8 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.read.listener.ReadListener
;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -31,22 +25,21 @@ 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.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.THaveSalaryNosocial
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TSalaryAccountMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.AccountCheckVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
...
...
@@ -88,9 +81,9 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSalaryAccount
.
class
).
includeColumnFiledNames
(
searchVo
.
getExportFields
()).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryEmployeeServiceImpl.java
View file @
c4606483
...
...
@@ -95,9 +95,9 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSalaryEmployee
.
class
).
build
();
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardServiceImpl.java
View file @
c4606483
...
...
@@ -33,14 +33,19 @@ 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.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprArchivesProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprSocialProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.HttpDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.salary.constants.SalaryConstants
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.MSalaryEstimate
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryStandard
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TSalaryStandardMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.*
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.MSalaryEstimateService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TApprovalRecordService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryAccountService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryStandardService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardExportVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardVo
;
...
...
@@ -53,10 +58,9 @@ import javax.servlet.ServletOutputStream;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.
time.LocalDateTime
;
import
java.util.
*
;
import
java.
util.ArrayList
;
import
java.util.
List
;
/**
* 标准薪酬工资表
...
...
@@ -105,9 +109,9 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSalaryStandardExportVo
.
class
).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsBonusServiceImpl.java
View file @
c4606483
...
...
@@ -16,21 +16,6 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsBonus
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TStatisticsBonusMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsBonusService
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
...
...
@@ -40,15 +25,29 @@ import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
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.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsBonus
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TStatisticsBonusMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsBonusService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsBonusVo
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -85,9 +84,9 @@ public class TStatisticsBonusServiceImpl extends ServiceImpl<TStatisticsBonusMap
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsBonus
.
class
).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsCurrentReportMarketServiceImpl.java
View file @
c4606483
...
...
@@ -81,9 +81,9 @@ public class TStatisticsCurrentReportMarketServiceImpl extends ServiceImpl<TStat
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsCurrentReportMarket
.
class
).
build
();
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsCurrentReportServiceImpl.java
View file @
c4606483
...
...
@@ -81,9 +81,9 @@ public class TStatisticsCurrentReportServiceImpl extends ServiceImpl<TStatistics
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsCurrentReport
.
class
).
build
();
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsDeclarerServiceImpl.java
View file @
c4606483
...
...
@@ -16,20 +16,6 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsDeclarer
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TStatisticsDeclarerMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsDeclarerService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerSearchVo
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.context.AnalysisContext
;
...
...
@@ -38,13 +24,25 @@ import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
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.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TStatisticsDeclarer
;
import
com.yifu.cloud.plus.v1.yifu.salary.mapper.TStatisticsDeclarerMapper
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TStatisticsDeclarerService
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TStatisticsDeclarerVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -84,9 +82,9 @@ public class TStatisticsDeclarerServiceImpl extends ServiceImpl<TStatisticsDecla
}
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsDeclarer
.
class
).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsLaborServiceImpl.java
View file @
c4606483
...
...
@@ -83,9 +83,9 @@ public class TStatisticsLaborServiceImpl extends ServiceImpl<TStatisticsLaborMap
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsLabor
.
class
).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsRemunerationServiceImpl.java
View file @
c4606483
...
...
@@ -79,9 +79,9 @@ public class TStatisticsRemunerationServiceImpl extends ServiceImpl<TStatisticsR
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsRemuneration
.
class
).
build
();
int
index
=
0
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsTaxSalaryServiceImpl.java
View file @
c4606483
...
...
@@ -81,9 +81,9 @@ public class TStatisticsTaxSalaryServiceImpl extends ServiceImpl<TStatisticsTaxS
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TStatisticsTaxSalary
.
class
).
build
();
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
c4606483
...
...
@@ -6,7 +6,6 @@ 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.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ValidityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ExcelException
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
...
...
@@ -20,7 +19,6 @@ import com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountItemVo;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryAccountVo
;
import
lombok.Data
;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
java.io.Serializable
;
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/SysMessageSalaryMapper.xml
View file @
c4606483
...
...
@@ -261,82 +261,56 @@
</delete>
<select
id=
"getByIdExport"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_message_salary a
where 1=1
<if
test=
"array.length > 0"
>
and id in
<foreach
collection=
"array"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
<if
test=
"array.length == 0"
>
and 1=2
</if>
</select>
<select
id=
"getExport"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary"
>
<!--noPageDiy查询-->
<select
id=
"noPageDiy"
resultMap=
"sysMessageSalaryMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
b.*
FROM sys_message_salary a
left join t_feed_back b on a.ID=b.RELATE_ID
<where>
<include
refid=
"sysMessageSalarySql"
/>
<include
refid=
"sysMessageSalary_where
"
/>
1=1 and ((b.IGNORE_FLAG=1 and b.TYPE=2) or (b.id is null))
<include
refid=
"export_sql
"
/>
</where>
</select>
<select
id=
"getByIdHandleExport"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryHandelExportVo"
>
<!--noPageCountDiy查询-->
<select
id=
"noPageCountDiy"
resultType=
"java.lang.Integer"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_message_salary a
where 1=1
<if
test=
"array.length > 0"
>
and id in
<foreach
collection=
"array"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
<if
test=
"array.length == 0"
>
and 1=2
</if>
</select>
<select
id=
"getHandleExport"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryHandelExportVo"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
b.*
count(1)
FROM sys_message_salary a
left join t_feed_back b on a.ID=b.RELATE_ID
<where>
1=1 and ((b.IGNORE_FLAG=1 and b.TYPE=2) or (b.id is null))
<include
refid=
"sysMessageSalary_where
"
/>
<include
refid=
"export_sql
"
/>
</where>
</select>
<sql
id=
"export_sql"
>
<include
refid=
"sysMessageSalary_where"
/>
<if
test=
"idsStr != null and idsStr.size > 0"
>
AND a.ID in
<foreach
item=
"items"
index=
"index"
collection=
"idsStr"
open=
"("
separator=
","
close=
")"
>
#{items}
</foreach>
</if>
<!--数据权限判断-->
<if
test=
"settleDomainIds != null"
>
<if
test=
"settleDomainIds.size() > 0"
>
and a.SETTLE_DOMAIN_ID in
<foreach
collection=
"settleDomainIds"
item=
"param"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{param}
</foreach>
</if>
<if
test=
"settleDomainVos.size() == 0"
>
and 1=2
</if>
</if>
<if
test=
"settleDomainVos == null"
>
and 1=1
</if>
<if
test=
'sql != null and sql != ""'
>
and
<![CDATA[sql]]>
</if>
</sql>
<select
id=
"getLastTHaveSalaryNosocial"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.entity.SysMessageSalary"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
b.*
FROM sys_message_salary a
left join t_feed_back b on a.ID=b.RELATE_ID
where a.settle_month in(#{lastOneMonth},#{lastTwoMonth},#{lastThreeMonth}) and b.REASON_TYPE is not null
</select>
<select
id=
"getTempExport"
resultType=
"com.yifu.cloud.plus.v1.yifu.salary.vo.SysMessageSalaryTemplExportVo"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
b.*, t.times
FROM sys_message_salary a
left join t_feed_back b on a.ID=b.RELATE_ID
left join sys_message_salary_temp t on a.id=t.RELATE_ID
where a.settle_month in(#{settleMonth}) and t.id is not null
</select>
</mapper>
yifu-salary/yifu-salary-biz/src/main/resources/mapper/THaveSalaryNosocialMapper.xml
View file @
c4606483
...
...
@@ -11,6 +11,7 @@
<result
property=
"customerName"
column=
"CUSTOMER_NAME"
/>
<result
property=
"settlementOrganName"
column=
"SETTLEMENT_ORGAN_NAME"
/>
<result
property=
"settlementOrganNo"
column=
"SETTLEMENT_ORGAN_NO"
/>
<result
property=
"feedBack"
column=
"FEEDBACK"
/>
<result
property=
"month"
column=
"month"
/>
</resultMap>
<resultMap
id=
"haveSalaryNoSocialExportMap"
type=
"com.yifu.cloud.plus.v1.yifu.salary.vo.THaveSalaryNoSocialExportVo"
>
...
...
@@ -21,6 +22,8 @@
<result
property=
"month"
column=
"month"
/>
<result
property=
"relaySalary"
column=
"RELAY_SALARY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"feedBack"
column=
"FEEDBACK"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
...
...
@@ -206,7 +209,8 @@
<include
refid=
"Base_Column_List"
/>
,b.*
FROM t_have_salary_nosocial a
<include
refid=
"querPage"
/>
1=1 and ((b.IGNORE_FLAG=1 and b.TYPE=1) or (b.id is null))
<include
refid=
"export_where"
/>
</select>
<select
id=
"noPageCountDiy"
resultType=
"java.lang.Integer"
>
SELECT
...
...
@@ -215,6 +219,10 @@
left join t_feed_back b on a.ID=b.RELATE_ID
<where>
1=1 and ((b.IGNORE_FLAG=1 and b.TYPE=1) or (b.id is null))
<include
refid=
"export_where"
/>
</where>
</select>
<sql
id=
"export_where"
>
<include
refid=
"tHaveSalaryNosocial_where"
/>
<if
test=
"idsStr != null and idsStr.size > 0"
>
AND a.ID in
...
...
@@ -240,6 +248,5 @@
<if
test=
'sql != null and sql != ""'
>
and
<![CDATA[sql]]>
</if>
</where>
</select>
</sql>
</mapper>
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TAuditInfoServiceImpl.java
View file @
c4606483
...
...
@@ -79,9 +79,9 @@ public class TAuditInfoServiceImpl extends ServiceImpl<TAuditInfoMapper, TAuditI
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TAuditInfo
.
class
).
build
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchDayConfServiceImpl.java
View file @
c4606483
...
...
@@ -80,9 +80,9 @@ public class TDispatchDayConfServiceImpl extends ServiceImpl<TDispatchDayConfMap
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TDispatchDayConf
.
class
).
build
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
c4606483
...
...
@@ -124,9 +124,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TDispatchInfoExportVo
.
class
).
includeColumnFiledNames
(
searchVo
.
getExportFields
()).
build
();
int
index
=
0
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TForecastLibraryServiceImpl.java
View file @
c4606483
...
...
@@ -98,9 +98,9 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("预估费用").doWrite(list)
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TForecastLibraryExportVo
.
class
).
includeColumnFiledNames
(
searchVo
.
getExportFields
()).
build
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoImportLogServiceImpl.java
View file @
c4606483
...
...
@@ -82,9 +82,9 @@ public class TPaymentInfoImportLogServiceImpl extends ServiceImpl<TPaymentInfoIm
for
(
TPaymentInfoImportLogVo
vo
:
list
)
{
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
TPaymentInfoImportLogVo
.
class
).
includeColumnFiledNames
(
getExportFieldNameDetailByClass
(
TPaymentInfoImportLogVo
.
class
)).
sheet
(
"社保导入日志"
)
.
doWrite
(
list
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
c4606483
...
...
@@ -143,9 +143,9 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TPaymentInfo
.
class
).
includeColumnFiledNames
(
searchVo
.
getExportFields
()).
build
();
int
index
=
0
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
c4606483
...
...
@@ -882,9 +882,9 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
for
(
TPreDispatchExportVo
vo
:
list
)
{
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
TPreDispatchExportVo
.
class
).
includeColumnFiledNames
(
tPreDispatchInfo
.
getExportFields
()).
sheet
(
"预派单"
)
.
doWrite
(
list
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TProvidentFundServiceImpl.java
View file @
c4606483
...
...
@@ -80,9 +80,9 @@ public class TProvidentFundServiceImpl extends ServiceImpl<TProvidentFundMapper,
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TProvidentFund
.
class
).
build
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFundHistoryServiceImpl.java
View file @
c4606483
...
...
@@ -80,9 +80,9 @@ public class TSocialFundHistoryServiceImpl extends ServiceImpl<TSocialFundHistor
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSocialFundHistory
.
class
).
build
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFundInfoServiceImpl.java
View file @
c4606483
...
...
@@ -103,9 +103,9 @@ public class TSocialFundInfoServiceImpl extends ServiceImpl<TSocialFundInfoMappe
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSocialFundInfoExportVo
.
class
).
includeColumnFiledNames
(
searchVo
.
getExportFields
()).
build
();
int
index
=
0
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialInfoServiceImpl.java
View file @
c4606483
...
...
@@ -79,9 +79,9 @@ public class TSocialInfoServiceImpl extends ServiceImpl<TSocialInfoMapper, TSoci
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TSocialInfo
.
class
).
build
();
...
...
yifu-visual/yifu-codegen/src/main/resources/template/ServiceImpl.java.vm
View file @
c4606483
...
...
@@ -86,9 +86,9 @@ public class ${className}ServiceImpl extends ServiceImpl<${className}Mapper, ${c
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
//
这里
需要指定写用哪个
class
去写,然后写到第一个
sheet
,然后文件流会自动关闭
//
EasyExcel
.
write
(
out
,
TEmpBadRecord
.
class
).
sheet
(
"不良记录"
).
doWrite
(
list
);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
${
className
}.
class
).
build
();
...
...
yifu-visual/yifu-xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/I18nUtil.java
View file @
c4606483
...
...
@@ -36,7 +36,7 @@ public class I18nUtil {
// load prop
Resource
resource
=
new
ClassPathResource
(
i18nFile
);
EncodedResource
encodedResource
=
new
EncodedResource
(
resource
,
"UTF-8"
);
EncodedResource
encodedResource
=
new
EncodedResource
(
resource
,
CommonConstants
.
UTF8
);
prop
=
PropertiesLoaderUtils
.
loadProperties
(
encodedResource
);
}
catch
(
IOException
e
)
{
...
...
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