修改bug
parent
f84abf2b70
commit
5c9a72973e
|
@ -274,19 +274,7 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
||||||
for (long i = 1; i <= count; i++) {
|
for (long i = 1; i <= count; i++) {
|
||||||
long pageNum = (i - 1) * 5000;
|
long pageNum = (i - 1) * 5000;
|
||||||
submitEmergencyTask(()->{
|
submitEmergencyTask(()->{
|
||||||
String sqlSelect = " SELECT " + finalFieName + " FROM " + finalJoint +" limit "+pageNum +",5000 ";
|
|
||||||
log.info(sqlSelect);
|
|
||||||
Result<List<List<DataValue>>> tableValueResult = datasourceFeign.findTableValue(basicId, sql);
|
|
||||||
List<List<DataValue>> tableValue = tableValueResult.getData();
|
|
||||||
for (List<DataValue> dataValues : tableValue) {
|
|
||||||
for (DataValue dataValue : dataValues) {
|
|
||||||
String key = dataValue.getKey();
|
|
||||||
String newKey = map.get(key);
|
|
||||||
dataValue.setKey(newKey);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Result result = datasourceFeign.addProduct(newBasicId, tableId, tableValue);
|
|
||||||
log.info(result);
|
|
||||||
//getString(pageNum, finalFieName, finalJoint,basicId,newBasicId,tableId,map);
|
//getString(pageNum, finalFieName, finalJoint,basicId,newBasicId,tableId,map);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -296,7 +284,19 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private void getString(Long pageNum,String fieName,String joint,Long basicId,Long newBasicId,Long tableId,HashMap<String, String> map ) {
|
private void getString(Long pageNum,String fieName,String joint,Long basicId,Long newBasicId,Long tableId,HashMap<String, String> map ) {
|
||||||
|
String sqlSelect = " SELECT " + fieName + " FROM " + joint +" limit "+pageNum +",5000 ";
|
||||||
|
log.info(sqlSelect);
|
||||||
|
Result<List<List<DataValue>>> tableValueResult = datasourceFeign.findTableValue(basicId, sqlSelect);
|
||||||
|
List<List<DataValue>> tableValue = tableValueResult.getData();
|
||||||
|
for (List<DataValue> dataValues : tableValue) {
|
||||||
|
for (DataValue dataValue : dataValues) {
|
||||||
|
String key = dataValue.getKey();
|
||||||
|
String newKey = map.get(key);
|
||||||
|
dataValue.setKey(newKey);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Result result = datasourceFeign.addProduct(newBasicId, tableId, tableValue);
|
||||||
|
log.info(result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue