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
83a32e3b
Commit
83a32e3b
authored
Nov 27, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目订单附件上传优化-fxj
parent
19995d59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
EkpOrderController.java
...oud/plus/v1/yifu/order/controller/EkpOrderController.java
+6
-0
TOrderFileSyncLogService.java
.../plus/v1/yifu/order/service/TOrderFileSyncLogService.java
+3
-0
TOrderFileSyncLogServiceImpl.java
...yifu/order/service/impl/TOrderFileSyncLogServiceImpl.java
+13
-0
No files found.
yifu-order/yifu-order-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/order/controller/EkpOrderController.java
View file @
83a32e3b
...
@@ -4,6 +4,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
...
@@ -4,6 +4,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.order.constants.OrderConstants
;
import
com.yifu.cloud.plus.v1.yifu.order.constants.OrderConstants
;
import
com.yifu.cloud.plus.v1.yifu.order.service.TOrderFileSyncLogService
;
import
com.yifu.cloud.plus.v1.yifu.order.service.TOrderService
;
import
com.yifu.cloud.plus.v1.yifu.order.service.TOrderService
;
import
com.yifu.cloud.plus.v1.yifu.order.util.EkpOrderFileTask
;
import
com.yifu.cloud.plus.v1.yifu.order.util.EkpOrderFileTask
;
import
com.yifu.cloud.plus.v1.yifu.order.vo.OrderAddVO
;
import
com.yifu.cloud.plus.v1.yifu.order.vo.OrderAddVO
;
...
@@ -39,6 +40,8 @@ public class EkpOrderController {
...
@@ -39,6 +40,8 @@ public class EkpOrderController {
private
TOrderService
tOrderService
;
private
TOrderService
tOrderService
;
@Autowired
@Autowired
private
EkpOrderFileTask
ekpOrderFileTask
;
private
EkpOrderFileTask
ekpOrderFileTask
;
@Autowired
private
TOrderFileSyncLogService
syncLogService
;
/**
/**
* 接收处理ekp订单
* 接收处理ekp订单
*
*
...
@@ -84,6 +87,9 @@ public class EkpOrderController {
...
@@ -84,6 +87,9 @@ public class EkpOrderController {
ekpOrderFileTask
.
receiveOrderNew
(
multipartFile
.
getInputStream
(),
vo
.
getFile1
(),
vo
.
getOrderNo
(),
fileName
ekpOrderFileTask
.
receiveOrderNew
(
multipartFile
.
getInputStream
(),
vo
.
getFile1
(),
vo
.
getOrderNo
(),
fileName
,
multipartFile
.
getOriginalFilename
(),
vo
.
getFileIds
());
,
multipartFile
.
getOriginalFilename
(),
vo
.
getFileIds
());
}
}
}
else
{
//记录未获取到附件文件流的信息
syncLogService
.
saveAsso
(
vo
.
getOrderNo
(),
vo
.
getFileIds
());
}
}
return
R
.
ok
();
return
R
.
ok
();
}
}
...
...
yifu-order/yifu-order-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/order/service/TOrderFileSyncLogService.java
View file @
83a32e3b
...
@@ -49,4 +49,7 @@ public interface TOrderFileSyncLogService extends IService<TOrderFileSyncLog> {
...
@@ -49,4 +49,7 @@ public interface TOrderFileSyncLogService extends IService<TOrderFileSyncLog> {
void
listExport
(
HttpServletResponse
response
,
TOrderFileSyncLogSearchVo
searchVo
);
void
listExport
(
HttpServletResponse
response
,
TOrderFileSyncLogSearchVo
searchVo
);
List
<
TOrderFileSyncLog
>
noPageDiy
(
TOrderFileSyncLogSearchVo
searchVo
);
List
<
TOrderFileSyncLog
>
noPageDiy
(
TOrderFileSyncLogSearchVo
searchVo
);
void
saveAsso
(
String
orderNo
,
String
fileIds
);
}
}
yifu-order/yifu-order-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/order/service/impl/TOrderFileSyncLogServiceImpl.java
View file @
83a32e3b
...
@@ -45,6 +45,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -45,6 +45,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -148,6 +149,18 @@ public class TOrderFileSyncLogServiceImpl extends ServiceImpl<TOrderFileSyncLogM
...
@@ -148,6 +149,18 @@ public class TOrderFileSyncLogServiceImpl extends ServiceImpl<TOrderFileSyncLogM
return
baseMapper
.
selectList
(
wrapper
);
return
baseMapper
.
selectList
(
wrapper
);
}
}
@Override
public
void
saveAsso
(
String
orderNo
,
String
fileIds
)
{
TOrderFileSyncLog
log
=
new
TOrderFileSyncLog
();
log
.
setFlag
(
CommonConstants
.
ZERO_STRING
);
log
.
setOrderNo
(
orderNo
);
log
.
setAttIds
(
fileIds
);
log
.
setCreateTime
(
LocalDateTime
.
now
());
log
.
setUpdateTime
(
LocalDateTime
.
now
());
log
.
setReason
(
"附件文件流获取失败,请联系管理员处理!"
);
baseMapper
.
insert
(
log
);
}
private
Long
noPageCountDiy
(
TOrderFileSyncLogSearchVo
searchVo
)
{
private
Long
noPageCountDiy
(
TOrderFileSyncLogSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TOrderFileSyncLog
>
wrapper
=
buildQueryWrapper
(
searchVo
);
LambdaQueryWrapper
<
TOrderFileSyncLog
>
wrapper
=
buildQueryWrapper
(
searchVo
);
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
...
...
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