浏览代码

change orm

Roc 2 月之前
父节点
当前提交
ee0ccce3b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/english_company.go

+ 1 - 1
models/english_company.go

@@ -142,7 +142,7 @@ func GetEnglishCompanyPageList(condition string, pars []interface{}, order strin
 	sql := `SELECT
 	c.*,
 IF
-	( ct.status IS NULL, "无任务", ct.status ) AS todo_status_str,
+	( ct.status IS NULL, '无任务', ct.status ) AS todo_status_str,
 	ct.seller_id as todo_seller_id,
 IF
 	( ct.end_time IS NULL or ct.status !="进行中", "9999-01-01", ct.end_time) AS todo_end_time