aa
This commit is contained in:
@@ -2798,10 +2798,8 @@ func UpdateVendorCategoryMap(ctx *jxcontext.Context, ID int, vendorCategoryMap *
|
|||||||
}
|
}
|
||||||
if vendorCategoryMap.CategoryID != 0 {
|
if vendorCategoryMap.CategoryID != 0 {
|
||||||
valid["categoryID"] = vendorCategoryMap.CategoryID
|
valid["categoryID"] = vendorCategoryMap.CategoryID
|
||||||
fmt.Println("111111", utils.Format4Output(vendorCategoryMap2, false))
|
|
||||||
if !isDelete {
|
if !isDelete {
|
||||||
storeCatMaps, _ := dao.GetVendorCategoryMap(db, -1, 0, vendorCategoryMap2.VendorID, vendorCategoryMap2.VendorOrgCode, vendorCategoryMap.CategoryID)
|
storeCatMaps, _ := dao.GetVendorCategoryMap(db, -1, 0, vendorCategoryMap2.VendorID, vendorCategoryMap2.VendorOrgCode, vendorCategoryMap.CategoryID)
|
||||||
fmt.Println("2222222", utils.Format4Output(storeCatMaps, false))
|
|
||||||
if len(storeCatMaps) > 0 {
|
if len(storeCatMaps) > 0 {
|
||||||
for _, v := range storeCatMaps {
|
for _, v := range storeCatMaps {
|
||||||
if v.ID != ID {
|
if v.ID != ID {
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ func GetVendorCategoryMap(db *DaoDB, parentID, level, vendorID int, vendorOrgCod
|
|||||||
sqlParams = append(sqlParams, vendorOrgCode)
|
sqlParams = append(sqlParams, vendorOrgCode)
|
||||||
}
|
}
|
||||||
if categoryID > 0 {
|
if categoryID > 0 {
|
||||||
sql += " AND a.categoryID = ?"
|
sql += " AND a.category_id = ?"
|
||||||
sqlParams = append(sqlParams, categoryID)
|
sqlParams = append(sqlParams, categoryID)
|
||||||
}
|
}
|
||||||
err = GetRows(db, &vendorMaps, sql, sqlParams)
|
err = GetRows(db, &vendorMaps, sql, sqlParams)
|
||||||
|
|||||||
Reference in New Issue
Block a user