OrderNewService.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. package com.goafanti.order.service;
  2. import java.util.List;
  3. import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  4. import com.goafanti.common.model.TDunLog;
  5. import com.goafanti.common.model.TOrderDun;
  6. import com.goafanti.common.model.TOrderNew;
  7. import com.goafanti.common.model.TOrderRefund;
  8. import com.goafanti.common.model.TOrderRefundWithBLOBs;
  9. import com.goafanti.common.model.TOrderTask;
  10. import com.goafanti.core.mybatis.page.Pagination;
  11. import com.goafanti.order.bo.BackOrderListBo;
  12. import com.goafanti.order.bo.BillListBo;
  13. import com.goafanti.order.bo.TDunLogListBo;
  14. import com.goafanti.order.bo.TOrderNewBo;
  15. import com.goafanti.order.bo.TOrderRefundBo;
  16. import com.goafanti.order.bo.TOrderTaskBo;
  17. public interface OrderNewService {
  18. /**
  19. * 创建订单
  20. * @param uid
  21. * @param orderType
  22. * @return
  23. */
  24. int createServiceOrder(String uid, Integer orderType);
  25. /**
  26. * 创建项目
  27. * @param t
  28. */
  29. int addOrderTask(TOrderTask t);
  30. /**
  31. * 修改项目信息
  32. * @param t
  33. * @return
  34. */
  35. int updateOrderTask(TOrderTask t);
  36. /**
  37. * 删除项目
  38. * @param id
  39. * @return
  40. */
  41. int delectOrderTask(Integer id);
  42. /**
  43. * 项目详情
  44. * @param orderNo
  45. * @return
  46. */
  47. List<TOrderTaskBo> selectOrderTask(String orderNo);
  48. /**
  49. * 订单提交或保存
  50. * @param t
  51. * @param isSubmit
  52. * @return
  53. */
  54. int updateServiceOrder(TOrderNew t, Integer isSubmit);
  55. /**
  56. * 订单详情
  57. * @param orderNo
  58. * @return
  59. */
  60. TOrderNewBo getOrderNewDetail(String orderNo);
  61. /**
  62. * 收款截点编辑
  63. * @param orderDun
  64. * @return
  65. */
  66. int createOrderDun(String orderDun,String orderNo);
  67. /**
  68. * 订单列表
  69. * @param name
  70. * @param orderNo
  71. * @param starTime
  72. * @param endTime
  73. * @param orderStatus
  74. * @param pageNo
  75. * @param pageSize
  76. * @return
  77. */
  78. Pagination<TOrderNewBo> orderNewList(String name, String orderNo, String starTime, String endTime,Integer specially ,Integer distribution,Integer pageNo, Integer pageSize);
  79. /**
  80. * 订单审核
  81. * @param orderNo
  82. * @param orderStatus
  83. * @return
  84. */
  85. int updateOrderNew(String orderNo, Integer orderStatus,String reason);
  86. /**
  87. * 催款订单列表
  88. * @param name
  89. * @param orderNo
  90. * @param starTime
  91. * @param endTime
  92. * @param orderStatus
  93. * @param pageNo
  94. * @param pageSize
  95. * @return
  96. */
  97. Pagination<TOrderNewBo> dunOrderNewList(String name, String orderNo, String starTime, String endTime, Integer specially,
  98. Integer pageNo, Integer pageSize);
  99. /**
  100. * 新增催款记录
  101. * @return
  102. */
  103. int createDunLog(String dunId,String dumTime,String remarks);
  104. /**
  105. * 查询催款记录
  106. * @param dunId
  107. * @return
  108. */
  109. List<TDunLogListBo> selectDunLogList(String dunId);
  110. /**
  111. * 新增退单
  112. * @param t
  113. * @return
  114. */
  115. int addOrderRefund(TOrderRefundWithBLOBs t);
  116. /**
  117. * 特批审核
  118. * @param orderNo
  119. * @param confirm
  120. * @return
  121. */
  122. int updateApprovalOrder(String orderNo,Integer confirm,String reason);
  123. /**
  124. * 查看收款截点
  125. * @param orderNo
  126. * @return
  127. */
  128. List<TOrderDun> selectOrderDun(String orderNo);
  129. /**
  130. * 退单列表
  131. * @param name
  132. * @param orderNo
  133. * @param starTime
  134. * @param endTime
  135. * @param specially
  136. * @param pageNo
  137. * @param pageSize
  138. * @return
  139. */
  140. Pagination<TOrderRefundBo> orderRefundList(String name, String orderNo, String starTime, String endTime, Integer specially,
  141. Integer pageNo, Integer pageSize);
  142. boolean checkOrderMain(TOrderTask t);
  143. boolean chekeOrderStatus(String orderNo);
  144. boolean chekeApprovalOrderStatus(String orderNo);
  145. int deleteOrderNew(String orderNo);
  146. boolean checkOderSettlementAmount(String orderNo);
  147. boolean checkORderTask(String orderNo);
  148. HSSFWorkbook exportOrderDunData(String name, String orderNo, String starTime, String endTime);
  149. int checkOrderOver(String orderNo);
  150. }