|
@@ -138,7 +138,7 @@ public class PrimarySchoolApiController {
|
|
|
for (String schoolId : schoolIdList){
|
|
|
SchoolInfo schoolInfo = schoolInfoService.get(schoolId);
|
|
|
if (schoolInfo != null){
|
|
|
- if(schoolInfo.getEnrollmentType().contains(schoolType)){
|
|
|
+ if(schoolInfo.getEnrollmentType().contains(schoolType) && schoolInfo.getIsOpen()){
|
|
|
list.add(schoolInfo);
|
|
|
}
|
|
|
}
|
|
@@ -276,16 +276,32 @@ public class PrimarySchoolApiController {
|
|
|
@GetMapping("queryStudentCertificationList")
|
|
|
@ApiOperation(value = "查询学生证明及附件")
|
|
|
@ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "报名类型", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "applicationId", value = "申请表编号", paramType = "query")
|
|
|
})
|
|
|
- public MessageResult<List> queryStudentCertificationList(String applicationId){
|
|
|
+ public MessageResult<List> queryStudentCertificationList(String type,String applicationId){
|
|
|
MessageResult<List> messageResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
|
List<Map> mapList = new ArrayList<>();
|
|
|
Map<String,Object> dataMap = new HashMap<>();
|
|
|
-
|
|
|
- DataDictionary studentCertDict = dataDictionaryService.get(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+ DataDictionary studentCertDict = null;
|
|
|
+ List<DataDictionary> attachments = null;
|
|
|
+ if(StringUtils.isNotEmpty(type)) {
|
|
|
+ if("Y".equals(type)) {
|
|
|
+ studentCertDict = dataDictionaryService.get("cbc52a2f-5c25-4504-8442-d6c64ea61552");
|
|
|
+ attachments = dataDictionaryService.findByParentId("cbc52a2f-5c25-4504-8442-d6c64ea61552");
|
|
|
+ }else if("Z".equals(type)){
|
|
|
+ studentCertDict = dataDictionaryService.get("904fb0bd-e697-42bf-bea4-bea87f5b8126");
|
|
|
+ attachments = dataDictionaryService.findByParentId("904fb0bd-e697-42bf-bea4-bea87f5b8126");
|
|
|
+ }else{
|
|
|
+ studentCertDict = dataDictionaryService.get(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+ attachments = dataDictionaryService.findByParentId(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ studentCertDict = dataDictionaryService.get(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+ attachments = dataDictionaryService.findByParentId(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+ }
|
|
|
|
|
|
dataMap.put("id", studentCertDict.getId());
|
|
|
dataMap.put("name", studentCertDict.getName());
|
|
@@ -293,7 +309,7 @@ public class PrimarySchoolApiController {
|
|
|
dataMap.put("remark", studentCertDict.getExtended2()); //备注
|
|
|
dataMap.put("description" , studentCertDict.getExtended3());
|
|
|
|
|
|
- List<DataDictionary> attachments = dataDictionaryService.findByParentId(DataDictionary.STUDENT_RELATED_CERT_ID);
|
|
|
+
|
|
|
|
|
|
List<AttachmentDTO> attachmentDTOList = new ArrayList<>();
|
|
|
|
|
@@ -437,6 +453,7 @@ public class PrimarySchoolApiController {
|
|
|
studentInfo.setAddress(applicationPrimaryDTO.getAddress());
|
|
|
studentInfo.setDocumentUrl(applicationPrimaryDTO.getDocumentUrl());
|
|
|
studentInfo.setType(applicationPrimaryDTO.getStudentType());
|
|
|
+ studentInfo.setOldClass(applicationPrimaryDTO.getOldClass());
|
|
|
|
|
|
studentInfo.setCreateTime(new Date());
|
|
|
studentInfo.setCreateBy(subject);
|
|
@@ -455,6 +472,7 @@ public class PrimarySchoolApiController {
|
|
|
studentInfo.setAddress(applicationPrimaryDTO.getAddress());
|
|
|
studentInfo.setDocumentUrl(applicationPrimaryDTO.getDocumentUrl());
|
|
|
studentInfo.setType(applicationPrimaryDTO.getStudentType());
|
|
|
+ studentInfo.setOldClass(applicationPrimaryDTO.getOldClass());
|
|
|
|
|
|
studentInfo.setUpdateTime(new Date());
|
|
|
studentInfo.setUpdateBy(subject);
|