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