| | |
| | | package com.yeshi.fanli.util.factory.msg;
|
| | |
|
| | | import com.yeshi.fanli.dto.msg.MsgOtherSystemGiveDTO;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | public class MsgOtherSystemGiveDTOFactory {
|
| | |
|
| | | // 奖励券
|
| | | public static MsgOtherSystemGiveDTO createRewardCouponGive(int count, String desc, String name, String orderId,
|
| | | int orderType, String reason) {
|
| | | if (StringUtil.isNullOrEmpty(name))
|
| | | return null;
|
| | | MsgOtherSystemGiveDTO dto = new MsgOtherSystemGiveDTO();
|
| | | dto.setCount(count);
|
| | | dto.setDesc(desc);
|
| | | dto.setName(name);
|
| | | dto.setOrderId(orderId);
|
| | | dto.setOrderType(orderType);
|
| | | dto.setReason(reason);
|
| | | return dto;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.util.factory.msg; |
| | | |
| | | import com.yeshi.fanli.dto.msg.MsgOtherSystemGiveDTO; |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | |
| | | public class MsgOtherSystemGiveDTOFactory { |
| | | |
| | | // 奖励券 |
| | | public static MsgOtherSystemGiveDTO createRewardCouponGive(int count, String desc, String name, String orderId, |
| | | int orderType, String reason) { |
| | | if (StringUtil.isNullOrEmpty(name)) |
| | | return null; |
| | | MsgOtherSystemGiveDTO dto = new MsgOtherSystemGiveDTO(); |
| | | dto.setCount(count); |
| | | dto.setDesc(desc); |
| | | dto.setName(name); |
| | | dto.setOrderId(orderId); |
| | | dto.setOrderType(orderType); |
| | | dto.setReason(reason); |
| | | return dto; |
| | | } |
| | | |
| | | } |