- 优化查询
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is failing Details

master v1.0.34
李光春 2 years ago
parent a3f7861e39
commit 6e18e66c63

@ -8,6 +8,12 @@ import (
"strings"
)
// TaskTakeId 查询单任务
func (j *JobsGorm) TaskTakeId(tx *gorm.DB, id uint) (result jobs_gorm_model.Task) {
tx.Where("id = ?", id).Take(&result)
return result
}
// TaskTake 查询单任务
func (j *JobsGorm) TaskTake(tx *gorm.DB, customId string) (result jobs_gorm_model.Task) {
tx.Where("custom_id = ?", customId).Take(&result)

@ -1,3 +1,3 @@
package gojobs
const Version = "1.0.33"
const Version = "1.0.34"

Loading…
Cancel
Save