|
|
@@ -459,6 +459,11 @@ func (s *OrderService) CreateWorkOrderByTrainSaleApply(ctx context.Context, req
|
|
|
data.AssignUserName = apply.InstructorRequire
|
|
|
data.EndTime = gtime.NewFromStr(endTime)
|
|
|
data.TrainSaleApplyId = apply.Id
|
|
|
+ id, err := s.Dao.DB.Model("sys_user").Where(fmt.Sprintf("nick_name='%v'", apply.InstructorRequire)).Fields("id").Value()
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ data.AssignUserId = gconv.Int(id)
|
|
|
|
|
|
service.SetCreatedInfo(data, s.GetCxtUserId(), s.GetCxtUserName())
|
|
|
|