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
f4552d91
Commit
f4552d91
authored
Mar 20, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
焊工和焊机bug修改
parent
c60b8d5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
EquipmentServiceImpl.java
...oot/module/ugp/biz/service/impl/EquipmentServiceImpl.java
+9
-6
WelderServiceImpl.java
...s/boot/module/ugp/biz/service/impl/WelderServiceImpl.java
+7
-7
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/EquipmentServiceImpl.java
View file @
f4552d91
...
@@ -288,17 +288,20 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
...
@@ -288,17 +288,20 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
}
}
@BusinessIdentify
//
@BusinessIdentify
public
Page
<
Map
<
String
,
Object
>>
boundWelder
(
String
projectId
,
Integer
current
,
Integer
size
,
String
name
,
String
type
)
{
public
Page
<
Map
<
String
,
Object
>>
boundWelder
(
String
projectId
,
Integer
current
,
Integer
size
,
String
name
,
String
type
)
{
ReginParams
reginParams
=
orgService
.
getReginParams
();
// ReginParams reginParams = orgService.getReginParams();
Long
companySequenceNbr
=
reginParams
.
getBusinessInfo
().
getCompanySequenceNbr
();
// Long companySequenceNbr = reginParams.getBusinessInfo().getCompanySequenceNbr();
Project
project
=
projectMapper
.
selectById
(
projectId
);
//安装单位ID
Long
installationUnitId
=
project
.
getInstallationUnitId
();
if
(!
ObjectUtils
.
isEmpty
(
current
)
||
!
ObjectUtils
.
isEmpty
(
size
))
{
if
(!
ObjectUtils
.
isEmpty
(
current
)
||
!
ObjectUtils
.
isEmpty
(
size
))
{
Page
<
Map
<
String
,
Object
>>
result
;
Page
<
Map
<
String
,
Object
>>
result
;
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
if
(!
ObjectUtils
.
isEmpty
(
type
)
&&
"all"
.
equals
(
type
))
{
if
(!
ObjectUtils
.
isEmpty
(
type
)
&&
"all"
.
equals
(
type
))
{
result
=
equipmentMapper
.
boundWelder
(
page
,
projectId
,
companySequenceNbr
,
name
,
null
);
result
=
equipmentMapper
.
boundWelder
(
page
,
projectId
,
installationUnitId
,
name
,
null
);
}
else
{
}
else
{
result
=
equipmentMapper
.
boundWelder
(
page
,
projectId
,
companySequenceNbr
,
name
,
"bound"
);
result
=
equipmentMapper
.
boundWelder
(
page
,
projectId
,
installationUnitId
,
name
,
"bound"
);
}
}
result
.
getRecords
().
forEach
(
item
->
{
result
.
getRecords
().
forEach
(
item
->
{
List
<
JSONObject
>
files
=
attachmentServiceImpl
.
getFilesBySourceId
(
Long
.
valueOf
(
String
.
valueOf
(
item
.
get
(
"sequence_nbr"
))));
List
<
JSONObject
>
files
=
attachmentServiceImpl
.
getFilesBySourceId
(
Long
.
valueOf
(
String
.
valueOf
(
item
.
get
(
"sequence_nbr"
))));
...
@@ -308,7 +311,7 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
...
@@ -308,7 +311,7 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
}
else
{
}
else
{
// 不分页时返回全部、定制组件格式统一
// 不分页时返回全部、定制组件格式统一
Page
<
Map
<
String
,
Object
>>
listPage
=
new
Page
<>();
Page
<
Map
<
String
,
Object
>>
listPage
=
new
Page
<>();
List
<
Map
<
String
,
Object
>>
equipmentDtos
=
equipmentMapper
.
boundWelderList
(
projectId
,
companySequenceNbr
,
name
);
List
<
Map
<
String
,
Object
>>
equipmentDtos
=
equipmentMapper
.
boundWelderList
(
projectId
,
installationUnitId
,
name
);
listPage
.
setRecords
(
equipmentDtos
);
listPage
.
setRecords
(
equipmentDtos
);
return
listPage
;
return
listPage
;
}
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WelderServiceImpl.java
View file @
f4552d91
...
@@ -217,7 +217,7 @@ public class WelderServiceImpl {
...
@@ -217,7 +217,7 @@ public class WelderServiceImpl {
}
}
@BusinessIdentify
//
@BusinessIdentify
public
Page
<
Map
<
String
,
Object
>>
getWelderByProjectId
(
String
projectId
,
Integer
current
,
Integer
size
,
String
name
,
String
type
)
{
public
Page
<
Map
<
String
,
Object
>>
getWelderByProjectId
(
String
projectId
,
Integer
current
,
Integer
size
,
String
name
,
String
type
)
{
String
columnKey
=
"column"
;
String
columnKey
=
"column"
;
String
valueKey
=
"value"
;
String
valueKey
=
"value"
;
...
@@ -225,24 +225,24 @@ public class WelderServiceImpl {
...
@@ -225,24 +225,24 @@ public class WelderServiceImpl {
String
statusKey
=
"status"
;
String
statusKey
=
"status"
;
Page
<
Map
<
String
,
Object
>>
mapPage
=
new
Page
<>();
Page
<
Map
<
String
,
Object
>>
mapPage
=
new
Page
<>();
ArrayList
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
ReginParams
reginParams
=
orgService
.
getReginParams
(
);
Project
byId
=
projectService
.
getById
(
projectId
);
Long
companySequenceNbr
=
reginParams
.
getBusinessInfo
().
getCompanySequenceNbr
();
//安装单位ID
Long
installationUnitId
=
byId
.
getInstallationUnitId
();
List
<
Map
<
String
,
Object
>>
mapList
;
List
<
Map
<
String
,
Object
>>
mapList
;
// 分页参数为空时返回全部
// 分页参数为空时返回全部
if
(!
ObjectUtils
.
isEmpty
(
current
)
||
!
ObjectUtils
.
isEmpty
(
size
))
{
if
(!
ObjectUtils
.
isEmpty
(
current
)
||
!
ObjectUtils
.
isEmpty
(
size
))
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
if
(!
ObjectUtils
.
isEmpty
(
type
)
&&
"all"
.
equals
(
type
))
{
if
(!
ObjectUtils
.
isEmpty
(
type
)
&&
"all"
.
equals
(
type
))
{
page
=
orgUsrService
.
getWelderByProjectId
(
page
,
projectId
,
companySequenceNbr
,
name
,
null
);
page
=
orgUsrService
.
getWelderByProjectId
(
page
,
projectId
,
installationUnitId
,
name
,
null
);
}
else
{
}
else
{
page
=
orgUsrService
.
getWelderByProjectId
(
page
,
projectId
,
companySequenceNbr
,
name
,
"bound"
);
page
=
orgUsrService
.
getWelderByProjectId
(
page
,
projectId
,
installationUnitId
,
name
,
"bound"
);
}
}
mapPage
.
setTotal
(
page
.
getTotal
());
mapPage
.
setTotal
(
page
.
getTotal
());
mapPage
.
setSize
(
page
.
getSize
());
mapPage
.
setSize
(
page
.
getSize
());
mapPage
.
setPages
(
page
.
getPages
());
mapPage
.
setPages
(
page
.
getPages
());
mapList
=
page
.
getRecords
();
mapList
=
page
.
getRecords
();
}
else
{
}
else
{
mapList
=
orgUsrService
.
getWelderListByProjectId
(
projectId
,
companySequenceNbr
,
name
);
mapList
=
orgUsrService
.
getWelderListByProjectId
(
projectId
,
installationUnitId
,
name
);
}
}
mapList
.
forEach
(
item
->
{
mapList
.
forEach
(
item
->
{
...
...
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