|
@@ -148,7 +148,7 @@ public class DataUtil {
|
|
|
paramJson.addProperty("parentIndexCode", status);
|
|
|
paramJson.addProperty("orgCode", dict.getCode());
|
|
|
dataArray.add(paramJson);
|
|
|
- idCodeMap.put(clientId, dict.getCode());
|
|
|
+ idCodeMap.put(clientId, dict.getCode() + "-" + status);
|
|
|
clientId ++;
|
|
|
}
|
|
|
}
|
|
@@ -172,18 +172,18 @@ public class DataUtil {
|
|
|
dataArray = new JsonArray();
|
|
|
for (String classType : classTypeSet) {
|
|
|
for (BaseGrade baseGrade : gradeList) {
|
|
|
- gradeNameMap.put(baseGrade.getId(), baseGrade.getName());
|
|
|
+ gradeNameMap.put(baseGrade.getId(), baseGrade.getName().replaceAll("级", ""));
|
|
|
if(tableData != null && tableData.containsKey(baseGrade.getId().toString())){
|
|
|
continue;
|
|
|
}
|
|
|
JsonObject paramJson = new JsonObject();
|
|
|
paramJson.addProperty("clientId", clientId);
|
|
|
- paramJson.addProperty("orgIndexCode", baseGrade.getName() + "-" + classType);
|
|
|
+ paramJson.addProperty("orgIndexCode", baseGrade.getName().replaceAll("级", "") + "-" + classType);
|
|
|
paramJson.addProperty("orgName", baseGrade.getName());
|
|
|
paramJson.addProperty("parentIndexCode", classType);
|
|
|
paramJson.addProperty("orgCode", clientId);
|
|
|
dataArray.add(paramJson);
|
|
|
- idCodeMap.put(clientId, baseGrade.getName());
|
|
|
+ idCodeMap.put(clientId, baseGrade.getName().replaceAll("级", "") + "-" + classType);
|
|
|
clientId ++;
|
|
|
}
|
|
|
}
|
|
@@ -227,7 +227,7 @@ public class DataUtil {
|
|
|
paramJson.addProperty("parentIndexCode", grade);
|
|
|
paramJson.addProperty("orgCode", clientId);
|
|
|
dataArray.add(paramJson);
|
|
|
- idCodeMap.put(clientId, baseClass.getId().toString());
|
|
|
+ idCodeMap.put(clientId, baseClass.getId() + "-" + grade);
|
|
|
clientId ++;
|
|
|
}
|
|
|
}
|
|
@@ -250,7 +250,7 @@ public class DataUtil {
|
|
|
}
|
|
|
|
|
|
public Map<String, String> insertStudentOne(Db db, String tableName, Map<String, String> tableData) throws Exception {
|
|
|
- String sql = "SELECT t1.id,t1.name,CONCAT(t3.id,'-',t4.name,'-',t3.class_type,'-',t2.stduy_status)," +
|
|
|
+ String sql = "SELECT t1.id,t1.name,CONCAT(t3.id,'-',replace(t4.name,'级',''),'-',t3.class_type,'-',t2.stduy_status)," +
|
|
|
" t1.user_name,t1.gender,DATE_FORMAT(t1.birth_date, '%Y-%m-%d'),t1.mobile,t1.email,t1.credential_type,t1.credential_number FROM xjr_user t1" +
|
|
|
" INNER JOIN base_student_school_roll t2 ON t1.id = t2.user_id" +
|
|
|
" INNER JOIN base_class t3 ON t2.class_id = t3.id" +
|