main
黄海 8 months ago
parent ea6d27876f
commit f9443e594c

@ -1015,7 +1015,7 @@ public class GtzzModel {
//如果是历史日志里的专家
String sql = "select t1.step_code,t1.is_master,t2.* from t_gtzz_subject_expert as t1 inner join t_gtzz_expert as t2 on t1.person_id=t2.person_id where t1.subject_id=? and t1.step_code=? and t1.progress_id=?";
List<Record> list = Db.find(sql, subject_id, step_code, progress_id);
if (list != null && list.size() > 0) return list;
if (list != null && !list.isEmpty()) return list;
//则查询返回正常的专家
sql = "select t1.step_code,t1.is_master,t2.* from t_gtzz_subject_expert as t1 inner join t_gtzz_expert as t2 on t1.person_id=t2.person_id where t1.subject_id=? and t1.step_code=? and t1.progress_id=0";
return Db.find(sql, subject_id, step_code);

Loading…
Cancel
Save