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
34077fc0
Commit
34077fc0
authored
Aug 16, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化导入,精简字段
parent
14cd972c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
26 deletions
+11
-26
TDepartSettlementInfo.java
...d/plus/v1/yifu/archives/entity/TDepartSettlementInfo.java
+3
-0
TSpecialDeducationSum.java
...oud/plus/v1/yifu/salary/entity/TSpecialDeducationSum.java
+2
-18
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+1
-3
TSpecialDeducationSumServiceImpl.java
...salary/service/impl/TSpecialDeducationSumServiceImpl.java
+1
-1
TSpecialDeducationSumMapper.xml
...src/main/resources/mapper/TSpecialDeducationSumMapper.xml
+4
-4
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TDepartSettlementInfo.java
View file @
34077fc0
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
...
...
@@ -144,6 +145,7 @@ public class TDepartSettlementInfo extends Model<TDepartSettlementInfo> {
*/
@ExcelAttribute
(
name
=
"创建时间"
)
@Schema
(
description
=
"创建时间"
,
name
=
"createTime"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+08:00"
)
private
LocalDateTime
createTime
;
/**
* 最后更新人
...
...
@@ -157,6 +159,7 @@ public class TDepartSettlementInfo extends Model<TDepartSettlementInfo> {
*/
@ExcelAttribute
(
name
=
"最后更新时间"
)
@Schema
(
description
=
"最后更新时间"
,
name
=
"lastUpdateTime"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+08:00"
)
private
LocalDateTime
lastUpdateTime
;
/**
* 结算主体ID
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSpecialDeducationSum.java
View file @
34077fc0
...
...
@@ -4,8 +4,8 @@ import com.alibaba.excel.annotation.ExcelProperty;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
...
...
@@ -13,7 +13,6 @@ import org.hibernate.validator.constraints.Length;
import
javax.validation.constraints.NotBlank
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
...
...
@@ -27,7 +26,7 @@ import java.time.LocalDateTime;
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"t_special_deducation_sum"
)
@Tag
(
name
=
"专项扣除"
)
public
class
TSpecialDeducationSum
extends
Model
<
TSpecialDeducationSum
>
{
public
class
TSpecialDeducationSum
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* id
...
...
@@ -35,21 +34,6 @@ public class TSpecialDeducationSum extends Model<TSpecialDeducationSum> {
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelProperty
(
value
=
"id"
)
private
String
id
;
/**
* 创建人
*/
@NotBlank
(
message
=
"创建人不能为空"
)
@Length
(
max
=
32
,
message
=
"创建人不能超过32个字符"
)
@ExcelAttribute
(
name
=
"创建人"
,
isNotEmpty
=
true
,
errorInfo
=
"创建人不能为空"
,
maxLength
=
32
)
@ExcelProperty
(
value
=
"创建人"
)
private
String
createUser
;
/**
* 创建时间
*/
@NotBlank
(
message
=
"创建时间不能为空"
)
@ExcelAttribute
(
name
=
"创建时间"
,
isNotEmpty
=
true
,
errorInfo
=
"创建时间不能为空"
)
@ExcelProperty
(
value
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 导入月份
*/
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
34077fc0
...
...
@@ -777,8 +777,8 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
salary
.
setHaveSalaryFlag
(
CommonConstants
.
ZERO_INT
);
salary
.
setHaveSpecialFlag
(
CommonConstants
.
ZERO_INT
);
salary
.
setIsRepeat
(
CommonConstants
.
ZERO_INT
);
salary
.
setStatus
(
SalaryConstants
.
AUDIT_STATUS
[
0
]);
if
(
haveSalaryFlag
||
haveSpecialFlag
||
ownNum
>
0
||
repeatFlag
)
{
salary
.
setStatus
(
SalaryConstants
.
AUDIT_STATUS
[
0
]);
if
(
haveSalaryFlag
)
{
salary
.
setHaveSalaryFlag
(
CommonConstants
.
ONE_INT
);
}
...
...
@@ -788,8 +788,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
if
(
repeatFlag
)
{
salary
.
setIsRepeat
(
CommonConstants
.
ONE_INT
);
}
}
else
{
salary
.
setStatus
(
SalaryConstants
.
AUDIT_STATUS
[
2
]);
}
//保存工资表
tSalaryStandardService
.
save
(
salary
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSpecialDeducationSumServiceImpl.java
View file @
34077fc0
...
...
@@ -142,7 +142,7 @@ public class TSpecialDeducationSumServiceImpl extends ServiceImpl<TSpecialDeduca
for
(
TSpecialDeducationSum
s
:
sdsList
)
{
s
.
setCreateMonth
(
yearMonth
);
s
.
setCreateTime
(
nowDate
);
s
.
setCreate
User
(
String
.
valueOf
(
user
.
getId
()
));
s
.
setCreate
By
(
user
.
getId
(
));
}
return
new
R
<>(
this
.
saveBatch
(
sdsList
));
}
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSpecialDeducationSumMapper.xml
View file @
34077fc0
...
...
@@ -6,7 +6,7 @@
<resultMap
id=
"tSpecialDeducationSumMap"
type=
"com.yifu.cloud.plus.v1.yifu.salary.entity.TSpecialDeducationSum"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"create
User"
column=
"CREATE_USER
"
/>
<result
property=
"create
By"
column=
"CREATE_BY
"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"createMonth"
column=
"CREATE_MONTH"
/>
<result
property=
"declareTitle"
column=
"DECLARE_TITLE"
/>
...
...
@@ -42,7 +42,7 @@
<sql
id=
"Base_Column_List"
>
id,
CREATE_
USER
,
CREATE_
BY
,
CREATE_TIME,
CREATE_MONTH,
DECLARE_TITLE,
...
...
@@ -81,8 +81,8 @@
<if
test=
"tSpecialDeducationSum.id != null and tSpecialDeducationSum.id.trim() != ''"
>
AND id = #{tSpecialDeducationSum.id}
</if>
<if
test=
"tSpecialDeducationSum.create
User != null and tSpecialDeducationSum.createUser
.trim() != ''"
>
AND CREATE_
USER = #{tSpecialDeducationSum.createUser
}
<if
test=
"tSpecialDeducationSum.create
By != null and tSpecialDeducationSum.createBy
.trim() != ''"
>
AND CREATE_
BY = #{tSpecialDeducationSum.createBy
}
</if>
<if
test=
"tSpecialDeducationSum.createTime != null"
>
AND CREATE_TIME = #{tSpecialDeducationSum.createTime}
...
...
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