|
|
|
@ -5,6 +5,7 @@ import com.logpm.distribution.vo.DistributionReservationVO;
|
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.system.cache.DictBizCache; |
|
|
|
|
|
|
|
|
|
import java.util.Objects; |
|
|
|
@ -29,6 +30,8 @@ public class DistributionReservationWrapper extends BaseEntityWrapper<Distributi
|
|
|
|
|
reservationVO.setPeriodOfTimeName(DictBizCache.getValue(DictBizConstant.PERIOD_OF_TIME,entity.getPeriodOfTime())); |
|
|
|
|
String serveType = entity.getServeType(); |
|
|
|
|
StringBuilder builder = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(serveType)){ |
|
|
|
|
if (serveType.indexOf(",")>0){ |
|
|
|
|
String[] split = serveType.split(","); |
|
|
|
|
for (String s : split) { |
|
|
|
@ -38,8 +41,9 @@ public class DistributionReservationWrapper extends BaseEntityWrapper<Distributi
|
|
|
|
|
}else { |
|
|
|
|
builder.append(DictBizCache.getValue(DictBizConstant.ADD_VALUE_SERVE_TYPE,serveType)).append(","); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
reservationVO.setServeTypeName(builder.deleteCharAt(builder.length()-1).toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
reservationVO.setDeliveryWayName(DictBizCache.getValue(DictBizConstant.DELIVERY_WAY,entity.getDeliveryWay())); |
|
|
|
|
reservationVO.setDeliveryTypeName(DictBizCache.getValue(DictBizConstant.DISTRIBUTION_TYPE,entity.getDeliveryType())); |
|
|
|
|
reservationVO.setReservationStatusName(DictBizCache.getValue(DictBizConstant.RESERVATION_STATUS,entity.getReservationStatus())); |
|
|
|
|