OrderNewService.java 5.2 KB

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