Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
hzsomms
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
ZTGK
hzsomms
Commits
95de846b
Commit
95de846b
authored
Jul 12, 2023
by
shizhilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选数据条件更新提交 --shizhilong
parent
3948b672
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
21 deletions
+36
-21
MovementRecordsMasterController.java
...CheckData/controller/MovementRecordsMasterController.java
+14
-1
RecordsMasterCheckController.java
...entCheckData/controller/RecordsMasterCheckController.java
+6
-4
MovementRecordsMasterMapper.xml
...pmentCheckData/mapper/xml/MovementRecordsMasterMapper.xml
+6
-6
RecordPatrolMasterMapper.xml
...quipmentCheckData/mapper/xml/RecordPatrolMasterMapper.xml
+4
-4
RecordsMasterCheckMapper.xml
...quipmentCheckData/mapper/xml/RecordsMasterCheckMapper.xml
+6
-6
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementRecordsMasterController.java
View file @
95de846b
...
...
@@ -2,6 +2,7 @@ package org.jeecg.modules.checkData.equipmentCheckData.controller;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.poi.excel.ExcelUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -27,7 +28,10 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.ByteArrayInputStream
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -227,7 +231,16 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
return
Result
.
OK
(
"删除成功!"
);
}
// @AutoLog(value = "导入")
// @ApiOperation(value = "导入", notes = "导入 ")
// @PostMapping(value = "/upload")
// @ResponseBody
// public Result<String> uploadFile(MultipartFile file) throws IOException {
// byte[] bytes = file.getBytes();
// ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
// ExcelUtil.getReader(bis);
// return Result.ok("操作成功");
// }
/**
* 校验参数
*
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/RecordsMasterCheckController.java
View file @
95de846b
...
...
@@ -142,8 +142,9 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
ModelAndView
mv
=
new
ModelAndView
(
new
JeecgEntityExcelView
());
List
<
RecordsMasterCheck
>
resultList
=
this
.
service
.
list
(
new
LambdaQueryWrapper
<
RecordsMasterCheck
>()
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getEkCode
()),
RecordsMasterCheck:
:
getEkCode
,
recordsMasterCheck
.
getEkCode
())
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getSubwaySectionName
()),
RecordsMasterCheck:
:
getSubwaySectionName
,
recordsMasterCheck
.
getSubwaySectionName
())
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLightRailName
()),
RecordsMasterCheck:
:
getLightRailName
,
recordsMasterCheck
.
getLightRailName
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getSubwaySectionId
()),
RecordsMasterCheck:
:
getSubwaySectionId
,
recordsMasterCheck
.
getSubwaySectionId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLightRailId
()),
RecordsMasterCheck:
:
getLightRailId
,
recordsMasterCheck
.
getLightRailId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLineAliasId
()),
RecordsMasterCheck:
:
getLineAliasId
,
recordsMasterCheck
.
getLineAliasId
())
.
orderByAsc
(
RecordsMasterCheck:
:
getCreateTime
));
//导出文件名称
mv
.
addObject
(
NormalExcelConstants
.
FILE_NAME
,
"道床使用情况检查"
);
...
...
@@ -164,8 +165,9 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
public
void
export
(
RecordsMasterCheck
recordsMasterCheck
,
HttpServletResponse
response
)
{
List
<
RecordsMasterCheck
>
resultList
=
this
.
service
.
list
(
new
LambdaQueryWrapper
<
RecordsMasterCheck
>()
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getEkCode
()),
RecordsMasterCheck:
:
getEkCode
,
recordsMasterCheck
.
getEkCode
())
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getSubwaySectionName
()),
RecordsMasterCheck:
:
getSubwaySectionName
,
recordsMasterCheck
.
getSubwaySectionName
())
.
like
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLightRailName
()),
RecordsMasterCheck:
:
getLightRailName
,
recordsMasterCheck
.
getLightRailName
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getSubwaySectionId
()),
RecordsMasterCheck:
:
getSubwaySectionId
,
recordsMasterCheck
.
getSubwaySectionId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLightRailId
()),
RecordsMasterCheck:
:
getLightRailId
,
recordsMasterCheck
.
getLightRailId
())
.
eq
(
ObjectUtil
.
isNotEmpty
(
recordsMasterCheck
.
getLineAliasId
()),
RecordsMasterCheck:
:
getLineAliasId
,
recordsMasterCheck
.
getLineAliasId
())
.
orderByAsc
(
RecordsMasterCheck:
:
getCreateTime
));
int
num
=
0
;
for
(
RecordsMasterCheck
s
:
resultList
)
{
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/xml/MovementRecordsMasterMapper.xml
View file @
95de846b
...
...
@@ -11,14 +11,14 @@
<if
test=
"dto.ekCode != null and dto.ekCode != ''"
>
AND t1.ek_code like concat('%',#{dto.ekCode},'%')
</if>
<if
test=
"dto.subwaySection
Name != null and dto.subwaySectionName
!= ''"
>
AND t1.subway_section_
name like concat('%',#{dto.subwaySectionName},'%')
<if
test=
"dto.subwaySection
Id != null and dto.subwaySectionId
!= ''"
>
AND t1.subway_section_
id = #{dto.subwaySectionId}
</if>
<if
test=
"dto.lightRail
Name != null and dto.lightRailName
!= ''"
>
AND t1.light_rail_
name like concat('%',#{dto.lightRailName},'%')
<if
test=
"dto.lightRail
Id != null and dto.lightRailId
!= ''"
>
AND t1.light_rail_
id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAlias
Name != null and dto.lineAliasName
!= ''"
>
AND t1.line_alias_
name like concat('%',#{dto.lineAliasName},'%')
<if
test=
"dto.lineAlias
Id != null and dto.lineAliasId
!= ''"
>
AND t1.line_alias_
id = #{dto.lineAliasId}
</if>
AND t1.type = #{dto.type}
AND t1.del_flag = '0'
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/xml/RecordPatrolMasterMapper.xml
View file @
95de846b
...
...
@@ -11,11 +11,11 @@
<if
test=
"dto.ekCode != null and dto.ekCode != ''"
>
AND t1.ek_code like concat('%',#{dto.ekCode},'%')
</if>
<if
test=
"dto.lightRail
Name != null and dto.lightRailName
!= ''"
>
AND t1.light_rail_
name like concat('%',#{dto.lightRailName},'%')
<if
test=
"dto.lightRail
Id != null and dto.lightRailId
!= ''"
>
AND t1.light_rail_
id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAlias
Name != null and dto.lineAliasName
!= ''"
>
AND t1.line_alias_
name like concat('%',#{dto.lineAliasName},'%')
<if
test=
"dto.lineAlias
Id != null and dto.lineAliasId
!= ''"
>
AND t1.line_alias_
id = #{dto.lineAliasId}
</if>
AND t1.del_flag = '0'
order by t1.create_time desc
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/xml/RecordsMasterCheckMapper.xml
View file @
95de846b
...
...
@@ -11,14 +11,14 @@
<if
test=
"dto.ekCode != null and dto.ekCode != ''"
>
AND t1.ek_code like concat('%',#{dto.ekCode},'%')
</if>
<if
test=
"dto.subwaySection
Name != null and dto.subwaySectionName
!= ''"
>
AND t1.subway_section_
name like concat('%',#{dto.subwaySectionName},'%')
<if
test=
"dto.subwaySection
Id != null and dto.subwaySectionId
!= ''"
>
AND t1.subway_section_
id = #{dto.subwaySectionId}
</if>
<if
test=
"dto.lightRail
Name != null and dto.lightRailName
!= ''"
>
AND t1.light_rail_
name like concat('%',#{dto.lightRailName},'%')
<if
test=
"dto.lightRail
Id != null and dto.lightRailId
!= ''"
>
AND t1.light_rail_
id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAlias
Name != null and dto.lineAliasName
!= ''"
>
AND t1.line_alias_
name like concat('%',#{dto.lineAliasName},'%')
<if
test=
"dto.lineAlias
Id != null and dto.lineAliasId
!= ''"
>
AND t1.line_alias_
id = #{dto.lineAliasId}
</if>
AND t1.del_flag = '0'
order by t1.create_time desc
...
...
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