OrderNewService.java 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package com.goafanti.order.service;
  2. import java.io.IOException;
  3. import java.io.UnsupportedEncodingException;
  4. import java.util.List;
  5. import javax.mail.MessagingException;
  6. import javax.servlet.http.HttpServletResponse;
  7. import com.goafanti.common.error.BusinessException;
  8. import com.goafanti.common.model.TOrderDun;
  9. import com.goafanti.common.model.TOrderNew;
  10. import com.goafanti.common.model.TOrderOutsource;
  11. import com.goafanti.common.model.TOrderRefundWithBLOBs;
  12. import com.goafanti.common.model.TOrderTask;
  13. import com.goafanti.core.mybatis.page.Pagination;
  14. import com.goafanti.order.bo.OrderDunTaskBo;
  15. import com.goafanti.order.bo.OrderRefundDetailBo;
  16. import com.goafanti.order.bo.OutNewOrderDunBo;
  17. import com.goafanti.order.bo.TDunLogListBo;
  18. import com.goafanti.order.bo.TOrderLogBo;
  19. import com.goafanti.order.bo.TOrderNewBo;
  20. import com.goafanti.order.bo.TOrderRefundBo;
  21. import com.goafanti.order.bo.TOrderTaskBo;
  22. import com.goafanti.order.bo.outOrderDunListBo;
  23. public interface OrderNewService {
  24. /**
  25. * 创建订单
  26. * @param uid
  27. * @param orderType
  28. * @return
  29. */
  30. int createServiceOrder(String uid, Integer orderType);
  31. /**
  32. * 创建项目
  33. * @param t
  34. */
  35. int addOrderTask(TOrderTask t);
  36. /**
  37. * 修改项目信息
  38. * @param t
  39. * @return
  40. */
  41. int updateOrderTask(TOrderTask t);
  42. /**
  43. * 删除项目
  44. * @param id
  45. * @return
  46. */
  47. int delectOrderTask(Integer id);
  48. /**
  49. * 项目详情
  50. * @param orderNo
  51. * @return
  52. */
  53. List<TOrderTaskBo> selectOrderTask(String orderNo);
  54. /**
  55. * 订单提交或保存
  56. * @param t
  57. * @param isSubmit
  58. * @return
  59. */
  60. int updateServiceOrder(TOrderNew t, Integer isSubmit);
  61. /**
  62. * 订单详情
  63. * @param orderNo
  64. * @return
  65. */
  66. TOrderNewBo getOrderNewDetail(String orderNo);
  67. /**
  68. * 收款截点编辑
  69. * @param orderDun
  70. * @return
  71. */
  72. int createOrderDun(String orderDun,String orderNo);
  73. /**
  74. * 订单列表
  75. * @param name
  76. * @param orderNo
  77. * @param starTime
  78. * @param endTime
  79. * @param orderStatus
  80. * @param pageNo
  81. * @param pageSize
  82. * @return
  83. */
  84. Pagination<TOrderNewBo> orderNewList(String name, String orderNo, String starTime, String endTime,Integer specially ,Integer approval,Integer distribution,String depId,String contractNo,Integer outsource,Integer liquidationStatus,Integer pageNo, Integer pageSize);
  85. /**
  86. * 订单审核
  87. * @param orderNo
  88. * @param orderStatus
  89. * @param object
  90. * @return
  91. */
  92. int updateOrderNew(String orderNo, Integer orderStatus,String reason,Integer outsource, TOrderOutsource object);
  93. /**
  94. * 催款订单列表
  95. * @param name
  96. * @param orderNo
  97. * @param starTime
  98. * @param endTime
  99. * @param orderStatus
  100. * @param pageNo
  101. * @param pageSize
  102. * @return
  103. */
  104. Pagination<outOrderDunListBo> dunOrderNewList(String name, String orderNo, String starTime, String endTime, Integer specially,String adminName,String depId,
  105. Integer newStatus,Integer pageNo, Integer pageSize);
  106. /**
  107. * 新增催款记录
  108. * @return
  109. */
  110. int createDunLog(String dunId,String dumTime,String remarks);
  111. /**
  112. * 查询催款记录
  113. * @param dunId
  114. * @return
  115. */
  116. List<TDunLogListBo> selectDunLogList(String dunId);
  117. /**
  118. * 新增退单
  119. * @param t
  120. * @return
  121. */
  122. int addOrderRefund(TOrderRefundWithBLOBs t);
  123. /**
  124. * 特批审核
  125. * @param orderNo
  126. * @param confirm
  127. * @return
  128. */
  129. int updateApprovalOrder(String orderNo,Integer confirm,String reason);
  130. /**
  131. * 查看收款截点
  132. * @param orderNo
  133. * @return
  134. */
  135. List<TOrderDun> selectOrderDun(String orderNo);
  136. /**
  137. * 退单列表
  138. * @param name
  139. * @param orderNo
  140. * @param starTime
  141. * @param endTime
  142. * @param specially
  143. * @param pageNo
  144. * @param pageSize
  145. * @return
  146. */
  147. Pagination<TOrderRefundBo> orderRefundList(String name, String orderNo, String starTime, String endTime, Integer specially,
  148. Integer pageNo, Integer pageSize);
  149. boolean checkOrderMain(TOrderTask t);
  150. boolean chekeOrderStatus(String orderNo);
  151. boolean chekeApprovalOrderStatus(String orderNo);
  152. int deleteOrderNew(String orderNo);
  153. boolean checkOderSettlementAmount(String orderNo);
  154. boolean checkORderTask(String orderNo);
  155. void exportOrderDunData(String name,String orderNo,String starTime,String endTime,Integer specially,String adminName,
  156. String depId,Integer newStatus,Integer pageNo,Integer pageSize,HttpServletResponse response) throws IOException ;
  157. int updateOrderOver(String orderNo);
  158. OrderRefundDetailBo orderRefundDetail(String id);
  159. int updateOrderRefund(TOrderRefundWithBLOBs t);
  160. int updatetechnicianBackOrder(String orderNo, String reason);
  161. List<OrderDunTaskBo> selectAllOrderDun();
  162. void updateOrderDun(TOrderDun tDun);
  163. void addNoticAndSendEmail(String orderNo, OrderDunTaskBo t, Integer code)throws UnsupportedEncodingException, MessagingException;
  164. void addNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
  165. void addTimingTaskNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
  166. boolean checkORderDun(String orderNo);
  167. int updateFinance(String orderNo, String newFinance);
  168. List<TOrderLogBo> selectOrderLog(String orderNo);
  169. void pushGeneralSendNoticeAndEmail(List<String> alist, Integer type,String OrderNo,String adminId,Integer approval);
  170. void exportOrderTaskData(String orderNo, HttpServletResponse response)throws IOException,BusinessException ;
  171. }