refactor(service): 注释掉不必要的代码并更新文件路径
- 注释掉了 deleteData 方法中不必要的调用 cancelSignatureSoSaleReadExcelV2 - 更新了 cancelSignatureSoSaleReadExcelV2 方法中的文件路径 - 注释掉了该方法中不再使用的线程休眠和递归调用代码
This commit is contained in:
parent
b49326d5e2
commit
2270112c44
|
@ -79,7 +79,7 @@ public class DeleteU8cDataUtil {
|
||||||
//销售出库单签字 已测试
|
//销售出库单签字 已测试
|
||||||
// saleOutSign("'0001A110000000001TH6', '0001A1100000000VKCOK'");
|
// saleOutSign("'0001A110000000001TH6', '0001A1100000000VKCOK'");
|
||||||
|
|
||||||
cancelSignatureSoSaleReadExcelV2();
|
// cancelSignatureSoSaleReadExcelV2();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -897,8 +897,8 @@ public class DeleteU8cDataUtil {
|
||||||
*/
|
*/
|
||||||
public void cancelSignatureSoSaleReadExcelV2() {
|
public void cancelSignatureSoSaleReadExcelV2() {
|
||||||
try {
|
try {
|
||||||
FileInputStream file = new FileInputStream(new File("D:\\server\\软件包\\U8C-需要删除的单据-带主键.xlsx"));
|
// FileInputStream file = new FileInputStream(new File("D:\\server\\软件包\\U8C-需要删除的单据-带主键.xlsx"));
|
||||||
// FileInputStream file = new FileInputStream(new File("/Users/liuyang/Desktop/U8C-需要删除的单据-带主键.xlsx"));
|
FileInputStream file = new FileInputStream(new File("/Users/liuyang/Desktop/U8C-需要删除的单据-带主键.xlsx"));
|
||||||
Workbook workbook = new XSSFWorkbook(file);
|
Workbook workbook = new XSSFWorkbook(file);
|
||||||
|
|
||||||
List<String[]> data = new ArrayList<>();
|
List<String[]> data = new ArrayList<>();
|
||||||
|
@ -1030,13 +1030,13 @@ public class DeleteU8cDataUtil {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
//每10秒重新删除一次
|
// //每10秒重新删除一次
|
||||||
Thread.sleep(10000);
|
// Thread.sleep(10000);
|
||||||
cancelSignatureSoSaleReadExcelV2();
|
// cancelSignatureSoSaleReadExcelV2();
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, List<DeleteU8cDataUtilEntity>> groupByDbilldatev2(List<DeleteU8cDataUtilEntity> soSaleinvoiceEntities) {
|
public Map<String, List<DeleteU8cDataUtilEntity>> groupByDbilldatev2(List<DeleteU8cDataUtilEntity> soSaleinvoiceEntities) {
|
||||||
|
|
Loading…
Reference in New Issue