main
黄海 7 months ago
parent 09f883099a
commit 0aa77e2921

@ -31,7 +31,7 @@ public class YunXiaoController extends Controller {
* @param pageNum * @param pageNum
* @param pageSize * @param pageSize
*/ */
// http://10.10.21.20:9000/QingLong/yx/matchSchoolNameList?type_id=1&pageNum=1&pageSize=10 // http://10.10.21.20:9000/QingLong/yx/matchSchoolNameList?pageNum=1&pageSize=10
@Before(GET.class) @Before(GET.class)
public void matchSchoolNameList(int pageNum, int pageSize) { public void matchSchoolNameList(int pageNum, int pageSize) {
Page<Record> page = ym.matchSchoolNameList(pageNum, pageSize); Page<Record> page = ym.matchSchoolNameList(pageNum, pageSize);

@ -13,7 +13,7 @@ public class YunXiaoModel {
* *
* @return * @return
*/ */
public List<com.jfinal.plugin.activerecord.Record> getStandardSchoolList() { public List<Record> getStandardSchoolList() {
String sql = "select organization_no,organization_name,gather_regionc from 教基1001 where a=1 and length(organization_no)=10 order by gather_regionc"; String sql = "select organization_no,organization_name,gather_regionc from 教基1001 where a=1 and length(organization_no)=10 order by gather_regionc";
return Db.find(sql); return Db.find(sql);
} }
@ -25,9 +25,10 @@ public class YunXiaoModel {
* @param pageSize * @param pageSize
* @return * @return
*/ */
public Page<com.jfinal.plugin.activerecord.Record> matchSchoolNameList(int pageNum, int pageSize) { public Page<Record> matchSchoolNameList(int pageNum, int pageSize) {
SqlPara sqlPara = Db.getSqlPara("YunXiao.matchSchoolNameList"); SqlPara sqlPara = Db.getSqlPara("YunXiao.matchSchoolNameList");
return Db.paginate(pageNum, pageSize, sqlPara); Page<Record> page=Db.paginate(pageNum, pageSize, sqlPara);
return page;
} }
/** /**

@ -39,7 +39,7 @@
-- 匹配的学校名称列表 -- 匹配的学校名称列表
#sql("matchSchoolNameList") #sql("matchSchoolNameList")
select DISTINCT original_school_name from t_crawler_lesson_school where match_type=0 select original_school_name from t_crawler_lesson_school where match_type=0 group by original_school_name
#end #end
-- 匹配课程名称与学校名称 -- 匹配课程名称与学校名称
#sql("matchLessonSchoolName") #sql("matchLessonSchoolName")

Loading…
Cancel
Save