Commit 0c64d0b4 authored by fangxinjiang's avatar fangxinjiang

薪资原表导入:1.详情加字段 表单类型、方案名称、表格类型、原表类型2.表单类型和表格类型带入到EKP

parent cd3ff24d
...@@ -451,9 +451,17 @@ public class TSalaryStandard extends BaseEntity { ...@@ -451,9 +451,17 @@ public class TSalaryStandard extends BaseEntity {
*/ */
@Schema(description = "收入月份") @Schema(description = "收入月份")
private String incomeMonth; private String incomeMonth;
//方案名称ID
@Schema(description = "配置ID") @Schema(description = "配置ID")
private String setId; private String setId;
//方案名称
@Schema(description = "方案名称")
private String setName;
//原表类型
@Schema(description = "原表类型")
private String originalSetName;
@Schema(description = "删除人(汉字名)") @Schema(description = "删除人(汉字名)")
private String deleteUser; private String deleteUser;
@Schema(description = "删除时间") @Schema(description = "删除时间")
......
...@@ -44,4 +44,10 @@ public class SalaryUploadParamVo { ...@@ -44,4 +44,10 @@ public class SalaryUploadParamVo {
// 表格类型 0 薪资原表 1 系统模板 // 表格类型 0 薪资原表 1 系统模板
String excelType; String excelType;
// 方案名称
String setName;
// 原表类型
String originalSetName;
} }
...@@ -299,6 +299,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -299,6 +299,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
s.setBusinessThirdType(dept.getBusinessThirdType()); s.setBusinessThirdType(dept.getBusinessThirdType());
if (configSalary != null) { if (configSalary != null) {
s.setSetId(configSalary.getId()); s.setSetId(configSalary.getId());
s.setSetName(configSalary.getName());
if (Common.isNotNull(configSalary.getIncomeMonth())) { if (Common.isNotNull(configSalary.getIncomeMonth())) {
s.setIncomeMonth(DateUtil.addMonth(configSalary.getIncomeMonth())); s.setIncomeMonth(DateUtil.addMonth(configSalary.getIncomeMonth()));
} }
...@@ -352,6 +353,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -352,6 +353,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
if (Common.isNotNull(vo.getExcelType())) { if (Common.isNotNull(vo.getExcelType())) {
salary.setExcelType(vo.getExcelType()); salary.setExcelType(vo.getExcelType());
} }
if (Common.isNotNull(vo.getOriginalSetName())){
salary.setOriginalSetName(vo.getOriginalSetName());
}
// 薪资导入、删除前加锁: // 薪资导入、删除前加锁:
TSalaryLock lock = salaryLockService.lambdaQuery() TSalaryLock lock = salaryLockService.lambdaQuery()
.eq(TSalaryLock::getDeptId, dept.getId()) .eq(TSalaryLock::getDeptId, dept.getId())
......
...@@ -85,6 +85,8 @@ ...@@ -85,6 +85,8 @@
<result property="deleteUser" column="DELETE_USER"/> <result property="deleteUser" column="DELETE_USER"/>
<result property="deleteDate" column="DELETE_DATE"/> <result property="deleteDate" column="DELETE_DATE"/>
<result property="excelType" column="EXCEL_TYPE"/> <result property="excelType" column="EXCEL_TYPE"/>
<result property="setName" column="SET_NAME"/>
<result property="originalSetName" column="ORIGINAL_SET_NAME"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
a.ID, a.ID,
...@@ -147,7 +149,9 @@ ...@@ -147,7 +149,9 @@
a.SET_ID, a.SET_ID,
a.DELETE_USER, a.DELETE_USER,
a.DELETE_DATE, a.DELETE_DATE,
a.EXCEL_TYPE a.EXCEL_TYPE,
a.SET_NAME,
a.ORIGINAL_SET_NAME
</sql> </sql>
<sql id="tSalaryStandard_where"> <sql id="tSalaryStandard_where">
<if test="tSalaryStandard != null"> <if test="tSalaryStandard != null">
...@@ -298,6 +302,12 @@ ...@@ -298,6 +302,12 @@
<if test="tSalaryStandard.excelType != null and tSalaryStandard.excelType.trim() != ''"> <if test="tSalaryStandard.excelType != null and tSalaryStandard.excelType.trim() != ''">
AND a.EXCEL_TYPE = #{tSalaryStandard.excelType} AND a.EXCEL_TYPE = #{tSalaryStandard.excelType}
</if> </if>
<if test="tSalaryStandard.setName != null and tSalaryStandard.setName.trim() != ''">
AND a.SET_NAME = #{tSalaryStandard.setName}
</if>
<if test="tSalaryStandard.originalSetName != null and tSalaryStandard.originalSetName.trim() != ''">
AND a.ORIGINAL_SET_NAME = #{tSalaryStandard.originalSetName}
</if>
</if> </if>
</sql> </sql>
<!--tSalaryStandard简单分页查询--> <!--tSalaryStandard简单分页查询-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment