| | |
| | | |
| | | import com.taoke.autopay.entity.ClientInfo; |
| | | import com.taoke.autopay.entity.KeyOrder; |
| | | import com.taoke.autopay.entity.OrderChannelEnum; |
| | | import com.taoke.autopay.entity.WxUserOrderCount; |
| | | import com.taoke.autopay.utils.Constant; |
| | | import com.taoke.autopay.utils.StringUtil; |
| | | import com.taoke.autopay.utils.TimeUtil; |
| | | import com.taoke.autopay.vo.AdminOrderVO; |
| | | import com.taoke.autopay.vo.AgentOrderVO; |
| | | import com.taoke.autopay.vo.UserInfoVO; |
| | | import com.taoke.autopay.vo.admin.AdminOrderVO; |
| | | import com.taoke.autopay.vo.KeyOrderVO; |
| | | import com.taoke.autopay.vo.OrderFilter; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author hxh |
| | |
| | | return vo; |
| | | } |
| | | |
| | | public static AgentOrderVO createAgentOrder(KeyOrder order, BigDecimal money) { |
| | | |
| | | String time=TimeUtil.getGernalTime(order.getCreateTime().getTime(), "yyyy.MM.dd HH:mm:ss"); |
| | | time = time.replace(" ","<br>"); |
| | | return AgentOrderVO.builder() |
| | | .payMoney(order.getOrderMoney().toString()) |
| | | .settleMoney(money.toString()) |
| | | .createTime(time) |
| | | .valid(order.getPayTime() != null && order.getState() == KeyOrder.STATE_PAY) |
| | | .user(order.getUser() != null ? UserInfoVO.builder().id(order.getUser().getId()).nickName(order.getUser().getNickName()).portrait(order.getUser().getPortrait()).build() : null) |
| | | .build(); |
| | | } |
| | | |
| | | private static String getOrderStateDesc(Integer orderState, Integer orderType) { |
| | | |
| | | if (orderState == null || orderType == null) { |