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
daab46fd
Commit
daab46fd
authored
Jul 21, 2023
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
勘察实例列表倒叙显示,勘察审核完成后同步修改农户状态
parent
fbf8e69d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+3
-1
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+11
-1
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
View file @
daab46fd
...
...
@@ -83,7 +83,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
}
else
if
(
item
.
getSurveyOrNot
()
==
1
)
{
item
.
setSurveyOrNotText
(
"已勘察"
);
}
else
if
(
item
.
getSurveyOrNot
()
==
2
)
{
item
.
setSurveyOrNotText
(
"提交审核"
);
item
.
setSurveyOrNotText
(
"审核中"
);
}
else
if
(
item
.
getSurveyOrNot
()
==
3
)
{
item
.
setSurveyOrNotText
(
"审核完成"
);
}
}
...
...
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 @
daab46fd
...
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.hygf.api.Enum.PowerStationProcessStateEnum;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.WorkDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.DesignInformation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStation
;
import
com.yeejoin.amos.boot.module.hygf.api.fegin.IdxFeginService
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.DesignInformationMapper
;
...
...
@@ -55,6 +56,8 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
DesignInformationMapper
designInformationMapper
;
@Autowired
DesignInformationServiceImpl
designInformationService
;
@Autowired
PeasantHouseholdServiceImpl
peasantHouseholdService
;
private
static
final
String
IDX_REQUEST_STATE
=
"200"
;
private
static
final
String
VERIFY_RESULT_YES
=
"0"
;
...
...
@@ -84,7 +87,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
* 分页查询
*/
public
Page
<
PowerStationDto
>
queryForPowerStationPage
(
Page
<
PowerStationDto
>
page
,
@Condition
(
Operator
.
like
)
String
powerStationCode
,
@Condition
(
Operator
.
like
)
String
ownersName
,
String
serviceAgent
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
powerStationCode
,
ownersName
,
serviceAgent
);
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
,
powerStationCode
,
ownersName
,
serviceAgent
);
}
/**
...
...
@@ -174,6 +177,13 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
powerStation
.
setFlowTaskId
(
flowTaskId
);
}
powerStationService
.
savePowerStation
(
powerStation
,
flag
);
if
(!
flag
){
//更新农户状态
String
peasantHouseholdId
=
powerStation
.
getPeasantHouseholdId
();
PeasantHousehold
peasantHousehold
=
peasantHouseholdService
.
getBaseMapper
().
selectById
(
Long
.
valueOf
(
peasantHouseholdId
));
peasantHousehold
.
setSurveyOrNot
(
3
);
peasantHouseholdService
.
saveOrUpdate
(
peasantHousehold
);
}
}
}
catch
(
Exception
e
){
throw
new
BaseException
(
"获取工作流节点失败!"
,
"400"
,
"获取工作流节点失败!"
);
...
...
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 @
daab46fd
...
...
@@ -93,7 +93,7 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
* 分页查询
*/
public
Page
<
SurveyInformationDto
>
queryForSurveyInformationPage
(
Page
<
SurveyInformationDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
);
}
/**
...
...
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