|
@@ -11,10 +11,7 @@ import com.baomidou.mybatisplus.extension.api.R;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.template.annotation.PassToken;
|
|
import com.template.annotation.PassToken;
|
|
|
import com.template.api.WelcomeStudentControllerAPI;
|
|
import com.template.api.WelcomeStudentControllerAPI;
|
|
|
-import com.template.common.utils.ExcelUtils;
|
|
|
|
|
-import com.template.common.utils.JWTUtil;
|
|
|
|
|
-import com.template.common.utils.TimeExchange;
|
|
|
|
|
-import com.template.common.utils.paramUtils;
|
|
|
|
|
|
|
+import com.template.common.utils.*;
|
|
|
import com.template.model.enumModel.eFileType;
|
|
import com.template.model.enumModel.eFileType;
|
|
|
import com.template.model.enumModel.eProjectType;
|
|
import com.template.model.enumModel.eProjectType;
|
|
|
import com.template.model.enumModel.eSchool;
|
|
import com.template.model.enumModel.eSchool;
|
|
@@ -132,8 +129,24 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
ws.setName(isr.getName());
|
|
ws.setName(isr.getName());
|
|
|
ws.setPicture(isr.getPicture());
|
|
ws.setPicture(isr.getPicture());
|
|
|
ws.setCardId(isr.getCardId());
|
|
ws.setCardId(isr.getCardId());
|
|
|
- ws.setSex(isr.getSex());
|
|
|
|
|
- ws.setBirthday(isr.getBirthday());
|
|
|
|
|
|
|
+ //region 校验身份证号 并根据身份证号获取出生年月和性别
|
|
|
|
|
+ boolean isValidate = CardUtils.validateIdCard(isr.getCardId());//身份证是否合法
|
|
|
|
|
+ if(!isValidate){
|
|
|
|
|
+ return CommonResult.fail("身份证不合法");
|
|
|
|
|
+ }
|
|
|
|
|
+ String sex = CardUtils.getSexByIdCard(isr.getCardId());
|
|
|
|
|
+ if(!StringUtils.hasText(isr.getSex())){
|
|
|
|
|
+ ws.setSex(sex);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ ws.setSex(isr.getSex());
|
|
|
|
|
+ }
|
|
|
|
|
+ String birthday = CardUtils.getBirthdayByIdCard(isr.getCardId());
|
|
|
|
|
+ if(!StringUtils.hasText(isr.getBirthday())){
|
|
|
|
|
+ ws.setBirthday(birthday);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ ws.setBirthday(isr.getBirthday());
|
|
|
|
|
+ }
|
|
|
|
|
+ //endregion
|
|
|
ws.setSchool(isr.getSchool());
|
|
ws.setSchool(isr.getSchool());
|
|
|
ws.setSchoolId(isr.getSchoolId());
|
|
ws.setSchoolId(isr.getSchoolId());
|
|
|
ws.setCollege(isr.getCollege());
|
|
ws.setCollege(isr.getCollege());
|
|
@@ -170,6 +183,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
ws.setZipCode(isr.getZipCode());
|
|
ws.setZipCode(isr.getZipCode());
|
|
|
ws.setRegisterOntime(isr.getRegisterOntime());
|
|
ws.setRegisterOntime(isr.getRegisterOntime());
|
|
|
ws.setIdenType(1);
|
|
ws.setIdenType(1);
|
|
|
|
|
+ ws.setIsPay(0);
|
|
|
ws.setFillStatus("未填报");
|
|
ws.setFillStatus("未填报");
|
|
|
//ws.setAmountPayable(isr.getAmountPayable());
|
|
//ws.setAmountPayable(isr.getAmountPayable());
|
|
|
//ws.setPayAmount(isr.getPayAmount());
|
|
//ws.setPayAmount(isr.getPayAmount());
|
|
@@ -908,6 +922,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
ws.setDistrictId(ws.getDistrictId());
|
|
ws.setDistrictId(ws.getDistrictId());
|
|
|
ws.setAddress(ws.getAddress());
|
|
ws.setAddress(ws.getAddress());
|
|
|
ws.setZipCode(ws.getZipCode());
|
|
ws.setZipCode(ws.getZipCode());
|
|
|
|
|
+ ws.setIsPay(0);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1038,6 +1053,20 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
String name = dataFormatter.formatCellValue(row.getCell(2));//姓名
|
|
String name = dataFormatter.formatCellValue(row.getCell(2));//姓名
|
|
|
studentData.setName(name);
|
|
studentData.setName(name);
|
|
|
String cardId = dataFormatter.formatCellValue(row.getCell(3));//身份证号
|
|
String cardId = dataFormatter.formatCellValue(row.getCell(3));//身份证号
|
|
|
|
|
+ //region 校验身份证号 并根据身份证号获取出生年月和性别
|
|
|
|
|
+ boolean isValidate = CardUtils.validateIdCard(cardId);//身份证是否合法
|
|
|
|
|
+ if(!isValidate){
|
|
|
|
|
+ return CommonResult.fail("录取编号为" + assNum + "的身份证不合法");
|
|
|
|
|
+ }
|
|
|
|
|
+ String sex = CardUtils.getSexByIdCard(cardId);
|
|
|
|
|
+ if(sex != null){
|
|
|
|
|
+ studentData.setSex(sex);
|
|
|
|
|
+ }
|
|
|
|
|
+ String birthday = CardUtils.getBirthdayByIdCard(cardId);
|
|
|
|
|
+ if(birthday != null){
|
|
|
|
|
+ studentData.setBirthday(birthday);
|
|
|
|
|
+ }
|
|
|
|
|
+ //endregion
|
|
|
studentData.setCardId(cardId);
|
|
studentData.setCardId(cardId);
|
|
|
|
|
|
|
|
String school = dataFormatter.formatCellValue(row.getCell(4));//校区
|
|
String school = dataFormatter.formatCellValue(row.getCell(4));//校区
|
|
@@ -1300,6 +1329,21 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
String name = dataFormatter.formatCellValue(row.getCell(2));//姓名
|
|
String name = dataFormatter.formatCellValue(row.getCell(2));//姓名
|
|
|
studentData.setName(name);
|
|
studentData.setName(name);
|
|
|
String cardId = dataFormatter.formatCellValue(row.getCell(3));//身份证号
|
|
String cardId = dataFormatter.formatCellValue(row.getCell(3));//身份证号
|
|
|
|
|
+ //region 校验身份证号 并根据身份证号获取出生年月和性别
|
|
|
|
|
+ boolean isValidate = CardUtils.validateIdCard(cardId);//身份证是否合法
|
|
|
|
|
+ if(!isValidate){
|
|
|
|
|
+ return CommonResult.fail("录取编号为" + assNum + "的身份证不合法");
|
|
|
|
|
+ }
|
|
|
|
|
+ String sex = CardUtils.getSexByIdCard(cardId);
|
|
|
|
|
+ if(sex != null){
|
|
|
|
|
+ studentData.setSex(sex);
|
|
|
|
|
+ }
|
|
|
|
|
+ String birthday = CardUtils.getBirthdayByIdCard(cardId);
|
|
|
|
|
+ if(birthday != null){
|
|
|
|
|
+ studentData.setBirthday(birthday);
|
|
|
|
|
+ }
|
|
|
|
|
+ //endregion
|
|
|
|
|
+
|
|
|
studentData.setCardId(cardId);
|
|
studentData.setCardId(cardId);
|
|
|
|
|
|
|
|
String school = dataFormatter.formatCellValue(row.getCell(4));//校区
|
|
String school = dataFormatter.formatCellValue(row.getCell(4));//校区
|
|
@@ -1616,7 +1660,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
public CommonResult queryStudentByToken(String userId) {
|
|
public CommonResult queryStudentByToken(String userId) {
|
|
|
WelcomeStudent student = welcomeStudentService.getManageById(Integer.valueOf(userId));
|
|
WelcomeStudent student = welcomeStudentService.getManageById(Integer.valueOf(userId));
|
|
|
if(student == null){
|
|
if(student == null){
|
|
|
- return CommonResult.fail("学生信息已失效,查询失败");
|
|
|
|
|
|
|
+ return CommonResult.fail("558","学生信息已失效,查询失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//家庭成员
|
|
//家庭成员
|
|
@@ -1721,7 +1765,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
public CommonResult queryStudentInfo(String admissNum) {
|
|
public CommonResult queryStudentInfo(String admissNum) {
|
|
|
WelcomeStudent ws = welcomeStudentService.getDataByNum(admissNum);
|
|
WelcomeStudent ws = welcomeStudentService.getDataByNum(admissNum);
|
|
|
if (ws == null) {
|
|
if (ws == null) {
|
|
|
- return CommonResult.fail("当前学生信息已失效,查询失败");
|
|
|
|
|
|
|
+ return CommonResult.fail("558","当前学生信息已失效,查询失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//家庭成员
|
|
//家庭成员
|