ComplaintDetectInfoService.java 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. package com.iamberry.rst.faces.fm;
  2. import com.iamberry.rst.core.fm.*;
  3. import com.iamberry.rst.core.page.PageRequest;
  4. import com.iamberry.rst.core.page.PagedResult;
  5. import com.iamberry.rst.core.sys.Admin;
  6. import java.util.List;
  7. /**
  8. * 客诉-品质检测产品service
  9. */
  10. public interface ComplaintDetectInfoService {
  11. /**
  12. * 查询单个品质检测产品
  13. * @return
  14. */
  15. ComplaintDetectInfo getDetectById(Integer detectId);
  16. /**
  17. * 修改单个待品质检测产品
  18. * @return
  19. */
  20. int updateDetectById(ComplaintDetectInfo record);
  21. /**
  22. * 修改单个待品质检测产品qc检测记录
  23. * @return
  24. */
  25. int updateDetectQc(ComplaintDetectInfo record);
  26. /**
  27. * 修改单个待维修内容
  28. * @return
  29. */
  30. int updateDetectContent(ComplaintDetectInfo record);
  31. /**
  32. * 修改单个待品质检测产品并添加图片
  33. * @return
  34. */
  35. int updateDetectById(ComplaintDetectInfo record,String[] imgs);
  36. /**
  37. * 获取品质检测列表
  38. * @return
  39. */
  40. PagedResult<ComplaintDetectInfo> listComplaintDetect(PageRequest<ComplaintDetectInfo> pageRequest);
  41. /**
  42. * 添加品检项
  43. * @return
  44. */
  45. int insert(ComplaintDetectInfo complaintDetectInfo);
  46. /**
  47. * 删除品检项
  48. * @return
  49. */
  50. int deleteDetect(Integer detectId);
  51. /**
  52. * 查询检测内容
  53. * @return
  54. */
  55. List<DetectionBasis> listDetectionBasis(DetectionBasis detectionBasis);
  56. /**
  57. * 添加检测图片
  58. * @return
  59. */
  60. int addDetectImg(ComplaintDetectImg complaintDetectImg);
  61. /**
  62. * 获取品质检测列表
  63. * @return
  64. */
  65. List<ComplaintDetectInfo> listComplaintDetect(ComplaintDetectInfo detectInfo);
  66. /**
  67. * 客服确认处理方式
  68. * @return
  69. */
  70. boolean customerConfirm(ComplaintDetectInfo detectInfo,Admin admin);
  71. /**
  72. * 业务员确认处理方式
  73. * @return
  74. */
  75. boolean salesmanConfirm(ComplaintDetectInfo detectInfo);
  76. /**
  77. * 查询检测图片
  78. * @return
  79. */
  80. List<ComplaintDetectImg> listDetectImg(Integer detectId);
  81. /**
  82. * 查询当前月份维修数量
  83. * @return
  84. */
  85. Integer getDetectNum();
  86. /**
  87. * 查询物料代码
  88. * @return
  89. */
  90. List<MaterialNumberInfo> listMaterialNumber();
  91. /**
  92. * 查询维修配置
  93. * @return
  94. */
  95. List<DetectionConfig> listDetectionConfig(Integer configType);
  96. /**
  97. * 查询单个维修配置
  98. * @return
  99. */
  100. DetectionConfig getDetectionConfig(Integer configId);
  101. /**
  102. * 添加检测信息项
  103. * @return
  104. */
  105. Integer insertItem(DetectionItem detectionItem);
  106. /**
  107. * 查询检测项
  108. * @return
  109. */
  110. List<DetectionItem> listDetectionItem(DetectionItem detectionItem);
  111. /**
  112. * 删除检测项
  113. * @return
  114. */
  115. Integer detectDetectionItem(Integer detectId);
  116. /**
  117. * 查询维修配件
  118. * @return
  119. */
  120. MaterialNumberInfo getMaterialNumber(Integer materialId);
  121. /**
  122. * 添加维修配件记录
  123. * @return
  124. */
  125. Integer addMaterialItem(MaterialItem materialItem);
  126. /**
  127. * 查询维修配件记录
  128. * @return
  129. */
  130. List<MaterialItem> listMaterialItem(Integer detectId);
  131. /**
  132. * 删除维修配件记录
  133. * @return
  134. */
  135. Integer detectMaterialItem(Integer detectId);
  136. /**
  137. * 添加qc检测记录
  138. * @return
  139. */
  140. Integer addQcInfo(QcInfo qcInfo);
  141. /**
  142. * 查询qc检测记录
  143. * @return
  144. */
  145. List<QcInfo> listQcInfo(Integer detectId);
  146. /**
  147. * 添加客诉售后处理修改记录
  148. * @return
  149. */
  150. Integer addTreatmentRecordLog(TreatmentRecordLog treatmentRecordLog);
  151. /**
  152. * 查询客诉售后处理修改记录
  153. * @return
  154. */
  155. List<TreatmentRecordLog> listTreatmentRecordLog(Integer detectId);
  156. /**
  157. * 查询检测数量
  158. * @return
  159. */
  160. ComplaintAfterSalesNum getCustomerDetectNum(ComplaintDetectInfo detect);
  161. /**
  162. * 修改打印状态
  163. * @return
  164. */
  165. Integer updatePrint(ComplaintDetectInfo detectInfo);
  166. /**
  167. * 已完成维修、原机退货,并且发货状态为待下单的维修记录,则需要查询当前客诉对应的维修机器
  168. * @return
  169. */
  170. List<ComplaintDetectInfo> listDetectByCustomerId(Integer customerId);
  171. /**
  172. * 查询订单关联的维修
  173. * @return
  174. */
  175. List<ComplaintDetectInfo> listComplaintDetectBySalesId(String detectSalesId);
  176. /**
  177. * 查询各状态条数
  178. * @return
  179. */
  180. ComplaintAfterSalesNum getDetectCount();
  181. /**
  182. * 检测超时查询
  183. * @return
  184. */
  185. List<ComplaintDetectInfo> listMaintenanceCutNotice();
  186. /**
  187. * 维修超时查询
  188. * @return
  189. */
  190. List<ComplaintDetectInfo> listCompleteCutNotice();
  191. /**
  192. * 完善客户信息
  193. * @return
  194. */
  195. Integer perfectDetect(ComplaintDetectInfo detectInfo);
  196. /**
  197. * 添加维修基础信息
  198. * @return
  199. */
  200. Integer addConfig(DetectionConfig detectionConfig);
  201. /**
  202. * 添加维修维修配件基础信息
  203. * @return
  204. */
  205. Integer addMaterial(MaterialNumberInfo materialNumberInfo);
  206. }