Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MultipleSourceSecurity
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
周宗顺
MultipleSourceSecurity
Commits
3c6cdd00
Commit
3c6cdd00
authored
Nov 26, 2025
by
Allen Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
5570d26f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
144 additions
and
51 deletions
+144
-51
PddLocalController.java
.../java/org/ta/pddserver/controller/PddLocalController.java
+118
-37
EditPostCodeRequest.java
...g/ta/pddserver/model/api/request/EditPostCodeRequest.java
+12
-0
FinishUnpackRequest.java
...g/ta/pddserver/model/api/request/FinishUnpackRequest.java
+4
-4
PddServiceConsoCoBizActionNotifyRequest.java
...ddjy/request/PddServiceConsoCoBizActionNotifyRequest.java
+5
-5
application.yaml
PddServer/src/main/resources/application.yaml
+5
-5
No files found.
PddServer/src/main/java/org/ta/pddserver/controller/PddLocalController.java
View file @
3c6cdd00
...
@@ -756,7 +756,7 @@ public class PddLocalController {
...
@@ -756,7 +756,7 @@ public class PddLocalController {
packageInfo
.
setWidth
(
lists
.
getWidth
());
packageInfo
.
setWidth
(
lists
.
getWidth
());
packageInfo
.
setHeight
(
lists
.
getHeight
());
packageInfo
.
setHeight
(
lists
.
getHeight
());
packageInfo
.
setLength
(
lists
.
getLength
());
packageInfo
.
setLength
(
lists
.
getLength
());
packageInfo
.
setActualWeight
(
(
long
)
PddJYPriceTool
.
calculateWeight
(
lists
.
getLength
().
intValue
(),
lists
.
getWidth
().
intValue
(),
lists
.
getHeight
().
intValue
(),
lists
.
getWeight
().
intValue
(),
true
));
packageInfo
.
setActualWeight
(
PddJYPriceTool
.
calculateWeight
(
lists
.
getLength
(),
lists
.
getWidth
(),
lists
.
getHeight
(),
lists
.
getWeight
(),
true
));
packageInfo
.
setConsoType
(
unpackNoticeEntity
.
getConsoType
());
packageInfo
.
setConsoType
(
unpackNoticeEntity
.
getConsoType
());
packageInfo
.
setGoodsType
(
finishUnpackRequest
.
getGoodsType
());
packageInfo
.
setGoodsType
(
finishUnpackRequest
.
getGoodsType
());
...
@@ -766,10 +766,10 @@ public class PddLocalController {
...
@@ -766,10 +766,10 @@ public class PddLocalController {
logOrderPackageEntity
.
setStatus
(
""
+
StatusEnum
.
FINISHUNPACK
.
getCode
());
logOrderPackageEntity
.
setStatus
(
""
+
StatusEnum
.
FINISHUNPACK
.
getCode
());
logOrderPackageEntity
.
setLogisticsOrderCode
(
finishUnpackRequest
.
getOrderCode
());
logOrderPackageEntity
.
setLogisticsOrderCode
(
finishUnpackRequest
.
getOrderCode
());
logOrderPackageEntity
.
setPackageType
(
finishUnpackRequest
.
getGoodsType
());
logOrderPackageEntity
.
setPackageType
(
finishUnpackRequest
.
getGoodsType
());
logOrderPackageEntity
.
setLength
(
lists
.
getLength
()
.
intValue
()
);
logOrderPackageEntity
.
setLength
(
lists
.
getLength
());
logOrderPackageEntity
.
setWidth
(
lists
.
getWidth
()
.
intValue
()
);
logOrderPackageEntity
.
setWidth
(
lists
.
getWidth
());
logOrderPackageEntity
.
setHeight
(
lists
.
getHeight
()
.
intValue
()
);
logOrderPackageEntity
.
setHeight
(
lists
.
getHeight
());
logOrderPackageEntity
.
setWeight
(
lists
.
getWeight
()
.
intValue
()
);
logOrderPackageEntity
.
setWeight
(
lists
.
getWeight
());
logOrderPackageImpl
.
save
(
logOrderPackageEntity
);
logOrderPackageImpl
.
save
(
logOrderPackageEntity
);
...
@@ -839,8 +839,6 @@ public class PddLocalController {
...
@@ -839,8 +839,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
}
}
/*收到出库通知后 开始拣货 拣货完成 */
/**
/**
* 拣货异常
* 拣货异常
*/
*/
...
@@ -865,7 +863,7 @@ public class PddLocalController {
...
@@ -865,7 +863,7 @@ public class PddLocalController {
LogOrderMailDetailIoEntity
logOrderMailDetailIoEntity
=
new
LogOrderMailDetailIoEntity
();
LogOrderMailDetailIoEntity
logOrderMailDetailIoEntity
=
new
LogOrderMailDetailIoEntity
();
PddServiceConsoCoBizActionNotifyRequest
.
Result
notifyResult
=
new
PddServiceConsoCoBizActionNotifyRequest
.
Result
();
PddServiceConsoCoBizActionNotifyRequest
.
Result
notifyResult
=
new
PddServiceConsoCoBizActionNotifyRequest
.
Result
();
CollectOrderEntity
collectOrderEntity
=
n
ew
CollectOrderEntity
()
;
CollectOrderEntity
collectOrderEntity
=
n
ull
;
if
(
action
.
equals
(
"begin_pick"
))
{
if
(
action
.
equals
(
"begin_pick"
))
{
collectOrderEntity
=
collectOrderImpl
.
getAllInfoByOrderCode
(
finishUnpackRequest
.
getOrderCode
());
collectOrderEntity
=
collectOrderImpl
.
getAllInfoByOrderCode
(
finishUnpackRequest
.
getOrderCode
());
...
@@ -911,7 +909,7 @@ public class PddLocalController {
...
@@ -911,7 +909,7 @@ public class PddLocalController {
packageInfo
.
setWidth
(
lists
.
getWidth
());
packageInfo
.
setWidth
(
lists
.
getWidth
());
packageInfo
.
setHeight
(
lists
.
getHeight
());
packageInfo
.
setHeight
(
lists
.
getHeight
());
packageInfo
.
setLength
(
lists
.
getLength
());
packageInfo
.
setLength
(
lists
.
getLength
());
packageInfo
.
setActualWeight
(
(
long
)
PddJYPriceTool
.
calculateWeight
(
lists
.
getLength
().
intValue
(),
lists
.
getWidth
().
intValue
(),
lists
.
getHeight
().
intValue
(),
lists
.
getWeight
().
intValue
(),
true
));
packageInfo
.
setActualWeight
(
PddJYPriceTool
.
calculateWeight
(
lists
.
getLength
(),
lists
.
getWidth
(),
lists
.
getHeight
(),
lists
.
getWeight
(),
true
));
packageInfo
.
setConsoType
(
unpackNoticeEntity
.
getConsoType
());
packageInfo
.
setConsoType
(
unpackNoticeEntity
.
getConsoType
());
packageInfo
.
setGoodsType
(
finishUnpackRequest
.
getGoodsType
());
packageInfo
.
setGoodsType
(
finishUnpackRequest
.
getGoodsType
());
...
@@ -921,10 +919,10 @@ public class PddLocalController {
...
@@ -921,10 +919,10 @@ public class PddLocalController {
logOrderPackageEntity
.
setStatus
(
""
+
logOrderMailDetailIoEntity
.
getStatus
());
logOrderPackageEntity
.
setStatus
(
""
+
logOrderMailDetailIoEntity
.
getStatus
());
logOrderPackageEntity
.
setLogisticsOrderCode
(
finishUnpackRequest
.
getOrderCode
());
logOrderPackageEntity
.
setLogisticsOrderCode
(
finishUnpackRequest
.
getOrderCode
());
logOrderPackageEntity
.
setPackageType
(
finishUnpackRequest
.
getGoodsType
());
logOrderPackageEntity
.
setPackageType
(
finishUnpackRequest
.
getGoodsType
());
logOrderPackageEntity
.
setLength
(
lists
.
getLength
()
.
intValue
()
);
logOrderPackageEntity
.
setLength
(
lists
.
getLength
());
logOrderPackageEntity
.
setWidth
(
lists
.
getWidth
()
.
intValue
()
);
logOrderPackageEntity
.
setWidth
(
lists
.
getWidth
());
logOrderPackageEntity
.
setHeight
(
lists
.
getHeight
()
.
intValue
()
);
logOrderPackageEntity
.
setHeight
(
lists
.
getHeight
());
logOrderPackageEntity
.
setWeight
(
lists
.
getWeight
()
.
intValue
()
);
logOrderPackageEntity
.
setWeight
(
lists
.
getWeight
());
logOrderPackageImpl
.
save
(
logOrderPackageEntity
);
logOrderPackageImpl
.
save
(
logOrderPackageEntity
);
...
@@ -974,17 +972,14 @@ public class PddLocalController {
...
@@ -974,17 +972,14 @@ public class PddLocalController {
collectMailDetailImpl
.
updateById
(
lists
);
collectMailDetailImpl
.
updateById
(
lists
);
}
}
if
(
collectOrderEntity
!=
null
)
{
collectOrderEntity
.
setStatus
(
logOrderMailDetailIoEntity
.
getStatus
());
collectOrderEntity
.
setStatus
(
logOrderMailDetailIoEntity
.
getStatus
());
collectOrderImpl
.
updateById
(
collectOrderEntity
);
collectOrderImpl
.
updateById
(
collectOrderEntity
);
}
}
}
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
}
}
/*拣货完成后出库*/
/*拣货完成后出库*/
@Operation
(
@Operation
(
summary
=
"拣货完成后出库"
,
summary
=
"拣货完成后出库"
,
...
@@ -1345,7 +1340,6 @@ public class PddLocalController {
...
@@ -1345,7 +1340,6 @@ public class PddLocalController {
}
}
/* 问题件反馈 */
/* 问题件反馈 */
@Operation
(
@Operation
(
summary
=
"问题件反馈"
,
summary
=
"问题件反馈"
,
...
@@ -1402,7 +1396,6 @@ public class PddLocalController {
...
@@ -1402,7 +1396,6 @@ public class PddLocalController {
}
}
/*区域列表*/
/*区域列表*/
@PostMapping
(
"/areaList"
)
@PostMapping
(
"/areaList"
)
public
JSONObject
areaList
(
HttpServletRequest
request
,
@RequestBody
AreaListRequest
areaListRequest
)
{
public
JSONObject
areaList
(
HttpServletRequest
request
,
@RequestBody
AreaListRequest
areaListRequest
)
{
...
@@ -1454,7 +1447,6 @@ public class PddLocalController {
...
@@ -1454,7 +1447,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
"上架成功"
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
"上架成功"
);
}
}
/*待拆包列表*/
/*待拆包列表*/
@PostMapping
(
"/unpackNoticeList"
)
@PostMapping
(
"/unpackNoticeList"
)
public
JSONObject
unpackNoticeList
(
HttpServletRequest
request
,
@RequestBody
UnpackNoticeListRequest
unpackNoticeListRequest
)
{
public
JSONObject
unpackNoticeList
(
HttpServletRequest
request
,
@RequestBody
UnpackNoticeListRequest
unpackNoticeListRequest
)
{
...
@@ -1523,7 +1515,6 @@ public class PddLocalController {
...
@@ -1523,7 +1515,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
true
,
""
);
}
}
// 发往韩国的面单打印
// 发往韩国的面单打印
@PostMapping
(
"/mailLabel"
)
@PostMapping
(
"/mailLabel"
)
public
JSONObject
mailLabel
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@RequestBody
MailNoRequest
mailNoRequest
)
{
public
JSONObject
mailLabel
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@RequestBody
MailNoRequest
mailNoRequest
)
{
...
@@ -1559,7 +1550,6 @@ public class PddLocalController {
...
@@ -1559,7 +1550,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
""
);
}
}
// 拆包的临时面单打印
// 拆包的临时面单打印
/*拆包PDF*/
/*拆包PDF*/
@PostMapping
(
"/unpackLabel"
)
@PostMapping
(
"/unpackLabel"
)
...
@@ -1590,7 +1580,6 @@ public class PddLocalController {
...
@@ -1590,7 +1580,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
""
);
}
}
// 合包的临时面单打印
// 合包的临时面单打印
/*出库PDF*/
/*出库PDF*/
@PostMapping
(
"/collectLabel"
)
@PostMapping
(
"/collectLabel"
)
...
@@ -1644,7 +1633,6 @@ public class PddLocalController {
...
@@ -1644,7 +1633,6 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
map
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
map
,
""
);
}
}
// 打包后的临时面单打印
// 打包后的临时面单打印
/*出库PDF*/
/*出库PDF*/
@PostMapping
(
"/packageMailLabel"
)
@PostMapping
(
"/packageMailLabel"
)
...
@@ -1678,25 +1666,21 @@ public class PddLocalController {
...
@@ -1678,25 +1666,21 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
"请打印"
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
result
,
"请打印"
);
}
}
@PostMapping
(
"/packageComplete"
)
@PostMapping
(
"/packageComplete"
)
public
JSONObject
packageComplete
(
HttpServletRequest
request
,
@RequestBody
PackageCompleteRequest
completeRequest
)
{
public
JSONObject
packageComplete
(
HttpServletRequest
request
,
@RequestBody
PackageCompleteRequest
completeRequest
)
{
List
<
String
>
mailList
=
new
ArrayList
<>();
List
<
String
>
mailList
=
new
ArrayList
<>();
for
(
PackageCompleteRequest
.
OutPackage
outPackage:
completeRequest
.
getOutPackageList
()){
String
orderCode
=
completeRequest
.
getOrderCode
();
for
(
PackageCompleteRequest
.
OutPackage
outPackage
:
completeRequest
.
getOutPackageList
())
{
mailList
.
addAll
(
outPackage
.
getOutBound
());
mailList
.
addAll
(
outPackage
.
getOutBound
());
}
}
boolean
unpack
=
false
;
// TODO 此处异常,需要处理
//获取所有可出库订单
//获取所有可出库订单
List
<
CollectMailDetailEntity
>
list
=
collectMailDetailImpl
.
getListByOrderCode
(
completeRequest
.
getOrderCode
());
List
<
CollectMailDetailEntity
>
list
=
collectMailDetailImpl
.
getListByOrderCode
(
orderCode
);
if
(
list
!=
null
&&
!
list
.
isEmpty
())
{
if
(
list
!=
null
&&
!
list
.
isEmpty
())
{
// 拆单操作
// 拆单操作
// 存储需要删除的元素
// 存储需要删除的元素
List
<
CollectMailDetailEntity
>
toRemoveList
=
new
ArrayList
<>();
List
<
CollectMailDetailEntity
>
toRemoveList
=
new
ArrayList
<>();
List
<
String
>
toRemoveOutBound
=
new
ArrayList
<>();
List
<
String
>
toRemoveOutBound
=
new
ArrayList
<>();
for
(
CollectMailDetailEntity
lists
:
list
)
{
for
(
CollectMailDetailEntity
lists
:
list
)
{
for
(
String
mainNo
:
mailList
)
{
for
(
String
mainNo
:
mailList
)
{
if
(
lists
.
getMailNo
().
equals
(
mainNo
))
{
if
(
lists
.
getMailNo
().
equals
(
mainNo
))
{
...
@@ -1705,7 +1689,6 @@ public class PddLocalController {
...
@@ -1705,7 +1689,6 @@ public class PddLocalController {
}
}
}
}
}
}
list
.
removeAll
(
toRemoveList
);
list
.
removeAll
(
toRemoveList
);
mailList
.
removeAll
(
toRemoveOutBound
);
mailList
.
removeAll
(
toRemoveOutBound
);
...
@@ -1713,10 +1696,13 @@ public class PddLocalController {
...
@@ -1713,10 +1696,13 @@ public class PddLocalController {
//出库信息与已存信息不匹配,无法出库
//出库信息与已存信息不匹配,无法出库
return
JsonResponse
.
generateLocalCommonFailedResponse
(
"-1"
,
"出库单数异常"
);
return
JsonResponse
.
generateLocalCommonFailedResponse
(
"-1"
,
"出库单数异常"
);
}
}
}
else
{
unpack
=
true
;
}
}
packageDetailImpl
.
removeByOrderCode
(
completeRequest
.
getOrderCode
());
packageDetailImpl
.
removeByOrderCode
(
completeRequest
.
getOrderCode
());
for
(
PackageCompleteRequest
.
OutPackage
outPackage:
completeRequest
.
getOutPackageList
()){
List
<
PackageDetailEntity
>
results
=
new
ArrayList
<>();
PackageDetailEntity
detailEntity
=
new
PackageDetailEntity
();
for
(
PackageCompleteRequest
.
OutPackage
outPackage
:
completeRequest
.
getOutPackageList
())
{
PackageDetailEntity
detailEntity
=
new
PackageDetailEntity
();
detailEntity
.
setOrderCode
(
completeRequest
.
getOrderCode
());
detailEntity
.
setOrderCode
(
completeRequest
.
getOrderCode
());
detailEntity
.
setMailNo
(
outPackage
.
getMailNo
());
detailEntity
.
setMailNo
(
outPackage
.
getMailNo
());
detailEntity
.
setWidth
(
outPackage
.
getWidth
());
detailEntity
.
setWidth
(
outPackage
.
getWidth
());
...
@@ -1727,9 +1713,90 @@ public class PddLocalController {
...
@@ -1727,9 +1713,90 @@ public class PddLocalController {
detailEntity
.
setPackageType
(
outPackage
.
getPackageType
());
detailEntity
.
setPackageType
(
outPackage
.
getPackageType
());
detailEntity
.
setOrderType
(
outPackage
.
getOrderType
());
detailEntity
.
setOrderType
(
outPackage
.
getOrderType
());
packageDetailImpl
.
save
(
detailEntity
);
packageDetailImpl
.
save
(
detailEntity
);
results
.
add
(
detailEntity
);
}
if
(
unpack
)
{
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
completeRequest
.
getOutPackageList
(),
"打包成功"
);
}
log
.
info
(
"拆包单,同时发送拆包信息"
);
String
action
=
"finish_unpack"
;
PddServiceConsoCoBizActionNotifyRequest
notifyRequest
=
new
PddServiceConsoCoBizActionNotifyRequest
();
notifyRequest
.
setProviderCode
(
PddAPIConfig
.
PROVIDER_CODE
);
notifyRequest
.
setOrderCode
(
orderCode
);
notifyRequest
.
setBizAction
(
action
);
notifyRequest
.
setExecuteTime
(
TimeTool
.
getNowString
());
notifyRequest
.
setTimeZone
(
"UTC+8"
);
LogOrderMailDetailIoEntity
logOrderMailDetailIoEntity
=
new
LogOrderMailDetailIoEntity
();
PddServiceConsoCoBizActionNotifyRequest
.
Result
notifyResult
=
new
PddServiceConsoCoBizActionNotifyRequest
.
Result
();
CollectOrderEntity
collectOrderEntity
=
new
CollectOrderEntity
();
UnpackNoticeEntity
unpackNoticeEntity
=
unpackNoticeImpl
.
getByCode
(
orderCode
);
notifyRequest
.
setBizActionDesc
(
"拆包完成"
);
notifyRequest
.
setUnpackRemark
(
""
);
notifyResult
.
setCode
(
0
);
notifyRequest
.
setPackageInfos
(
new
ArrayList
<>());
for
(
PackageCompleteRequest
.
OutPackage
outPackage
:
completeRequest
.
getOutPackageList
())
{
PddServiceConsoCoBizActionNotifyRequest
.
PackageInfo
packageInfo
=
new
PddServiceConsoCoBizActionNotifyRequest
.
PackageInfo
();
packageInfo
.
setWeight
(
outPackage
.
getWeight
());
packageInfo
.
setWidth
(
outPackage
.
getWidth
());
packageInfo
.
setHeight
(
outPackage
.
getHeight
());
packageInfo
.
setLength
(
outPackage
.
getLength
());
packageInfo
.
setActualWeight
(
PddJYPriceTool
.
calculateWeight
(
outPackage
.
getLength
(),
outPackage
.
getWidth
(),
outPackage
.
getHeight
(),
outPackage
.
getWeight
(),
true
));
packageInfo
.
setConsoType
(
unpackNoticeEntity
.
getConsoType
());
packageInfo
.
setGoodsType
(
outPackage
.
getOrderType
());
notifyRequest
.
getPackageInfos
().
add
(
packageInfo
);
LogOrderPackageEntity
logOrderPackageEntity
=
new
LogOrderPackageEntity
();
logOrderPackageEntity
.
setStatus
(
""
+
logOrderMailDetailIoEntity
.
getStatus
());
logOrderPackageEntity
.
setLogisticsOrderCode
(
orderCode
);
logOrderPackageEntity
.
setPackageType
(
outPackage
.
getOrderType
());
logOrderPackageEntity
.
setLength
(
outPackage
.
getLength
());
logOrderPackageEntity
.
setWidth
(
outPackage
.
getWidth
());
logOrderPackageEntity
.
setHeight
(
outPackage
.
getHeight
());
logOrderPackageEntity
.
setWeight
(
outPackage
.
getWeight
());
logOrderPackageImpl
.
save
(
logOrderPackageEntity
);
PackageNoticeEntity
packageNoticeEntity
=
packageNoticeImpl
.
getByOrderCode
(
orderCode
);
if
(
packageNoticeEntity
!=
null
)
{
packageNoticeEntity
.
setStatus
(
""
+
logOrderMailDetailIoEntity
.
getStatus
());
packageNoticeImpl
.
updateById
(
packageNoticeEntity
);
}
}
notifyRequest
.
setResult
(
notifyResult
);
JYBaseRequestModel
requestModel
=
new
JYBaseRequestModel
();
requestModel
.
setRequest
(
JSON
.
toJSONString
(
notifyRequest
));
requestModel
.
setRequest_id
(
""
+
new
Date
().
getTime
());
requestModel
.
setType
(
"pdd.service.conso.co.biz.action.notify"
);
requestModel
.
setTarget_client_id
(
PddAPIConfig
.
CLIENT_ID
);
requestModel
.
setClient_id
(
PddAPIConfig
.
CLIENT_ID
);
long
time
=
new
Date
().
getTime
()
/
1000
;
requestModel
.
setTimestamp
(
time
);
requestModel
.
setSign
(
PddSignTool
.
generateSign
(
requestModel
,
PddAPIConfig
.
CLIENT_SECRET
));
String
resp
=
PddHttpTool
.
sendJsonPost
(
requestModel
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
resp
);
JSONObject
respObject
=
(
JSONObject
)
jsonObject
.
get
(
"response"
);
if
(!
respObject
.
getBoolean
(
"success"
))
{
return
JsonResponse
.
generateOpenCommonFailedResponse
(-
1
,
"拼多多上送信息失败:"
+
respObject
.
getString
(
"message"
)
+
";请联系技术人员。"
);
}
}
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
completeRequest
.
getOutPackageList
(),
"打包成功"
);
// logOrderMailDetailIoEntity.setMailNo(finishUnpackRequest.getMailNo());
logOrderMailDetailIoEntity
.
setLogisticsOrderCode
(
orderCode
);
logOrderMailDetailIoEntity
.
setReq
(
JSON
.
toJSONString
(
requestModel
));
logOrderMailDetailIoEntity
.
setResp
(
resp
);
logOrderMailDetailIoImpl
.
save
(
logOrderMailDetailIoEntity
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
completeRequest
.
getOutPackageList
(),
"打包成功且拆包成功"
);
}
}
@PostMapping
(
"/packageScanUnpackOrderCode"
)
@PostMapping
(
"/packageScanUnpackOrderCode"
)
...
@@ -1800,6 +1867,7 @@ public class PddLocalController {
...
@@ -1800,6 +1867,7 @@ public class PddLocalController {
TempStorageEntity
tempStorageEntity
=
tempStorageImpl
.
getByMailNo
(
tempOnRequest
.
getMailNo
());
TempStorageEntity
tempStorageEntity
=
tempStorageImpl
.
getByMailNo
(
tempOnRequest
.
getMailNo
());
if
(
tempStorageEntity
==
null
)
{
if
(
tempStorageEntity
==
null
)
{
tempStorageEntity
=
new
TempStorageEntity
();
tempStorageEntity
.
setMailNo
(
tempOnRequest
.
getMailNo
());
tempStorageEntity
.
setMailNo
(
tempOnRequest
.
getMailNo
());
tempStorageEntity
.
setPlace
(
tempOnRequest
.
getPlace
());
tempStorageEntity
.
setPlace
(
tempOnRequest
.
getPlace
());
tempStorageImpl
.
save
(
tempStorageEntity
);
tempStorageImpl
.
save
(
tempStorageEntity
);
...
@@ -1828,5 +1896,18 @@ public class PddLocalController {
...
@@ -1828,5 +1896,18 @@ public class PddLocalController {
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
list
,
""
);
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
list
,
""
);
}
}
/* 修改出库单收货人邮编 */
@PostMapping
(
"/editReceiverPostCode"
)
public
JSONObject
editReceiverPostCode
(
HttpServletRequest
request
,
@RequestBody
EditPostCodeRequest
editPostCodeRequest
)
{
CollectReceiverDetailEntity
receiverDetailEntity
=
collectReceiverDetailImpl
.
getInfoByOrderCode
(
editPostCodeRequest
.
getOrderCode
());
if
(
receiverDetailEntity
==
null
)
{
return
JsonResponse
.
generateLocalCommonFailedResponse
(
"-1"
,
"收件信息不存在,无法编辑邮编"
);
}
receiverDetailEntity
.
setPostCode
(
editPostCodeRequest
.
getPostCode
());
if
(
collectReceiverDetailImpl
.
updateById
(
receiverDetailEntity
)){
return
JsonResponse
.
generateLocalCommonFailedResponse
(
"-1"
,
"修改失败"
);
}
return
JsonResponse
.
generateLocalCommonSuccessResponse
(
receiverDetailEntity
,
"修改成功"
);
}
}
}
PddServer/src/main/java/org/ta/pddserver/model/api/request/EditPostCodeRequest.java
0 → 100644
View file @
3c6cdd00
package
org
.
ta
.
pddserver
.
model
.
api
.
request
;
import
lombok.Data
;
@Data
public
class
EditPostCodeRequest
{
// 出库单号
String
orderCode
;
// 邮编
String
postCode
;
}
PddServer/src/main/java/org/ta/pddserver/model/api/request/FinishUnpackRequest.java
View file @
3c6cdd00
...
@@ -72,7 +72,7 @@ public class FinishUnpackRequest {
...
@@ -72,7 +72,7 @@ public class FinishUnpackRequest {
defaultValue
=
""
,
defaultValue
=
""
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
)
)
private
Long
length
;
private
Integer
length
;
@Schema
(
@Schema
(
description
=
"包裹宽度,单位默认为厘米"
,
description
=
"包裹宽度,单位默认为厘米"
,
...
@@ -80,7 +80,7 @@ public class FinishUnpackRequest {
...
@@ -80,7 +80,7 @@ public class FinishUnpackRequest {
defaultValue
=
""
,
defaultValue
=
""
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
)
)
private
Long
width
;
private
Integer
width
;
@Schema
(
@Schema
(
description
=
"包裹高度,单位默认为厘米"
,
description
=
"包裹高度,单位默认为厘米"
,
...
@@ -88,7 +88,7 @@ public class FinishUnpackRequest {
...
@@ -88,7 +88,7 @@ public class FinishUnpackRequest {
defaultValue
=
""
,
defaultValue
=
""
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
)
)
private
Long
height
;
private
Integer
height
;
@Schema
(
@Schema
(
description
=
"实重重量,单位默认为克"
,
description
=
"实重重量,单位默认为克"
,
...
@@ -96,7 +96,7 @@ public class FinishUnpackRequest {
...
@@ -96,7 +96,7 @@ public class FinishUnpackRequest {
defaultValue
=
""
,
defaultValue
=
""
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
// 必填
)
)
private
Long
weight
;
private
Integer
weight
;
}
}
...
...
PddServer/src/main/java/org/ta/pddserver/model/pddjy/request/PddServiceConsoCoBizActionNotifyRequest.java
View file @
3c6cdd00
...
@@ -69,27 +69,27 @@ public class PddServiceConsoCoBizActionNotifyRequest extends JYBaseRequestModel
...
@@ -69,27 +69,27 @@ public class PddServiceConsoCoBizActionNotifyRequest extends JYBaseRequestModel
/**
/**
* 包裹长度(必填,单位:厘米)
* 包裹长度(必填,单位:厘米)
*/
*/
private
Long
length
;
private
Integer
length
;
/**
/**
* 包裹宽度(必填,单位:厘米)
* 包裹宽度(必填,单位:厘米)
*/
*/
private
Long
width
;
private
Integer
width
;
/**
/**
* 包裹高度(必填,单位:厘米)
* 包裹高度(必填,单位:厘米)
*/
*/
private
Long
height
;
private
Integer
height
;
/**
/**
* 计费重量(必填,单位:克)
* 计费重量(必填,单位:克)
*/
*/
private
Long
weight
;
private
Integer
weight
;
/**
/**
* 实重重量(必填,单位:克)
* 实重重量(必填,单位:克)
*/
*/
private
Long
actualWeight
;
private
Integer
actualWeight
;
/**
/**
* 集运方式(必填)
* 集运方式(必填)
...
...
PddServer/src/main/resources/application.yaml
View file @
3c6cdd00
...
@@ -10,12 +10,12 @@ spring:
...
@@ -10,12 +10,12 @@ spring:
# url: jdbc:mysql://192.168.2.222:3306/pdd_api?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# url: jdbc:mysql://192.168.2.222:3306/pdd_api?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# username: root
# username: root
# password: root
# password: root
url
:
jdbc:mysql://lyhj-mysql.mysql.rds.aliyuncs.com:3306/pdd_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# url: jdbc:mysql://lyhj-mysql.mysql.rds.aliyuncs.com:3306/pdd_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
username
:
pdd
password
:
pdd123
# url: jdbc:mysql://rm-j6cv8n7zx12x0sqreuo.mysql.rds.aliyuncs.com:3306/pdd_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
# username: pdd
# username: pdd
# password: pdd123
# password: pdd123
url
:
jdbc:mysql://rm-j6cv8n7zx12x0sqreuo.mysql.rds.aliyuncs.com:3306/pdd_prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT
username
:
pdd
password
:
pdd123
hikari
:
hikari
:
minimum-idle
:
5
# 最小空闲连接数
minimum-idle
:
5
# 最小空闲连接数
maximum-pool-size
:
10
# 最大活跃连接数
maximum-pool-size
:
10
# 最大活跃连接数
...
@@ -41,4 +41,4 @@ mybatis-plus:
...
@@ -41,4 +41,4 @@ mybatis-plus:
pdd
:
pdd
:
jyt
:
0
jyt
:
0
gd
:
0
gd
:
0
lotto
:
1
lotto
:
0
\ No newline at end of file
\ No newline at end of file
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