Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
590f3b29
Commit
590f3b29
authored
Apr 26, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.安装告知完成后,施工信息应该是新增而不是更新
parent
5ac8a75f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
18 deletions
+25
-18
IIdxBizJgConstructionInfoService.java
...dule/jg/biz/service/IIdxBizJgConstructionInfoService.java
+2
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+23
-17
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/IIdxBizJgConstructionInfoService.java
View file @
590f3b29
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo
;
/**
/**
...
@@ -8,7 +9,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo;
...
@@ -8,7 +9,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo;
* @author system_generator
* @author system_generator
* @date 2023-08-17
* @date 2023-08-17
*/
*/
public
interface
IIdxBizJgConstructionInfoService
{
public
interface
IIdxBizJgConstructionInfoService
extends
IService
<
IdxBizJgConstructionInfo
>
{
boolean
saveOrUpdateData
(
IdxBizJgConstructionInfo
constructionInfo
);
boolean
saveOrUpdateData
(
IdxBizJgConstructionInfo
constructionInfo
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
590f3b29
...
@@ -986,22 +986,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -986,22 +986,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
tzsJgRegistrationInfoMapper
.
updateById
(
idxBizJgRegisterInfo
);
tzsJgRegistrationInfoMapper
.
updateById
(
idxBizJgRegisterInfo
);
// 更新es
// 更新es
updateEquipEs
(
jgInstallationNotice
,
tzsJgOtherInfo
,
idxBizJgRegisterInfo
,
idxBizJgSupervisionInfo
,
map1
);
updateEquipEs
(
jgInstallationNotice
,
tzsJgOtherInfo
,
idxBizJgRegisterInfo
,
idxBizJgSupervisionInfo
,
map1
);
// 更新施工信息表
// 记录施工信息表
IdxBizJgConstructionInfo
idxBizJgConstructionInfo
=
constructionInfoService
.
queryNewestDetailByRecord
(
jgRelationEquip
.
getEquId
());
createConstruction2Db
(
jgInstallationNotice
,
jgRelationEquip
);
if
(!
ObjectUtils
.
isEmpty
(
idxBizJgConstructionInfo
))
{
idxBizJgConstructionInfo
.
setUscUnitCreditCode
(
jgInstallationNotice
.
getInstallUnitCreditCode
());
idxBizJgConstructionInfo
.
setUscUnitName
(
jgInstallationNotice
.
getInstallUnitName
());
idxBizJgConstructionInfo
.
setUscDate
(
jgInstallationNotice
.
getInstallStartDate
());
// 获取施工类型id
LambdaQueryWrapper
<
DataDictionary
>
lambda
=
new
LambdaQueryWrapper
<>();
lambda
.
eq
(
DataDictionary:
:
getType
,
CONSTRUCTION_TYPE
);
lambda
.
eq
(
DataDictionary:
:
getName
,
CONSTRUCTION_TYPE_NAME
);
List
<
DataDictionary
>
dataDictionaries
=
dataDictionaryMapper
.
selectList
(
lambda
);
if
(!
CollectionUtils
.
isEmpty
(
dataDictionaries
))
{
idxBizJgConstructionInfo
.
setConstructionType
(
String
.
valueOf
(
dataDictionaries
.
get
(
0
).
getSequenceNbr
()));
}
constructionInfoService
.
saveOrUpdateData
(
idxBizJgConstructionInfo
);
}
// 更新使用信息
// 更新使用信息
updateJgUseInfo
(
jgInstallationNotice
,
jgRelationEquip
);
updateJgUseInfo
(
jgInstallationNotice
,
jgRelationEquip
);
...
@@ -1016,7 +1003,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -1016,7 +1003,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
BeanUtils
.
copyProperties
(
jgInstallationNotice
,
taskMessageDto
);
BeanUtils
.
copyProperties
(
jgInstallationNotice
,
taskMessageDto
);
taskMap
.
put
(
"model"
,
taskMessageDto
);
taskMap
.
put
(
"model"
,
taskMessageDto
);
taskV2Model
=
commonService
.
updateTaskModel
(
taskMap
);
commonService
.
updateTaskModel
(
taskMap
);
}
else
{
}
else
{
jgInstallationNotice
.
setNextExecuteIds
(
workflowResultDto
.
getNextExecutorRoleIds
());
jgInstallationNotice
.
setNextExecuteIds
(
workflowResultDto
.
getNextExecutorRoleIds
());
jgInstallationNotice
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
jgInstallationNotice
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
...
@@ -1089,6 +1076,25 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -1089,6 +1076,25 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
}
}
}
}
private
void
createConstruction2Db
(
JgInstallationNotice
jgInstallationNotice
,
JgInstallationNoticeEq
jgRelationEquip
)
{
IdxBizJgConstructionInfo
idxBizJgConstructionInfo
=
new
IdxBizJgConstructionInfo
();
idxBizJgConstructionInfo
.
setUscUnitCreditCode
(
jgInstallationNotice
.
getInstallUnitCreditCode
());
idxBizJgConstructionInfo
.
setUscUnitName
(
jgInstallationNotice
.
getInstallUnitName
());
idxBizJgConstructionInfo
.
setUscDate
(
jgInstallationNotice
.
getInstallStartDate
());
idxBizJgConstructionInfo
.
setRecord
(
jgRelationEquip
.
getEquId
());
idxBizJgConstructionInfo
.
setRecDate
(
new
Date
());
idxBizJgConstructionInfo
.
setNoticeId
(
jgInstallationNotice
.
getSequenceNbr
()
+
""
);
// 获取施工类型id
LambdaQueryWrapper
<
DataDictionary
>
lambda
=
new
LambdaQueryWrapper
<>();
lambda
.
eq
(
DataDictionary:
:
getType
,
CONSTRUCTION_TYPE
);
lambda
.
eq
(
DataDictionary:
:
getName
,
CONSTRUCTION_TYPE_NAME
);
List
<
DataDictionary
>
dataDictionaries
=
dataDictionaryMapper
.
selectList
(
lambda
);
if
(!
CollectionUtils
.
isEmpty
(
dataDictionaries
))
{
idxBizJgConstructionInfo
.
setConstructionType
(
String
.
valueOf
(
dataDictionaries
.
get
(
0
).
getSequenceNbr
()));
}
constructionInfoService
.
save
(
idxBizJgConstructionInfo
);
}
private
void
updateEquipEs
(
JgInstallationNotice
jgInstallationNotice
,
OtherInfo
tzsJgOtherInfo
,
private
void
updateEquipEs
(
JgInstallationNotice
jgInstallationNotice
,
OtherInfo
tzsJgOtherInfo
,
IdxBizJgRegisterInfo
tzsJgRegistrationInfo
,
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfo
,
IdxBizJgRegisterInfo
tzsJgRegistrationInfo
,
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfo
,
Map
<
String
,
Object
>
map1
)
{
Map
<
String
,
Object
>
map1
)
{
...
...
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