|
@@ -511,7 +511,7 @@ func (service OrderInfoService) Delivery(cmd command.OrderDeliveryCommand) error |
|
@@ -511,7 +511,7 @@ func (service OrderInfoService) Delivery(cmd command.OrderDeliveryCommand) error |
511
|
return lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
511
|
return lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
512
|
}
|
512
|
}
|
513
|
//检查delivery_code是否重复
|
513
|
//检查delivery_code是否重复
|
514
|
- if ok, err := orderBaseDao.DeliveryCodeExist(cmd.DeliveryCode, cmd.OrderId); err != nil {
|
514
|
+ if ok, err := orderBaseDao.DeliveryCodeExist(cmd.DeliveryCode, cmd.CompanyId, cmd.OrderId); err != nil {
|
515
|
return lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
515
|
return lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
516
|
} else if ok {
|
516
|
} else if ok {
|
517
|
return lib.ThrowError(lib.BUSINESS_ERROR, "发货号已存在")
|
517
|
return lib.ThrowError(lib.BUSINESS_ERROR, "发货号已存在")
|