瀏覽代碼

添加SQL

gitmuchinfo 3 年之前
父節點
當前提交
5aed4a0e6b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      models/wrTrade2.go

+ 2 - 0
models/wrTrade2.go

@@ -2992,6 +2992,8 @@ func (r *WrOutInApply) buildSql() string {
 		"    on t.applyid = e.applyid" +
 		"  left join tmp k" +
 		"    on d.wrfactortypeid = k.wrfactortypeid" +
+		"  left join enumdicitem en1" +
+		"  	 on t.appointmentmodel = en1.enumitemname and en1.enumdiccode='appointmentModel'" +
 		" where t.applytype in (2, 4)"
 	sqlId.AndEx("t.USERID", r.USERID, r.USERID > 0)
 	// 格式 yyyymmdd