//package cn.freemud.utils;
//
//import java.util.Objects;
//
//public class PropertyConvertUtil {
//
//    public static ActivityChannelEnum orderTypeConvert2ActivityChannel(Integer orderType) {
//        if (Objects.equals(CreateOrderType.TAKE_OUT.getCode(), orderType)) {
//            return ActivityChannelEnum.delivery;
//        } else if (Objects.equals(CreateOrderType.COLLECT_GOODS.getCode(), orderType)) {
//            return ActivityChannelEnum.pickup;
//        } else {
//            return ActivityChannelEnum.pickup;
//        }
//    }
//
//    public static ActivityChannelEnum orderTypeEnumConvert2ActivityChannel(Integer orderType) {
//        if (Objects.equals(OrderType.TAKE_OUT.getCode(), orderType)) {
//            return ActivityChannelEnum.delivery;
//        } else if (Objects.equals(OrderType.COLLECT_GOODS.getCode(), orderType) || Objects.equals(OrderType.EAT_IN.getCode(), orderType)) {
//            return ActivityChannelEnum.pickup;
//        } else {
//            return ActivityChannelEnum.pickup;
//        }
//    }
//}
