|
|
|
@ -11,7 +11,12 @@ public class ZbdcModel {
|
|
|
|
|
*/
|
|
|
|
|
public Record getSchoolBase(int year, String bureau_id) {
|
|
|
|
|
String sql = "select * from t_zbdc_bureau_base where year=? and bureau_id=?";
|
|
|
|
|
return Db.findFirst(sql, year, bureau_id);
|
|
|
|
|
Record res = Db.findFirst(sql, year, bureau_id);
|
|
|
|
|
|
|
|
|
|
if (res == null) {
|
|
|
|
|
res = getBureauBean(bureau_id);
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -43,7 +48,7 @@ public class ZbdcModel {
|
|
|
|
|
int xx_teacher_count, int cz_teacher_count, int gz_teacher_count,
|
|
|
|
|
int xx_class_count, int cz_class_count, int gz_class_count) {
|
|
|
|
|
String sql = "select * from t_zbdc_bureau_base where year=? and bureau_id=?";
|
|
|
|
|
Record record = Db.findFirst(sql, bureau_id);
|
|
|
|
|
Record record = Db.findFirst(sql, year, bureau_id);
|
|
|
|
|
Record newRecord = new Record();
|
|
|
|
|
newRecord.set("year", year);
|
|
|
|
|
newRecord.set("bureau_id", bureau_id);
|
|
|
|
|