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
00068a31
Commit
00068a31
authored
Aug 25, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
95813634
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
ElevatorController.java
...ot/module/elevator/biz/controller/ElevatorController.java
+6
-3
SupervisionInfoMapper.xml
...t-api/src/main/resources/mapper/SupervisionInfoMapper.xml
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/ElevatorController.java
View file @
00068a31
...
...
@@ -427,7 +427,7 @@ public class ElevatorController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/init"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"电梯信息放入es"
,
notes
=
"电梯信息放入es"
)
public
void
init
(
@RequestParam
(
value
=
"num"
,
required
=
false
)
Integer
num
)
{
public
ResponseModel
<
String
>
init
(
@RequestParam
(
value
=
"num"
,
required
=
false
)
Integer
num
)
{
Integer
count
=
iElevatorService
.
selectUseInfoCount
();
Integer
times
=
0
;
if
(
ValidationUtil
.
isEmpty
(
num
)
&&
count
!=
0
)
{
...
...
@@ -441,13 +441,16 @@ public class ElevatorController extends BaseController {
}
for
(
int
i
=
0
;
i
<=
times
;
i
++
)
{
List
<
Map
<
String
,
Object
>>
mapList
=
iElevatorService
.
selectElevatorEsList
(
1
,
1000
);
esElevatorService
.
saveEsElevator2ES
(
mapList
);
List
<
Map
<
String
,
Object
>>
mapList
=
iElevatorService
.
selectElevatorEsList
(
0
,
1000
);
if
(!
ObjectUtils
.
isEmpty
(
mapList
)){
esElevatorService
.
saveEsElevator2ES
(
mapList
);
}
// for (Elevator el:elevatorPage.getRecords()
// ) {
// esElevatorService.saveEsElevatorToES(el);
// }
}
return
ResponseHelper
.
buildResponse
(
"success"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/SupervisionInfoMapper.xml
View file @
00068a31
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.yeejoin.amos.boot.module.ymt.api.mapper.SuperviseInfoMapper"
>
<update
id=
"updateRecordBatch"
>
UPDATE idx_biz_jg_use_info SET "IS_NOT_E
LEV
" = 1 WHERE "RECORD" IN
UPDATE idx_biz_jg_use_info SET "IS_NOT_E
S
" = 1 WHERE "RECORD" IN
<foreach
collection=
"recordList"
separator=
","
item=
"record"
open=
"("
close=
")"
>
#{record}
</foreach>
...
...
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