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
b9d60f4b
Commit
b9d60f4b
authored
Oct 29, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交初始化统计时间
parent
89490b8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
BasicGridRecordMapper.xml
...src/main/resources/mapper/mysql/BasicGridRecordMapper.xml
+1
-5
TestController.java
.../amos/boot/module/hygf/biz/controller/TestController.java
+12
-12
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/BasicGridRecordMapper.xml
View file @
b9d60f4b
...
...
@@ -10,18 +10,14 @@
</select>
<select
id=
"getBwCreateTime"
resultType=
"java.util.Map"
>
SELECT haga.peasant_household_id as peasantHouseholdId, a.time
FROM hygf_basic_grid_acceptance haga
LEFT JOIN (
SELECT
PROC_INST_ID_ AS processInstanceId,
MIN( START_TIME_ ) AS time
FROM
act_hi_taskinst aht
WHERE
EXISTS ( SELECT 1 FROM hygf_basic_grid_
acceptance hbga WHERE hbga.instance_id = aht.PROC_INST_ID_ and aht.NAME_='并网登记提交
' )
EXISTS ( SELECT 1 FROM hygf_basic_grid_
record hbgr WHERE hbgr.instance_Id = aht.PROC_INST_ID_ and aht.NAME_='并网登记
' )
GROUP BY
PROC_INST_ID_
)a ON a.processInstanceId=haga.instance_id
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TestController.java
View file @
b9d60f4b
...
...
@@ -73,11 +73,11 @@ public class TestController extends BaseController {
executorService
=
Executors
.
newFixedThreadPool
(
5
);
// 提交不同的方法
//
executorService.submit(this::dealKcTime);
executorService
.
submit
(
this
::
dealKcTime
);
executorService
.
submit
(
this
::
dealDzhtqyTime
);
//
executorService.submit(this::dealSgTime);
//
executorService.submit(this::dealBwTime);
//
executorService.submit(this::dealYsTime);
executorService
.
submit
(
this
::
dealSgTime
);
executorService
.
submit
(
this
::
dealBwTime
);
executorService
.
submit
(
this
::
dealYsTime
);
// 关闭线程池
executorService
.
shutdown
();
...
...
@@ -109,7 +109,7 @@ public class TestController extends BaseController {
for
(
Map
<
String
,
Object
>
stringObjectMap
:
bwCreateTime
)
{
LambdaUpdateWrapper
<
BasicGridRecord
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
BasicGridRecord:
:
getBwCreateTime
,
stringObjectMap
.
get
(
"time"
))
.
eq
(
BasicGridRecord:
:
get
PeasantHouseholdId
,
stringObjectMap
.
get
(
"peasantHousehold
Id"
));
.
eq
(
BasicGridRecord:
:
get
InstanceId
,
stringObjectMap
.
get
(
"processInstance
Id"
));
basicGridRecordMapper
.
update
(
null
,
wrapper
);
}
List
<
Map
<
String
,
Object
>>
bwEndTime
=
basicGridRecordMapper
.
getBwEndTime
();
...
...
@@ -162,13 +162,13 @@ public class TestController extends BaseController {
private
void
dealDzhtqyTime
()
{
log
.
info
(
"================开始初始电子合同时间========================="
);
//
Map<Long, Contract> contractMap = qiyuesuoService.getContractMap();
//
contractMap.forEach((k,v)->{
//
LambdaUpdateWrapper<HouseholdContract> wrapper = new LambdaUpdateWrapper<>();
//
wrapper.set(HouseholdContract::getDzhtqyCreateTime, DateUtils.dateParse(v.getPublishTime()))
//
.eq(HouseholdContract::getContractLockId,k);
//
householdContractMapper.update(null,wrapper);
//
});
Map
<
Long
,
Contract
>
contractMap
=
qiyuesuoService
.
getContractMap
();
contractMap
.
forEach
((
k
,
v
)->{
LambdaUpdateWrapper
<
HouseholdContract
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
HouseholdContract:
:
getDzhtqyCreateTime
,
DateUtils
.
dateParse
(
v
.
getPublishTime
()))
.
eq
(
HouseholdContract:
:
getContractLockId
,
k
);
householdContractMapper
.
update
(
null
,
wrapper
);
});
List
<
Map
<
String
,
Object
>>
dzhtqyEndTime
=
householdContractMapper
.
getDzhtqyEndTime
();
for
(
Map
<
String
,
Object
>
stringObjectMap
:
dzhtqyEndTime
)
{
LambdaUpdateWrapper
<
HouseholdContract
>
wrapper
=
new
LambdaUpdateWrapper
<>();
...
...
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