广汽安道拓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.

243 lines
8.7 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package me
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/global"
  5. "LAPP_ACURA_MOM_BACKEND/grmi"
  6. model "LAPP_ACURA_MOM_BACKEND/models/me"
  7. "LAPP_ACURA_MOM_BACKEND/services/me/implments"
  8. )
  9. /******************************************************************************
  10. *
  11. * @Interface Name : ProductFamilyRelateService
  12. *-----------------------------------------------------------------------------
  13. *
  14. * @Description : ProductFamilyRelate的服务接口
  15. *
  16. * @Author : 代码生成器创建
  17. *
  18. * @Date : 2021-10-26 14:38:54
  19. *
  20. ******************************************************************************/
  21. type ProductFamilyRelateService interface {
  22. /******************************************************************************
  23. *
  24. * @Function Name : InsertOne
  25. *-----------------------------------------------------------------------------
  26. *
  27. * @Description : 插入一条ProductFamilyRelate
  28. *
  29. * @Function Parameters : 当前访问人员信息
  30. *
  31. * @Function Parameters : 需要插入的ProductFamilyRelate
  32. *
  33. * @Return Value : 执行时发生的错误
  34. *
  35. * @Author : 代码生成器创建
  36. *
  37. * @Date : 2021-10-26 14:38:54
  38. *
  39. ******************************************************************************/
  40. InsertOne(*global.User, *model.ProductFamilyRelate) error
  41. /******************************************************************************
  42. *
  43. * @Function Name : DeleteOne
  44. *-----------------------------------------------------------------------------
  45. *
  46. * @Description : 删除指定键的ProductFamilyRelate
  47. *
  48. * @Function Parameters : 主键
  49. *
  50. * @Function Parameters : 主键
  51. *
  52. * @Function Parameters : 主键
  53. *
  54. * @Return Value : 执行时发生的错误
  55. *
  56. * @Author : 代码生成器创建
  57. *
  58. * @Date : 2021-10-26 14:38:54
  59. *
  60. ******************************************************************************/
  61. DeleteOne(*global.User, string, string, string) error
  62. /******************************************************************************
  63. *
  64. * @Function Name : SelectOne
  65. *-----------------------------------------------------------------------------
  66. *
  67. * @Description : 查找指定键的ProductFamilyRelate
  68. *
  69. * @Function Parameters : 主键
  70. *
  71. * @Function Parameters : 主键
  72. *
  73. * @Function Parameters : 主键
  74. *
  75. * @Return Value : 查找到的ProductFamilyRelate
  76. *
  77. * @Return Value : 执行时发生的错误
  78. *
  79. * @Author : 代码生成器创建
  80. *
  81. * @Date : 2021-10-26 14:38:54
  82. *
  83. ******************************************************************************/
  84. SelectOne(*global.User, string, string, string) (*model.ProductFamilyRelate, error)
  85. /******************************************************************************
  86. *
  87. * @Function Name : UpdateOne
  88. *-----------------------------------------------------------------------------
  89. *
  90. * @Description : 修改一条ProductFamilyRelate
  91. *
  92. * @Function Parameters : 当前访问人员信息
  93. *
  94. * @Function Parameters : 需要修改的ProductFamilyRelate
  95. *
  96. * @Return Value : 执行时发生的错误
  97. *
  98. * @Author : 代码生成器创建
  99. *
  100. * @Date : 2021-10-26 14:38:54
  101. *
  102. ******************************************************************************/
  103. UpdateOne(*global.User, *model.ProductFamilyRelate) error
  104. /******************************************************************************
  105. *
  106. * @Function Name : Insert
  107. *-----------------------------------------------------------------------------
  108. *
  109. * @Description : 插入多条ProductFamilyRelate
  110. *
  111. * @Function Parameters : 当前访问人员信息
  112. *
  113. * @Function Parameters : 需要插入的ProductFamilyRelate列表
  114. *
  115. * @Return Value : 执行时发生的错误
  116. *
  117. * @Author : 代码生成器创建
  118. *
  119. * @Date : 2021-10-26 14:38:54
  120. *
  121. ******************************************************************************/
  122. Insert(*global.User, *[]model.ProductFamilyRelate) error
  123. /******************************************************************************
  124. *
  125. * @Function Name : Delete
  126. *-----------------------------------------------------------------------------
  127. *
  128. * @Description : 删除多条ProductFamilyRelate
  129. *
  130. * @Function Parameters : 当前访问人员信息
  131. *
  132. * @Function Parameters : 需要删除的ProductFamilyRelate列表
  133. *
  134. * @Return Value : 执行时发生的错误
  135. *
  136. * @Author : 代码生成器创建
  137. *
  138. * @Date : 2021-10-26 14:38:54
  139. *
  140. ******************************************************************************/
  141. Delete(*global.User, *[]model.ProductFamilyRelate) error
  142. /******************************************************************************
  143. *
  144. * @Function Name : Select
  145. *-----------------------------------------------------------------------------
  146. *
  147. * @Description : 查询ProductFamilyRelate
  148. *
  149. * @Function Parameters : 当前访问人员信息
  150. *
  151. * @Function Parameters : 查询参数
  152. *
  153. * @Return Value : 查询结果
  154. *
  155. * @Return Value : 执行时发生的错误
  156. *
  157. * @Author : 代码生成器创建
  158. *
  159. * @Date : 2021-10-26 14:38:54
  160. *
  161. ******************************************************************************/
  162. Select(*global.User, map[string]string) ([]model.ProductFamilyRelate, error)
  163. /******************************************************************************
  164. *
  165. * @Function Name : SelectAndPaging
  166. *-----------------------------------------------------------------------------
  167. *
  168. * @Description : 查询ProductFamilyRelate
  169. *
  170. * @Function Parameters : 当前访问人员信息
  171. *
  172. * @Function Parameters : 查询参数
  173. *
  174. * @Return Value : 查询结果
  175. *
  176. * @Return Value : 执行时发生的错误
  177. *
  178. * @Author : 代码生成器创建
  179. *
  180. * @Date : 2021-10-26 14:38:54
  181. *
  182. ******************************************************************************/
  183. SelectAndPaging(*global.User, map[string]string) (grmi.PagingResult, error)
  184. /******************************************************************************
  185. *
  186. * @Function Name : Update
  187. *-----------------------------------------------------------------------------
  188. *
  189. * @Description : 修改多条ProductFamilyRelate
  190. *
  191. * @Function Parameters : 当前访问人员信息
  192. *
  193. * @Function Parameters : 需要修改的ProductFamilyRelate列表
  194. *
  195. * @Return Value : 执行时发生的错误
  196. *
  197. * @Author : 代码生成器创建
  198. *
  199. * @Date : 2021-10-26 14:38:54
  200. *
  201. ******************************************************************************/
  202. Update(*global.User, *[]model.ProductFamilyRelate) error
  203. /******************************************************************************
  204. *
  205. * @Function Name : ImportFromExcel
  206. *-----------------------------------------------------------------------------
  207. *
  208. * @Description : 复制
  209. *
  210. * @Function Parameters : 当前访问人员信息
  211. *
  212. * @Function Parameters : 文件路径
  213. *
  214. * @Return Value : 执行时发生的错误
  215. *
  216. * @Author : zhangxin
  217. *
  218. * @Date : 2021-12-22
  219. *
  220. ******************************************************************************/
  221. ImportFromExcel(user *global.User, filepath string) error
  222. }
  223. /******************************************************************************
  224. *
  225. * @Function Name : NewProductFamilyRelateService
  226. *-----------------------------------------------------------------------------
  227. *
  228. * @Description : 创建一个ProductFamilyRelateService
  229. *
  230. * @Return Value : ProductFamilyRelateService实例
  231. *
  232. * @Author : 代码生成器创建
  233. *
  234. * @Date : 2021-10-26 14:38:54
  235. *
  236. ******************************************************************************/
  237. func NewProductFamilyRelateService() ProductFamilyRelateService {
  238. return implments.NewProductFamilyRelateServiceImplement()
  239. }