TASK:mixi;

This commit is contained in:
shahaibo
2024-08-30 17:23:58 +08:00
parent 98d9b46290
commit c91ae46707
2 changed files with 2 additions and 2 deletions

View File

@@ -801,6 +801,7 @@ public class MiTuExportScheduledTask {
for (WeeklyHeavyStock weeklyHeavyStock : weeklyHeavyStockList) { for (WeeklyHeavyStock weeklyHeavyStock : weeklyHeavyStockList) {
String currentPluCode = weeklyHeavyStock.getPLU_CODE(); String currentPluCode = weeklyHeavyStock.getPLU_CODE();
if (!currentPluCode.equals(previousPluCode)) { if (!currentPluCode.equals(previousPluCode)) {
imagePath = getImagePath(currentPluCode);
if (startRow < rowNum - 1) { if (startRow < rowNum - 1) {
mergeCells(sheet, startRow, rowNum - 1); mergeCells(sheet, startRow, rowNum - 1);
if (imagePath != null && !imagePath.isEmpty()) { if (imagePath != null && !imagePath.isEmpty()) {
@@ -809,7 +810,6 @@ public class MiTuExportScheduledTask {
} }
startRow = rowNum; startRow = rowNum;
previousPluCode = currentPluCode; previousPluCode = currentPluCode;
imagePath = getImagePath(currentPluCode);
} }
Row row = sheet.createRow(rowNum); Row row = sheet.createRow(rowNum);

View File

@@ -594,7 +594,7 @@ public class PythonService {
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content)); RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content));
Request request = new Request.Builder() Request request = new Request.Builder()
// .url(accessPythonIp + ":9993/api/similar_matchsimilar_match") // .url(accessPythonIp + ":9993/api/similar_matchsimilar_match")
.url("127.0.0.1:5001/chat") .url("http://127.0.0.1:5001/chat")
.method("POST", body) .method("POST", body)
// .addHeader("Authorization", "Basic YWlkbGFiOjEyMw==") // .addHeader("Authorization", "Basic YWlkbGFiOjEyMw==")
.addHeader("Content-Type", "application/json") .addHeader("Content-Type", "application/json")