| package com.matrix.system.hive.service; | 
|   | 
| import com.matrix.core.exception.GlobleException; | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.app.dto.OrderListDto; | 
| import com.matrix.system.app.vo.OrderDetailVo; | 
| import com.matrix.system.app.vo.RankingVo; | 
| import com.matrix.system.hive.bean.SysOrder; | 
| import com.matrix.system.hive.plugin.util.BaseServices; | 
| import com.matrix.system.hive.pojo.CzXkVo; | 
| import com.matrix.system.hive.pojo.ShoppingCarItemsVo; | 
| import org.springframework.transaction.annotation.Transactional; | 
|   | 
| import javax.servlet.http.HttpSession; | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-03 20:53 | 
|  */ | 
| public interface SysOrderService  extends BaseServices<SysOrder>{ | 
|      | 
|     /** | 
|      * 新增SysOrder | 
|      *  | 
|      */ | 
|     public int add(SysOrder sysOrder); | 
|         | 
|        /** | 
|      * 更新SysOrder | 
|      *  | 
|      */ | 
|     public int modify(SysOrder sysOrder); | 
|      | 
|     /** | 
|      * 批量删除SysOrder | 
|      * | 
|      */ | 
|     public int remove(List<Long> list); | 
|   | 
|     public int cancelOrder(Long id); | 
|     /** | 
|      * 根据id删除SysOrder | 
|      * | 
|      */ | 
|     public int removeById(Long id); | 
|      | 
|     /** | 
|      * 分页查询SysOrder | 
|      *  | 
|      */ | 
|     public List<SysOrder> findInPage(SysOrder sysOrder, PaginationVO pageVo); | 
|      | 
|     /** | 
|      * 分页查询SysOrder | 
|      *  | 
|      */ | 
|   | 
|   | 
|     /**addMoneyCardUse | 
|      * 根据对象查询SysOrder | 
|      *  | 
|      */ | 
|     public List<SysOrder> findByModel(SysOrder sysOrder); | 
|      | 
|   | 
|      | 
|     /** | 
|      * 根据id查询SysOrder | 
|      */ | 
|     public SysOrder  findById(Long id); | 
|      | 
|      | 
|   | 
|      | 
|     /** | 
|      *  | 
|     * @Title: updateReceiptMoney  收款 | 
|     * @author:jyy | 
|     * @param staffId   操作人id | 
|     * @param sysOrder  订单 | 
|     * @date 2016年7月18日 上午11:14:07 | 
|     * @throws | 
|      */ | 
|     public void updateReceiptMoney(SysOrder sysOrder) throws GlobleException; | 
|   | 
|     public void refundOrderMoney(SysOrder sysOrder); | 
|   | 
|     /** | 
|      * 创建订单 | 
|      * @param session | 
|      * @param car | 
|      * @return | 
|      */ | 
|     @Transactional(rollbackFor = Exception.class) | 
|     public int createOrder(HttpSession session, ShoppingCarItemsVo car); | 
|   | 
|   | 
|     /** | 
|      * 补交 | 
|     * @Title: updateAfterMoney  | 
|     * @author:jyy | 
|     * @param order | 
|     * @date 2016年9月13日 上午10:43:31 | 
|     * @throws | 
|      */ | 
|     public void updateAfterMoney(SysOrder order); | 
|     /** | 
|   | 
|     * @Title: updateAddCardMoney | 
|     * @author:jyy | 
|     * @date 2016年9月20日 下午12:07:21 | 
|     * @throws | 
|      */ | 
|     public SysOrder updateAddCardMoney(CzXkVo czVo); | 
|   | 
|   | 
|     public void addMoneyCardUse(SysOrder sourceOrder); | 
|   | 
|     public void addOutStore(SysOrder sourceOrder); | 
|   | 
|     public void addTaocanProj(SysOrder sourceOrder); | 
|   | 
|     public void setShopSelCount(SysOrder sourceOrder); | 
|   | 
|   | 
|     /** | 
|      * 校验订单是否满足结算条件 | 
|      * 如果满足则保存为待付款订单 | 
|      * @param sysOrder | 
|      * @return | 
|      */ | 
|     SysOrder checkAndSaveOrder(SysOrder sysOrder); | 
|   | 
|     SysOrder findSysOrderTjByVipId(Long vipId); | 
|   | 
|     List<OrderDetailVo> findApiOrderListInPage(OrderListDto orderListDto, PaginationVO pageVo); | 
|   | 
|     int findApiOrderListTotal(OrderListDto orderListDto); | 
|   | 
|     OrderDetailVo findApiOrderDetailByOrderId(Long orderId); | 
|   | 
|     List<RankingVo> findApiShopAchieveRanking(SysOrder sysOrder); | 
|   | 
| } |