| | |
| | | package com.yeshi.fanli.util.elme;
|
| | |
|
| | | import java.io.InputStream;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.elme.ElmeOrder;
|
| | |
|
| | | public class ElmeOrderUtil {
|
| | |
|
| | | /**
|
| | | * 解析订单(从输入流)
|
| | | * |
| | | * @param input
|
| | | * @return
|
| | | */
|
| | | public static List<ElmeOrder> parseOrder(InputStream input) {
|
| | |
|
| | | |
| | | |
| | | |
| | | |
| | | return null;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.util.elme; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | import org.yeshi.utils.MoneyBigDecimalUtil; |
| | | |
| | | public class ElmeOrderUtil { |
| | | public static BigDecimal getCommission(BigDecimal payMoney) { |
| | | return MoneyBigDecimalUtil.mul(payMoney, new BigDecimal("0.06")); |
| | | } |
| | | |
| | | } |