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
dbd8ecde
Commit
dbd8ecde
authored
Oct 25, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
57aa743c
8730c577
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
139 additions
and
301 deletions
+139
-301
20241024.sql
sql/v2.1/20241024.sql
+3
-0
WorkFlowEmus.java
.../java/cn/iocoder/yudao/module/bpm/enums/WorkFlowEmus.java
+1
-0
BmpOrderWarehouseingResultListener.java
...ce/order/listener/BmpOrderWarehouseingResultListener.java
+30
-0
OrderStatusMsgEnum.java
.../iocoder/yudao/module/order/enums/OrderStatusMsgEnum.java
+0
-1
OfferDO.java
...coder/yudao/module/sale/dal/dataobject/offer/OfferDO.java
+5
-0
OfferMapper.java
...ocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
+45
-50
ErrorCodeConstants.java
...n/iocoder/yudao/module/sale/enums/ErrorCodeConstants.java
+2
-0
OfferServiceImpl.java
...udao/module/sale/service/offer/impl/OfferServiceImpl.java
+30
-0
OfferBaseVO.java
...va/cn/iocoder/yudao/module/sale/vo/offer/OfferBaseVO.java
+4
-0
OfferPageReqVO.java
...cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
+3
-0
OfferRespVO.java
...va/cn/iocoder/yudao/module/sale/vo/offer/OfferRespVO.java
+11
-3
application-dev.yaml
yudao-server/src/main/resources/application-dev.yaml
+1
-1
application-sit.yaml
yudao-server/src/main/resources/application-sit.yaml
+0
-246
messages_en.properties
yudao-server/src/main/resources/i18n/messages_en.properties
+2
-0
messages_zh.properties
yudao-server/src/main/resources/i18n/messages_zh.properties
+2
-0
No files found.
sql/v2.1/20241024.sql
0 → 100644
View file @
dbd8ecde
-- 增加报价单目的国字段
alter
table
ecw_offer
add
COLUMN
dest_country_id
bigint
DEFAULT
0
comment
'目的国id'
;
update
ecw_offer
o
join
ecw_warehouse_line
l
on
o
.
line_id
=
l
.
id
join
ecw_warehouse
w
on
w
.
id
=
l
.
dest_warehouse_id
set
o
.
dest_country_id
=
w
.
guojia
;
\ No newline at end of file
yudao-module-bpm/yudao-module-bpm-api/src/main/java/cn/iocoder/yudao/module/bpm/enums/WorkFlowEmus.java
View file @
dbd8ecde
...
...
@@ -95,6 +95,7 @@ public enum WorkFlowEmus {
SHIPMENT_LINE_WEIGHT_ALLOW_OVER
(
"shipment_line_weight_allow_over"
,
"出货审批-允许超出线路重量上限审核"
),
ORDER_OVERSEAS_WAREHOUSE_CHANGE
(
"order_overseas_warehouse_change"
,
"订单审批-海外仓修改申请"
),
ORDER_CONSIGNEE_LIMIT_CHANGE
(
"order_consignee_limit_change"
,
"订单审批-收货人限制修改申请"
),
ORDER_WAREHOUSING
(
"order_warehousing"
,
"订单审批-入仓申请"
),
;
private
String
key
;
private
String
value
;
...
...
yudao-module-bpm/yudao-module-bpm-base/src/main/java/cn/iocoder/yudao/module/bpm/service/order/listener/BmpOrderWarehouseingResultListener.java
0 → 100644
View file @
dbd8ecde
package
cn
.
iocoder
.
yudao
.
module
.
bpm
.
service
.
order
.
listener
;
import
cn.iocoder.yudao.module.bpm.enums.WorkFlowEmus
;
import
cn.iocoder.yudao.module.bpm.framework.bpm.core.event.BpmProcessInstanceResultEvent
;
import
cn.iocoder.yudao.module.bpm.framework.bpm.core.event.BpmProcessInstanceResultEventListener
;
import
cn.iocoder.yudao.module.order.service.order.OrderService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
@Component
@Slf4j
public
class
BmpOrderWarehouseingResultListener
extends
BpmProcessInstanceResultEventListener
{
@Resource
OrderService
orderService
;
@Override
protected
String
getProcessDefinitionKey
()
{
return
WorkFlowEmus
.
ORDER_WAREHOUSING
.
getKey
();
}
@Override
protected
void
onEvent
(
BpmProcessInstanceResultEvent
event
)
{
log
.
info
(
"----------------------入仓申请----------------------,{},{}"
+
event
.
getBusinessKey
(),
event
.
getResult
());
//orderService.approvalOrder(event.getBusinessKey(), event.getResult());
}
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/enums/OrderStatusMsgEnum.java
View file @
dbd8ecde
...
...
@@ -225,5 +225,4 @@ public enum OrderStatusMsgEnum {
return
99999
;
}
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/dal/dataobject/offer/OfferDO.java
View file @
dbd8ecde
...
...
@@ -8,6 +8,8 @@ import java.util.*;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO
;
import
javax.validation.constraints.NotNull
;
/**
* 报价单管理 DO
...
...
@@ -70,6 +72,9 @@ public class OfferDO extends BaseDO {
* 始发地信息
*/
private
String
departure
;
@ApiModelProperty
(
value
=
"目的地国ID"
)
private
Long
destCountryId
;
/**
* 目的地
*/
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
View file @
dbd8ecde
This diff is collapsed.
Click to expand it.
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/enums/ErrorCodeConstants.java
View file @
dbd8ecde
...
...
@@ -65,5 +65,7 @@ public interface ErrorCodeConstants {
ErrorCode
ORDER_ASSOCIATION_OFFER_NO_CAN_UPDATE
=
new
ErrorCode
(
1004010052
,
"order.association.offer.no.can.update"
);
ErrorCode
ORDER_BOUND_OFFER
=
new
ErrorCode
(
1004010053
,
"order.bound.offer"
);
ErrorCode
OFFER_LINE_NOT_EXIST
=
new
ErrorCode
(
1004010054
,
"line.not.exist"
);
ErrorCode
OFFER_DEPARTURE_OBJECTIVE_AND_LINE_NOT_AGREEMENT
=
new
ErrorCode
(
1004010055
,
"offer.departure.objective.and.line.not.agreement"
);
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/offer/impl/OfferServiceImpl.java
View file @
dbd8ecde
...
...
@@ -209,6 +209,18 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
if
(
Objects
.
nonNull
(
createReqVO
.
getEstCostVO
()))
{
offer
.
setEstCost
(
JSONObject
.
toJSONString
(
createReqVO
.
getEstCostVO
()));
}
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
createReqVO
.
getLineId
());
if
(
Objects
.
isNull
(
logisticsInfoDto
))
{
throw
exception
(
OFFER_LINE_NOT_EXIST
);
}
if
(!
Objects
.
equals
(
logisticsInfoDto
.
getStartCityId
(),
createReqVO
.
getDepartureId
())
||
!
Objects
.
equals
(
logisticsInfoDto
.
getDestCityId
(),
createReqVO
.
getObjectiveId
())
||
!
Objects
.
equals
(
logisticsInfoDto
.
getDestCountryId
(),
createReqVO
.
getDestCountryId
()))
{
throw
exception
(
OFFER_DEPARTURE_OBJECTIVE_AND_LINE_NOT_AGREEMENT
);
}
// offer.setStatus(2);// 确认中
// 查询始发地与目的地信息
RegionDO
departure
=
regionService
.
getRegion
(
offer
.
getDepartureId
());
...
...
@@ -534,6 +546,18 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
if
(
Objects
.
nonNull
(
updateReqVO
.
getEstCostVO
()))
{
updateObj
.
setEstCost
(
JSONObject
.
toJSONString
(
updateReqVO
.
getEstCostVO
()));
}
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
updateReqVO
.
getLineId
());
if
(
Objects
.
isNull
(
logisticsInfoDto
))
{
throw
exception
(
OFFER_LINE_NOT_EXIST
);
}
if
(!
Objects
.
equals
(
logisticsInfoDto
.
getStartCityId
(),
updateReqVO
.
getDepartureId
())
||
!
Objects
.
equals
(
logisticsInfoDto
.
getDestCityId
(),
updateReqVO
.
getObjectiveId
())
||
!
Objects
.
equals
(
logisticsInfoDto
.
getDestCountryId
(),
updateReqVO
.
getDestCountryId
()))
{
throw
exception
(
OFFER_DEPARTURE_OBJECTIVE_AND_LINE_NOT_AGREEMENT
);
}
// 查询始发地与目的地信息
RegionDO
departure
=
regionService
.
getRegion
(
updateReqVO
.
getDepartureId
());
if
(
Objects
.
isNull
(
departure
)
||
(!
StrUtil
.
equals
(
departure
.
getType
(),
"2"
)
&&
!
StrUtil
.
equals
(
departure
.
getType
(),
"3"
)))
{
...
...
@@ -642,7 +666,12 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
if
(
CollectionUtil
.
isEmpty
(
offerProdDOList
))
{
throw
exception
(
OFFER_PROD_NOT_NULL
);
}
respVO
.
setOfferProdRespVOList
(
OfferProdConvert
.
INSTANCE
.
convertList
(
offerProdDOList
));
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
respVO
.
getLineId
());
respVO
.
setLogisticsInfoDto
(
logisticsInfoDto
);
return
respVO
;
}
...
...
@@ -947,6 +976,7 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
createReqVO
.
setType
(
offerDO
.
getServiceType
());
createReqVO
.
setChannelId
(
channelId
);
createReqVO
.
setLineId
(
lineId
);
createReqVO
.
setType
(
offerDO
.
getServiceType
());
createReqVO
.
setTransportId
(
offerDO
.
getTransportId
());
createReqVO
.
setShippingCompany
(
offerTransportDO
.
getShippingCompany
());
createReqVO
.
setAirlineCompany
(
offerTransportDO
.
getAirlineCompany
());
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferBaseVO.java
View file @
dbd8ecde
...
...
@@ -60,6 +60,10 @@ public class OfferBaseVO {
@NotNull
(
message
=
"objective.not.exists"
)
private
Long
objectiveId
;
@ApiModelProperty
(
value
=
"目的地国ID"
)
@NotNull
(
message
=
"目的国不能为空"
)
private
Long
destCountryId
;
// @ApiModelProperty(value = "目的地信息")
// private String objective;
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
View file @
dbd8ecde
...
...
@@ -174,6 +174,9 @@ public class OfferPageReqVO extends PageParam {
@ApiModelProperty
(
value
=
"目的地id集合"
)
private
List
<
Long
>
objectiveIds
;
@ApiModelProperty
(
value
=
"目的仓ID集合"
)
private
List
<
Long
>
startWarehouseIds
;
@ApiModelProperty
(
value
=
"目的仓ID集合"
)
private
List
<
Long
>
destWarehouseIds
;
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferRespVO.java
View file @
dbd8ecde
package
cn
.
iocoder
.
yudao
.
module
.
sale
.
vo
.
offer
;
import
cn.iocoder.yudao.module.depository.dto.LogisticsInfoDto
;
import
cn.iocoder.yudao.module.sale.vo.offer.prod.OfferProdRespVO
;
import
cn.iocoder.yudao.module.sale.vo.offer.transport.OfferTransportCreateReqVO
;
import
cn.iocoder.yudao.module.sale.vo.offer.transport.OfferTransportRespVO
;
...
...
@@ -32,7 +33,10 @@ public class OfferRespVO extends OfferBaseVO {
private
OfferTransportRespVO
transportVO
;
@ApiModelProperty
(
value
=
"报价单商品列表"
)
List
<
OfferProdRespVO
>
offerProdRespVOList
;
private
List
<
OfferProdRespVO
>
offerProdRespVOList
;
@ApiModelProperty
(
value
=
"物流信息"
)
private
LogisticsInfoDto
logisticsInfoDto
;
@ApiModelProperty
(
value
=
"始发地名称"
)
private
String
departureName
;
...
...
@@ -59,10 +63,14 @@ public class OfferRespVO extends OfferBaseVO {
// 线路相关
@
Exc
elProperty
(
"始发仓库id"
)
@
ApiMod
elProperty
(
"始发仓库id"
)
private
Long
startWarehouseId
;
@ExcelProperty
(
"目的仓库id"
)
@ApiModelProperty
(
"始发仓库名称"
)
private
String
startWarehouseName
;
@ApiModelProperty
(
"目的仓库id"
)
private
Long
destWarehouseId
;
@ApiModelProperty
(
"目的仓库名称"
)
private
String
destWarehouseName
;
@ExcelProperty
(
"运输方式"
)
private
String
transportType
;
...
...
yudao-server/src/main/resources/application-dev.yaml
View file @
dbd8ecde
...
...
@@ -170,7 +170,7 @@ spring:
logging
:
level
:
root
:
INFO
cn.iocoder.yudao
:
DEBUG
cn.iocoder.yudao
:
INFO
---
#################### 微信公众号相关配置 ####################
wx
:
# 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
...
...
yudao-server/src/main/resources/application-sit.yaml
deleted
100644 → 0
View file @
57aa743c
This diff is collapsed.
Click to expand it.
yudao-server/src/main/resources/i18n/messages_en.properties
View file @
dbd8ecde
...
...
@@ -645,7 +645,9 @@ order.cargo.control.cancel.pick.reject=The release record of the control order i
order.cargo.control.cancel.pick.cancel
=
The release record of the control order has been cancelled
warehouse.in.item.quantity.required
=
warehouse in item quantity required
order.line.not.exist
=
Order line does not exist
line.not.exist
=
The line does not exist
order.departure.objective.and.line.not.agreement
=
The order origin destination is inconsistent with the route
offer.departure.objective.and.line.not.agreement
=
The offer origin destination is inconsistent with the route
transport.and.line.not.agreement
=
The shipping method of the order does not match the route information. Please reselect the route information
prod.brand.not.null
=
brand is not null or zero
preload.not.exist
=
Goods are not pre-loaded in the shipment order
...
...
yudao-server/src/main/resources/i18n/messages_zh.properties
View file @
dbd8ecde
...
...
@@ -651,7 +651,9 @@ order.cargo.control.cancel.pick.reject=\u63A7\u8D27\u8BA2\u5355\u5DF2\u653E\u8D2
order.cargo.control.cancel.pick.cancel
=
\u
63A7
\u
8D27
\u
8BA2
\u5355\u
5DF2
\u
653E
\u
8D27
\u
8BB0
\u
5F55
\u
8C03
\u
8D27
\u
5BA1
\u6279\u
53D6
\u
6D88
warehouse.in.item.quantity.required
=
\u5165\u
4ED3
\u9879\u6570\u
91CF
\u
5FC5
\u
586B
order.line.not.exist
=
\u
8BA2
\u5355\u
7EBF
\u
8DEF
\u
4E0D
\u
5B58
\u5728
line.not.exist
=
\u
7ebf
\u
8def
\u
4e0d
\u
5b58
\u5728
order.departure.objective.and.line.not.agreement
=
\u
8BA2
\u5355\u
59CB
\u
53D1
\u5730\u
76EE
\u7684\u5730\u
4E0E
\u
7EBF
\u
8DEF
\u
4E0D
\u
4E00
\u
81F4
offer.departure.objective.and.line.not.agreement
=
\u
62a5
\u
4ef7
\u5355\u
59cb
\u
53d1
\u5730\u
76ee
\u7684\u5730\u
4e0e
\u
7ebf
\u
8def
\u
4e0d
\u
4e00
\u
81f4
transport.and.line.not.agreement
=
\u
8BA2
\u5355\u
8FD0
\u
8F93
\u
65B9
\u
5F0F
\u
4E0E
\u
7EBF
\u
8DEF
\u
4FE1
\u
606F
\u
4E0D
\u5339\u
914D
\u
FF0C
\u
8BF7
\u
91CD
\u
65B0
\u9009\u
62E9
\u
7EBF
\u
8DEF
\u
4FE1
\u
606F
prod.brand.not.null
=
\u
54C1
\u
724C
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u6216
0
preload.not.exist
=
\u
51FA
\u
8D27
\u5355\u
672A
\u9884\u
88C5
\u
8D27
\u7269
...
...
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