|
@@ -242,6 +242,23 @@ public class StatisticsQueryImpl implements IStatisticsQueryDao {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
+ public List<Map<String, Object>> findRegisterList(Map<String, Object> params) {
|
|
|
|
+ StringBuffer sql = new StringBuffer();
|
|
|
|
+ List<Object> queryParams = new ArrayList<>();
|
|
|
|
+ sql.append("SELECT t.name,t.phone_number,\n");
|
|
|
|
+ sql.append("case when t.type = 1 then '常规兼职' when t.type=2 then '高校合作' else '远程实习' end as type, \n");
|
|
|
|
+ sql.append(" DATE_FORMAT(t.create_time,'%Y.%m.%d %H.%m') as create_time \n");
|
|
|
|
+ sql.append(" from tb_teacher_enrollment t \n");
|
|
|
|
+ if(params.get("searchKey")!=null && !"".equals(params.get("searchKey"))){
|
|
|
|
+ sql.append(" where t.name like concat('%',?,'%') \n");
|
|
|
|
+ sql.append(" or t.phone_number like concat('%',?,'%') \n");
|
|
|
|
+ queryParams.add(params.get("searchKey"));
|
|
|
|
+ queryParams.add(params.get("searchKey"));
|
|
|
|
+ }
|
|
|
|
+ return dao.findMap(sql.toString(),queryParams.toArray());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
public List<CheckDetailVO> checkDetailList(String homeworkId) {
|
|
public List<CheckDetailVO> checkDetailList(String homeworkId) {
|
|
StringBuffer sql = new StringBuffer();
|
|
StringBuffer sql = new StringBuffer();
|
|
List<Object> queryParams = new ArrayList<>();
|
|
List<Object> queryParams = new ArrayList<>();
|