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
dae97856
Commit
dae97856
authored
Feb 01, 2024
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
35fae41c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+33
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+18
-1
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/impl/JgMaintenanceContractServiceImpl.java
View file @
dae97856
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintenanceContractService
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintenanceContractService
import
com.yeejoin.amos.boot.module.jg.api.vo.JgMaintenanceContractVo
;
import
com.yeejoin.amos.boot.module.jg.api.vo.JgMaintenanceContractVo
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgMaintenanceRecordInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
import
com.yeejoin.amos.feign.systemctl.model.TaskV2Model
;
...
@@ -81,6 +82,9 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -81,6 +82,9 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
@Autowired
@Autowired
IJgInstallationNoticeService
jrmInstallationNoticeService
;
IJgInstallationNoticeService
jrmInstallationNoticeService
;
@Autowired
private
IdxBizJgMaintenanceRecordInfoServiceImpl
idxBizJgMaintenanceRecordInfoService
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -507,10 +511,39 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -507,10 +511,39 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
contract
.
setApplyDate
(
new
Date
());
contract
.
setApplyDate
(
new
Date
());
contract
.
setStatus
(
taskCode
);
contract
.
setStatus
(
taskCode
);
updateTaskModel
(
contract
,
"0"
);
updateTaskModel
(
contract
,
"0"
);
// 添加设备维保信息
updateEquipMessage
(
contract
.
getSequenceNbr
());
}
}
this
.
getBaseMapper
().
updateById
(
contract
);
this
.
getBaseMapper
().
updateById
(
contract
);
}
}
/**
* 流程结束后添加设备维保信息
*
* @param id
*/
private
void
updateEquipMessage
(
Long
id
)
{
JgMaintenanceContract
jgMaintenanceContract
=
this
.
getBaseMapper
().
selectById
(
id
);
LambdaQueryWrapper
<
JgMaintenanceContractEq
>
lambda
=
new
QueryWrapper
<
JgMaintenanceContractEq
>().
lambda
();
lambda
.
eq
(
JgMaintenanceContractEq:
:
getEquipTransferId
,
id
);
List
<
JgMaintenanceContractEq
>
list
=
jgMaintenanceContractEqService
.
getBaseMapper
().
selectList
(
lambda
);
ArrayList
<
IdxBizJgMaintenanceRecordInfo
>
data
=
new
ArrayList
<>();
list
.
forEach
(
item
->
{
IdxBizJgMaintenanceRecordInfo
info
=
new
IdxBizJgMaintenanceRecordInfo
();
info
.
setRecord
(
item
.
getEquId
());
info
.
setMeUnitName
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getMaintenanceUnitName
())
?
null
:
jgMaintenanceContract
.
getMaintenanceUnitName
());
info
.
setMeUnitCreditCode
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getMaintenanceUnitCode
())
?
null
:
jgMaintenanceContract
.
getMaintenanceUnitCode
());
info
.
setMeMaster
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getMaintenanceManagerOneName
())
?
null
:
jgMaintenanceContract
.
getMaintenanceManagerOneName
());
info
.
setEmergencycall
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getMaintenanceManagerOnePhone
())
?
null
:
jgMaintenanceContract
.
getMaintenanceManagerOnePhone
());
info
.
setInformStart
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getInformStart
())
?
null
:
jgMaintenanceContract
.
getInformStart
());
info
.
setInformEnd
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getInformEnd
())
?
null
:
jgMaintenanceContract
.
getInformEnd
());
info
.
setRepairInform
(
ObjectUtils
.
isEmpty
(
jgMaintenanceContract
.
getMaintenanceContract
())
?
null
:
jgMaintenanceContract
.
getMaintenanceContract
());
data
.
add
(
info
);
});
idxBizJgMaintenanceRecordInfoService
.
saveBatch
(
data
);
}
private
TaskV2Model
updateTaskModel
(
JgMaintenanceContract
contract
,
String
operate
)
{
private
TaskV2Model
updateTaskModel
(
JgMaintenanceContract
contract
,
String
operate
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
...
...
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/JgUseRegistrationServiceImpl.java
View file @
dae97856
...
@@ -92,6 +92,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -92,6 +92,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
CommonServiceImpl
commonServiceImpl
;
CommonServiceImpl
commonServiceImpl
;
@Autowired
@Autowired
CmWorkflowServiceImpl
cmWorkflowService
;
CmWorkflowServiceImpl
cmWorkflowService
;
@Autowired
IdxBizJgSupervisionInfoMapper
idxBizJgSupervisionInfoMapper
;
private
static
final
String
DEFINITION_KEY
=
"useRegistration"
;
private
static
final
String
DEFINITION_KEY
=
"useRegistration"
;
...
@@ -166,8 +168,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -166,8 +168,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
InspectionDetectionInfo
>
inspectionLambda
=
new
QueryWrapper
<
InspectionDetectionInfo
>().
lambda
();
LambdaQueryWrapper
<
InspectionDetectionInfo
>
inspectionLambda
=
new
QueryWrapper
<
InspectionDetectionInfo
>().
lambda
();
inspectionLambda
.
eq
(
InspectionDetectionInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
inspectionLambda
.
eq
(
InspectionDetectionInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
// 更新检验检测信息
// 更新检验检测信息
inspectionDetectionInfo
.
setInspectReport
(
null
);
//
inspectionDetectionInfo.setInspectReport(null);
inspectionDetectionInfoMapper
.
update
(
inspectionDetectionInfo
,
inspectionLambda
);
inspectionDetectionInfoMapper
.
update
(
inspectionDetectionInfo
,
inspectionLambda
);
// 更新设备监管部门
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfo
=
new
IdxBizJgSupervisionInfo
();
if
(
map
.
containsKey
(
"orgBranchCode"
)
&&
!
ObjectUtils
.
isEmpty
(
map
.
get
(
"orgBranchCode"
)))
{
String
[]
data
=
String
.
valueOf
(
map
.
getString
(
"orgBranchCode"
)).
split
(
"_"
);
idxBizJgSupervisionInfo
.
setOrgBranchCode
(
data
[
0
]);
idxBizJgSupervisionInfo
.
setOrgBranchName
(
data
[
1
]);
LambdaQueryWrapper
<
IdxBizJgSupervisionInfo
>
eq
=
new
QueryWrapper
<
IdxBizJgSupervisionInfo
>().
lambda
().
eq
(
IdxBizJgSupervisionInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
idxBizJgSupervisionInfoMapper
.
update
(
idxBizJgSupervisionInfo
,
eq
);
}
// 更新设备使用登记证
// 更新设备使用登记证
idxBizJgRegisterInfoMapper
.
updateUseOrgCodeByEquip
(
String
.
valueOf
(
map
.
get
(
"equipId"
)),
useOrgCode
);
idxBizJgRegisterInfoMapper
.
updateUseOrgCodeByEquip
(
String
.
valueOf
(
map
.
get
(
"equipId"
)),
useOrgCode
);
// 更新es
// 更新es
...
@@ -274,6 +285,12 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -274,6 +285,12 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgUseRegistration
.
setUseUnitCreditCode
(
null
);
jgUseRegistration
.
setUseUnitCreditCode
(
null
);
jgUseRegistration
.
setSequenceNbr
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))));
jgUseRegistration
.
setSequenceNbr
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))));
this
.
getBaseMapper
().
updateById
(
jgUseRegistration
);
this
.
getBaseMapper
().
updateById
(
jgUseRegistration
);
// 更新设备关联表
LambdaQueryWrapper
<
JgUseRegistrationEq
>
lambda
=
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
();
lambda
.
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
jgUseRegistration
.
getSequenceNbr
());
JgUseRegistrationEq
jgUseRegistrationEq
=
new
JgUseRegistrationEq
();
jgUseRegistrationEq
.
setEquId
(
map
.
get
(
"equipId"
).
toString
());
jgRelationEquipMapper
.
update
(
jgUseRegistrationEq
,
lambda
);
}
else
{
}
else
{
// 业务管理设备信息保存
// 业务管理设备信息保存
...
...
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