...
|
...
|
@@ -12,18 +12,18 @@ import java.util.List; |
|
|
public class ExcelParseUtil {
|
|
|
public static void main(String[] args) {
|
|
|
try {
|
|
|
List<ProductTestModel> dataList = XlsxUtils.parse(new File("E:\\规格\\19年\\业务要求切换数据\\副本系列缺失调整_骆文嘉_20190731 (2).xlsx"), ProductTestModel.class);
|
|
|
List<ProductProfit> dataList = XlsxUtils.parse(new File("E:\\规格\\19年\\商品费率.xlsx"), ProductProfit.class);
|
|
|
|
|
|
for (ProductTestModel item : dataList) {
|
|
|
for (ProductProfit item : dataList) {
|
|
|
//String l = String.format("curl 'http://172.31.70.39:8088/ufoPlatform/live/generateMp4Vedio?debug=XYZ&orderCode=%d&startTime=%d&endTime=%d&cameraCode=%d'", item.getOrderCode(), item.getStartTime(), item.getEndTime() + 1, item.getCameraCode());
|
|
|
|
|
|
if (item.getSeriesId() == 0) {
|
|
|
/*if (item.getSeriesId() == 0) {
|
|
|
System.out.println(String.format("update ufo_product.product set brand_id = %d where id = %d;", item.getBrandId(), item.getId()));
|
|
|
} else {
|
|
|
System.out.println(String.format("update ufo_product.product set brand_id = %d, series_id = %d where id = %d;", item.getBrandId(), item.getSeriesId(), item.getId()));
|
|
|
}
|
|
|
|
|
|
}*/
|
|
|
|
|
|
System.out.println(String.format("insert into ufo_product.product_profit(product_id, profit_rate) values(%d, %.3f);", item.getProductId(), item.getProfitRate()));
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|