Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
dd0cc472
Commit
dd0cc472
authored
Sep 13, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自编号状态防重复提交错误提示修正
parent
3976f929
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
20 deletions
+19
-20
ErrorCodeConstants.java
...coder/yudao/module/shipment/enums/ErrorCodeConstants.java
+1
-0
BoxApprovalController.java
...dule/shipment/controller/admin/BoxApprovalController.java
+2
-2
BoxController.java
...yudao/module/shipment/controller/admin/BoxController.java
+2
-14
BoxCustomsController.java
...odule/shipment/controller/admin/BoxCustomsController.java
+2
-2
messages.properties
yudao-server/src/main/resources/i18n/messages.properties
+4
-1
messages_en.properties
yudao-server/src/main/resources/i18n/messages_en.properties
+4
-0
messages_zh.properties
yudao-server/src/main/resources/i18n/messages_zh.properties
+4
-1
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/enums/ErrorCodeConstants.java
View file @
dd0cc472
...
...
@@ -121,5 +121,6 @@ public interface ErrorCodeConstants {
ErrorCode
CASE_NUM_IN_MERGE_PKG
=
new
ErrorCode
(
1109010058
,
"case.num.in.merge.pkg"
);
ErrorCode
ORDER_IN_MERGE_PKG
=
new
ErrorCode
(
1109010059
,
"order.already.in.merge.pkg"
);
ErrorCode
BOX_UPDATE_REPEAT_COMMIT
=
new
ErrorCode
(
1109010060
,
"box.update.repeat.commit"
);
}
\ No newline at end of file
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxApprovalController.java
View file @
dd0cc472
...
...
@@ -41,8 +41,8 @@ import java.util.concurrent.TimeUnit;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
.
CommonResult
.
error
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
.
CommonResult
.
success
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
operatelog
.
core
.
enums
.
OperateTypeEnum
.
EXPORT
;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
ORDER_UPDATE_REPEAT_COMMIT
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
controller
.
admin
.
constant
.
Constant
.
BOX_UPDATE_KEY
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
enums
.
ErrorCodeConstants
.
BOX_UPDATE_REPEAT_COMMIT
;
@Validated
@RestController
...
...
@@ -73,7 +73,7 @@ public class BoxApprovalController {
String
redisKey
=
MessageFormat
.
format
(
BOX_UPDATE_KEY
,
createReqVO
.
getShipmentId
().
toString
());
Long
count
=
redisHelper
.
incrBy
(
redisKey
,
1
);
if
(
count
>
1
)
{
return
error
(
ORDER
_UPDATE_REPEAT_COMMIT
);
return
error
(
BOX
_UPDATE_REPEAT_COMMIT
);
}
redisHelper
.
expire
(
redisKey
,
1
,
TimeUnit
.
MINUTES
);
try
{
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxController.java
View file @
dd0cc472
package
cn
.
iocoder
.
yudao
.
module
.
shipment
.
controller
.
admin
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent
;
import
cn.iocoder.yudao.framework.limiter.dynamic.DynamicRateLimiter
;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.framework.redis.helper.RedisHelper
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.region.RegionDO
;
import
cn.iocoder.yudao.module.order.dto.ContainerNumberSummaryDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCostSummaryDto
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackPageVO
;
import
cn.iocoder.yudao.module.order.vo.order.OrderBackVO
;
import
cn.iocoder.yudao.module.order.vo.orderSplit.OrderSplitBackVO
;
import
cn.iocoder.yudao.module.shipment.convert.BoxConvert
;
import
cn.iocoder.yudao.module.shipment.dal.dataobject.BoxDO
;
import
cn.iocoder.yudao.module.shipment.enums.SlStatueEnum
;
import
cn.iocoder.yudao.module.shipment.vo.boxTally.BoxOrderLocationUpdateReq
;
import
cn.iocoder.yudao.module.shipment.vo.boxTally.BoxTallyBackVO
;
import
cn.iocoder.yudao.module.system.api.file.FileMakeApi
;
import
cn.iocoder.yudao.module.system.api.file.dto.FileMakeReqDTO
;
import
cn.iocoder.yudao.module.system.enums.download.DownloadTypeEnum
;
import
cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.alibaba.excel.write.metadata.fill.FillConfig
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,7 +28,6 @@ import io.swagger.annotations.*;
import
javax.validation.*
;
import
javax.servlet.http.*
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.text.MessageFormat
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -53,9 +42,8 @@ import cn.iocoder.yudao.framework.excel.util.ExcelUtils;
import
cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
operatelog
.
core
.
enums
.
OperateTypeEnum
.*;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
ORDER_UPDATE_REPEAT_COMMIT
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
controller
.
admin
.
constant
.
Constant
.
BOX_UPDATE_KEY
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
enums
.
ErrorCodeConstants
.
BOX_
REPORT_NOT_EXIS
T
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
enums
.
ErrorCodeConstants
.
BOX_
UPDATE_REPEAT_COMMI
T
;
import
cn.iocoder.yudao.module.shipment.vo.box.*
;
import
cn.iocoder.yudao.module.shipment.service.box.BoxService
;
...
...
@@ -120,7 +108,7 @@ public class BoxController {
String
redisKey
=
MessageFormat
.
format
(
BOX_UPDATE_KEY
,
updateReqVO
.
getId
().
toString
());
Long
count
=
redisHelper
.
incrBy
(
redisKey
,
1
);
if
(
count
>
1
)
{
return
error
(
ORDER
_UPDATE_REPEAT_COMMIT
);
return
error
(
BOX
_UPDATE_REPEAT_COMMIT
);
}
redisHelper
.
expire
(
redisKey
,
1
,
TimeUnit
.
MINUTES
);
try
{
...
...
yudao-module-shipment/yudao-module-shipment-rest/src/main/java/cn/iocoder/yudao/module/shipment/controller/admin/BoxCustomsController.java
View file @
dd0cc472
...
...
@@ -29,8 +29,8 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
import
cn.iocoder.yudao.framework.excel.util.ExcelUtils
;
import
cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
operatelog
.
core
.
enums
.
OperateTypeEnum
.*;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
ORDER_UPDATE_REPEAT_COMMIT
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
controller
.
admin
.
constant
.
Constant
.
BOX_UPDATE_KEY
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
enums
.
ErrorCodeConstants
.
BOX_UPDATE_REPEAT_COMMIT
;
@Validated
@RestController
...
...
@@ -58,7 +58,7 @@ public class BoxCustomsController {
String
redisKey
=
MessageFormat
.
format
(
BOX_UPDATE_KEY
,
updateReqVO
.
getShipmentId
().
toString
());
Long
count
=
redisHelper
.
incrBy
(
redisKey
,
1
);
if
(
count
>
1
)
{
return
error
(
ORDER
_UPDATE_REPEAT_COMMIT
);
return
error
(
BOX
_UPDATE_REPEAT_COMMIT
);
}
redisHelper
.
expire
(
redisKey
,
1
,
TimeUnit
.
MINUTES
);
try
{
...
...
yudao-server/src/main/resources/i18n/messages.properties
View file @
dd0cc472
...
...
@@ -267,4 +267,7 @@ order.item.is.pay.advance.not.null=
order.item.freight.currency.not.null
=
order.item.freight.unit.not.null
=
order.item.clearance.currency.not.null
=
order.item.clearance.unit.not.null
=
\ No newline at end of file
order.item.clearance.unit.not.null
=
box.update.repeat.commit
=
\ No newline at end of file
yudao-server/src/main/resources/i18n/messages_en.properties
View file @
dd0cc472
...
...
@@ -1006,3 +1006,7 @@ order.item.freight.currency.not.null=The currency unit for the shipping cost of
order.item.freight.unit.not.null
=
The unit of measurement for shipping fees for order items cannot be empty
order.item.clearance.currency.not.null
=
Customs clearance fee for order goods, currency unit cannot be empty
order.item.clearance.unit.not.null
=
The unit of measurement for customs clearance fees for order goods cannot be empty
box.update.repeat.commit
=
Duplicate submission of self assigned number status modification
\ No newline at end of file
yudao-server/src/main/resources/i18n/messages_zh.properties
View file @
dd0cc472
...
...
@@ -1007,4 +1007,7 @@ order.item.is.pay.advance.not.null=\u8ba2\u5355\u5546\u54c1\u662f\u5426\u9884\u4
order.item.freight.currency.not.null
=
\u
8ba2
\u5355\u5546\u
54c1
\u
8fd0
\u
8d39
\u
8d27
\u
5e01
\u5355\u
4f4d
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
order.item.freight.unit.not.null
=
\u
8ba2
\u5355\u5546\u
54c1
\u
8fd0
\u
8d39
\u
8ba1
\u
91cf
\u5355\u
4f4d
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
order.item.clearance.currency.not.null
=
\u
8ba2
\u5355\u5546\u
54c1
\u
6e05
\u5173\u
8d39
\u
8d27
\u
5e01
\u5355\u
4f4d
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
order.item.clearance.unit.not.null
=
\u
8ba2
\u5355\u5546\u
54c1
\u
6e05
\u5173\u
8d39
\u
8ba1
\u
91cf
\u5355\u
4f4d
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
\ No newline at end of file
order.item.clearance.unit.not.null
=
\u
8ba2
\u5355\u5546\u
54c1
\u
6e05
\u5173\u
8d39
\u
8ba1
\u
91cf
\u5355\u
4f4d
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
box.update.repeat.commit
=
\u
81ea
\u
7f16
\u
53f7
\u
72b6
\u6001\u
4fee
\u6539\u
91cd
\u
590d
\u
63d0
\u
4ea4
\ 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