标签:
slq-order
pom.xml
依赖slq-common,slq-log,slq-goods,slq-sns,slq-funds,slq-eventbus
mapper
OrderInfoMapper.xml(订单信息的Mapper)
entity
OrderInfo.java(订单信息)
uid(订单所属用户id),orderType(订单类型),payPlatform(支付平台),tradeId(流水号),orderId(订单号),mobileNumber(联系方式(手机)),
refId(关联id),title(名称),totalPrice(总费用),orderState(订单状态),createTime(下单时间),payTime(付款时间),endTime(结束时间),
UsernInfo(用户信息)
notify
FundsNotify.java
void fundsNotify(Long toUid, ApplyEO applyEO, AppointmentEO appointmentEO, String content);(资金通知)
dao
db
OrderDBDAOImpl.java(订单DB DAO)
void updateOrderState(OrderInfo orderInfo);(更新订单状态)
redis
OrderRedisDAOImpl.java(订单redisDAO)
public final static String ORDER_ID_SEQ = "CACHE_SLQ_ORDER_ID_SEQ";(缓存中订单生成序列的key)
String getOrderId();(生成订单号)
business
orderstate
Paid.java(订单改变到已付款状态的管理接口实现类)
OrderInfo changeOrderState(String orderId, OrderState orderState);
OrderInfo handle(String orderId, Integer platform, String tradeId);
Statement.java(订单改变到结单状态的管理接口实现类)
OrderInfo changeOrderState(String orderId, OrderState orderState);
OrderInfo handle(String orderId, Integer platform, String tradeId);
OrderStateManagerImpl.java(订单状态管理接口实现类)
OrderInfo changeOrderState(String orderId, OrderState orderState, Integer playform, String tradeId);
OrderManagerImpl.java(订单管理)
OrderInfo addOrderInfo(OrderInfo orderInfo);(增加订单)
void changeOrderState(String orderId, Integer OrderState, Integer platform, String tradeId);(修改订单)
OrderInfo getOrderInfo(String orderId);(根据订单号获取订单信息)
GenericPage<OrderInfo> queryOrder(Map<String, Object> queryMap;(分页查询订单接口)
boolean orderStatement(OrderInfo orderInfo);(订单结单接口)
List<OrderInfo> getOrderList(Map<String, Object> queryMap,String sortBy, boolean isAsc);(获取订单list)
标签:
原文地址:http://www.cnblogs.com/Crow00/p/4503148.html