Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
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
常超
map-parent
Commits
b7182608
Commit
b7182608
authored
Jul 14, 2021
by
Jbb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postgresql 时间格式的转化问题
parent
60e17712
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
service/view/src/main/java/com/founder/view/config/EduConfig.java
+1
-0
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerMapper.xml
+4
-3
No files found.
service/view/src/main/java/com/founder/view/config/EduConfig.java
View file @
b7182608
...
...
@@ -34,6 +34,7 @@ public class EduConfig {
public
PageHelper
getPageHelper
(){
PageHelper
pageHelper
=
new
PageHelper
();
Properties
properties
=
new
Properties
();
//properties.setProperty("helperDialect","mysql");
properties
.
setProperty
(
"helperDialect"
,
"postgresql"
);
properties
.
setProperty
(
"reasonable"
,
"true"
);
properties
.
setProperty
(
"supportMethodsArguments"
,
"true"
);
...
...
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerMapper.xml
View file @
b7182608
...
...
@@ -16,15 +16,16 @@
<result
column=
"count"
property=
"count"
jdbcType=
"TIMESTAMP"
></result>
</resultMap>
<select
id=
"selectLayers"
parameterType=
"com.founder.commonutils.viewEntity.TbStLayer"
resultMap=
"tbStLayer"
>
select * from tb_st_layer t1 where 1=1
order by lrsj DESC
select * from tb_st_layer t1 where 1=1
<if
test=
"lrr!='' and lrr!=null"
>
and t1.lrr like CONCAT('%',#{lrr},'%')
</if>
<if
test=
"startTime!='' and startTime!=null"
>
and t1.lrsj
<![CDATA[>=]]>
#{startTime}
and t1.lrsj
<![CDATA[>=]]>
to_timestamp(#{startTime},'yyyy-MM-dd hh24:mi:ss')
</if>
<if
test=
"endTime!='' and endTime!=null"
>
and t1.lrsj
<![CDATA[<=]]>
#{endTime}
and t1.lrsj
<![CDATA[<=]]>
to_timestamp(#{endTime},'yyyy-MM-dd hh24:mi:ss')
</if>
order by lrsj DESC
</select>
</mapper>
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