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
1493e496
Commit
1493e496
authored
Sep 26, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改合同审批
parent
2ae62d11
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
28 deletions
+50
-28
HouseholdContractController.java
...dule/hygf/biz/controller/HouseholdContractController.java
+1
-1
QiyuesuoController.java
...s/boot/module/hygf/biz/controller/QiyuesuoController.java
+2
-2
HouseholdContractServiceImpl.java
...e/hygf/biz/service/impl/HouseholdContractServiceImpl.java
+0
-1
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+25
-10
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+22
-14
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HouseholdContractController.java
View file @
1493e496
...
@@ -198,7 +198,7 @@ public class HouseholdContractController extends BaseController {
...
@@ -198,7 +198,7 @@ public class HouseholdContractController extends BaseController {
householdContrac
.
setStatus
(
HouseholdContractEnum
.
合同状态
_
农户已签署
.
getCode
());
householdContrac
.
setStatus
(
HouseholdContractEnum
.
合同状态
_
农户已签署
.
getCode
());
//生成填报任务
//生成填报任务
ToDoTasks
toDoTasks1
=
new
ToDoTasks
(
TaskTypeStationEnum
.
合同填报
.
getCode
(),
householdContrac
.
getSequenceNbr
(),
"用户"
+
householdContrac
.
getPartyA
()+
"合同盖章"
,
householdContrac
.
getDealerCode
()
);
ToDoTasks
toDoTasks1
=
new
ToDoTasks
(
TaskTypeStationEnum
.
合同填报
.
getCode
(),
householdContrac
.
getSequenceNbr
(),
"用户"
+
householdContrac
.
getPartyA
()+
"合同盖章"
,
null
);
toDoTasksServiceImpl
.
addToDoTasksByRole
(
engineering
,
toDoTasks1
,
"发起合同成功"
);
toDoTasksServiceImpl
.
addToDoTasksByRole
(
engineering
,
toDoTasks1
,
"发起合同成功"
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/QiyuesuoController.java
View file @
1493e496
...
@@ -153,8 +153,8 @@ public class QiyuesuoController extends BaseController {
...
@@ -153,8 +153,8 @@ public class QiyuesuoController extends BaseController {
wrapper4
.
eq
(
HouseholdContract:
:
getContractLockId
,
CallbackDto
.
getContractId
());
wrapper4
.
eq
(
HouseholdContract:
:
getContractLockId
,
CallbackDto
.
getContractId
());
HouseholdContract
householdContrac
=
householdContractMapper
.
selectOne
(
wrapper4
);
HouseholdContract
householdContrac
=
householdContractMapper
.
selectOne
(
wrapper4
);
//生成填报任务
//生成填报任务
ToDoTasks
toDoTasks1
=
new
ToDoTasks
(
TaskTypeStationEnum
.
合同填报
.
getCode
(),
householdContrac
.
getSequenceNbr
(),
"用户"
+
householdContrac
.
getPartyA
()+
"合同盖章"
,
householdContrac
.
getDealerCode
()
);
ToDoTasks
toDoTasks1
=
new
ToDoTasks
(
TaskTypeStationEnum
.
合同填报
.
getCode
(),
householdContrac
.
getSequenceNbr
(),
"用户"
+
householdContrac
.
getPartyA
()+
"合同盖章"
,
null
);
toDoTasksServiceImpl
.
addToDoTasksByRole
(
engineering
,
toDoTasks1
,
"
发起合同
成功"
);
toDoTasksServiceImpl
.
addToDoTasksByRole
(
engineering
,
toDoTasks1
,
"
合同签字
成功"
);
}
else
if
(
"SEAL"
.
equals
(
CallbackDto
.
getCallbackType
())){
}
else
if
(
"SEAL"
.
equals
(
CallbackDto
.
getCallbackType
())){
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HouseholdContractServiceImpl.java
View file @
1493e496
...
@@ -72,7 +72,6 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
...
@@ -72,7 +72,6 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
qw
.
eq
(
dto
.
getPeasantHouseholdId
()!=
null
,
"peasant_household_id"
,
dto
.
getPeasantHouseholdId
()
);
qw
.
eq
(
dto
.
getPeasantHouseholdId
()!=
null
,
"peasant_household_id"
,
dto
.
getPeasantHouseholdId
()
);
qw
.
eq
(
dto
.
getDealerId
()!=
null
,
"dealer_id"
,
dto
.
getDealerId
()
);
qw
.
eq
(
dto
.
getDealerId
()!=
null
,
"dealer_id"
,
dto
.
getDealerId
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getInitiateStatus
()),
"initiate_status"
,
dto
.
getInitiateStatus
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getSurveyStatus
()),
"survey_status"
,
dto
.
getSurveyStatus
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getSurveyStatus
()),
"survey_status"
,
dto
.
getSurveyStatus
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getSignStatus
()),
"sign_status"
,
dto
.
getSignStatus
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getSignStatus
()),
"sign_status"
,
dto
.
getSignStatus
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getUserId
()),
"project_user_id"
,
dto
.
getUserId
()
);
qw
.
eq
(
StringUtils
.
isNotEmpty
(
dto
.
getUserId
()),
"project_user_id"
,
dto
.
getUserId
()
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PowerStationServiceImpl.java
View file @
1493e496
...
@@ -192,7 +192,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -192,7 +192,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
String
result
=
String
.
valueOf
(
kv
.
get
(
"approvalStatue"
));
String
result
=
String
.
valueOf
(
kv
.
get
(
"approvalStatue"
));
boolean
flag
=
true
;
boolean
flag
=
true
;
if
(
PowerStationNodeEnum
.
设计上传图纸
.
getCode
().
equals
(
nodeCode
)||
PowerStationNodeEnum
.
经销商上传图纸
.
getCode
().
equals
(
nodeCode
))
{
if
(
PowerStationNodeEnum
.
设计上传图纸
.
getCode
().
equals
(
nodeCode
)||
PowerStationNodeEnum
.
经销商上传图纸
.
getCode
().
equals
(
nodeCode
))
{
this
.
updateSeve
(
powerStation
.
getPeasantHouseholdId
(),
kv
);
this
.
updateSeve
(
nodeCode
,
powerStation
.
getPeasantHouseholdId
(),
kv
);
}
else
{
}
else
{
if
(
VERIFY_RESULT_NO
.
equals
(
result
))
{
if
(
VERIFY_RESULT_NO
.
equals
(
result
))
{
...
@@ -314,21 +314,36 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
...
@@ -314,21 +314,36 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
// 设计信息填充
// 设计信息填充
public
void
updateSeve
(
String
peasantHouseholdId
,
Map
<
String
,
Object
>
kv
){
public
void
updateSeve
(
String
nodeCode
,
String
peasantHouseholdId
,
Map
<
String
,
Object
>
kv
){
LambdaQueryWrapper
<
DesignInformation
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
DesignInformation
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
DesignInformation:
:
getPeasantHouseholdId
,
peasantHouseholdId
);
wrapper
.
eq
(
DesignInformation:
:
getPeasantHouseholdId
,
peasantHouseholdId
);
DesignInformation
designInformation
=
designInformationMapper
.
selectOne
(
wrapper
);
DesignInformation
designInformation
=
designInformationMapper
.
selectOne
(
wrapper
);
if
(
designInformation
!=
null
){
if
(
designInformation
!=
null
){
DesignInformation
designInformationnew
=
this
.
mapToBean
(
kv
,
DesignInformation
.
class
);
DesignInformation
designInformationnew
=
this
.
mapToBean
(
kv
,
DesignInformation
.
class
);
designInformationnew
.
setTypicalDiagram
(
designInformation
.
getTypicalDiagram
());
designInformationnew
.
setPeasantHouseholdId
(
peasantHouseholdId
);
designInformationnew
.
setSequenceNbr
(
designInformation
.
getSequenceNbr
());
designInformationnew
.
setRecDate
(
designInformation
.
getRecDate
());
designInformationnew
.
setRecUserId
(
designInformation
.
getRecUserId
());
designInformationnew
.
setRecUserName
(
designInformation
.
getRecUserName
());
designInformationnew
.
setIsDelete
(
designInformation
.
getIsDelete
());
designInformationMapper
.
updateById
(
designInformationnew
);
if
(
PowerStationNodeEnum
.
经销商上传图纸
.
getCode
().
equals
(
nodeCode
))
{
designInformation
.
setPeasantHouseholdId
(
peasantHouseholdId
);
designInformation
.
setComponentLayout
(
designInformationnew
.
getComponentLayout
());
designInformation
.
setComponentBracket
(
designInformationnew
.
getComponentBracket
());
designInformation
.
setConnectionLine
(
designInformationnew
.
getConnectionLine
());
designInformation
.
setOnceLine
(
designInformationnew
.
getOnceLine
());
designInformationMapper
.
updateById
(
designInformation
);
}
else
{
// designInformationnew.setTypicalDiagram(designInformationnew.getTypicalDiagram());
designInformationnew
.
setPeasantHouseholdId
(
peasantHouseholdId
);
designInformationnew
.
setComponentLayout
(
designInformation
.
getComponentLayout
());
designInformationnew
.
setComponentBracket
(
designInformation
.
getComponentBracket
());
designInformationnew
.
setConnectionLine
(
designInformation
.
getConnectionLine
());
designInformationnew
.
setOnceLine
(
designInformation
.
getOnceLine
());
designInformationnew
.
setSequenceNbr
(
designInformation
.
getSequenceNbr
());
designInformationnew
.
setRecDate
(
designInformation
.
getRecDate
());
designInformationnew
.
setRecUserId
(
designInformation
.
getRecUserId
());
designInformationnew
.
setRecUserName
(
designInformation
.
getRecUserName
());
designInformationnew
.
setIsDelete
(
designInformation
.
getIsDelete
());
designInformationMapper
.
updateById
(
designInformationnew
);
}
}
else
{
}
else
{
DesignInformation
designInformationnew
=
this
.
mapToBean
(
kv
,
DesignInformation
.
class
);
DesignInformation
designInformationnew
=
this
.
mapToBean
(
kv
,
DesignInformation
.
class
);
designInformationnew
.
setTypicalDiagram
((
List
<
Object
>)
kv
.
get
(
"typicalDiagram"
))
;
designInformationnew
.
setTypicalDiagram
((
List
<
Object
>)
kv
.
get
(
"typicalDiagram"
))
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
1493e496
...
@@ -347,19 +347,21 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -347,19 +347,21 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
commercialQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
commercialQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
if
(
commercial
==
null
){
commercial
.
setApplicant
(
surveyInfoAllDto
.
getSurveyInformation
().
getOwnersName
());
commercial
=
new
Commercial
();
commercial
.
setIdCard
(
surveyInfoAllDto
.
getSurveyInformation
().
getIdCard
());
}
commercial
.
setTelephone
(
surveyInfoAllDto
.
getSurveyInformation
().
getTelephone
());
commercial
.
setApplicant
(
peasantHousehold
.
getOwnersName
());
commercial
.
setProjectAddress
(
surveyInfoAllDto
.
getSurveyInformation
().
getProjectAddress
());
commercial
.
setIdCard
(
peasantHousehold
.
getIdCard
());
commercial
.
setProjectAddressName
(
surveyInfoAllDto
.
getSurveyInformation
().
getProjectAddressName
());
commercial
.
setTelephone
(
peasantHousehold
.
getTelephone
());
commercial
.
setProjectAddressDetail
(
surveyInfoAllDto
.
getSurveyInformation
().
getProjectAddressDetail
());
commercial
.
setProjectAddress
(
peasantHousehold
.
getProjectAddress
());
commercial
.
setLegalContactTelephone
(
surveyInfoAllDto
.
getSurveyInformation
().
getTelephone
());
commercial
.
setProjectAddressName
(
peasantHousehold
.
getProjectAddressName
());
commercial
.
setProjectAddressDetail
(
peasantHousehold
.
getProjectAddressDetail
());
commercial
.
setLegalContactTelephone
(
peasantHousehold
.
getTelephone
());
if
(
information
==
null
){
if
(
information
==
null
){
CommercialDto
commercialDto
=
new
CommercialDto
(
);
CommercialDto
commercialDto
=
BeanDtoUtils
.
convert
(
commercial
,
CommercialDto
.
class
);
commercialDto
.
setType
(
"zrr"
);
commercialDto
.
setType
(
"zrr"
);
commercialDto
.
setLegalType
(
"zjdnhw"
);
commercialDto
.
setLegalType
(
"zjdnhw"
);
surveyInfoAllDto
.
setCommercial
(
commercialDto
);
surveyInfoAllDto
.
setCommercial
(
commercialDto
);
...
@@ -414,13 +416,19 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -414,13 +416,19 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
FeignClientResult
<
Collection
<
RegionModel
>>
collectionFeignClientResult
=
Systemctl
.
regionClient
.
queryForTreeParent
(
610000L
);
FeignClientResult
<
Collection
<
RegionModel
>>
collectionFeignClientResult
=
Systemctl
.
regionClient
.
queryForTreeParent
(
610000L
);
Collection
<
RegionModel
>
result
=
collectionFeignClientResult
.
getResult
();
Collection
<
RegionModel
>
result
=
collectionFeignClientResult
.
getResult
();
for
(
RegionModel
regionModel
:
result
)
{
for
(
RegionModel
regionModel
:
result
)
{
for
(
RegionModel
child
:
regionModel
.
getChildren
())
{
if
(
regionModel
.
getChildren
()!=
null
&&!
regionModel
.
getChildren
().
isEmpty
()){
for
(
RegionModel
childChild
:
child
.
getChildren
())
{
for
(
RegionModel
child
:
regionModel
.
getChildren
())
{
jsonArray
.
add
(
childChild
);
if
(
child
.
getChildren
()!=
null
&&!
child
.
getChildren
().
isEmpty
()){
for
(
RegionModel
childChild
:
child
.
getChildren
())
{
jsonArray
.
add
(
childChild
);
}
child
.
setChildren
(
regionChild
);
jsonArray
.
add
(
child
);
}
}
}
child
.
setChildren
(
regionChild
);
jsonArray
.
add
(
child
);
}
}
regionModel
.
setChildren
(
regionChild
);
regionModel
.
setChildren
(
regionChild
);
jsonArray
.
add
(
regionModel
);
jsonArray
.
add
(
regionModel
);
}
}
...
...
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