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
a1bcf0f5
Commit
a1bcf0f5
authored
Nov 01, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改投融结束时间为流程结束时间
parent
d4a99495
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
9 deletions
+41
-9
FinancingInfo.java
...ejoin/amos/boot/module/hygf/api/entity/FinancingInfo.java
+6
-0
FinancingInfoMapper.java
...amos/boot/module/hygf/api/mapper/FinancingInfoMapper.java
+3
-0
FinancingInfoMapper.xml
...i/src/main/resources/mapper/mysql/FinancingInfoMapper.xml
+10
-1
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+3
-1
TestController.java
.../amos/boot/module/hygf/biz/controller/TestController.java
+13
-6
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+6
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/FinancingInfo.java
View file @
a1bcf0f5
...
@@ -88,4 +88,10 @@ public class FinancingInfo extends BaseEntity {
...
@@ -88,4 +88,10 @@ public class FinancingInfo extends BaseEntity {
*/
*/
@TableField
(
"tr_create_time"
)
@TableField
(
"tr_create_time"
)
private
Date
trCreateTime
;
private
Date
trCreateTime
;
/**
* 投融创建时间
*/
@TableField
(
"tr_end_time"
)
private
Date
trEndTime
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/FinancingInfoMapper.java
View file @
a1bcf0f5
...
@@ -36,4 +36,7 @@ public interface FinancingInfoMapper extends BaseMapper<FinancingInfo> {
...
@@ -36,4 +36,7 @@ public interface FinancingInfoMapper extends BaseMapper<FinancingInfo> {
List
<
Map
<
String
,
Object
>>
selectRegionByParentCode
(
String
parentCode
,
String
level
);
List
<
Map
<
String
,
Object
>>
selectRegionByParentCode
(
String
parentCode
,
String
level
);
List
<
Map
<
String
,
Object
>>
getTrCreateTime
();
List
<
Map
<
String
,
Object
>>
getTrCreateTime
();
List
<
Map
<
String
,
Object
>>
getTrEndTime
();
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/FinancingInfoMapper.xml
View file @
a1bcf0f5
...
@@ -145,10 +145,19 @@
...
@@ -145,10 +145,19 @@
</select>
</select>
<select
id=
"getTrCreateTime"
resultType=
"java.util.Map"
>
<select
id=
"getTrCreateTime"
resultType=
"java.util.Map"
>
SELECT hfi.sequence_nbr as sequenceNbr,max(hfa.rec_date) AS time
FROM
hygf_financing_info hfi
LEFT JOIN hygf_financing_auditing hfa ON hfa.peasant_household_id=hfi.peasant_household_id
WHERE hfa.next_node_name='融资审核'
GROUP BY hfi.sequence_nbr
</select>
<select
id=
"getTrEndTime"
resultType=
"java.util.Map"
>
SELECT hfi.sequence_nbr as sequenceNbr,hfa.rec_date AS time
SELECT hfi.sequence_nbr as sequenceNbr,hfa.rec_date AS time
FROM
FROM
hygf_financing_info hfi
hygf_financing_info hfi
LEFT JOIN hygf_financing_auditing hfa ON hfa.peasant_household_id=hfi.peasant_household_id
LEFT JOIN hygf_financing_auditing hfa ON hfa.peasant_household_id=hfi.peasant_household_id
WHERE
hfi.status='放款完成' and hfa.next_node_name='融资审核'
WHERE
hfa.next_node_name is null
</select>
</select>
</mapper>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
a1bcf0f5
...
@@ -245,6 +245,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
...
@@ -245,6 +245,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
</foreach>
</foreach>
</if>
</if>
</where>
</where>
ORDER BY hph.rec_date DESC ,hph.sequence_nbr DESC
</select>
</select>
<select
id=
"getAllPowerStationTimeDetail"
<select
id=
"getAllPowerStationTimeDetail"
...
@@ -263,6 +264,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
...
@@ -263,6 +264,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
LEFT JOIN hygf_commercial hc ON hc.survey_information_id = hph.survey_information_id
LEFT JOIN hygf_commercial hc ON hc.survey_information_id = hph.survey_information_id
LEFT JOIN hygf_work_order_power_station hwops ON hph.sequence_nbr = hwops.peasant_household_id
LEFT JOIN hygf_work_order_power_station hwops ON hph.sequence_nbr = hwops.peasant_household_id
LEFT JOIN hygf_power_station_engineering_info hpsei ON hwops.sequence_nbr = hpsei.work_order_power_station_id
LEFT JOIN hygf_power_station_engineering_info hpsei ON hwops.sequence_nbr = hpsei.work_order_power_station_id
ORDER BY hph.rec_date DESC ,hph.sequence_nbr DESC
</select>
</select>
<select
id=
"getKcTime"
<select
id=
"getKcTime"
...
@@ -374,7 +376,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
...
@@ -374,7 +376,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
<select
id=
"getTrTime"
<select
id=
"getTrTime"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationTimeStatisticsDto"
>
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationTimeStatisticsDto"
>
SELECT peasant_household_id as sequenceNbr,tr_create_time,
disbursement_time as trEndT
ime
SELECT peasant_household_id as sequenceNbr,tr_create_time,
tr_end_t
ime
FROM
FROM
hygf_financing_info
hygf_financing_info
<where>
<where>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TestController.java
View file @
a1bcf0f5
...
@@ -74,11 +74,11 @@ public class TestController extends BaseController {
...
@@ -74,11 +74,11 @@ public class TestController extends BaseController {
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
5
);
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
5
);
// 提交不同的方法
// 提交不同的方法
//
executorService.submit(this::dealKcTime);
executorService
.
submit
(
this
::
dealKcTime
);
//
executorService.submit(this::dealDzhtqyTime);
executorService
.
submit
(
this
::
dealDzhtqyTime
);
//
executorService.submit(this::dealSgTime);
executorService
.
submit
(
this
::
dealSgTime
);
//
executorService.submit(this::dealBwTime);
executorService
.
submit
(
this
::
dealBwTime
);
//
executorService.submit(this::dealYsTime);
executorService
.
submit
(
this
::
dealYsTime
);
executorService
.
submit
(
this
::
dealTrTime
);
executorService
.
submit
(
this
::
dealTrTime
);
// 关闭线程池
// 关闭线程池
executorService
.
shutdown
();
executorService
.
shutdown
();
...
@@ -90,7 +90,14 @@ public class TestController extends BaseController {
...
@@ -90,7 +90,14 @@ public class TestController extends BaseController {
List
<
Map
<
String
,
Object
>>
trCreateTime
=
financingInfoMapper
.
getTrCreateTime
();
List
<
Map
<
String
,
Object
>>
trCreateTime
=
financingInfoMapper
.
getTrCreateTime
();
for
(
Map
<
String
,
Object
>
stringObjectMap
:
trCreateTime
)
{
for
(
Map
<
String
,
Object
>
stringObjectMap
:
trCreateTime
)
{
LambdaUpdateWrapper
<
FinancingInfo
>
wrapper
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
FinancingInfo
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
FinancingInfo:
:
getTrCreateTime
,
dealHour
(
stringObjectMap
.
get
(
"time"
)))
wrapper
.
set
(
FinancingInfo:
:
getTrCreateTime
,
stringObjectMap
.
get
(
"time"
))
.
eq
(
FinancingInfo:
:
getSequenceNbr
,
stringObjectMap
.
get
(
"sequenceNbr"
));
financingInfoMapper
.
update
(
null
,
wrapper
);
}
List
<
Map
<
String
,
Object
>>
trEndTime
=
financingInfoMapper
.
getTrEndTime
();
for
(
Map
<
String
,
Object
>
stringObjectMap
:
trEndTime
)
{
LambdaUpdateWrapper
<
FinancingInfo
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
FinancingInfo:
:
getTrEndTime
,
stringObjectMap
.
get
(
"time"
))
.
eq
(
FinancingInfo:
:
getSequenceNbr
,
stringObjectMap
.
get
(
"sequenceNbr"
));
.
eq
(
FinancingInfo:
:
getSequenceNbr
,
stringObjectMap
.
get
(
"sequenceNbr"
));
financingInfoMapper
.
update
(
null
,
wrapper
);
financingInfoMapper
.
update
(
null
,
wrapper
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/FinancingInfoServiceImpl.java
View file @
a1bcf0f5
...
@@ -331,6 +331,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -331,6 +331,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
if
(
params
.
containsKey
(
"financingCompaniesSeq"
)
&&
params
.
get
(
"financingCompaniesSeq"
)!=
null
)
{
if
(
params
.
containsKey
(
"financingCompaniesSeq"
)
&&
params
.
get
(
"financingCompaniesSeq"
)!=
null
)
{
financingInfo
.
setFinancingCompaniesSeq
(
Long
.
valueOf
(
params
.
get
(
"financingCompaniesSeq"
).
toString
()));
financingInfo
.
setFinancingCompaniesSeq
(
Long
.
valueOf
(
params
.
get
(
"financingCompaniesSeq"
).
toString
()));
}
}
if
(
"融资审核"
.
equals
(
financingAuditingDto
.
getNextNodeName
())){
financingInfo
.
setTrCreateTime
(
new
Date
());
}
//标识对于整改待推送状态
//标识对于整改待推送状态
if
(
params
.
containsKey
(
"isZG"
))
{
if
(
params
.
containsKey
(
"isZG"
))
{
financingInfo
.
setStatus
(
"待推送"
);
financingInfo
.
setStatus
(
"待推送"
);
...
@@ -341,7 +344,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -341,7 +344,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
if
(
params
.
containsKey
(
"isHistory"
))
{
if
(
params
.
containsKey
(
"isHistory"
))
{
financingInfo
.
setStatus
(
"退回建档"
);
financingInfo
.
setStatus
(
"退回建档"
);
}
}
if
(
"放款完成"
.
equals
(
financingInfo
.
getStatus
())){
financingInfo
.
setTrEndTime
(
new
Date
());
}
this
.
updateById
(
financingInfo
);
this
.
updateById
(
financingInfo
);
//更新待办
//更新待办
// workflowResultDto.setInstanceId(financingAuditing.getInstanceId());
// workflowResultDto.setInstanceId(financingAuditing.getInstanceId());
...
...
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