|
|
|
@ -81,7 +81,7 @@ func RemoveDatasource(id string, model *models.TDataexDatasource) (bool, string,
|
|
|
|
|
|
|
|
|
|
func GetDatasourceCountByCode(code string) int64 {
|
|
|
|
|
business := new(models.TDataexDatasource)
|
|
|
|
|
total, err := db.Where("code =?", code).Count(business)
|
|
|
|
|
total, err := db.Where("datasource_code =?", code).Count(business)
|
|
|
|
|
if err != nil {
|
|
|
|
|
LogUtil.Error(ErrorConst.SqlQueryError, "数据库操作发生严重错误:"+err.Error())
|
|
|
|
|
}
|
|
|
|
|