liujiandao
2023-10-11 34ef7217a034599217a7fdd1e28e1ae6910e1b4b
api/v1/saleChance.go
@@ -38,6 +38,14 @@
      return
   }
   if params.CodeRule.Method == 1 {
      autoCode := model.GetAutoCode(saleChance.Id, &params.CodeRule)
      m := map[string]interface{}{
         "number": autoCode,
      }
      _ = model.NewSaleChanceSearch().SetId(saleChance.Id).UpdateByMap(m)
   }
   ctx.Ok()
}
@@ -179,6 +187,7 @@
   sc.Address.CityId = saleChance.Address.CityId
   sc.Address.CountryId = saleChance.Address.CountryId
   sc.Address.ProvinceId = saleChance.Address.ProvinceId
   sc.CodeStandID = saleChance.CodeStandID
   return ecode.OK, sc
}