|
|
@@ -28,6 +28,7 @@ import com.fs.his.vo.FsStoreProductExcelVO;
|
|
|
import com.fs.his.vo.FsStoreProductListSVO;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
import com.fs.hisStore.domain.*;
|
|
|
+import com.fs.hisStore.dto.GenFormatAttrDTO;
|
|
|
import com.fs.hisStore.mapper.*;
|
|
|
import com.fs.statis.dto.ModifyMoreDTO;
|
|
|
import com.fs.hisStore.dto.ProductArrtDTO;
|
|
|
@@ -199,13 +200,15 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, Object> getFormatAttr(Long productId, List<ProductArrtDTO> productArr,Long[] stores) {
|
|
|
+ public Map<String, Object> getFormatAttr(Long productId, GenFormatAttrDTO genFormatAttrDTO, Long[] stores) {
|
|
|
Map<String, Object> resultMap = new LinkedHashMap<>(3);
|
|
|
- resultMap.put("attr", new ArrayList<>());
|
|
|
- resultMap.put("value", new ArrayList<>());
|
|
|
- resultMap.put("header", new ArrayList<>());
|
|
|
-
|
|
|
- List<ProductArrtDTO> fromatDetailDTOList = productArr;
|
|
|
+ if (genFormatAttrDTO == null) {
|
|
|
+ resultMap.put("attr", new ArrayList<>());
|
|
|
+ resultMap.put("value", new ArrayList<>());
|
|
|
+ resultMap.put("header", new ArrayList<>());
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
+ List<ProductArrtDTO> fromatDetailDTOList = genFormatAttrDTO.getAttrs();
|
|
|
DetailVO detailDto = this.attrFormat(fromatDetailDTOList);
|
|
|
List<Map<String, Object>> headerMapList = null;
|
|
|
List<Map<String, Object>> valueMapList = new ArrayList<>();
|