|
@@ -276,7 +276,9 @@ public class ApportionController {
|
|
|
|
|
|
@ApiOperation(value="开始派位-小学")
|
|
|
@PostMapping("startApportionPrimary")
|
|
|
- public MessageResult<Map> startApportionPrimary(String schoolId,String type,Integer amount,@RequestAttribute String subject){
|
|
|
+ public MessageResult<Map> startApportionPrimary(String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
+ String type,Integer amount,@RequestAttribute String subject){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
@@ -287,12 +289,15 @@ public class ApportionController {
|
|
|
if (StringUtils.isNotEmpty(schoolId)) {
|
|
|
searchParams.put("schoolId",schoolId);
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(type)) {
|
|
|
DataDictionary dataDictionary = dataDictionaryService.findByCatalogNameAndValue("C类生证明",type);
|
|
|
searchParams.put("categoryId",dataDictionary.getId());
|
|
|
}
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("create_time","desc"));
|
|
|
+ sortList.add(new Sort("a.create_time","desc"));
|
|
|
Page<ApplicationPrimary> applicationPrimaryPage = applicationPrimaryService.pageSearch(searchParams,1,100000,false,sortList);
|
|
|
|
|
|
//随机抽取
|
|
@@ -374,7 +379,9 @@ public class ApportionController {
|
|
|
|
|
|
@ApiOperation(value="开始派位-小学-测试")
|
|
|
@PostMapping("startApportionPrimaryTest")
|
|
|
- public MessageResult<Map> startApportionPrimaryTest(String schoolId,String type,Integer amount,@RequestAttribute String subject){
|
|
|
+ public MessageResult<Map> startApportionPrimaryTest(String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
+ String type,Integer amount,@RequestAttribute String subject){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
@@ -385,6 +392,9 @@ public class ApportionController {
|
|
|
if (StringUtils.isNotEmpty(schoolId)) {
|
|
|
searchParams.put("schoolId",schoolId);
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(type)) {
|
|
|
DataDictionary dataDictionary = dataDictionaryService.findByCatalogNameAndValue("C类生证明",type);
|
|
|
searchParams.put("categoryId",dataDictionary.getId());
|
|
@@ -462,6 +472,7 @@ public class ApportionController {
|
|
|
@RequestMapping(value = "pageListPrimary",method = RequestMethod.POST)
|
|
|
public MessageResult<Map> pageListPrimary(
|
|
|
@RequestParam(value="schoolId",defaultValue="") String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
@RequestParam(value="type",defaultValue="") String type,
|
|
|
@RequestParam(value="types",defaultValue="") String types,
|
|
|
@RequestParam(value="categoryValue",defaultValue="") String categoryValue,
|
|
@@ -522,6 +533,10 @@ public class ApportionController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//根据用户和角色查询
|
|
|
int count1 = userRoleService.findCountByAIdAndRName(subject,"SYSADMIN");
|
|
@@ -565,7 +580,9 @@ public class ApportionController {
|
|
|
|
|
|
@ApiOperation(value="开始派位-中学")
|
|
|
@PostMapping("startApportionMiddle")
|
|
|
- public MessageResult<Map> startApportionMiddle(String schoolId,String type,Integer amount,@RequestAttribute String subject){
|
|
|
+ public MessageResult<Map> startApportionMiddle(String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
+ String type,Integer amount,@RequestAttribute String subject){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
@@ -576,6 +593,9 @@ public class ApportionController {
|
|
|
if (StringUtils.isNotEmpty(schoolId)) {
|
|
|
searchParams.put("schoolId",schoolId);
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(type)) {
|
|
|
searchParams.put("type",type);
|
|
|
}
|
|
@@ -662,7 +682,9 @@ public class ApportionController {
|
|
|
|
|
|
@ApiOperation(value="开始派位-中学-测试")
|
|
|
@PostMapping("startApportionMiddleTest")
|
|
|
- public MessageResult<Map> startApportionMiddleTest(String schoolId,String type,Integer amount,@RequestAttribute String subject){
|
|
|
+ public MessageResult<Map> startApportionMiddleTest(String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
+ String type,Integer amount,@RequestAttribute String subject){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
@@ -673,11 +695,14 @@ public class ApportionController {
|
|
|
if (StringUtils.isNotEmpty(schoolId)) {
|
|
|
searchParams.put("schoolId",schoolId);
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(type)) {
|
|
|
searchParams.put("type",type);
|
|
|
}
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("create_time","desc"));
|
|
|
+ sortList.add(new Sort("a.create_time","desc"));
|
|
|
Page<ApplicationMiddle> ApplicationMiddlePage = applicationMiddleService.pageSearch(searchParams,1,100000,false,sortList);
|
|
|
|
|
|
//随机抽取
|
|
@@ -749,6 +774,7 @@ public class ApportionController {
|
|
|
@RequestMapping(value = "pageListMiddle",method = RequestMethod.POST)
|
|
|
public MessageResult<Map> pageListMiddle(
|
|
|
@RequestParam(value="schoolId",defaultValue="") String schoolId,
|
|
|
+ @RequestParam(value="grade",defaultValue="") String grade,
|
|
|
@RequestParam(value="type",defaultValue="") String type,
|
|
|
@RequestParam(value="categoryValue",defaultValue="") String categoryValue,
|
|
|
@RequestParam(value="status",defaultValue="") String status,
|
|
@@ -802,6 +828,10 @@ public class ApportionController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(grade)) {
|
|
|
+ searchParams.put("grade",grade);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
//根据用户和角色查询
|
|
|
int count1 = userRoleService.findCountByAIdAndRName(subject,"SYSADMIN");
|