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
4cf9ebaa
Commit
4cf9ebaa
authored
Sep 22, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.修改bug
parent
fe473b97
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
86 additions
and
39 deletions
+86
-39
RecordsMasterCheckController.java
...es/checkData/controller/RecordsMasterCheckController.java
+0
-31
RecordsMasterCheckMapper.xml
...modules/checkData/mapper/xml/RecordsMasterCheckMapper.xml
+0
-1
钢轨伤损情况-右股仪器.json
...ava/org/jeecg/modules/checkData/template/钢轨伤损情况-右股仪器.json
+1
-0
AnalysisBatchController.java
...micStaticAnalysis/controller/AnalysisBatchController.java
+17
-3
AnalysisBatchQueryDTO.java
...ules/dynamicStaticAnalysis/dto/AnalysisBatchQueryDTO.java
+5
-0
AnalysisBatchUnitDeviceTransfiniteMapper.java
...ysis/mapper/AnalysisBatchUnitDeviceTransfiniteMapper.java
+2
-0
AnalysisBatchMapper.xml
.../dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
+16
-0
AnalysisBatchUnitDeviceTransfiniteMapper.xml
...s/mapper/xml/AnalysisBatchUnitDeviceTransfiniteMapper.xml
+32
-0
AnalysisBatchUnitDeviceServiceImpl.java
...ysis/service/impl/AnalysisBatchUnitDeviceServiceImpl.java
+12
-3
application.yml
jeecg-module-system/src/main/resources/application.yml
+1
-1
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/controller/RecordsMasterCheckController.java
View file @
4cf9ebaa
...
@@ -519,37 +519,6 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
...
@@ -519,37 +519,6 @@ public class RecordsMasterCheckController extends JeecgController<RecordsMasterC
recordsMasterCorrWaveList
.
add
(
model
);
recordsMasterCorrWaveList
.
add
(
model
);
}
}
/**
* 处理滑床板部分
* @param recordsMasterTurnoutInfoList
* @param list
* @param realname
* @param id
*/
// public void uploadSwitchPlate(List<RecordsMasterTurnoutInfo> recordsMasterTurnoutInfoList, List<Object> list, String realname, String id,String type) {
// String str1 = list.get(1).toString().trim();
// String[] n = str1.split("þ");
// String s = n[0];
// String s1 = n[1];
// RecordsMasterTurnoutInfo model = new RecordsMasterTurnoutInfo();
// model.setId(IdWorker.get32UUID());
// model.setDelFlag("0");
// model.setRecordsMasterId(id);
// model.setCreateTime(new Date());
// model.setUpdateTime(new Date());
// model.setCreateBy(realname);
// model.setUpdateBy(realname);
// model.setType(type);
// if(s.contains("不合格")){
// model.setQualified("2");
// String noQualifiedRemark = "";
// noQualifiedRemark = s1.substring(s1.indexOf("不合格说明")+6).trim();
// model.setNoQualifiedRemark(noQualifiedRemark);
// }else {
// model.setQualified("1");
// }
// recordsMasterTurnoutInfoList.add(model);
// }
/**
/**
* 处理轮缘槽部分
* 处理轮缘槽部分
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/mapper/xml/RecordsMasterCheckMapper.xml
View file @
4cf9ebaa
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
AND t1.check_time
<![CDATA[ <= ]]>
#{dto.endTime}
AND t1.check_time
<![CDATA[ <= ]]>
#{dto.endTime}
</if>
</if>
AND t1.type = #{dto.type}
AND t1.type = #{dto.type}
AND t2.status = 1
order by t1.create_time desc
order by t1.create_time desc
</where>
</where>
</select>
</select>
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/template/钢轨伤损情况-右股仪器.json
View file @
4cf9ebaa
{
{
"name"
:
"右股仪器编号"
,
"name"
:
"右股仪器编号"
,
"code"
:
""
,
"probeCombination"
:
{
"probeCombination"
:
{
"checkName"
:
"探头组合"
,
"checkName"
:
"探头组合"
,
"value1"
:
"37℃"
,
"value1"
:
"37℃"
,
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/AnalysisBatchController.java
View file @
4cf9ebaa
...
@@ -8,18 +8,17 @@ import io.swagger.annotations.Api;
...
@@ -8,18 +8,17 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
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.exception.JeecgBootException
;
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.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.face.AnalysisBatchUnitDeviceFace
;
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.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
javax.annotation.Resource
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -84,6 +83,18 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -84,6 +83,18 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
@PostMapping
(
value
=
"/saveRecord"
)
@PostMapping
(
value
=
"/saveRecord"
)
public
Result
<
String
>
saveRecord
(
@RequestBody
AnalysisBatchSaveOrUpdateDTO
dto
)
{
public
Result
<
String
>
saveRecord
(
@RequestBody
AnalysisBatchSaveOrUpdateDTO
dto
)
{
if
(
dto
.
getStartingMileage
().
compareTo
(
dto
.
getEndMileage
())
>
0
)
{
throw
new
JeecgBootException
(
"起始里程不能大于结束里程"
);
}
// 出重
AnalysisBatch
exist
=
this
.
service
.
lambdaQuery
().
eq
(
AnalysisBatch:
:
getAnalysisBatchCode
,
dto
.
getAnalysisBatchCode
())
.
last
(
"limit 1"
)
.
one
();
if
(
exist
!=
null
)
{
throw
new
JeecgBootException
(
"【"
+
dto
.
getAnalysisBatchCode
()
+
"】分析批次已存在"
);
}
this
.
service
.
saveRecord
(
dto
);
this
.
service
.
saveRecord
(
dto
);
return
Result
.
OK
(
"操作成功"
);
return
Result
.
OK
(
"操作成功"
);
...
@@ -94,6 +105,10 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -94,6 +105,10 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
@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
)
{
if
(
dto
.
getStartingMileage
().
compareTo
(
dto
.
getEndMileage
())
>
0
)
{
throw
new
JeecgBootException
(
"起始里程不能大于结束里程"
);
}
this
.
service
.
updateRecord
(
dto
);
this
.
service
.
updateRecord
(
dto
);
...
@@ -124,5 +139,4 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
...
@@ -124,5 +139,4 @@ public class AnalysisBatchController extends JeecgController<AnalysisBatch, IAna
}
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/dto/AnalysisBatchQueryDTO.java
View file @
4cf9ebaa
...
@@ -37,4 +37,9 @@ public class AnalysisBatchQueryDTO {
...
@@ -37,4 +37,9 @@ public class AnalysisBatchQueryDTO {
@ApiModelProperty
(
"分析状态 0-创建 1-分析中 99-分析完成"
)
@ApiModelProperty
(
"分析状态 0-创建 1-分析中 99-分析完成"
)
private
Integer
analysisStatus
;
private
Integer
analysisStatus
;
@ApiModelProperty
(
"开始里程"
)
private
BigDecimal
startMileage
;
@ApiModelProperty
(
"结束里程"
)
private
BigDecimal
endMileage
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/AnalysisBatchUnitDeviceTransfiniteMapper.java
View file @
4cf9ebaa
...
@@ -17,4 +17,6 @@ import java.util.List;
...
@@ -17,4 +17,6 @@ import java.util.List;
public
interface
AnalysisBatchUnitDeviceTransfiniteMapper
extends
BaseMapper
<
AnalysisBatchUnitDeviceTransfinite
>
{
public
interface
AnalysisBatchUnitDeviceTransfiniteMapper
extends
BaseMapper
<
AnalysisBatchUnitDeviceTransfinite
>
{
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
getTransfiniteList
(
String
analysisBatchUnitDeviceId
);
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
getTransfiniteList
(
String
analysisBatchUnitDeviceId
);
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
getTransfiniteListByIds
(
List
<
String
>
analysisBatchUnitDeviceIds
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
View file @
4cf9ebaa
...
@@ -60,6 +60,22 @@
...
@@ -60,6 +60,22 @@
t1.remark
t1.remark
FROM
FROM
t_dsa_analysis_batch t1
t_dsa_analysis_batch t1
where 1=1
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
AND t1.light_rail_id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
<if
test=
"dto.startMileage != null"
>
AND t1.starting_mileage >= #{dto.startMileage }
</if>
<if
test=
"dto.endMileage != null"
>
AND t1.end_mileage
<![CDATA[ <= ]]>
#{dto.endMileage}
</if>
<if
test=
"dto.analysisBatchCode != null and dto.analysisBatchCode != ''"
>
AND t1.analysis_batch_code like concat('%',#{dto.analysisBatchCode},'%')
</if>
</select>
</select>
<select
id=
"listRecordDetail"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO"
>
<select
id=
"listRecordDetail"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO"
>
SELECT
SELECT
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchUnitDeviceTransfiniteMapper.xml
View file @
4cf9ebaa
...
@@ -28,4 +28,36 @@
...
@@ -28,4 +28,36 @@
t_dsa_analysis_batch_unit_device_transfinite t1
t_dsa_analysis_batch_unit_device_transfinite t1
WHERE t1.analysis_batch_unit_device_id = #{analysisBatchUnitDeviceId}
WHERE t1.analysis_batch_unit_device_id = #{analysisBatchUnitDeviceId}
</select>
</select>
<select
id=
"getTransfiniteListByIds"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceTransfiniteVO"
>
SELECT
t1.id,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t1.analysis_batch_unit_device_id,
t1.analysis_batch_code,
t1.analysis_batch_id,
t1.unit_id,
t1.unit_code,
t1.unit_type,
t1.unit_type_name,
t1.transfinite_grade,
t1.transfinite_grade_name,
t1.transfinite_type,
t1.allow_value,
t1.measure_point_value,
t1.is_work,
t1.remark
FROM
t_dsa_analysis_batch_unit_device_transfinite t1
WHERE t1.analysis_batch_unit_device_id IN
<if
test=
"analysisBatchUnitDeviceIds !=null and analysisBatchUnitDeviceIds.size()>0"
>
<foreach
collection=
"analysisBatchUnitDeviceIds"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchUnitDeviceServiceImpl.java
View file @
4cf9ebaa
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
...
@@ -7,6 +8,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMap
...
@@ -7,6 +8,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMap
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceTransfiniteMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceTransfiniteMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
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.AnalysisBatchUnitDeviceTransfiniteVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceTransfiniteVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.jeecg.modules.unitDevice.vo.RailAddInstrumentCheckVO
;
import
org.jeecg.modules.unitDevice.vo.RailAddInstrumentCheckVO
;
...
@@ -16,7 +18,10 @@ import org.jeecg.modules.unitDevice.vo.StaticCheckVO;
...
@@ -16,7 +18,10 @@ import org.jeecg.modules.unitDevice.vo.StaticCheckVO;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* <p>
* <p>
...
@@ -36,9 +41,13 @@ public class AnalysisBatchUnitDeviceServiceImpl extends ServiceImpl<AnalysisBatc
...
@@ -36,9 +41,13 @@ public class AnalysisBatchUnitDeviceServiceImpl extends ServiceImpl<AnalysisBatc
public
Page
<
AnalysisBatchUnitDeviceVO
>
listRecord
(
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
,
AnalysisBatchUnitDeviceDTO
dto
)
{
public
Page
<
AnalysisBatchUnitDeviceVO
>
listRecord
(
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
,
AnalysisBatchUnitDeviceDTO
dto
)
{
Page
<
AnalysisBatchUnitDeviceVO
>
page
=
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
Page
<
AnalysisBatchUnitDeviceVO
>
page
=
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
for
(
AnalysisBatchUnitDeviceVO
record
:
page
.
getRecords
())
{
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
transfiniteList
=
transfiniteMapper
.
getTransfiniteList
(
record
.
getId
());
if
(
ObjectUtil
.
isNotEmpty
(
page
.
getRecords
()))
{
record
.
setTransfiniteList
(
transfiniteList
);
List
<
String
>
analysisBatchUnitDeviceIds
=
page
.
getRecords
().
stream
().
map
(
AnalysisBatchUnitDeviceVO:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
transfiniteList
=
transfiniteMapper
.
getTransfiniteListByIds
(
analysisBatchUnitDeviceIds
);
Map
<
String
,
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>>
map
=
transfiniteList
.
stream
().
collect
(
Collectors
.
groupingBy
(
AnalysisBatchUnitDeviceTransfiniteVO:
:
getAnalysisBatchUnitDeviceId
));
page
.
getRecords
().
forEach
(
record
->
record
.
setTransfiniteList
(
map
.
get
(
record
.
getId
())));
}
}
return
page
;
return
page
;
...
...
jeecg-module-system/src/main/resources/application.yml
View file @
4cf9ebaa
...
@@ -2,4 +2,4 @@ spring:
...
@@ -2,4 +2,4 @@ spring:
application
:
application
:
name
:
jeecg-system
name
:
jeecg-system
profiles
:
profiles
:
active
:
dev
active
:
hkl
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