|
|
|
@ -711,7 +711,6 @@ public class AccountController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "修改p2p账户资金-3")
|
|
|
|
|
@PostMapping("/updateP2pAccount3.json")
|
|
|
|
|
public JsonResult updateP2pAccount3(Long userId,
|
|
|
|
@ -1154,4 +1153,67 @@ public class AccountController {
|
|
|
|
|
public JsonResult getClassNameByNewClassId(Long 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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|