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
edc621e6
Commit
edc621e6
authored
Jul 05, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
003425df
30da6b3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
9 deletions
+24
-9
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+1
-1
SurveyInformationController.java
...dule/hygf/biz/controller/SurveyInformationController.java
+2
-1
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+21
-7
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
edc621e6
...
...
@@ -70,7 +70,7 @@ and hygf_document_station.station_id is not null
<if
test=
"developerCode!=null and developerCode !=''"
>
and developer_code = #{developerCode}
</if>
ORDER BY
rec_dat
e DESC
ORDER BY
creation_tim
e DESC
</select>
<select
id=
"selectUserIsHouse"
resultType=
"java.util.Map"
>
SELECT
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/SurveyInformationController.java
View file @
edc621e6
...
...
@@ -119,12 +119,13 @@ public class SurveyInformationController extends BaseController {
* 勘察信息数据提交
*
* @return
* @throws Exception
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"勘察信息数据提交"
,
notes
=
"勘察信息数据提交"
)
@PostMapping
(
value
=
"/surveySubmit"
)
public
ResponseModel
<
SurveyInfoAllDto
>
surveySubmit
(
@RequestBody
SurveyInfoAllDto
surveyInfoAllDto
,
@RequestParam
(
value
=
"operationType"
)
String
operationType
)
{
@RequestParam
(
value
=
"operationType"
)
String
operationType
)
throws
Exception
{
SurveyInfoAllDto
returnDto
=
surveyInformationServiceImpl
.
saveSurveyInfo
(
surveyInfoAllDto
,
operationType
);
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
...
...
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 @
edc621e6
...
...
@@ -88,6 +88,8 @@ public class SurveyInformationServiceImpl
@Autowired
IPowerStationService
powerStationService
;
@Autowired
PowerStationMapper
powerStationMapper
;
@Autowired
ToDoTasksMapper
toDoTasksMapper
;
@Autowired
UserMessageMapper
userMessageMapper
;
...
...
@@ -170,10 +172,19 @@ public class SurveyInformationServiceImpl
PeasantHousehold
peasantHousehold
=
peasantHouseholdServiceImpl
.
getBaseMapper
()
.
selectOne
(
peasantHouseholdQueryWrapper
);
PowerStation
powerStation
=
powerStationMapper
.
selectOne
(
new
LambdaQueryWrapper
<
PowerStation
>()
.
eq
(
PowerStation:
:
getPeasantHouseholdId
,
peasantHousehold
.
getSequenceNbr
()));
if
(
ArrivalStateeEnum
.
勘察中
.
getCode
().
equals
(
peasantHousehold
.
getConstructionState
()))
{
// 驳回后重新提交是勘察中->勘察中导致此逻辑有问题,所以去掉这种情况
if
(
powerStation
!=
null
&&
PowerStationProcessStateEnum
.
不通过
.
getName
().
equals
(
powerStation
.
getProcessStatus
()))
{
}
else
{
throw
new
BadRequest
(
"勘察中,请稍后再试!"
);
}
}
surveyInformation
.
setReview
(
0
);
if
(
OPERATION_TYPE_APPLY
.
equals
(
operationType
)
&&
null
==
surveyInformation
.
getCreatorTime
())
{
surveyInformation
.
setCreatorTime
(
new
Date
());
...
...
@@ -187,7 +198,7 @@ public class SurveyInformationServiceImpl
// 避免生成多份数据
extendedInformationService
.
saveOrUpdate
(
extendedInformation
,
new
LambdaQueryWrapper
<
ExtendedInformation
>()
.
eq
(
ExtendedInformation:
:
getSurveyInformationId
,
surveyInformation
.
getSequenceNbr
()));
//
extendedInformationService.saveOrUpdate(extendedInformation);
//
extendedInformationService.saveOrUpdate(extendedInformation);
// 更新勘察明细信息
SurveyDetailsDto
oldSurveyDetails
=
surveyInfoAllDto
.
getSurveyDetails
();
...
...
@@ -196,7 +207,7 @@ public class SurveyInformationServiceImpl
// 避免生成多份数据
surveyDetailsService
.
saveOrUpdate
(
surveyDetails
,
new
LambdaQueryWrapper
<
SurveyDetails
>()
.
eq
(
SurveyDetails:
:
getSurveyInformationId
,
surveyInformation
.
getSequenceNbr
()));
//
surveyDetailsService.saveOrUpdate(surveyDetails);
//
surveyDetailsService.saveOrUpdate(surveyDetails);
// 更新商务信息
CommercialDto
oldCommercial
=
surveyInfoAllDto
.
getCommercial
();
...
...
@@ -215,11 +226,14 @@ public class SurveyInformationServiceImpl
// 避免生成多份数据
commercialService
.
saveOrUpdate
(
commercial
,
new
LambdaQueryWrapper
<
Commercial
>()
.
eq
(
Commercial:
:
getSurveyInformationId
,
surveyInformation
.
getSequenceNbr
()));
//
commercialService.saveOrUpdate(commercial);
//
commercialService.saveOrUpdate(commercial);
// 勘察后,更新状态
// QueryWrapper<PeasantHousehold> peasantHouseholdQueryWrapper = new QueryWrapper<>();
// peasantHouseholdQueryWrapper.eq("survey_information_id", surveyInformation.getSequenceNbr());
// PeasantHousehold peasantHousehold = peasantHouseholdServiceImpl.getBaseMapper()
// QueryWrapper<PeasantHousehold> peasantHouseholdQueryWrapper = new
// QueryWrapper<>();
// peasantHouseholdQueryWrapper.eq("survey_information_id",
// surveyInformation.getSequenceNbr());
// PeasantHousehold peasantHousehold =
// peasantHouseholdServiceImpl.getBaseMapper()
// .selectOne(peasantHouseholdQueryWrapper);
// 更新资料归档信息
...
...
@@ -238,7 +252,7 @@ public class SurveyInformationServiceImpl
// 避免生成多份数据
informationService
.
saveOrUpdate
(
information
,
new
LambdaQueryWrapper
<
Information
>()
.
eq
(
Information:
:
getSurveyInformationId
,
surveyInformation
.
getSequenceNbr
()));
//
informationService.saveOrUpdate(information);
//
informationService.saveOrUpdate(information);
peasantHousehold
.
setOwnersName
(
surveyInfoAllDto
.
getSurveyInformation
().
getOwnersName
());
peasantHousehold
.
setTelephone
(
surveyInfoAllDto
.
getSurveyInformation
().
getTelephone
());
...
...
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