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
3fe79752
Commit
3fe79752
authored
Jul 06, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通总览bug修改
parent
67e42fa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+7
-10
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
3fe79752
...
@@ -699,6 +699,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -699,6 +699,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
Long
count
=
bizJdbcTemplate
.
queryForObject
(
countSql
,
Long
.
class
);
Long
count
=
bizJdbcTemplate
.
queryForObject
(
countSql
,
Long
.
class
);
String
finalSelectSql
=
selectSql
;
String
finalSelectSql
=
selectSql
;
System
.
out
.
println
(
finalSelectSql
);
List
<
Map
<
String
,
Object
>>
mapList
=
bizJdbcTemplate
.
queryForList
(
finalSelectSql
);
List
<
Map
<
String
,
Object
>>
mapList
=
bizJdbcTemplate
.
queryForList
(
finalSelectSql
);
page
.
setTotal
(
count
);
page
.
setTotal
(
count
);
page
.
setRecords
(
mapList
);
page
.
setRecords
(
mapList
);
...
@@ -870,14 +871,10 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -870,14 +871,10 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
equipmentCategoryData
.
setRecDate
(
new
Date
());
equipmentCategoryData
.
setRecDate
(
new
Date
());
list
.
add
(
equipmentCategoryData
);
list
.
add
(
equipmentCategoryData
);
}
}
if
(
ObjectUtils
.
isEmpty
(
unitCodes
)){
if
(!
ObjectUtils
.
isEmpty
(
unitCodes
)){
equipmentCategoryDataService
.
saveOrUpdateBatch
(
list
);
equipmentCategoryDataMapper
.
delete
(
new
QueryWrapper
<
EquipmentCategoryData
>().
in
(
"unit_code"
,
unitCodes
));
}
else
{
for
(
EquipmentCategoryData
equipmentCategoryData
:
list
)
{
equipmentCategoryDataService
.
update
(
equipmentCategoryData
,
new
QueryWrapper
<
EquipmentCategoryData
>().
eq
(
"unit_code"
,
equipmentCategoryData
.
getUnitCode
()).
eq
(
"org_branch_code"
,
equipmentCategoryData
.
getOrgBranchCode
()));
}
}
}
equipmentCategoryDataService
.
saveOrUpdateBatch
(
list
);
stopWatch
.
stop
();
stopWatch
.
stop
();
if
(
log
.
isInfoEnabled
()){
if
(
log
.
isInfoEnabled
()){
log
.
info
(
"总览数据刷新结束,耗时:{} 秒"
,
stopWatch
.
getTotalTimeSeconds
());
log
.
info
(
"总览数据刷新结束,耗时:{} 秒"
,
stopWatch
.
getTotalTimeSeconds
());
...
@@ -926,13 +923,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -926,13 +923,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
private
EquipmentCategoryData
updateEquipmentCategoryData
(
String
unitCode
,
String
orgBranchCode
)
{
private
List
<
EquipmentCategoryData
>
updateEquipmentCategoryData
(
String
unitCode
,
String
orgBranchCode
)
{
List
<
String
>
unitCodeList
=
new
ArrayList
<>();
List
<
String
>
unitCodeList
=
new
ArrayList
<>();
unitCodeList
.
add
(
unitCode
);
unitCodeList
.
add
(
unitCode
);
List
<
String
>
orgBranchCodeList
=
new
ArrayList
<>();
List
<
String
>
orgBranchCodeList
=
new
ArrayList
<>();
orgBranchCodeList
.
add
(
orgBranchCode
);
orgBranchCodeList
.
add
(
orgBranchCode
);
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCodeList
,
orgBranchCodeList
);
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCodeList
,
null
);
return
equipmentCategoryData
.
get
(
0
)
;
return
equipmentCategoryData
;
}
}
@Override
@Override
...
...
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