This commit is contained in:
苏尹岚
2020-11-10 16:51:21 +08:00
parent 925ef2ffc4
commit 829af27f30

View File

@@ -287,13 +287,13 @@ type GetJobOrdersResult struct {
VendorID int `orm:"column(vendor_id)" json:"vendorID"` //推广平台
AvgPrice int `json:"avgPrice"` //单个任务金额
Title string `orm:"size(255)" json:"title"` //任务标题
Content string `orm:"size(500)" json:"content"`
JobContent string `orm:"size(500)" json:"jobContent"`
}
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, 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
FROM job_order a
JOIN job b ON a.job_id = b.id
WHERE 1 = 1