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
48c14662
Commit
48c14662
authored
May 14, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.4-档案、项目档案,增加创建时间起止
parent
1d7f716d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
3 deletions
+50
-3
TEmployeeInfo.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
+10
-3
TEmployeeProject.java
.../cloud/plus/v1/yifu/archives/entity/TEmployeeProject.java
+9
-0
EmployeeProjectExportParamVO.java
...lus/v1/yifu/archives/vo/EmployeeProjectExportParamVO.java
+11
-0
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+6
-0
TEmployeeProjectMapper.xml
...-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
+14
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
View file @
48c14662
...
...
@@ -16,9 +16,7 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
...
...
@@ -27,11 +25,11 @@ import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.Max
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Set
;
...
...
@@ -462,4 +460,13 @@ public class TEmployeeInfo extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
nameOrIdcard
;
//开始时间(查询专用)
@Schema
(
description
=
"创建开始时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeStart
;
//截止时间(查询专用)
@Schema
(
description
=
"创建截止时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeEnd
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeProject.java
View file @
48c14662
...
...
@@ -408,4 +408,13 @@ public class TEmployeeProject extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
oldDeptNo
;
//开始时间(查询专用)
@Schema
(
description
=
"创建开始时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeStart
;
//截止时间(查询专用)
@Schema
(
description
=
"创建截止时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeEnd
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeProjectExportParamVO.java
View file @
48c14662
...
...
@@ -20,6 +20,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
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.common.mybatis.base.BaseEntity
;
...
...
@@ -501,6 +502,16 @@ public class EmployeeProjectExportParamVO extends BaseEntity {
private
List
<
String
>
idList
;
//开始时间(查询专用)
@Schema
(
description
=
"创建开始时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeStart
;
//截止时间(查询专用)
@Schema
(
description
=
"创建截止时间"
)
@TableField
(
exist
=
false
)
private
LocalDateTime
createTimeEnd
;
/**
* @Author fxj
* 查询数据起
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
48c14662
...
...
@@ -503,6 +503,12 @@
#{idStr}
</foreach>
</if>
<if
test=
"tEmployeeInfo.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{tEmployeeInfo.createTimeStart}
</if>
<if
test=
"tEmployeeInfo.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{tEmployeeInfo.createTimeEnd}
</if>
</if>
</if>
</sql>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
View file @
48c14662
...
...
@@ -432,6 +432,13 @@
<if
test=
"tEmployeeProject.empLabel != null"
>
AND a.EMP_LABEL = #{tEmployeeProject.empLabel}
</if>
<if
test=
"tEmployeeProject.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{tEmployeeProject.createTimeStart}
</if>
<if
test=
"tEmployeeProject.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{tEmployeeProject.createTimeEnd}
</if>
</if>
</sql>
...
...
@@ -595,6 +602,13 @@
<if
test=
"tEmployeeProject.empLabel != null"
>
AND a.EMP_LABEL = #{tEmployeeProject.empLabel}
</if>
<if
test=
"tEmployeeProject.createTimeStart != null"
>
AND a.CREATE_TIME
<![CDATA[ >= ]]>
#{tEmployeeProject.createTimeStart}
</if>
<if
test=
"tEmployeeProject.createTimeEnd != null"
>
AND a.CREATE_TIME
<![CDATA[ <= ]]>
#{tEmployeeProject.createTimeEnd}
</if>
</if>
</sql>
...
...
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