Commit df1f427f by kk

刷数据:16342-高首批新品匹配透明计划账号

parent f40fd0cd
package cn.kk.spring_simple_operation.utils;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
* @author kk
* @date 2025/3/19
*/
public class DealInputUtils {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<String> inputList = new LinkedList<>();
while (scanner.hasNext()) {
String input = scanner.next();
if (input.equals(";")) break;
inputList.add(input);
}
for (String s : inputList) {
System.out.println(s + ",");
}
}
}
......@@ -42,7 +42,9 @@ public class ApplicationTest {
//setAPlusProductUploadInfo();
updateBrandId();
//updateBrandId();
updateBrandTransparencyPlan();
}
//private void setUploadStatusIsDeleted() throws Exception {
......@@ -62,11 +64,24 @@ public class ApplicationTest {
//}
private void updateBrandId() throws Exception {
File file = new File("2025-04-01_vpq0_品牌Brand ID核对.xlsx");
//private void updateBrandId() throws Exception {
// File file = new File("2025-04-01_vpq0_品牌Brand ID核对.xlsx");
// ExcelUtil<BrandAccountDto> util = new ExcelUtil<>(BrandAccountDto.class);
// List<BrandAccountDto> list = util.importExcel(Files.newInputStream(file.toPath()));
// brandRecordToolService.updateBrandId(list);
//}
private void updateBrandTransparencyPlan() throws Exception {
File file = new File("2025-04-16_vlrd_高首批新品匹配透明计划账号.xlsx");
ExcelUtil<BrandAccountDto> util = new ExcelUtil<>(BrandAccountDto.class);
List<BrandAccountDto> list = util.importExcel(Files.newInputStream(file.toPath()));
brandRecordToolService.updateBrandId(list);
list.forEach(dto -> {
System.out.printf("update brand_record_tool set is_transparency_plan = 1 where record_brand = '%s' and account = '%s' and is_delete = 0;\n", dto.getBrand(), dto.getAccount());
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment