Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-acquisition
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
竹天卫
data-acquisition
Commits
282c68b0
Commit
282c68b0
authored
Jun 17, 2021
by
罗贤顺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段回显问题修复
parent
1717d728
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
TProcessesBlastdesignHoleMapper.xml
...n/business/mapper/xml/TProcessesBlastdesignHoleMapper.xml
+2
-0
TSampleListServiceImpl.java
...isition/business/service/impl/TSampleListServiceImpl.java
+7
-1
DataStatisticsMapper.xml
...e/sc/acquisition/business/mapper/DataStatisticsMapper.xml
+4
-8
No files found.
acquisition-business/src/main/java/cn/wise/sc/acquisition/business/mapper/xml/TProcessesBlastdesignHoleMapper.xml
View file @
282c68b0
...
@@ -49,6 +49,8 @@
...
@@ -49,6 +49,8 @@
a.y,
a.y,
a.z,
a.z,
a.StepHeight
a.StepHeight
a.DrillingDate
a.DesignDate
FROM T_Processes_BlastDesign_Hole a
FROM T_Processes_BlastDesign_Hole a
where 1=1
where 1=1
<if
test=
"params.designDate != null and params.designDate != ''"
>
<if
test=
"params.designDate != null and params.designDate != ''"
>
...
...
acquisition-business/src/main/java/cn/wise/sc/acquisition/business/service/impl/TSampleListServiceImpl.java
View file @
282c68b0
...
@@ -9,6 +9,7 @@ import cn.wise.sc.acquisition.business.model.query.TSampleListQuery;
...
@@ -9,6 +9,7 @@ import cn.wise.sc.acquisition.business.model.query.TSampleListQuery;
import
cn.wise.sc.acquisition.business.service.ITProcessesBlastdesignHoleService
;
import
cn.wise.sc.acquisition.business.service.ITProcessesBlastdesignHoleService
;
import
cn.wise.sc.acquisition.business.service.ITSampleLaboratorysheetService
;
import
cn.wise.sc.acquisition.business.service.ITSampleLaboratorysheetService
;
import
cn.wise.sc.acquisition.business.service.ITSampleListService
;
import
cn.wise.sc.acquisition.business.service.ITSampleListService
;
import
cn.wise.sc.acquisition.business.util.DateUtil
;
import
cn.wise.sc.acquisition.business.util.ImageUtil
;
import
cn.wise.sc.acquisition.business.util.ImageUtil
;
import
cn.wise.sc.acquisition.business.wrapper.page.Query
;
import
cn.wise.sc.acquisition.business.wrapper.page.Query
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
...
@@ -62,12 +63,17 @@ public class TSampleListServiceImpl extends ServiceImpl<TSampleListMapper, TSamp
...
@@ -62,12 +63,17 @@ public class TSampleListServiceImpl extends ServiceImpl<TSampleListMapper, TSamp
ProjectEnum
.
TSampleListType
.
SYR
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
SYR
.
getLabel
(),
ProjectEnum
.
TSampleListType
.
SYRQ
.
getLabel
()
ProjectEnum
.
TSampleListType
.
SYRQ
.
getLabel
()
);
);
String
startDate
=
tSampleListQuery
.
getSearch
()
+
"00:00:00"
;
String
endDate
=
tSampleListQuery
.
getSearch
()
+
"23:59:59"
;
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
ProjectEnum
.
TableAlias
.
A
.
getLabel
()).
append
(
ProjectEnum
.
TSampleListType
.
SYRQ
.
getLabel
());
queryWrapper
queryWrapper
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
YH
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
YH
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
or
()
.
or
()
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
HOLES_ID
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
HOLES_ID
.
getLabel
(),
tSampleListQuery
.
getSearch
())
.
or
()
.
or
()
.
like
(
StringUtils
.
isNotBlank
(
tSampleListQuery
.
getSearch
()),
ProjectEnum
.
TSampleListType
.
SYRQ
.
getLabel
(),
tSampleListQuery
.
getSearch
());
.
ge
(
stringBuilder
.
toString
(),
DateUtil
.
getBeginTimeStr
(
DateUtil
.
strToTime
(
startDate
)))
.
le
(
stringBuilder
.
toString
(),
DateUtil
.
getEndTimeStr
(
DateUtil
.
strToTime
(
endDate
)));
//查询
//查询
Page
<
TSampleList
>
tSampleListPage
=
baseMapper
.
selectPage
(
page
,
queryWrapper
);
Page
<
TSampleList
>
tSampleListPage
=
baseMapper
.
selectPage
(
page
,
queryWrapper
);
return
R
.
ok
(
tSampleListPage
);
return
R
.
ok
(
tSampleListPage
);
...
...
acquisition-business/target/classes/cn/wise/sc/acquisition/business/mapper/DataStatisticsMapper.xml
View file @
282c68b0
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<if
test=
"params.endDate != null and params.endDate != ''"
>
<if
test=
"params.endDate != null and params.endDate != ''"
>
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
</if>
</if>
<if
test=
"params.startDate == null and params.endDate == null"
>
<if
test=
"(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')"
>
and datediff(week, tw.Rq,getdate())=0
and datediff(week, tw.Rq,getdate())=0
</if>
</if>
group by Convert(varchar(10),tw.Rq,120)
group by Convert(varchar(10),tw.Rq,120)
...
@@ -36,17 +37,12 @@
...
@@ -36,17 +37,12 @@
<if
test=
"params.endDate != null and params.endDate != ''"
>
<if
test=
"params.endDate != null and params.endDate != ''"
>
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
and Convert(varchar(10),tw.Rq,120)
<![CDATA[ <= ]]>
#{params.endDate}
</if>
</if>
<if
test=
"params.startDate == null and params.endDate == null"
>
<if
test=
"(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')"
>
and datediff(week, tw.Rq,getdate())=0
and datediff(week, tw.Rq,getdate())=0
</if>
</if>
</select>
</select>
</mapper>
</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