浏览代码

冲突fix

zwxi 10 月之前
父节点
当前提交
61896426ba
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      models/edb_data_base.go

+ 0 - 12
models/edb_data_base.go

@@ -249,15 +249,3 @@ type EditEdbBaseInfoReq struct {
 	UnitEn          string `description:"英文单位"`
 	ClassifyId      int    `description:"分类id"`
 }
-
-func DelEdbDataByMysql(to orm.TxOrmer, edbInfoId int, tableName string, removeDateList []string) (err error) {
-	if len(removeDateList) <= 0 {
-		return
-	}
-	// 移除不存在的日期数据
-	removeDateStr := strings.Join(removeDateList, `","`)
-	removeDateStr = `"` + removeDateStr + `"`
-	sql := fmt.Sprintf(` DELETE FROM %s WHERE edb_info_id = ? and data_time in (%s) `, tableName, removeDateStr)
-	_, err = to.Raw(sql, edbInfoId).Exec()
-	return
-}