制度和表单批量~~

This commit is contained in:
chengli 2022-07-07 22:37:23 +08:00
parent 5e9dad9823
commit 10fb583051

View File

@ -57,7 +57,18 @@ public class DataMigrationController {
*/
@Mapping("com.actionsoft.apps.coe.pal.systemImport_process_attribute_import")
public String processattributeimport(UserContext me,String wsId,String groupValue,String fileValue,String fileName){
new ReadWordUtil().translateDocTDocx(me,wsId,groupValue,fileValue,fileName);
//new ReadWordUtil().translateDocTDocx(me,wsId,groupValue,fileValue,fileName);
Thread thread =new Thread(new Runnable() {
@Override
public void run() {
String[] fileNameArr = fileName.split(",");
for(String name : fileNameArr){
new ReadWordUtil().translateDocTDocx(me,wsId,groupValue,fileValue,name);
}
}
});
thread.setPriority(8);
thread.start();
ResponseObject ro = ResponseObject.newOkResponse();
return ro.toString();
}
@ -73,8 +84,18 @@ public class DataMigrationController {
*/
@Mapping("com.actionsoft.apps.coe.pal.formImport_process_attribute_import")
public String formattributeimport(UserContext me,String wsId,String groupValue,String fileValue,String fileName){
new ReadTable().getTableInfo(me,wsId,groupValue,fileValue,fileName);
//new DataMigrationWeb().translateDocToTable(me,wsId,groupValue,fileValue,fileName);
//new ReadTable().getTableInfo(me,wsId,groupValue,fileValue,fileName);
Thread thread =new Thread(new Runnable() {
@Override
public void run() {
String[] fileNameArr = fileName.split(",");
for(String name : fileNameArr){
new ReadTable().getTableInfo(me,wsId,groupValue,fileValue,fileName);
}
}
});
thread.setPriority(8);
thread.start();
ResponseObject ro = ResponseObject.newOkResponse();
return ro.toString();
}