|
|
|
@ -4,6 +4,7 @@ import com.dsideal.QingLong.Const.DbConst;
|
|
|
|
|
import com.jfinal.kit.Kv;
|
|
|
|
|
import com.jfinal.kit.StrKit;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.plugin.activerecord.SqlPara;
|
|
|
|
|
|
|
|
|
@ -281,6 +282,7 @@ public class MaxKbModel {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出Excel
|
|
|
|
|
*
|
|
|
|
|
* @param gather_regionc
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -292,4 +294,32 @@ public class MaxKbModel {
|
|
|
|
|
SqlPara sqlPara = Db.getSqlPara("ExportExcel.SchoolClassStudentTeacherList", kv);
|
|
|
|
|
return Db.find(sqlPara);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取所有学校标准名称
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
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";
|
|
|
|
|
return Db.find(sql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取学校标准名称列表
|
|
|
|
|
* @param type_id 类型
|
|
|
|
|
* @param pageNum 页码
|
|
|
|
|
* @param pageSize 每页数量
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public Page<Record> matchSchoolNameList(int type_id, int pageNum, int pageSize) {
|
|
|
|
|
Kv kv = Kv.create();
|
|
|
|
|
if (type_id == 1) {
|
|
|
|
|
kv.set("matchType1", 1);
|
|
|
|
|
} else if (type_id == 0) {
|
|
|
|
|
kv.set("matchType2", 0);
|
|
|
|
|
}
|
|
|
|
|
SqlPara sqlPara = Db.getSqlPara("ExportExcel.matchSchoolNameList", kv);
|
|
|
|
|
return Db.paginate(pageNum, pageSize, sqlPara);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|