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
7eff6fb5
Commit
7eff6fb5
authored
Jul 26, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.动静态分析代码提交
parent
a6d528d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
7 deletions
+81
-7
AnalysisBatchController.java
...micStaticAnalysis/controller/AnalysisBatchController.java
+34
-7
AnalysisBatchMapper.java
...les/dynamicStaticAnalysis/mapper/AnalysisBatchMapper.java
+4
-0
AnalysisBatchMapper.xml
.../dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
+18
-0
IAnalysisBatchService.java
.../dynamicStaticAnalysis/service/IAnalysisBatchService.java
+6
-0
AnalysisBatchServiceImpl.java
...StaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
+19
-0
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/AnalysisBatchController.java
View file @
7eff6fb5
...
@@ -8,13 +8,17 @@ import io.swagger.annotations.ApiOperation;
...
@@ -8,13 +8,17 @@ import io.swagger.annotations.ApiOperation;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchQueryDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Arrays
;
/**
/**
* <p>
* <p>
* 动静态分析-分析批次表 前端控制器
* 动静态分析-分析批次表 前端控制器
...
@@ -44,11 +48,11 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -44,11 +48,11 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
@AutoLog
(
value
=
"动静态分析-分析批次-获取列表数据"
)
@AutoLog
(
value
=
"动静态分析-分析批次-获取列表数据"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-获取列表数据"
,
notes
=
"动静态分析-分析批次-获取列表数据"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-获取列表数据"
,
notes
=
"动静态分析-分析批次-获取列表数据"
)
@GetMapping
(
value
=
"/listRecord"
)
@GetMapping
(
value
=
"/listRecord"
)
public
Result
<
IPage
<
CheckBatch
VO
>>
listRecord
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
public
Result
<
IPage
<
AnalysisBatchQuery
VO
>>
listRecord
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
CheckBatch
DTO
dto
)
{
AnalysisBatchQuery
DTO
dto
)
{
Page
<
CheckBatch
VO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
Page
<
AnalysisBatchQuery
VO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
getCheckData
(
pageData
,
dto
);
pageData
=
this
.
service
.
listRecord
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
return
Result
.
OK
(
pageData
);
}
}
...
@@ -65,8 +69,8 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -65,8 +69,8 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
}
}
@AutoLog
(
value
=
"动静态分析-分析批次-
新增
分析批次"
)
@AutoLog
(
value
=
"动静态分析-分析批次-
更新
分析批次"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-
新增分析批次"
,
notes
=
"动静态分析-分析批次-新增
分析批次"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-
更新分析批次"
,
notes
=
"动静态分析-分析批次-更新
分析批次"
)
@PostMapping
(
value
=
"/updateRecord"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
AnalysisBatchSaveOrUpdateDTO
dto
)
{
public
Result
<
String
>
updateRecord
(
@RequestBody
AnalysisBatchSaveOrUpdateDTO
dto
)
{
...
@@ -74,4 +78,27 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -74,4 +78,27 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
return
Result
.
OK
(
"操作成功"
);
return
Result
.
OK
(
"操作成功"
);
}
}
@AutoLog
(
value
=
"动静态分析-分析批次-通过id删除"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-通过id删除"
,
notes
=
"动静态分析-分析批次-通过id删除"
)
@GetMapping
(
value
=
"/deleteRecord"
)
public
Result
<
String
>
deleteRecord
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
this
.
service
.
deleteRecord
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"动静态分析-分析批次-批量删除"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-批量删除"
,
notes
=
"动静态分析-分析批次-批量删除"
)
@GetMapping
(
value
=
"/deleteBatchRecord"
)
public
Result
<
String
>
deleteBatchRecord
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
service
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/AnalysisBatchMapper.java
View file @
7eff6fb5
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchQueryDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
/**
/**
...
@@ -17,4 +19,6 @@ import org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO;
...
@@ -17,4 +19,6 @@ import org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO;
public
interface
AnalysisBatchMapper
extends
BaseMapper
<
AnalysisBatch
>
{
public
interface
AnalysisBatchMapper
extends
BaseMapper
<
AnalysisBatch
>
{
Page
<
CheckBatchVO
>
getCheckData
(
Page
<
CheckBatchVO
>
pageData
,
CheckBatchDTO
dto
);
Page
<
CheckBatchVO
>
getCheckData
(
Page
<
CheckBatchVO
>
pageData
,
CheckBatchDTO
dto
);
Page
<
AnalysisBatchQueryVO
>
listRecord
(
Page
<
AnalysisBatchQueryVO
>
pageData
,
AnalysisBatchQueryDTO
dto
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
View file @
7eff6fb5
...
@@ -39,4 +39,22 @@
...
@@ -39,4 +39,22 @@
AND t1.check_time
<![CDATA[ <= ]]>
#{dto.checkTime}
AND t1.check_time
<![CDATA[ <= ]]>
#{dto.checkTime}
</if>
</if>
</select>
</select>
<select
id=
"listRecord"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO"
>
SELECT
t1.id,
t1.analysis_batch_code,
t1.light_rail_id,
t1.light_rail_name,
t1.line_alias_id,
t1.line_alias_name,
t1.starting_mileage,
t1.end_mileage,
t1.analysis_type,
t1.allow_value,
t1.dispatching,
t1.analysis_status,
t1.remark
FROM
t_dsa_analysis_batch t1
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IAnalysisBatchService.java
View file @
7eff6fb5
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchQueryDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
/**
/**
...
@@ -22,4 +24,8 @@ public interface IAnalysisBatchService extends IService<AnalysisBatch> {
...
@@ -22,4 +24,8 @@ public interface IAnalysisBatchService extends IService<AnalysisBatch> {
void
saveRecord
(
AnalysisBatchSaveOrUpdateDTO
dto
);
void
saveRecord
(
AnalysisBatchSaveOrUpdateDTO
dto
);
void
updateRecord
(
AnalysisBatchSaveOrUpdateDTO
dto
);
void
updateRecord
(
AnalysisBatchSaveOrUpdateDTO
dto
);
Page
<
AnalysisBatchQueryVO
>
listRecord
(
Page
<
AnalysisBatchQueryVO
>
pageData
,
AnalysisBatchQueryDTO
dto
);
void
deleteRecord
(
String
id
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
View file @
7eff6fb5
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchQueryDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
...
@@ -13,6 +14,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchCheckDataMapM
...
@@ -13,6 +14,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchCheckDataMapM
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.utils.BeanCopyUtil
;
import
org.jeecg.modules.utils.BeanCopyUtil
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -111,5 +113,22 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
...
@@ -111,5 +113,22 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
}
}
}
}
@Override
public
Page
<
AnalysisBatchQueryVO
>
listRecord
(
Page
<
AnalysisBatchQueryVO
>
pageData
,
AnalysisBatchQueryDTO
dto
)
{
return
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
}
@Override
public
void
deleteRecord
(
String
id
)
{
// 1.先删除明细
LambdaQueryWrapper
<
AnalysisBatchCheckDataMap
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
AnalysisBatchCheckDataMap:
:
getAnalysisBatchId
,
id
);
analysisBatchCheckDataMapMapper
.
delete
(
wrapper
);
// 2.删除主信息
this
.
removeById
(
id
);
}
}
}
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