|
@@ -664,7 +664,7 @@ func (this *TmpzcgfController) CapacityExpansion() {
|
|
|
svc.GetEntities(&goodsAptitudeClassList, whereclass)
|
|
svc.GetEntities(&goodsAptitudeClassList, whereclass)
|
|
|
|
|
|
|
|
// 扩充的编码
|
|
// 扩充的编码
|
|
|
- var entitys = make([]suppliercertsub.OilSupplierCertSub, len(goodsAptitudeClassList))
|
|
|
|
|
|
|
+ /** var entitys = make([]suppliercertsub.OilSupplierCertSub, len(goodsAptitudeClassList))
|
|
|
for idx, goodsAptitudeClass := range goodsAptitudeClassList {
|
|
for idx, goodsAptitudeClass := range goodsAptitudeClassList {
|
|
|
entitys[idx].SupplierId = supplierCertSub.SupplierId
|
|
entitys[idx].SupplierId = supplierCertSub.SupplierId
|
|
|
entitys[idx].SupplierCertId = supplierCertSub.SupplierCertId
|
|
entitys[idx].SupplierCertId = supplierCertSub.SupplierCertId
|
|
@@ -676,9 +676,23 @@ func (this *TmpzcgfController) CapacityExpansion() {
|
|
|
entitys[idx].CertSubStatus = supplierCertSub.CertSubStatus
|
|
entitys[idx].CertSubStatus = supplierCertSub.CertSubStatus
|
|
|
entitys[idx].Remark = "编码扩充"
|
|
entitys[idx].Remark = "编码扩充"
|
|
|
}
|
|
}
|
|
|
- svc.InsertEntityBytbl(OilSupplierCertSubName, &entitys)
|
|
|
|
|
- fmt.Println("编码扩充:")
|
|
|
|
|
- fmt.Println(entitys)
|
|
|
|
|
|
|
+ svc.InsertEntityBytbl(OilSupplierCertSubName, &entitys) */
|
|
|
|
|
+ // fmt.Println("编码扩充:")
|
|
|
|
|
+ // fmt.Println(entitys)
|
|
|
|
|
+
|
|
|
|
|
+ for _, goodsAptitudeClass := range goodsAptitudeClassList {
|
|
|
|
|
+ var entity suppliercertsub.OilSupplierCertSub
|
|
|
|
|
+ entity.SupplierId = supplierCertSub.SupplierId
|
|
|
|
|
+ entity.SupplierCertId = supplierCertSub.SupplierCertId
|
|
|
|
|
+ entity.SupplierTypeCode = supplierCertSub.SupplierTypeCode
|
|
|
|
|
+ entity.AppendStatus = supplierCertSub.AppendStatus
|
|
|
|
|
+ entity.Type = supplierCertSub.Type
|
|
|
|
|
+ entity.Name = goodsAptitudeClass.Name
|
|
|
|
|
+ entity.Code = goodsAptitudeClass.Code
|
|
|
|
|
+ entity.CertSubStatus = supplierCertSub.CertSubStatus
|
|
|
|
|
+ entity.Remark = "编码扩充"
|
|
|
|
|
+ svc.InsertEntityBytbl(OilSupplierCertSubName, &entity)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
wheredel := "Id = " + strconv.Itoa(supplierCertSub.Id)
|
|
wheredel := "Id = " + strconv.Itoa(supplierCertSub.Id)
|
|
|
svc.DeleteEntityBytbl(OilSupplierCertSubName, wheredel)
|
|
svc.DeleteEntityBytbl(OilSupplierCertSubName, wheredel)
|