Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
c5693539
Commit
c5693539
authored
Jun 14, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
005d87db
efa3fbf2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
255 additions
and
242 deletions
+255
-242
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+236
-234
application-dev.properties
...le-hygf-biz/src/main/resources/application-dev.properties
+8
-8
IdxBizFanPointVarCentralValue.java
...odule/jxiop/biz/entity/IdxBizFanPointVarCentralValue.java
+6
-0
IdxBizPvPointVarCentralValue.java
...module/jxiop/biz/entity/IdxBizPvPointVarCentralValue.java
+3
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+2
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
c5693539
...
@@ -24,242 +24,244 @@ import java.util.*;
...
@@ -24,242 +24,244 @@ import java.util.*;
@Slf4j
@Slf4j
@Service
@Service
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
BasicGridAcceptanceServiceImpl
extends
BaseService
<
BasicGridAcceptanceDto
,
BasicGridAcceptance
,
BasicGridAcceptanceMapper
>
implements
IBasicGridAcceptanceService
{
public
class
BasicGridAcceptanceServiceImpl
extends
BaseService
<
BasicGridAcceptanceDto
,
BasicGridAcceptance
,
BasicGridAcceptanceMapper
>
@Autowired
implements
IBasicGridAcceptanceService
{
BasicGridAcceptanceMapper
basicGridAcceptanceMapper
;
@Autowired
@Autowired
HygfOnGridMapper
onGridMapper
;
BasicGridAcceptanceMapper
basicGridAcceptanceMapper
;
@Autowired
@Autowired
PersonnelBusinessMapper
personnelBusinessMapper
;
HygfOnGridMapper
onGridMapper
;
@Autowired
@Autowired
WorkflowImpl
workflow
;
PersonnelBusinessMapper
personnelBusinessMapper
;
@Autowired
@Autowired
AcceptanceCheckItemMapper
acceptanceCheckItemMapper
;
WorkflowImpl
workflow
;
@Autowired
@Autowired
AcceptanceRectificationOrderMapper
acceptanceRectificationOrderMapper
;
AcceptanceCheckItemMapper
acceptanceCheckItemMapper
;
@Autowired
@Autowired
RegionalCompaniesMapper
regionalCompaniesMapper
;
AcceptanceRectificationOrderMapper
acceptanceRectificationOrderMapper
;
@Autowired
@Autowired
WorkOrderMapper
workOrderMapper
;
RegionalCompaniesMapper
regionalCompaniesMapper
;
@Autowired
WorkOrderMapper
workOrderMapper
;
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
private
final
String
OK
=
"0"
;
private
final
String
PASS
=
"5"
;
private
final
String
OK
=
"0"
;
private
final
String
PASS
=
"5"
;
public
Page
<
BasicGridAcceptanceDto
>
selectPage
(
Long
regionCompanyId
,
Long
amosDealerId
,
int
current
,
int
size
,
String
projectAddress
,
String
powerStationCode
,
String
ownersName
,
String
gridStatus
,
String
gridConnectionTime
,
String
formType
)
throws
Exception
{
PageHelper
.
startPage
(
current
,
size
);
public
Page
<
BasicGridAcceptanceDto
>
selectPage
(
Long
regionCompanyId
,
Long
amosDealerId
,
int
current
,
int
size
,
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
projectAddress
,
String
powerStationCode
,
String
ownersName
,
String
gridStatus
,
Date
date
=
null
;
String
gridConnectionTime
,
String
formType
)
throws
Exception
{
PageHelper
.
startPage
(
current
,
size
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Date
date
=
null
;
// if (StringUtils.isNotEmpty(gridConnectionTime)) {
// if (StringUtils.isNotEmpty(gridConnectionTime)) {
// date = DateUtil.formatStringToDate(gridConnectionTime, "yyyy-MM-dd HH:mm:ss");
// date = DateUtil.formatStringToDate(gridConnectionTime, "yyyy-MM-dd HH:mm:ss");
// }
// }
map
.
put
(
"projectAddress"
,
projectAddress
);
map
.
put
(
"projectAddress"
,
projectAddress
);
map
.
put
(
"powerStationCode"
,
powerStationCode
);
map
.
put
(
"powerStationCode"
,
powerStationCode
);
map
.
put
(
"ownersName"
,
ownersName
);
map
.
put
(
"ownersName"
,
ownersName
);
map
.
put
(
"gridStatus"
,
gridStatus
);
map
.
put
(
"gridStatus"
,
gridStatus
);
map
.
put
(
"gridConnectionTime"
,
gridConnectionTime
);
map
.
put
(
"gridConnectionTime"
,
gridConnectionTime
);
map
.
put
(
"formType"
,
formType
);
map
.
put
(
"formType"
,
formType
);
map
.
put
(
"regionCompanyId"
,
regionCompanyId
);
map
.
put
(
"regionCompanyId"
,
regionCompanyId
);
map
.
put
(
"amosDealerId"
,
amosDealerId
);
map
.
put
(
"amosDealerId"
,
amosDealerId
);
List
<
BasicGridAcceptanceDto
>
list
=
basicGridAcceptanceMapper
.
selectPageList
(
map
);
List
<
BasicGridAcceptanceDto
>
list
=
basicGridAcceptanceMapper
.
selectPageList
(
map
);
PageInfo
<
BasicGridAcceptanceDto
>
page
=
new
PageInfo
(
list
);
PageInfo
<
BasicGridAcceptanceDto
>
page
=
new
PageInfo
(
list
);
Page
<
BasicGridAcceptanceDto
>
pageNew
=
new
Page
<>();
Page
<
BasicGridAcceptanceDto
>
pageNew
=
new
Page
<>();
pageNew
.
setCurrent
(
current
);
pageNew
.
setCurrent
(
current
);
pageNew
.
setTotal
(
page
.
getTotal
());
pageNew
.
setTotal
(
page
.
getTotal
());
pageNew
.
setSize
(
size
);
pageNew
.
setSize
(
size
);
pageNew
.
setRecords
(
page
.
getList
());
pageNew
.
setRecords
(
page
.
getList
());
return
pageNew
;
return
pageNew
;
}
}
public
HygfOnGrid
saveEntity
(
HygfOnGrid
grid
)
{
public
HygfOnGrid
saveEntity
(
HygfOnGrid
grid
)
{
if
(
grid
.
getSequenceNbr
()!=
null
){
if
(
grid
.
getSequenceNbr
()
!=
null
)
{
onGridMapper
.
updateById
(
grid
);
onGridMapper
.
updateById
(
grid
);
}
else
{
}
else
{
onGridMapper
.
insert
(
grid
);
onGridMapper
.
insert
(
grid
);
}
}
return
grid
;
return
grid
;
}
}
@Transactional
public
HygfOnGrid
saveAndCommit
(
HygfOnGrid
grid
,
String
userId
)
{
@Transactional
public
HygfOnGrid
saveAndCommit
(
HygfOnGrid
grid
,
String
userId
)
{
BasicGridAcceptance
basicGridAcceptance
=
basicGridAcceptanceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>().
eq
(
BasicGridAcceptance:
:
getWorkOrderPowerStationId
,
grid
.
getWorkOrderPowerStationId
()));
BasicGridAcceptance
basicGridAcceptance
=
basicGridAcceptanceMapper
basicGridAcceptance
.
setGridStatus
(
GridStatusEnum
.
DSH
.
getCode
());
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>()
.
eq
(
BasicGridAcceptance:
:
getWorkOrderPowerStationId
,
grid
.
getWorkOrderPowerStationId
()));
if
(
grid
.
getType
()!=
null
&&
"1"
.
equals
(
grid
.
getType
())){
basicGridAcceptance
.
setGridStatus
(
GridStatusEnum
.
DSH
.
getCode
());
//执行工作流
StandardDto
standardDto
=
new
StandardDto
();
if
(
grid
.
getType
()
!=
null
&&
"1"
.
equals
(
grid
.
getType
()))
{
standardDto
.
setTaskId
(
basicGridAcceptance
.
getNextTaskId
());
// 执行工作流
workflow
.
standard
(
basicGridAcceptance
,
standardDto
,
userId
);
StandardDto
standardDto
=
new
StandardDto
();
standardDto
.
setTaskId
(
basicGridAcceptance
.
getNextTaskId
());
}
else
{
workflow
.
standard
(
basicGridAcceptance
,
standardDto
,
userId
);
// 调用工作流执行第一个节点
ProcessDto
processDto
=
new
ProcessDto
();
}
else
{
processDto
.
setProcessDefinitionKey
(
"hygf_bwys"
);
// 调用工作流执行第一个节点
processDto
.
setBusinessKey
(
String
.
valueOf
(
basicGridAcceptance
.
getSequenceNbr
()));
ProcessDto
processDto
=
new
ProcessDto
();
StartProcessDto
startProcessDto
=
new
StartProcessDto
();
processDto
.
setProcessDefinitionKey
(
"hygf_bwys"
);
List
<
ProcessDto
>
process
=
new
ArrayList
<>();
processDto
.
setBusinessKey
(
String
.
valueOf
(
basicGridAcceptance
.
getSequenceNbr
()));
process
.
add
(
processDto
);
StartProcessDto
startProcessDto
=
new
StartProcessDto
();
startProcessDto
.
setProcess
(
process
);
List
<
ProcessDto
>
process
=
new
ArrayList
<>();
workflow
.
startProcess
(
basicGridAcceptance
,
startProcessDto
,
userId
);
process
.
add
(
processDto
);
startProcessDto
.
setProcess
(
process
);
//线上验收
workflow
.
startProcess
(
basicGridAcceptance
,
startProcessDto
,
userId
);
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
并网中
.
getCode
());
// 线上验收
long
idsk
=
basicGridAcceptance
.
getPeasantHouseholdId
();
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
并网中
.
getCode
());
peasantHouseholdMapper
.
update
(
null
,
up
);
long
idsk
=
basicGridAcceptance
.
getPeasantHouseholdId
();
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
peasantHouseholdMapper
.
update
(
null
,
up
);
}
}
if
(
grid
.
getSequenceNbr
()!=
null
){
if
(
grid
.
getSequenceNbr
()
!=
null
)
{
onGridMapper
.
updateById
(
grid
);
onGridMapper
.
updateById
(
grid
);
}
else
{
}
else
{
onGridMapper
.
insert
(
grid
);
onGridMapper
.
insert
(
grid
);
}
}
basicGridAcceptanceMapper
.
updateById
(
basicGridAcceptance
);
basicGridAcceptanceMapper
.
updateById
(
basicGridAcceptance
);
return
grid
;
return
grid
;
}
}
public
HygfOnGrid
modifyEntity
(
HygfOnGrid
grid
)
{
public
HygfOnGrid
modifyEntity
(
HygfOnGrid
grid
)
{
onGridMapper
.
updateById
(
grid
);
onGridMapper
.
updateById
(
grid
);
return
grid
;
return
grid
;
}
}
public
Boolean
deleteForBatch
(
Long
[]
sequenceNbrs
)
{
public
Boolean
deleteForBatch
(
Long
[]
sequenceNbrs
)
{
if
(
Objects
.
isNull
(
sequenceNbrs
)
||
sequenceNbrs
.
length
==
0
)
{
if
(
Objects
.
isNull
(
sequenceNbrs
)
||
sequenceNbrs
.
length
==
0
)
{
return
false
;
return
false
;
}
}
Boolean
bool
=
Boolean
.
TRUE
;
Boolean
bool
=
Boolean
.
TRUE
;
Collection
<
HygfOnGrid
>
grids
=
onGridMapper
.
selectBatchIds
(
Arrays
.
asList
(
sequenceNbrs
));
Collection
<
HygfOnGrid
>
grids
=
onGridMapper
.
selectBatchIds
(
Arrays
.
asList
(
sequenceNbrs
));
for
(
HygfOnGrid
x
:
grids
)
{
for
(
HygfOnGrid
x
:
grids
)
{
x
.
setIsDelete
(
true
);
x
.
setIsDelete
(
true
);
int
num
=
onGridMapper
.
updateById
(
x
);
int
num
=
onGridMapper
.
updateById
(
x
);
BasicGridAcceptance
acceptance
=
basicGridAcceptanceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>().
eq
(
BasicGridAcceptance:
:
getWorkOrderPowerStationId
,
x
.
getWorkOrderPowerStationId
()));
BasicGridAcceptance
acceptance
=
basicGridAcceptanceMapper
acceptance
.
setIsDelete
(
true
);
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>()
int
count
=
basicGridAcceptanceMapper
.
updateById
(
acceptance
);
.
eq
(
BasicGridAcceptance:
:
getWorkOrderPowerStationId
,
x
.
getWorkOrderPowerStationId
()));
if
(
0
==
num
||
0
==
count
)
{
acceptance
.
setIsDelete
(
true
);
bool
=
Boolean
.
FALSE
;
int
count
=
basicGridAcceptanceMapper
.
updateById
(
acceptance
);
break
;
if
(
0
==
num
||
0
==
count
)
{
}
bool
=
Boolean
.
FALSE
;
}
break
;
return
bool
;
}
}
}
return
bool
;
}
@Transactional
public
void
execute
(
AcceptanceCheckItem
dto
,
String
userId
)
{
@Transactional
//查询并网审批信息
public
void
execute
(
AcceptanceCheckItem
dto
,
String
userId
)
{
BasicGridAcceptance
basicGridAcceptanc
=
basicGridAcceptanceMapper
.
selectById
(
dto
.
getBasicGridAcceptanceId
());
// 查询并网审批信息
String
nextNodeKey
=
basicGridAcceptanc
.
getNextNodeKey
();
BasicGridAcceptance
basicGridAcceptanc
=
basicGridAcceptanceMapper
.
selectById
(
dto
.
getBasicGridAcceptanceId
());
if
(
OK
.
equals
(
dto
.
getApprovalStatus
()))
{
String
nextNodeKey
=
basicGridAcceptanc
.
getNextNodeKey
();
if
(
BasicGridAcceptancEnum
.
并网管理端工程审核
.
getCode
().
equals
(
nextNodeKey
))
{
if
(
OK
.
equals
(
dto
.
getApprovalStatus
()))
{
basicGridAcceptanc
.
setGridStatus
(
GridStatusEnum
.
YWC
.
getCode
());
if
(
BasicGridAcceptancEnum
.
并网管理端工程审核
.
getCode
().
equals
(
nextNodeKey
))
{
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
待提交验收
.
getCode
());
basicGridAcceptanc
.
setGridStatus
(
GridStatusEnum
.
YWC
.
getCode
());
//并网时间
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
待提交验收
.
getCode
());
LambdaUpdateWrapper
<
HygfOnGrid
>
upq
=
new
LambdaUpdateWrapper
();
// 并网时间
upq
.
eq
(
HygfOnGrid:
:
getSequenceNbr
,
dto
.
getFonGridId
());
LambdaUpdateWrapper
<
HygfOnGrid
>
upq
=
new
LambdaUpdateWrapper
();
upq
.
set
(
HygfOnGrid:
:
getGridConnectionTime
,
new
Date
());
upq
.
eq
(
HygfOnGrid:
:
getSequenceNbr
,
dto
.
getFonGridId
());
onGridMapper
.
update
(
null
,
upq
);
upq
.
set
(
HygfOnGrid:
:
getGridConnectionTime
,
new
Date
());
//并网完成
onGridMapper
.
update
(
null
,
upq
);
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
// 并网完成
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
并网完成
.
getCode
());
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
并网完成
.
getCode
());
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
peasantHouseholdMapper
.
update
(
null
,
up
);
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
peasantHouseholdMapper
.
update
(
null
,
up
);
}
else
{
}
else
{
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
}
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
}
}
else
{
if
(
BasicGridAcceptancEnum
.
并网管理端工程审核
.
getCode
().
equals
(
nextNodeKey
))
{
}
else
{
basicGridAcceptanc
.
setGridStatus
(
GridStatusEnum
.
WTG
.
getCode
());
if
(
BasicGridAcceptancEnum
.
并网管理端工程审核
.
getCode
().
equals
(
nextNodeKey
))
{
}
basicGridAcceptanc
.
setGridStatus
(
GridStatusEnum
.
WTG
.
getCode
());
// 投融/法务/工程/线下验收审核不通过
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
else
if
(
}
BasicGridAcceptancEnum
.
管理端投融审核
.
getCode
().
equals
(
nextNodeKey
)
||
// 投融/法务/工程/线下验收审核不通过
BasicGridAcceptancEnum
.
管理端法务审核
.
getCode
().
equals
(
nextNodeKey
)
||
else
if
(
BasicGridAcceptancEnum
.
管理端投融审核
.
getCode
().
equals
(
nextNodeKey
)
BasicGridAcceptancEnum
.
管理端工程审核
.
getCode
().
equals
(
nextNodeKey
)
||
||
BasicGridAcceptancEnum
.
管理端法务审核
.
getCode
().
equals
(
nextNodeKey
)
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
().
equals
(
nextNodeKey
)
||
BasicGridAcceptancEnum
.
管理端工程审核
.
getCode
().
equals
(
nextNodeKey
)
)
{
||
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
().
equals
(
nextNodeKey
))
{
AcceptanceRectificationOrder
rectificationOrder
=
new
AcceptanceRectificationOrder
();
AcceptanceRectificationOrder
rectificationOrder
=
new
AcceptanceRectificationOrder
();
try
{
try
{
WorkOrder
workOrder
=
workOrderMapper
.
selectById
(
basicGridAcceptanc
.
getWorkOrderId
());
WorkOrder
workOrder
=
workOrderMapper
.
selectById
(
basicGridAcceptanc
.
getWorkOrderId
());
RegionalCompanies
regionalCompanies
=
regionalCompaniesMapper
.
selectRegionName
(
workOrder
.
getRegionCompanyId
());
RegionalCompanies
regionalCompanies
=
regionalCompaniesMapper
String
code
=
NumberUtil
.
getCode
(
CodeEnum
.
整改单
.
getCode
(),
regionalCompanies
.
getCompanyCode
(),
regionalCompanies
.
getRegionalAddress
());
.
selectRegionName
(
workOrder
.
getRegionCompanyId
());
rectificationOrder
.
setRectificationOrderCode
(
code
);
String
code
=
NumberUtil
.
getCode
(
CodeEnum
.
整改单
.
getCode
(),
regionalCompanies
.
getCompanyCode
(),
rectificationOrder
.
setWorkOrderId
(
basicGridAcceptanc
.
getWorkOrderId
());
regionalCompanies
.
getRegionalAddress
());
rectificationOrder
.
setWorkOrderPowerStationId
(
basicGridAcceptanc
.
getWorkOrderPowerStationId
());
rectificationOrder
.
setRectificationOrderCode
(
code
);
rectificationOrder
.
setPeasantHouseholdId
(
basicGridAcceptanc
.
getPeasantHouseholdId
());
rectificationOrder
.
setWorkOrderId
(
basicGridAcceptanc
.
getWorkOrderId
());
rectificationOrder
.
setProblemDescription
(
dto
.
getComment
());
rectificationOrder
.
setWorkOrderPowerStationId
(
basicGridAcceptanc
.
getWorkOrderPowerStationId
());
rectificationOrder
.
setRectificationStatus
(
String
.
valueOf
(
RectificationStatusEnum
.
待整改
.
getCode
()));
rectificationOrder
.
setPeasantHouseholdId
(
basicGridAcceptanc
.
getPeasantHouseholdId
());
}
catch
(
Exception
e
)
{
rectificationOrder
.
setProblemDescription
(
dto
.
getComment
());
throw
new
RuntimeException
(
e
);
rectificationOrder
.
setRectificationStatus
(
String
.
valueOf
(
RectificationStatusEnum
.
待整改
.
getCode
()));
}
}
catch
(
Exception
e
)
{
acceptanceRectificationOrderMapper
.
insert
(
rectificationOrder
);
throw
new
RuntimeException
(
e
);
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
}
}
else
{
acceptanceRectificationOrderMapper
.
insert
(
rectificationOrder
);
basicGridAcceptanc
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
basicGridAcceptanc
}
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
}
}
else
{
basicGridAcceptanc
if
(
nextNodeKey
.
equals
(
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
()))
{
.
setAcceptanceStatus
(
AcceptanceStatusEnum
.
getNodeByKey
(
nextNodeKey
,
dto
.
getApprovalStatus
()));
dto
.
setWorkOrderId
(
basicGridAcceptanc
.
getWorkOrderId
());
}
dto
.
setWorkOrderPowerStationId
(
basicGridAcceptanc
.
getWorkOrderPowerStationId
());
}
dto
.
setPeasantHouseholdId
(
basicGridAcceptanc
.
getPeasantHouseholdId
());
acceptanceCheckItemMapper
.
insert
(
dto
);
if
(
nextNodeKey
.
equals
(
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
()))
{
}
dto
.
setWorkOrderId
(
basicGridAcceptanc
.
getWorkOrderId
());
//执行工作流
dto
.
setWorkOrderPowerStationId
(
basicGridAcceptanc
.
getWorkOrderPowerStationId
());
StandardDto
standardDto
=
new
StandardDto
();
dto
.
setPeasantHouseholdId
(
basicGridAcceptanc
.
getPeasantHouseholdId
());
standardDto
.
setComment
(
dto
.
getComment
());
acceptanceCheckItemMapper
.
insert
(
dto
);
standardDto
.
setResult
(
dto
.
getApprovalStatus
());
}
standardDto
.
setTaskId
(
basicGridAcceptanc
.
getNextTaskId
());
// 执行工作流
VariableDto
variable
=
new
VariableDto
();
StandardDto
standardDto
=
new
StandardDto
();
variable
.
setApprovalStatus
(
dto
.
getApprovalStatus
());
standardDto
.
setComment
(
dto
.
getComment
());
variable
.
setComment
(
dto
.
getComment
());
standardDto
.
setResult
(
dto
.
getApprovalStatus
());
variable
.
setOperationTime
(
dto
.
getOperationTime
());
standardDto
.
setTaskId
(
basicGridAcceptanc
.
getNextTaskId
());
variable
.
setOperator
(
dto
.
getOperator
());
VariableDto
variable
=
new
VariableDto
();
standardDto
.
setVariable
(
variable
);
variable
.
setApprovalStatus
(
dto
.
getApprovalStatus
());
BasicGridAcceptance
workBasicGridAcceptance
=
workflow
.
standard
(
basicGridAcceptanc
,
standardDto
,
userId
);
variable
.
setComment
(
dto
.
getComment
());
variable
.
setOperationTime
(
dto
.
getOperationTime
());
if
(
workBasicGridAcceptance
.
getNextNodeKey
().
equals
(
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
()))
{
variable
.
setOperator
(
dto
.
getOperator
());
//线下验收
standardDto
.
setVariable
(
variable
);
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
BasicGridAcceptance
workBasicGridAcceptance
=
workflow
.
standard
(
basicGridAcceptanc
,
standardDto
,
userId
);
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
线下验收
.
getCode
());
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
if
(
workBasicGridAcceptance
.
getNextNodeKey
().
equals
(
BasicGridAcceptancEnum
.
管理端工程线下验
.
getCode
()))
{
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
// 线下验收
peasantHouseholdMapper
.
update
(
null
,
up
);
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
}
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
线下验收
.
getCode
());
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
//验收完成
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
System
.
out
.
println
(
"验收完成==============================="
+
workBasicGridAcceptance
.
getNextTaskId
());
peasantHouseholdMapper
.
update
(
null
,
up
);
System
.
out
.
println
(
"验收完成888888==============================="
+
workBasicGridAcceptance
.
getAcceptanceStatus
());
}
if
(
workBasicGridAcceptance
.
getAcceptanceStatus
().
equals
(
"10"
)){
// 验收完成
System
.
out
.
println
(
"验收完成==============================="
+
workBasicGridAcceptance
.
getNextTaskId
());
//更新状态
System
.
out
.
println
(
"验收完成888888==============================="
+
workBasicGridAcceptance
.
getAcceptanceStatus
());
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
验收完成
.
getCode
());
if
(
"10"
.
equals
(
workBasicGridAcceptance
.
getAcceptanceStatus
()))
{
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
// 更新状态
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
LambdaUpdateWrapper
<
PeasantHousehold
>
up
=
new
LambdaUpdateWrapper
<>();
peasantHouseholdMapper
.
update
(
null
,
up
);
up
.
set
(
PeasantHousehold:
:
getConstructionState
,
ArrivalStateeEnum
.
验收完成
.
getCode
());
long
idsk
=
basicGridAcceptanc
.
getPeasantHouseholdId
();
}
up
.
eq
(
PeasantHousehold:
:
getSequenceNbr
,
idsk
);
peasantHouseholdMapper
.
update
(
null
,
up
);
basicGridAcceptanceMapper
.
updateById
(
workBasicGridAcceptance
);
}
}
basicGridAcceptanceMapper
.
updateById
(
workBasicGridAcceptance
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-dev.properties
View file @
c5693539
...
@@ -172,16 +172,16 @@ hygf.user.group.empty=1775056568031645697
...
@@ -172,16 +172,16 @@ hygf.user.group.empty=1775056568031645697
#
qiyuesuo.serverUrl = https://openapi.qiyuesuo.cn
qiyuesuo.serverUrl
=
https://openapi.qiyuesuo.cn
#
qiyuesuo.accessKey = a1lcd3WRRV
qiyuesuo.accessKey
=
a1lcd3WRRV
#
qiyuesuo.accessSecret = haqYIOxTP20ZYiDNEN92GVBa6aoJLu
qiyuesuo.accessSecret
=
haqYIOxTP20ZYiDNEN92GVBa6aoJLu
#
qiyuesuo.secretKey=Fp2LQAqK5gc68hi5
qiyuesuo.secretKey
=
Fp2LQAqK5gc68hi5
qiyuesuo.serverUrl
=
https://openapi.qiyuesuo.com
#
qiyuesuo.serverUrl = https://openapi.qiyuesuo.com
qiyuesuo.accessKey
=
QcmHQu55pl
#
qiyuesuo.accessKey = QcmHQu55pl
qiyuesuo.accessSecret
=
em0zvOMRNCAXoD1ePNTL7hGR5KpKUs
#
qiyuesuo.accessSecret = em0zvOMRNCAXoD1ePNTL7hGR5KpKUs
qiyuesuo.secretKey
=
B6OYbHyfXikAghB2
#
qiyuesuo.secretKey=B6OYbHyfXikAghB2
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanPointVarCentralValue.java
View file @
c5693539
...
@@ -201,4 +201,10 @@ public class IdxBizFanPointVarCentralValue{
...
@@ -201,4 +201,10 @@ public class IdxBizFanPointVarCentralValue{
*/
*/
@TableField
(
"ANALYSIS_POINT_NAME"
)
@TableField
(
"ANALYSIS_POINT_NAME"
)
private
String
analysisPointName
;
private
String
analysisPointName
;
/**
*
*/
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizPvPointVarCentralValue.java
View file @
c5693539
...
@@ -203,4 +203,7 @@ public class IdxBizPvPointVarCentralValue{
...
@@ -203,4 +203,7 @@ public class IdxBizPvPointVarCentralValue{
*/
*/
@TableField
(
"PROCESS_POINT1_ID"
)
@TableField
(
"PROCESS_POINT1_ID"
)
private
String
processPoint1Id
;
private
String
processPoint1Id
;
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
c5693539
...
@@ -1009,6 +1009,7 @@ public class CommonServiceImpl {
...
@@ -1009,6 +1009,7 @@ public class CommonServiceImpl {
idxBizFanPointVarCentralValue
idxBizFanPointVarCentralValue
.
setSubSystem
(
IdxBizFanPointProcessVariableClassification
.
getSubSystem
());
.
setSubSystem
(
IdxBizFanPointProcessVariableClassification
.
getSubSystem
());
idxBizFanPointVarCentralValue
.
setNumber
(
IdxBizFanPointProcessVariableClassification
.
getNumber
());
idxBizFanPointVarCentralValue
.
setNumber
(
IdxBizFanPointProcessVariableClassification
.
getNumber
());
idxBizFanPointVarCentralValue
.
setOrgCode
(
IdxBizFanPointProcessVariableClassification
.
getOrgCode
());
idxBizFanPointVarCentralValue
idxBizFanPointVarCentralValue
.
setEquipmentName
(
IdxBizFanPointProcessVariableClassification
.
getEquipmentName
());
.
setEquipmentName
(
IdxBizFanPointProcessVariableClassification
.
getEquipmentName
());
idxBizFanPointVarCentralValueMapper
.
insert
(
idxBizFanPointVarCentralValue
);
idxBizFanPointVarCentralValueMapper
.
insert
(
idxBizFanPointVarCentralValue
);
...
@@ -1212,6 +1213,7 @@ public class CommonServiceImpl {
...
@@ -1212,6 +1213,7 @@ public class CommonServiceImpl {
idxBizPvPointVarCentralValue
.
setArae
(
idxBizPvPointProcessVariableClassification
.
getArae
());
idxBizPvPointVarCentralValue
.
setArae
(
idxBizPvPointProcessVariableClassification
.
getArae
());
idxBizPvPointVarCentralValue
.
setStation
(
idxBizPvPointProcessVariableClassification
.
getStation
());
idxBizPvPointVarCentralValue
.
setStation
(
idxBizPvPointProcessVariableClassification
.
getStation
());
idxBizPvPointVarCentralValue
.
setSubarray
(
idxBizPvPointProcessVariableClassification
.
getSubarray
());
idxBizPvPointVarCentralValue
.
setSubarray
(
idxBizPvPointProcessVariableClassification
.
getSubarray
());
idxBizPvPointVarCentralValue
.
setOrgCode
(
idxBizPvPointProcessVariableClassification
.
getOrgCode
());
idxBizPvPointVarCentralValue
idxBizPvPointVarCentralValue
.
setManufacturer
(
idxBizPvPointProcessVariableClassification
.
getManufacturer
());
.
setManufacturer
(
idxBizPvPointProcessVariableClassification
.
getManufacturer
());
idxBizPvPointVarCentralValue
idxBizPvPointVarCentralValue
...
...
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