|
|
|
@ -711,7 +711,6 @@ public class AccountController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "修改p2p账户资金-3")
|
|
|
|
|
@PostMapping("/updateP2pAccount3.json")
|
|
|
|
|
public JsonResult updateP2pAccount3(Long userId,
|
|
|
|
@ -1081,8 +1080,8 @@ public class AccountController {
|
|
|
|
|
if (classId != null) {
|
|
|
|
|
SchoolClass schoolClass = schoolClassService.getByOldId(Long.valueOf(classId));
|
|
|
|
|
if (schoolClass != null) {
|
|
|
|
|
List<String> studentNos = studentService.findStudentNoByClassId(schoolClass.getClassId());
|
|
|
|
|
return JsonResult.success(studentNos);
|
|
|
|
|
List<String> studentNos = studentService.findStudentNoByClassId(schoolClass.getClassId());
|
|
|
|
|
return JsonResult.success(studentNos);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success();
|
|
|
|
@ -1094,9 +1093,9 @@ public class AccountController {
|
|
|
|
|
//根据逗号分隔studentNo
|
|
|
|
|
List<Integer> userIds = new ArrayList<>();
|
|
|
|
|
String[] studentNos = studentNo.split(",");
|
|
|
|
|
for(String s : studentNos){
|
|
|
|
|
for (String s : studentNos) {
|
|
|
|
|
CoreUser coreUser = coreUserService.findByUsername(s);
|
|
|
|
|
if(coreUser!=null){
|
|
|
|
|
if (coreUser != null) {
|
|
|
|
|
userIds.add(coreUser.getOldId().intValue());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1125,8 +1124,8 @@ public class AccountController {
|
|
|
|
|
@ApiOperation("理财接口:获取教师授课班级列表")
|
|
|
|
|
@GetMapping("getClassIdsByZhiyun.json")
|
|
|
|
|
public JsonResult getClassIdsByZhiyun(Long userId) {
|
|
|
|
|
if(userId==null){
|
|
|
|
|
return JsonResult.success(schoolClassService.getClassIdsByZhiyunAndUserIdIsNull());
|
|
|
|
|
if (userId == null) {
|
|
|
|
|
return JsonResult.success(schoolClassService.getClassIdsByZhiyunAndUserIdIsNull());
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success(schoolClassService.getClassIdsByZhiyun(userId));
|
|
|
|
|
}
|
|
|
|
@ -1134,24 +1133,87 @@ public class AccountController {
|
|
|
|
|
@ApiOperation("理财接口:获取所有班级")
|
|
|
|
|
@GetMapping("findAllClass.json")
|
|
|
|
|
public JsonResult findAllClass() {
|
|
|
|
|
return JsonResult.success(schoolClassService.findAllClass());
|
|
|
|
|
return JsonResult.success(schoolClassService.findAllClass());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("理财接口:获取所有用户")
|
|
|
|
|
@GetMapping("findAllUser.json")
|
|
|
|
|
public JsonResult findAllUser() {
|
|
|
|
|
return JsonResult.success(coreUserService.findAllUser());
|
|
|
|
|
return JsonResult.success(coreUserService.findAllUser());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("理财接口:获取所有学生信息")
|
|
|
|
|
@GetMapping("findAllStudent.json")
|
|
|
|
|
public JsonResult findAllStudent() {
|
|
|
|
|
return JsonResult.success(studentService.findAllStudent());
|
|
|
|
|
return JsonResult.success(studentService.findAllStudent());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("理财接口:根据班级id获取班级名称")
|
|
|
|
|
@GetMapping("getClassNameByNewClassId.json")
|
|
|
|
|
public JsonResult getClassNameByNewClassId(Long newClassId) {
|
|
|
|
|
return JsonResult.success(schoolClassService.findClassNameByClassId(newClassId));
|
|
|
|
|
return JsonResult.success(schoolClassService.findClassNameByClassId(newClassId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("修改保险系统学校id")
|
|
|
|
|
@PostMapping("updateInsuranceSchoolId.json")
|
|
|
|
|
public JsonResult updateInsuranceSchoolId() {
|
|
|
|
|
List<UniversitiesColleges> universitiesColleges = universitiesCollegesService.getAll();
|
|
|
|
|
for (UniversitiesColleges colleges : universitiesColleges) {
|
|
|
|
|
Integer schoolId = colleges.getOldSchoolId().intValue();
|
|
|
|
|
if (schoolId != null && schoolId > 0) {
|
|
|
|
|
try {
|
|
|
|
|
Connection connection = openConn();
|
|
|
|
|
PreparedStatement ps = connection.prepareStatement("select ICIBTSchoolId from EduSchools where id = ?");
|
|
|
|
|
ps.setInt(1, schoolId);
|
|
|
|
|
ResultSet rs = ps.executeQuery();
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
Integer icibtschoolId = rs.getInt("ICIBTSchoolId");
|
|
|
|
|
if (icibtschoolId != null && icibtschoolId > 0) {
|
|
|
|
|
colleges.setIcibtSchoolId(icibtschoolId);
|
|
|
|
|
universitiesCollegesService.updateTemplate(colleges);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
connection.close();
|
|
|
|
|
ps.close();
|
|
|
|
|
rs.close();
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("修改保险系统班级id")
|
|
|
|
|
@PostMapping("updateInsuranceClassId.json")
|
|
|
|
|
public JsonResult updateInsuranceClassId() {
|
|
|
|
|
List<SchoolClass> schoolClasses = schoolClassService.getAll();
|
|
|
|
|
int i = 0;
|
|
|
|
|
for (SchoolClass schoolClass : schoolClasses) {
|
|
|
|
|
System.out.println("已处理:-----------------------------------------------------------" + i++);
|
|
|
|
|
Integer classId = schoolClass.getOldClassId().intValue();
|
|
|
|
|
if (classId != null && classId > 0) {
|
|
|
|
|
try {
|
|
|
|
|
Connection connection = openConn();
|
|
|
|
|
PreparedStatement ps = connection.prepareStatement("select ICIBTClassId from EduClasses where id = ?");
|
|
|
|
|
ps.setInt(1, classId);
|
|
|
|
|
ResultSet rs = ps.executeQuery();
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
Integer icibtClassId = rs.getInt("ICIBTClassId");
|
|
|
|
|
if (icibtClassId != null && icibtClassId > 0) {
|
|
|
|
|
schoolClass.setIcibtClassId(icibtClassId);
|
|
|
|
|
schoolClassService.updateTemplate(schoolClass);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
connection.close();
|
|
|
|
|
ps.close();
|
|
|
|
|
rs.close();
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|