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
49485e31
Commit
49485e31
authored
Jul 31, 2024
by
史志龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口更新--shizhilong
parent
5b25a1ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
AnalysisAlgorithmLine.java
...ules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
+17
-0
AnalysisLineBatchInfoDTO.java
...modules/diseaseAnalysis/dto/AnalysisLineBatchInfoDTO.java
+3
-0
AnalysisLineBatchMapper.xml
...es/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
+3
-0
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
View file @
49485e31
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.shiro.SecurityUtils
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.checkData.entity.*
;
import
org.jeecg.modules.checkData.entity.*
;
import
org.jeecg.modules.checkData.service.*
;
import
org.jeecg.modules.checkData.service.*
;
...
@@ -409,6 +411,11 @@ public class AnalysisAlgorithmLine {
...
@@ -409,6 +411,11 @@ public class AnalysisAlgorithmLine {
unit
.
setUnitStartMileage
(
checkDataMap
.
getStartingMileage
());
unit
.
setUnitStartMileage
(
checkDataMap
.
getStartingMileage
());
unit
.
setUnitEndMileage
(
checkDataMap
.
getEndMileage
());
unit
.
setUnitEndMileage
(
checkDataMap
.
getEndMileage
());
unit
.
setWorkStatus
(
1
);
unit
.
setWorkStatus
(
1
);
//获取当前登录人信息
LoginUser
user
=
(
LoginUser
)
SecurityUtils
.
getSubject
().
getPrincipal
();
String
realname
=
user
.
getUsername
();
unit
.
setCreateBy
(
realname
);
unit
.
setUpdateBy
(
realname
);
//线路巡查主表
//线路巡查主表
RecordPatrolMaster
recordPatrolMaster
=
recordPatrolMasterService
.
getById
(
checkDataMap
.
getEkId
());
RecordPatrolMaster
recordPatrolMaster
=
recordPatrolMasterService
.
getById
(
checkDataMap
.
getEkId
());
if
(
recordPatrolMaster
!=
null
)
{
if
(
recordPatrolMaster
!=
null
)
{
...
@@ -451,6 +458,11 @@ public class AnalysisAlgorithmLine {
...
@@ -451,6 +458,11 @@ public class AnalysisAlgorithmLine {
unit
.
setWorkStatus
(
1
);
unit
.
setWorkStatus
(
1
);
unit
.
setMarkStatus
(
1
);
unit
.
setMarkStatus
(
1
);
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
//获取当前登录人信息
LoginUser
user
=
(
LoginUser
)
SecurityUtils
.
getSubject
().
getPrincipal
();
String
realname
=
user
.
getUsername
();
unit
.
setCreateBy
(
realname
);
unit
.
setUpdateBy
(
realname
);
unitList
.
add
(
unit
);
unitList
.
add
(
unit
);
return
unit
.
getId
();
return
unit
.
getId
();
}
}
...
@@ -482,6 +494,11 @@ public class AnalysisAlgorithmLine {
...
@@ -482,6 +494,11 @@ public class AnalysisAlgorithmLine {
unit
.
setUnitEndMileage
(
new
BigDecimal
(
map
.
get
(
"endMileage"
).
toString
()));
unit
.
setUnitEndMileage
(
new
BigDecimal
(
map
.
get
(
"endMileage"
).
toString
()));
unit
.
setWorkStatus
(
1
);
unit
.
setWorkStatus
(
1
);
unit
.
setMarkStatus
(
1
);
unit
.
setMarkStatus
(
1
);
//获取当前登录人信息
LoginUser
user
=
(
LoginUser
)
SecurityUtils
.
getSubject
().
getPrincipal
();
String
realname
=
user
.
getUsername
();
unit
.
setCreateBy
(
realname
);
unit
.
setUpdateBy
(
realname
);
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
unitList
.
add
(
unit
);
unitList
.
add
(
unit
);
return
unit
.
getId
();
return
unit
.
getId
();
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/dto/AnalysisLineBatchInfoDTO.java
View file @
49485e31
...
@@ -30,6 +30,9 @@ public class AnalysisLineBatchInfoDTO {
...
@@ -30,6 +30,9 @@ public class AnalysisLineBatchInfoDTO {
@ApiModelProperty
(
"单元编号"
)
@ApiModelProperty
(
"单元编号"
)
private
String
unitCode
;
private
String
unitCode
;
@ApiModelProperty
(
"设备编号"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
private
Integer
workStatus
;
private
Integer
workStatus
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
View file @
49485e31
...
@@ -106,6 +106,9 @@
...
@@ -106,6 +106,9 @@
<if
test=
"dto.unitCode != null and dto.unitCode != ''"
>
<if
test=
"dto.unitCode != null and dto.unitCode != ''"
>
AND t1.unit_code like concat('%',#{dto.unitCode},'%')
AND t1.unit_code like concat('%',#{dto.unitCode},'%')
</if>
</if>
<if
test=
"dto.unitDeviceCode != null and dto.unitDeviceCode != ''"
>
AND t1.unit_device_code like concat('%',#{dto.unitDeviceCode},'%')
</if>
<if
test=
"dto.analysisBatchId != null and dto.analysisBatchId != ''"
>
<if
test=
"dto.analysisBatchId != null and dto.analysisBatchId != ''"
>
AND t1.analysis_batch_id = #{dto.analysisBatchId}
AND t1.analysis_batch_id = #{dto.analysisBatchId}
</if>
</if>
...
...
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