Browse Source

删除接口调整

mainqaq 2 years ago
parent
commit
609d5d1e57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/supply_service.go

+ 1 - 1
service/supply_service.go View File

@@ -167,7 +167,7 @@ func GetSupplyAndContactOne(id int64) (supply models.SpSupplierName, contact []*
167 167
 
168 168
 //删除供应商及联系人
169 169
 func DelSupply(supply models.SpSupplierName) error {
170
-	err := XTWriteDB().Model(&supply).Where("id =? and status = 1", supply.ID).Updates(map[string]interface{}{"status": 0}).Error
170
+	err := XTWriteDB().Model(&supply).Update("status", 0).Error
171 171
 	return err
172 172
 }
173 173