From 145deb5c7037b81d693c2a6a89458a473c592640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 9 Dec 2020 14:39:34 +0800 Subject: [PATCH] a --- business/model/dao/dao_job.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index 9ef3d2623..dc726b14c 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -292,12 +292,14 @@ type GetJobOrdersResult struct { AvgPrice int `json:"avgPrice"` //单个任务金额 Title string `orm:"size(255)" json:"title"` //任务标题 JobContent string `orm:"size(500)" json:"jobContent"` + JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` + StoreURL string `orm:"column(store_url)" json:"storeURL"` } func GetJobOrders(db *DaoDB, jobID int, jobOrderID int64, userID, jobUserID string, statusCompareStr string, fromTime, toTime time.Time, statuss []int, pageSize, offset int) (pagedInfo *model.PagedInfo, err error) { var jobOrders []*GetJobOrdersResult sql := ` - SELECT SQL_CALC_FOUND_ROWS a.*, b.job_limit_at, b.vendor_id, b.avg_price, b.title, b.content job_content, b.audit_limit_at + SELECT SQL_CALC_FOUND_ROWS a.*, b.job_limit_at, b.vendor_id, b.avg_price, b.title, b.content job_content, b.audit_limit_at, b.job_category_id, b.store_url FROM job_order a JOIN job b ON a.job_id = b.id WHERE 1 = 1