广汽安道拓Acura项目MES后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

395 lines
14 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package jit
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/global"
  5. "LAPP_ACURA_MOM_BACKEND/grmi"
  6. model "LAPP_ACURA_MOM_BACKEND/models/jit"
  7. "LAPP_ACURA_MOM_BACKEND/services/jit/implments"
  8. )
  9. /******************************************************************************
  10. *
  11. * @Interface Name : ShipOrderService
  12. *-----------------------------------------------------------------------------
  13. *
  14. * @Description : ShipOrder的服务接口
  15. *
  16. * @Author : 代码生成器创建
  17. *
  18. * @Date : 2021-10-19 10:26:40
  19. *
  20. ******************************************************************************/
  21. type ShipOrderService interface {
  22. /******************************************************************************
  23. *
  24. * @Function Name : InsertOne
  25. *-----------------------------------------------------------------------------
  26. *
  27. * @Description : 插入一条ShipOrder
  28. *
  29. * @Function Parameters : 当前访问人员信息
  30. *
  31. * @Function Parameters : 需要插入的ShipOrder
  32. *
  33. * @Return Value : 执行时发生的错误
  34. *
  35. * @Author : 代码生成器创建
  36. *
  37. * @Date : 2021-10-19 10:26:40
  38. *
  39. ******************************************************************************/
  40. InsertOne(*global.User, *model.ShipOrder) error
  41. /******************************************************************************
  42. *
  43. * @Function Name : DeleteOne
  44. *-----------------------------------------------------------------------------
  45. *
  46. * @Description : 删除指定键的ShipOrder
  47. *
  48. * @Function Parameters : 主键
  49. *
  50. * @Return Value : 执行时发生的错误
  51. *
  52. * @Author : 代码生成器创建
  53. *
  54. * @Date : 2021-10-19 10:26:40
  55. *
  56. ******************************************************************************/
  57. DeleteOne(*global.User, string) error
  58. /******************************************************************************
  59. *
  60. * @Function Name : SelectOne
  61. *-----------------------------------------------------------------------------
  62. *
  63. * @Description : 查找指定键的ShipOrder
  64. *
  65. * @Function Parameters : 主键
  66. *
  67. * @Return Value : 查找到的ShipOrder
  68. *
  69. * @Return Value : 执行时发生的错误
  70. *
  71. * @Author : 代码生成器创建
  72. *
  73. * @Date : 2021-10-19 10:26:40
  74. *
  75. ******************************************************************************/
  76. SelectOne(*global.User, string) (*model.ShipOrder, error)
  77. /******************************************************************************
  78. *
  79. * @Function Name : UpdateOne
  80. *-----------------------------------------------------------------------------
  81. *
  82. * @Description : 修改一条ShipOrder
  83. *
  84. * @Function Parameters : 当前访问人员信息
  85. *
  86. * @Function Parameters : 需要修改的ShipOrder
  87. *
  88. * @Return Value : 执行时发生的错误
  89. *
  90. * @Author : 代码生成器创建
  91. *
  92. * @Date : 2021-10-19 10:26:40
  93. *
  94. ******************************************************************************/
  95. UpdateOne(*global.User, *model.ShipOrder) error
  96. /******************************************************************************
  97. *
  98. * @Function Name : Insert
  99. *-----------------------------------------------------------------------------
  100. *
  101. * @Description : 插入多条ShipOrder
  102. *
  103. * @Function Parameters : 当前访问人员信息
  104. *
  105. * @Function Parameters : 需要插入的ShipOrder列表
  106. *
  107. * @Return Value : 执行时发生的错误
  108. *
  109. * @Author : 代码生成器创建
  110. *
  111. * @Date : 2021-10-19 10:26:40
  112. *
  113. ******************************************************************************/
  114. Insert(*global.User, *[]model.ShipOrder) error
  115. /******************************************************************************
  116. *
  117. * @Function Name : Delete
  118. *-----------------------------------------------------------------------------
  119. *
  120. * @Description : 删除多条ShipOrder
  121. *
  122. * @Function Parameters : 当前访问人员信息
  123. *
  124. * @Function Parameters : 需要删除的ShipOrder列表
  125. *
  126. * @Return Value : 执行时发生的错误
  127. *
  128. * @Author : 代码生成器创建
  129. *
  130. * @Date : 2021-10-19 10:26:40
  131. *
  132. ******************************************************************************/
  133. Delete(*global.User, *[]model.ShipOrder) error
  134. /******************************************************************************
  135. *
  136. * @Function Name : Select
  137. *-----------------------------------------------------------------------------
  138. *
  139. * @Description : 查询ShipOrder
  140. *
  141. * @Function Parameters : 当前访问人员信息
  142. *
  143. * @Function Parameters : 查询参数
  144. *
  145. * @Return Value : 查询结果
  146. *
  147. * @Return Value : 执行时发生的错误
  148. *
  149. * @Author : 代码生成器创建
  150. *
  151. * @Date : 2021-10-19 10:26:40
  152. *
  153. ******************************************************************************/
  154. Select(*global.User, map[string]string) ([]model.ShipOrder, error)
  155. /******************************************************************************
  156. *
  157. * @Function Name : SelectAndPaging
  158. *-----------------------------------------------------------------------------
  159. *
  160. * @Description : 查询ShipOrder
  161. *
  162. * @Function Parameters : 当前访问人员信息
  163. *
  164. * @Function Parameters : 查询参数
  165. *
  166. * @Return Value : 查询结果
  167. *
  168. * @Return Value : 执行时发生的错误
  169. *
  170. * @Author : 代码生成器创建
  171. *
  172. * @Date : 2021-10-19 10:26:40
  173. *
  174. ******************************************************************************/
  175. SelectAndPaging(*global.User, map[string]string) (grmi.PagingResult, error)
  176. /******************************************************************************
  177. *
  178. * @Function Name : Update
  179. *-----------------------------------------------------------------------------
  180. *
  181. * @Description : 修改多条ShipOrder
  182. *
  183. * @Function Parameters : 当前访问人员信息
  184. *
  185. * @Function Parameters : 需要修改的ShipOrder列表
  186. *
  187. * @Return Value : 执行时发生的错误
  188. *
  189. * @Author : 代码生成器创建
  190. *
  191. * @Date : 2021-10-19 10:26:40
  192. *
  193. ******************************************************************************/
  194. Update(*global.User, *[]model.ShipOrder) error
  195. /******************************************************************************
  196. *
  197. * @Function Name : ChangeAdvanceToFormal
  198. *-----------------------------------------------------------------------------
  199. *
  200. * @Description : 翻车 从预发运单转换成发运单
  201. *
  202. * @Function Parameters : 当前访问人员信息
  203. *
  204. * @Function Parameters : 预发运单ID
  205. *
  206. * @Function Parameters : 发运单ID
  207. *
  208. * @Return Value : 执行时发生的错误
  209. *
  210. * @Author : zhangxin
  211. *
  212. * @Date : 2021-11-03
  213. *
  214. ******************************************************************************/
  215. ChangeAdvanceToFormal(user *global.User, advanceShipOrderId string, formalShipOrderId string) error
  216. /******************************************************************************
  217. *
  218. * @Function Name : ScanBarCode
  219. *-----------------------------------------------------------------------------
  220. *
  221. * @Description : 扫码 进行发运
  222. *
  223. * @Function Parameters : 当前访问人员信息
  224. *
  225. * @Function Parameters : 工单条码
  226. *
  227. * @Function Parameters : 发运单ID
  228. *
  229. * @Return Value : 执行时发生的错误
  230. *
  231. * @Author : zhangxin
  232. *
  233. * @Date : 2021-11-03
  234. *
  235. ******************************************************************************/
  236. ScanBarCode(user *global.User, barCode string, shipOrderId string, workPlaceNr int) (result *model.ShipResult, err error)
  237. /******************************************************************************
  238. *
  239. * @Function Name : CreateAdvanceShipOrderByEdit
  240. *-----------------------------------------------------------------------------
  241. *
  242. * @Description : 通过页面编辑创建发运单
  243. *
  244. * @Function Parameters : 当前访问人员信息
  245. *
  246. * @Function Parameters : 编辑的发运单
  247. *
  248. * @Return Value : 执行时发生的错误
  249. *
  250. * @Author : zhangxin
  251. *
  252. * @Date : 2021-11-03
  253. *
  254. ******************************************************************************/
  255. CreateAdvanceShipOrderByEdit(user *global.User, shipOrder *model.ShipOrder) (err error)
  256. /******************************************************************************
  257. *
  258. * @Function Name : CreateAdvanceShipOrder
  259. *-----------------------------------------------------------------------------
  260. *
  261. * @Description : 通过包装模板创建发运单
  262. *
  263. * @Function Parameters : 当前访问人员信息
  264. *
  265. * @Function Parameters : 模板ID
  266. *
  267. * @Return Value : 执行时发生的错误
  268. *
  269. * @Author : zhangxin
  270. *
  271. * @Date : 2021-11-03
  272. *
  273. ******************************************************************************/
  274. CreateAdvanceShipOrder(user *global.User, shipTemplateId string, projectId string, plateNumber string, checkCarSet bool, planQty int) (err error)
  275. /******************************************************************************
  276. *
  277. * @Function Name : CloseShipOrder
  278. *-----------------------------------------------------------------------------
  279. *
  280. * @Description : 关闭用户不是通过包装模板创建的预发运单
  281. *
  282. * @Function Parameters : 当前访问人员信息
  283. *
  284. * @Function Parameters : shipOrderId
  285. *
  286. * @Return Value : 执行时发生的错误
  287. *
  288. * @Author : zhangxin
  289. *
  290. * @Date : 2021-11-03
  291. *
  292. ******************************************************************************/
  293. CloseShipOrder(user *global.User, shipOrderId string) error
  294. /******************************************************************************
  295. *
  296. * @Function Name : SelectWithStatus
  297. *-----------------------------------------------------------------------------
  298. *
  299. * @Description : 查询ShipOrder
  300. *
  301. * @Function Parameters : 当前访问人员信息
  302. *
  303. * @Function Parameters : 查询参数
  304. *
  305. * @Return Value : 查询结果
  306. *
  307. * @Return Value : 执行时发生的错误
  308. *
  309. * @Author : 代码生成器创建
  310. *
  311. * @Date : 2021-10-19 10:26:40
  312. *
  313. ******************************************************************************/
  314. SelectWithStatus(user *global.User, urlParameters map[string]string) ([]model.ShipOrderWithStatus, error)
  315. /******************************************************************************
  316. *
  317. * @Function Name : SelectShipDataBySerialOrderId
  318. *-----------------------------------------------------------------------------
  319. *
  320. * @Description : 通过工单查询发运单
  321. *
  322. * @Function Parameters : 当前访问人员信息
  323. *
  324. * @Function Parameters : 工单
  325. *
  326. * @Return Value : 查询结果
  327. *
  328. * @Return Value : 执行时发生的错误
  329. *
  330. * @Author : zhangxin
  331. *
  332. * @Date : 2022-03-09
  333. *
  334. ******************************************************************************/
  335. SelectShipDataBySerialOrderId(user *global.User, serialOrderId string) ([]model.ShipOrderWithStatus, error)
  336. /******************************************************************************
  337. *
  338. * @Function Name : WithdrawShipOrderItem
  339. *-----------------------------------------------------------------------------
  340. *
  341. * @Description : 发运单子项回撤
  342. *
  343. * @Function Parameters : 当前访问人员信息
  344. *
  345. * @Function Parameters : 发运单
  346. *
  347. * @Return Value : 子项索引
  348. *
  349. * @Return Value : 执行时发生的错误
  350. *
  351. * @Author : zhangxin
  352. *
  353. * @Date : 2022-03-11
  354. *
  355. ******************************************************************************/
  356. WithdrawShipOrderItem(user *global.User, shipOrderId string, pos int) error
  357. /******************************************************************************
  358. *
  359. * @Function Name : CreateSpecialShipOrder
  360. *-----------------------------------------------------------------------------
  361. *
  362. * @Description : 创建特殊发运单
  363. *
  364. * @Function Parameters : 当前访问人员信息
  365. *
  366. * @Return Value : 执行时发生的错误
  367. *
  368. * @Author : zhangxin
  369. *
  370. * @Date : 2022-05-13
  371. *
  372. ******************************************************************************/
  373. CreateSpecialShipOrder(user *global.User) error
  374. }
  375. /******************************************************************************
  376. *
  377. * @Function Name : NewShipOrderService
  378. *-----------------------------------------------------------------------------
  379. *
  380. * @Description : 创建一个ShipOrderService
  381. *
  382. * @Return Value : ShipOrderService实例
  383. *
  384. * @Author : 代码生成器创建
  385. *
  386. * @Date : 2021-10-19 10:26:40
  387. *
  388. ******************************************************************************/
  389. func NewShipOrderService() ShipOrderService {
  390. return implments.NewShipOrderServiceImplement()
  391. }