作者 唐旭辉

修正 , 发货时,发货号的查重结果异常

@@ -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, "发货号已存在")
@@ -376,7 +376,7 @@ func (c *OrderInfoController) OrderPurposeDelivery() { @@ -376,7 +376,7 @@ func (c *OrderInfoController) OrderPurposeDelivery() {
376 c.ResponseError(errors.New("json数据解析失败")) 376 c.ResponseError(errors.New("json数据解析失败"))
377 return 377 return
378 } 378 }
379 - 379 + param.ShipmentsId = strings.TrimSpace(param.ShipmentsId)
380 orderid, _ := strconv.ParseInt(param.Id, 10, 64) 380 orderid, _ := strconv.ParseInt(param.Id, 10, 64)
381 if orderid <= 0 { 381 if orderid <= 0 {
382 c.ResponseError(errors.New("参数错误")) 382 c.ResponseError(errors.New("参数错误"))