|
|
@@ -84,6 +84,12 @@ func (s DeliverOrderService) Get(ctx context.Context, id int) (*work.DeliverOrde
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
+ Contract, err := s.ContractDao.Where("id =?", ent.ContractId).One()
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ ent.DistributorId = Contract.DistributorId
|
|
|
+ ent.DistributorName = Contract.DistributorName
|
|
|
if ent == nil {
|
|
|
return nil, myerrors.TipsError("工单不存在")
|
|
|
}
|
|
|
@@ -101,6 +107,7 @@ func (s DeliverOrderService) Get(ctx context.Context, id int) (*work.DeliverOrde
|
|
|
if product == nil {
|
|
|
product = []*work.DeliverOrderProduct{}
|
|
|
}
|
|
|
+
|
|
|
proj, err := s.ProjBusinessDao.Where("id = ?", ent.ProjectId).One()
|
|
|
if err != nil {
|
|
|
return nil, err
|