优化
This commit is contained in:
@@ -202,7 +202,7 @@ public class FbaPricingRepository {
|
||||
LambdaUpdateWrapper<InboundPricingEntity> update = new LambdaUpdateWrapper<InboundPricingEntity>()
|
||||
.eq(InboundPricingEntity::getTenantId, inbound.getTenantId())
|
||||
.eq(InboundPricingEntity::getId, inbound.getId())
|
||||
.in(InboundPricingEntity::getFeeStatus, List.of("UNPRICED", "CALCULATED"))
|
||||
.in(InboundPricingEntity::getFeeStatus, List.of("UNPRICED", "CALCULATED", "VOIDED"))
|
||||
.set(InboundPricingEntity::getChannelCode, channelCode)
|
||||
.set(InboundPricingEntity::getChannelName, channelName)
|
||||
.set(InboundPricingEntity::getFeeStatus, "UNPRICED")
|
||||
|
||||
+2
-1
@@ -129,7 +129,8 @@ public class OrderChannelChangePricingService {
|
||||
|| feeItems.findPublishedFreight(inbound.getTenantId(), inbound.getId()) != null) {
|
||||
throw conflict("费用已确认或已发布,渠道不可变更;请先按费用作废流程处理");
|
||||
}
|
||||
if (!"UNPRICED".equals(inbound.getFeeStatus()) && !"CALCULATED".equals(inbound.getFeeStatus())) {
|
||||
if (!"UNPRICED".equals(inbound.getFeeStatus()) && !"CALCULATED".equals(inbound.getFeeStatus())
|
||||
&& !"VOIDED".equals(inbound.getFeeStatus())) {
|
||||
throw conflict("当前费用状态不可逆,渠道不可变更");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user