|
@@ -8,6 +8,7 @@ import com.deepoove.poi.config.ConfigureBuilder;
|
|
|
import com.deepoove.poi.data.Includes;
|
|
|
import com.deepoove.poi.plugin.table.LoopRowTableRenderPolicy;
|
|
|
import org.apache.commons.collections4.ListUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.time.DateUtils;
|
|
|
|
|
|
import org.jeecg.config.JeecgBaseConfig;
|
|
@@ -147,10 +148,19 @@ public class PoiTiUtils {
|
|
|
|
|
|
public static Map<String, Object> getJIanceyiju(List<ItdmWeituoYangpinExtend> extendList) {
|
|
|
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
+
|
|
|
+ for (ItdmWeituoYangpinExtend i : extendList) {
|
|
|
+ if (i != null && StringUtils.isNotBlank(i.getStandardRequirement())) {
|
|
|
+ String[] strings = i.getStandardRequirement().split(",");
|
|
|
+ list.addAll(Arrays.asList(strings));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("standardRequirementStr", extendList.stream().map(ItdmWeituoYangpinExtend::getStandardRequirement).collect(Collectors.joining("、")));
|
|
|
- map.put("standardRequirementList", extendList.stream().map(ItdmWeituoYangpinExtend::getStandardRequirement).collect(Collectors.toList()));
|
|
|
+ map.put("standardRequirementStr", String.join("、", list));
|
|
|
+ map.put("standardRequirementList", list);
|
|
|
|
|
|
|
|
|
return map;
|