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 5ea68c29
authored
Jun 10, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了字段类型名称
1 parent
606877d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/PubParameterRespDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/PublicServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/PubParameterRespDTO.java
View file @
5ea68c2
...
...
@@ -13,6 +13,7 @@ public class PubParameterRespDTO {
public
static
class
Enum
{
private
List
<?>
items
;
private
String
name
;
private
String
description
;
}
@lombok
.
Data
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/PublicServiceImpl.java
View file @
5ea68c2
...
...
@@ -25,9 +25,9 @@ public class PublicServiceImpl implements PublicService {
List
<
PubParameterRespDTO
.
Enum
>
enums
=
new
ArrayList
<>();
HashMap
<
String
,
String
>
mapping
=
getMapping
();
for
(
String
k
:
mapping
.
keySet
())
{
List
<?>
items
=
pubParamsDao
.
findByBiztype
(
mapping
.
get
(
k
)
);
List
<?>
items
=
pubParamsDao
.
findByBiztype
(
k
);
if
(!
items
.
isEmpty
())
{
PubParameterRespDTO
.
Enum
anEnum
=
new
PubParameterRespDTO
.
Enum
().
setName
(
k
);
PubParameterRespDTO
.
Enum
anEnum
=
new
PubParameterRespDTO
.
Enum
().
setName
(
k
)
.
setDescription
(
mapping
.
get
(
k
))
;
List
<
PubParameterRespDTO
.
Item
>
items2
=
new
ArrayList
<>();
for
(
Object
e
:
items
)
{
PubParamsEntity
param
=
(
PubParamsEntity
)
e
;
...
...
@@ -45,14 +45,19 @@ public class PublicServiceImpl implements PublicService {
private
HashMap
<
String
,
String
>
getMapping
()
{
String
[]
pairs
=
{
"engineerStatus, EngineerStatus"
,
"workType, Worktype"
,
"transportation, Transportation"
,
"dispatchWeight,Dispatchweight"
,
"engineerBase,EngineerBase"
,
"serviceOrderStatus,ServiceOrderStatus"
,
"assignOrderStatus,AssignOrderStatus"
,
"serviceType,ServiceType"
"EngineerStatus,技术员状态"
,
"WorkType,工作性质"
,
"Transportation,交通工具"
,
"DispatchWeight,派单优先级"
,
"ServiceOrderStatus,工单状态"
,
"AssignOrderStatus,指派状态"
,
"ServiceType,服务类型"
,
"Gender,性别"
,
"RecommendAssignment,指派推荐"
,
"AssignStatus,指派状态"
,
"AssignType,指派类型"
,
"AppointmentChannel,预约渠道"
,
"PriorityWeight,工单优先级"
};
HashMap
<
String
,
String
>
hashMap
=
new
HashMap
<>();
...
...
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