TASK:mixi;
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user