main
黄海 1 year ago
parent e7862a6831
commit 04fdde9c53

@ -532,8 +532,9 @@ public class HuiYaModel {
* @return * @return
*/ */
public Page<Record> wxGetJournal(String user_id, int page, int limit) { public Page<Record> wxGetJournal(String user_id, int page, int limit) {
String sql = "select t1.*,t3.model_name from t_hy_journal as t1 left join t_hy_task as t2 on t1.task_id=t2.task_id left join t_hy_model as t3 on t2.model_id=t3.model_id where t1.user_id=? order by t1.id desc"; Kv kv = Kv.by("user_id", user_id);
return Db.paginate(page, limit, sql, user_id); SqlPara sqlPara = Db.getSqlPara("HuiYa.wxGetJournal", kv);
return Db.paginate(page, limit, sqlPara);
} }
/** /**

@ -33,4 +33,9 @@
WHERE WHERE
rn = 1 order by model_id; rn = 1 order by model_id;
#end #end
-- 显示日志
#sql("wxGetJournal")
select t1.*,t3.model_name from t_hy_journal as t1 left join t_hy_task as t2 on t1.task_id=t2.task_id left join t_hy_model as t3
on t2.model_id=t3.model_id where t1.user_id=#para(user_id) order by t1.id desc
#end
#end #end
Loading…
Cancel
Save