调整商品图片的缩略图路径接口

This commit is contained in:
季圣华
2023-07-24 23:28:31 +08:00
parent 4f80f62126
commit 5f0cf49f76
5 changed files with 74 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ import jxl.Sheet;
import jxl.Workbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -70,6 +71,9 @@ public class DepotItemController {
@Resource
private SystemConfigService systemConfigService;
@Value(value="${file.uploadType}")
private Long fileUploadType;
/**
* 根据仓库和商品查询单据列表
* @param mId
@@ -255,6 +259,11 @@ public class DepotItemController {
item.put("weight", allWeight);
item.put("remark", diEx.getRemark());
item.put("imgName", diEx.getImgName());
if(fileUploadType == 2) {
item.put("imgType", "small");
} else {
item.put("imgType", "");
}
item.put("linkId", diEx.getLinkId());
item.put("depotId", diEx.getDepotId() == null ? "" : diEx.getDepotId());
item.put("depotName", diEx.getDepotId() == null ? "" : diEx.getDepotName());