Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e1263d8
authored
Aug 07, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回字段信息补充
1 parent
8269ab8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessOrgWarehousesDTO.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBaseServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessOrgWarehousesDTO.java
View file @
0e1263d
...
...
@@ -29,7 +29,7 @@ public class BusinessOrgWarehousesDTO {
@lombok
.
Data
@Accessors
(
chain
=
true
)
public
static
class
Content
{
private
String
warehouse
r
Name
;
private
String
warehouseName
;
private
String
warehouseId
;
private
String
groupName
;
private
String
address
;
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBaseServiceImpl.java
View file @
0e1263d
package
com
.
dituhui
.
pea
.
order
.
service
.
impl
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.common.DateUtils
;
import
com.dituhui.pea.order.dao.*
;
import
com.dituhui.pea.order.dto.BusinessOrgWarehousesDTO
;
import
com.dituhui.pea.order.dto.BusinessSkillListDTO
;
...
...
@@ -22,6 +23,8 @@ import java.util.stream.Collectors;
@Service
@Slf4j
public
class
BusinessBaseServiceImpl
implements
BusinessBaseService
{
@Autowired
private
OrgGroupDao
orgGroupDao
;
@Autowired
private
SkillInfoDao
skillInfoDao
;
...
...
@@ -77,17 +80,18 @@ public class BusinessBaseServiceImpl implements BusinessBaseService {
List
<
BusinessOrgWarehousesDTO
.
Content
>
contents
=
page
.
getContent
().
stream
().
map
(
e
->
{
BusinessOrgWarehousesDTO
.
Content
content
=
new
BusinessOrgWarehousesDTO
.
Content
();
content
.
setWarehouseId
(
e
.
getWarehouseId
());
content
.
setWarehouse
r
Name
(
e
.
getWarehouseName
());
content
.
setWarehouseName
(
e
.
getWarehouseName
());
content
.
setAddress
(
e
.
getAddress
());
content
.
setLocation
(
String
.
format
(
"%s,%s"
,
e
.
getX
(),
e
.
getY
()));
content
.
setGroupName
(
getGroupName
(
e
.
getGroupId
()));
content
.
setManagerName
(
e
.
getManagerName
());
content
.
setManagerPhone
(
e
.
getManagerPhone
());
if
(
e
.
get
GroupId
()
!=
null
&&
!
e
.
getGroupId
().
equals
(
"0"
)
)
{
content
.
setType
(
""
);
if
(
e
.
get
Kind
()
==
1
)
{
content
.
setType
(
"
分部仓-可分发
"
);
}
else
{
content
.
setType
(
"
分部仓 - 可分发
"
);
content
.
setType
(
"
小组仓-快递柜
"
);
}
content
.
setUpdateTime
(
DateUtils
.
formatDateTime
(
e
.
getUpdateTime
()));
return
content
;
}).
collect
(
Collectors
.
toList
());
BusinessOrgWarehousesDTO
.
Result
rs
=
new
BusinessOrgWarehousesDTO
.
Result
();
...
...
@@ -100,6 +104,14 @@ public class BusinessBaseServiceImpl implements BusinessBaseService {
}
private
String
getGroupName
(
String
groupId
)
{
if
(
"0"
.
equals
(
groupId
))
{
return
"直属分部"
;
}
OrgGroupEntity
groupEntity
=
orgGroupDao
.
getByGroupId
(
groupId
);
if
(
groupEntity
!=
null
)
{
return
groupEntity
.
getGroupName
();
}
log
.
error
(
"未找到匹配的 直属分站信息"
);
return
null
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment