@ -48,22 +48,26 @@ public class ZbdcController extends Controller {
/ * *
* 功 能 : 保 存 学 校 基 础 信 息
*
* @param xx_student_count 小 学 学 生 人 数
* @param cz_student_count 初 中 学 生 人 数
* @param gz_student_count 高 中 学 生 人 数
* @param xx_teacher_count 小 学 教 师 人 数
* @param cz_teacher_count 初 中 教 师 人 数
* @param gz_teacher_count 高 中 教 师 人 数
* @param xx_class_count 小 学 班 级 数
* @param cz_class_count 初 中 班 级 数
* @param gz_class_count 高 中 班 级 数
* @param xiaoxue_type_id 0 : 默 认 值 1 : 城 镇 小 学 2 : 村 小
* @param xx_student_count 小 学 学 生 人 数
* @param cz_student_count 初 中 学 生 人 数
* @param gz_student_count 高 中 学 生 人 数
* @param xx_teacher_count 小 学 教 师 人 数
* @param cz_teacher_count 初 中 教 师 人 数
* @param gz_teacher_count 高 中 教 师 人 数
* @param xx_class_count 小 学 班 级 数
* @param cz_class_count 初 中 班 级 数
* @param gz_class_count 高 中 班 级 数
* @param xiaoxue_type_id 0 : 默 认 值 1 : 城 镇 小 学 2 : 中 心 小 学
* @param xx_zhuanren_count 小 学 部 专 任 教 师 数 量
* @param cz_zhuanren_count 初 中 部 专 任 教 师 数 量
* @param gz_zhuanren_count 高 中 部 专 任 教 师 数 量
* /
@Before ( { POST . class } )
@IsLoginInterface ( { } )
public void saveSchool ( int year , int xx_student_count , int cz_student_count , int gz_student_count ,
int xx_teacher_count , int cz_teacher_count , int gz_teacher_count ,
int xx_class_count , int cz_class_count , int gz_class_count , int xiaoxue_type_id ) {
int xx_class_count , int cz_class_count , int gz_class_count , int xiaoxue_type_id ,
int xx_zhuanren_count , int cz_zhuanren_count , int gz_zhuanren_count ) {
if ( year = = 0 ) year = DateTime . now ( ) . year ( ) ; //如果没有传入获取的年份,那么就是系统的默认当前年份
String bureau_id = SessionKit . get ( getRequest ( ) , getResponse ( ) , "bureau_id" ) ;
//获取学校的学校名称等信息
@ -74,7 +78,7 @@ public class ZbdcController extends Controller {
zm . saveSchool ( year , bureau_id , bureau_name , school_type_name , xx_student_count , cz_student_count ,
gz_student_count , xx_teacher_count , cz_teacher_count ,
gz_teacher_count , xx_class_count ,
cz_class_count , gz_class_count , xiaoxue_type_id );
cz_class_count , gz_class_count , xiaoxue_type_id , xx_zhuanren_count , cz_zhuanren_count , gz_zhuanren_count );
Kv kv = Kv . create ( ) ;
kv . set ( "success" , true ) ;
kv . set ( "message" , "保存成功!" ) ;
@ -286,7 +290,7 @@ public class ZbdcController extends Controller {
* @param year 年 份
* @param page 第 几 页
* @param limit 每 页 多 少 个
* @param pbyq 0 : 全 部 , 1 : 必 配 , 2 : 选 配
* @param pbyq 0 : 全 部 , 1 : 必 配 , 2 : 选 配
* /
@Before ( { GET . class } )
@IsLoginInterface ( { } )
@ -297,7 +301,7 @@ public class ZbdcController extends Controller {
bureau_id = SessionKit . get ( getRequest ( ) , getResponse ( ) , "bureau_id" ) ;
}
String bureauIds = "'" + bureau_id + "'" ;
Page < Record > list = zm . getFill ( bureauIds , year , km_code , level_filter , pbyq , page , limit ) ;
Page < Record > list = zm . getFill ( bureauIds , year , km_code , level_filter , pbyq , page , limit ) ;
renderJson ( CommonUtil . renderJsonForLayUI ( list ) ) ;
}
@ -501,10 +505,10 @@ public class ZbdcController extends Controller {
@IsLoginInterface ( { } )
@EmptyInterface ( { "km_code" } )
// http://10.10.21.20:9000/QingLong/zbdc/getQueryYqsb?page=1&limit=15&area_id=&school_type_id=312&km_code=czyl&level_filter=&keyword=
public void getQueryYqsb ( String area_id , int school_type_id , String keyword , String km_code , String level_filter , int year , int type_id , int pbyq , int page , int limit ) {
public void getQueryYqsb ( String area_id , int school_type_id , String keyword , String km_code , String level_filter , int year , int type_id , int pbyq , int page , int limit ) {
if ( year = = 0 ) year = DateTime . now ( ) . year ( ) ; //如果没有传入获取的年份,那么就是系统的默认当前年份
String bureauIds = zm . getBureauIds ( area_id , school_type_id , keyword ) ;
Page < Record > list = zm . getQueryYqsb ( bureauIds , year , km_code , level_filter , type_id , pbyq , page , limit ) ;
Page < Record > list = zm . getQueryYqsb ( bureauIds , year , km_code , level_filter , type_id , pbyq , page , limit ) ;
renderJson ( CommonUtil . renderJsonForLayUI ( list ) ) ;
}