|
|
@@ -1519,7 +1519,7 @@ func (this *OilBasisBuildController) CreateContrast() {
|
|
|
if list != nil {
|
|
|
var supplierCertSubList []suppliercertsub.OilSupplierCertSub
|
|
|
total := svc.GetTableTotal(" SupplierTypeCode='02' AND SupplierId = "+strconv.Itoa(item.Id), &supplierCertSubList)
|
|
|
- total1 := svc.GetNoSubCntTotal("a.SupplierTypeCode = '02' and c.ClassId is null and a.SupplierId = " + strconv.Itoa(item.Id))
|
|
|
+ total1 := svc.GetNoSubCntTotal("a.SupplierTypeCode = '02' and b.Id is null and a.SupplierId = " + strconv.Itoa(item.Id))
|
|
|
list[0].SubCnt = int(total)
|
|
|
list[0].NoSubCnt = int(total1)
|
|
|
list[0].SetupTime = time.Now()
|
|
|
@@ -1633,11 +1633,6 @@ func (this *OilBasisBuildController) GetDelCertSubList() {
|
|
|
where = where + " and a.Type in (1, 3)"
|
|
|
svc := basisbuild.GetOilBasisBuildService(utils.DBE)
|
|
|
var list []suppliercertsub.OilSupplierCertSub1
|
|
|
- var co supplier.OilSupplierContrast
|
|
|
- svc.GetEntityById(SupplierId, &co)
|
|
|
- if co.IsDelete == 1 {
|
|
|
- where += " and a.IsQuestion = 1"
|
|
|
- }
|
|
|
total := svc.GetPagingTmpSubEntities(page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
a := 0
|
|
|
for _, item := range list {
|
|
|
@@ -1701,8 +1696,9 @@ func (this *OilBasisBuildController) DeleteUpdate() {
|
|
|
svc.GetEntitysByWhere(OilBasisBuildName, "1=1", &list1)
|
|
|
for _,item := range list1{
|
|
|
var subDelete suppliercertsub.OilSupplierCertSub1
|
|
|
- cols := []string{"Code"}
|
|
|
+ cols := []string{"SubClassId", "Code"}
|
|
|
subDelete.Code = item.Code
|
|
|
+ subDelete.SubClassId = item.Id
|
|
|
err = svc.UpdateEntityBywheretbl(OilSupplierCertSubName, &subDelete, cols, "SupplierTypeCode = '02' and Name = '" + item.Name + "'")
|
|
|
}
|
|
|
var list []goodsaptitude.Ids
|