Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
808aee3a
Commit
808aee3a
authored
Aug 31, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单对接ekp调整
parent
8bd9bef9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
EkpOrderProperties.java
...ifu.cloud.plus.v1/yifu/ekp/config/EkpOrderProperties.java
+9
-1
EkpOrderUtil.java
...va/com/yifu.cloud.plus.v1/yifu/ekp/util/EkpOrderUtil.java
+6
-6
ekpOrderConfig.properties
...u-common-ekp/src/main/resources/ekpOrderConfig.properties
+2
-1
No files found.
yifu-common/yifu-common-ekp/src/main/java/com/yifu.cloud.plus.v1/yifu/ekp/config/EkpOrderProperties.java
View file @
808aee3a
...
@@ -50,5 +50,13 @@ public class EkpOrderProperties {
...
@@ -50,5 +50,13 @@ public class EkpOrderProperties {
String
LoginName
;
String
LoginName
;
String
docSubject
;
/**
* 描述:用于项目订单更新接口
*/
String
orderDocSubject
;
/**
* 描述:用于订单回复接口
*/
String
replyDocSubject
;
}
}
yifu-common/yifu-common-ekp/src/main/java/com/yifu.cloud.plus.v1/yifu/ekp/util/EkpOrderUtil.java
View file @
808aee3a
...
@@ -34,7 +34,7 @@ import java.util.List;
...
@@ -34,7 +34,7 @@ import java.util.List;
@EnableConfigurationProperties
(
EkpOrderProperties
.
class
)
@EnableConfigurationProperties
(
EkpOrderProperties
.
class
)
public
class
EkpOrderUtil
{
public
class
EkpOrderUtil
{
@Autowired
@Autowired
private
static
EkpOrderProperties
ekpProperties
;
private
EkpOrderProperties
ekpProperties
;
/**
/**
* 更新订单状态
* 更新订单状态
...
@@ -51,7 +51,7 @@ public class EkpOrderUtil {
...
@@ -51,7 +51,7 @@ public class EkpOrderUtil {
//指向EKP的接口url
//指向EKP的接口url
//把ModelingAppModelParameterAddForm转换成MultiValueMap
//把ModelingAppModelParameterAddForm转换成MultiValueMap
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
getDocSubject
());
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
get
Order
DocSubject
());
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"admin\"}"
);
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"admin\"}"
);
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
wholeForm
.
add
(
"fdModelId"
,
ekpProperties
.
getOrderFdModelId
());
wholeForm
.
add
(
"fdModelId"
,
ekpProperties
.
getOrderFdModelId
());
...
@@ -71,7 +71,7 @@ public class EkpOrderUtil {
...
@@ -71,7 +71,7 @@ public class EkpOrderUtil {
log
.
error
(
EkpConstants
.
SEND_FAILED
);
log
.
error
(
EkpConstants
.
SEND_FAILED
);
return
null
;
return
null
;
}
else
{
}
else
{
log
.
info
(
EkpConstants
.
SEND_SUCCESS
+
body
);
log
.
info
(
EkpConstants
.
SEND_SUCCESS
+
body
);
return
body
;
return
body
;
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -95,7 +95,7 @@ public class EkpOrderUtil {
...
@@ -95,7 +95,7 @@ public class EkpOrderUtil {
//指向EKP的接口url
//指向EKP的接口url
//把ModelingAppModelParameterAddForm转换成MultiValueMap
//把ModelingAppModelParameterAddForm转换成MultiValueMap
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
MultiValueMap
<
String
,
Object
>
wholeForm
=
new
LinkedMultiValueMap
<>();
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
getDocSubject
());
wholeForm
.
add
(
"docSubject"
,
ekpProperties
.
get
Reply
DocSubject
());
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"admin\"}"
);
wholeForm
.
add
(
"docCreator"
,
"{\"LoginName\":\"admin\"}"
);
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
wholeForm
.
add
(
"docStatus"
,
ekpProperties
.
getDocStatus
());
wholeForm
.
add
(
"fdModelId"
,
ekpProperties
.
getReplyFdModelId
());
wholeForm
.
add
(
"fdModelId"
,
ekpProperties
.
getReplyFdModelId
());
...
@@ -135,7 +135,7 @@ public class EkpOrderUtil {
...
@@ -135,7 +135,7 @@ public class EkpOrderUtil {
* @param multipartFiles
* @param multipartFiles
* @return {@link List<AttachmentForm>}
* @return {@link List<AttachmentForm>}
*/
*/
public
static
List
<
AttachmentForm
>
createAllAttach
(
MultipartFile
[]
multipartFiles
)
throws
Exception
{
public
List
<
AttachmentForm
>
createAllAttach
(
MultipartFile
[]
multipartFiles
)
throws
Exception
{
List
<
AttachmentForm
>
attForms
=
new
ArrayList
<>();
List
<
AttachmentForm
>
attForms
=
new
ArrayList
<>();
if
(
ArrayUtils
.
isNotEmpty
(
multipartFiles
)){
if
(
ArrayUtils
.
isNotEmpty
(
multipartFiles
)){
for
(
MultipartFile
multipartFile
:
multipartFiles
)
{
for
(
MultipartFile
multipartFile
:
multipartFiles
)
{
...
@@ -143,7 +143,7 @@ public class EkpOrderUtil {
...
@@ -143,7 +143,7 @@ public class EkpOrderUtil {
//设置附件关键字,表单模式下为附件控件的id
//设置附件关键字,表单模式下为附件控件的id
attForm
.
setFdKey
(
ekpProperties
.
getReplyAttachKey
());
attForm
.
setFdKey
(
ekpProperties
.
getReplyAttachKey
());
attForm
.
setFdFileName
(
multipartFile
.
getOriginalFilename
());
attForm
.
setFdFileName
(
multipartFile
.
getOriginalFilename
());
File
file
=
n
ull
;
File
file
=
n
ew
File
(
multipartFile
.
getOriginalFilename
())
;
FileUtils
.
copyInputStreamToFile
(
multipartFile
.
getInputStream
(),
file
);
FileUtils
.
copyInputStreamToFile
(
multipartFile
.
getInputStream
(),
file
);
DataSource
dataSource
=
new
FileDataSource
(
file
);
DataSource
dataSource
=
new
FileDataSource
(
file
);
DataHandler
dataHandler
=
new
DataHandler
(
dataSource
);
DataHandler
dataHandler
=
new
DataHandler
(
dataSource
);
...
...
yifu-common/yifu-common-ekp/src/main/resources/ekpOrderConfig.properties
View file @
808aee3a
...
@@ -6,6 +6,7 @@ ekporder.replyFdFlowId=182f1c3d6f5724e335b88d544be8c993
...
@@ -6,6 +6,7 @@ ekporder.replyFdFlowId=182f1c3d6f5724e335b88d544be8c993
ekporder.replyAttachKey
=
fd_3ac904c9342fe2
ekporder.replyAttachKey
=
fd_3ac904c9342fe2
ekporder.docStatus
=
20
ekporder.docStatus
=
20
ekporder.LoginName
=
admin
ekporder.LoginName
=
admin
ekporder.docSubject
=
\u
85AA
\u
8D44
\u
8BA2
\u5355\u
660E
\u
7EC6
\u6570\u
636E
\u
63A5
\u
53E3
ekporder.orderDocSubject
=
\u7528\u
4e8e
\u9879\u
76ee
\u
8ba2
\u5355\u
66f4
\u
65b0
\u
63a5
\u
53e3
ekporder.replyDocSubject
=
\u7528\u
4e8e
\u
8ba2
\u5355\u
56de
\u
590d
\u
63a5
\u
53e3
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