| | |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | }); |
| | | tree.setOid((String)oidValues.stream().collect(Collectors.joining(wrapperOptions.getOidValueSep()))); |
| | | tree.setName((String) VciBaseUtil.getValueFromField("name", doObject)); |
| | | tree.setCount("【"+(String)VciBaseUtil.getValueFromField("total", doObject)+"】"); |
| | | String total = (String) VciBaseUtil.getValueFromField("total", doObject); |
| | | if(Func.isNotEmpty(total)){ |
| | | tree.setCount("【"+total+"】"); |
| | | } |
| | | if (f != null) { |
| | | tree.setText((String)f.apply(doObject)); |
| | | } else { |