Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
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
王琮
entrance_api
Commits
cf2de544
Commit
cf2de544
authored
Nov 18, 2022
by
mx
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f343cb29
36eb257e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
VisitInfoMation.java
...in/java/org/rcisoft/sys/visit/entity/VisitInfoMation.java
+11
-1
VisitInfomationMapper.xml
src/main/resources/mapper/VisitInfomationMapper.xml
+25
-0
No files found.
src/main/java/org/rcisoft/sys/visit/entity/VisitInfoMation.java
View file @
cf2de544
...
@@ -134,10 +134,20 @@ public class VisitInfoMation extends CyIdIncreEntity<VisitInfoMation> {
...
@@ -134,10 +134,20 @@ public class VisitInfoMation extends CyIdIncreEntity<VisitInfoMation> {
private
Date
visitDateEnd
;
private
Date
visitDateEnd
;
/**(0-按按创建时间排序,1-按邀访时间排序,2-按访问日期排序)**/
/**(0-按按创建时间排序,1-按邀访时间排序,2-按访问日期排序)**/
@Transient
//访客信息
@Transient
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
char
sort
;
private
char
sort
;
/**0-未来一周 1-未来三天 2-近三天 3-近一周 4-近一个月**/
@Transient
@TableField
(
exist
=
false
)
private
char
selectTime
;
/**0-未到访问时间 1-已过到访时间**/
@Transient
@TableField
(
exist
=
false
)
private
char
boolVisit
;
@Transient
//访客信息
@Transient
//访客信息
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
List
<
VisitUser
>
userList
;
List
<
VisitUser
>
userList
;
...
...
src/main/resources/mapper/VisitInfomationMapper.xml
View file @
cf2de544
...
@@ -142,6 +142,31 @@
...
@@ -142,6 +142,31 @@
<if
test=
"entity.visitStatus !=null and entity.visitStatus != ''"
>
<if
test=
"entity.visitStatus !=null and entity.visitStatus != ''"
>
and vi.visit_status = #{entity.visitStatus}
and vi.visit_status = #{entity.visitStatus}
</if>
</if>
<if
test=
"entity.selectTime !=null and entity.selectTime != ''"
>
<if
test=
"entity.selectTime == '0'"
>
and vi.visit_date between current_date and current_date+7
</if>
<if
test=
"entity.selectTime == '1'"
>
and vi.visit_date between current_date and current_date+3
</if>
<if
test=
"entity.selectTime == '2'"
>
and vi.visit_date between current_date-3 and current_date
</if>
<if
test=
"entity.selectTime == '3'"
>
and vi.visit_date between current_date-7 and current_date
</if>
<if
test=
"entity.selectTime == '4'"
>
and vi.visit_date between current_date-30 and current_date
</if>
</if>
<if
test=
"entity.boolVisit !=null and entity.boolVisit != ''"
>
<if
test=
"entity.boolVisit == '0'"
>
and vi.visit_date >= current_date
</if>
<if
test=
"entity.boolVisit == '1'"
>
and vi.visit_date
<
= current_date
</if>
</if>
<if
test=
"entity.sort !=null and entity.sort != ''"
>
<if
test=
"entity.sort !=null and entity.sort != ''"
>
order by
order by
<if
test=
"entity.sort == '0'"
>
<if
test=
"entity.sort == '0'"
>
...
...
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