GAAS GFrame项目web后台
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.

288 lines
10 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_GAAS_GFrame_BACKEND/dao/base/implments"
  5. "LAPP_GAAS_GFrame_BACKEND/grmi"
  6. model "LAPP_GAAS_GFrame_BACKEND/models/base"
  7. "github.com/go-xorm/xorm"
  8. )
  9. /******************************************************************************
  10. *
  11. * @Interface Name : ArticleAtcodLstDAO
  12. *-----------------------------------------------------------------------------
  13. *
  14. * @Description : ArticleAtcodLst的数据访问对象接口
  15. *
  16. * @Author : 代码生成器创建
  17. *
  18. * @Date : 2021-04-19 09:34:38
  19. *
  20. ******************************************************************************/
  21. type ArticleAtcodLstDAO interface {
  22. /******************************************************************************
  23. *
  24. * @Function Name : InsertOne
  25. *-----------------------------------------------------------------------------
  26. *
  27. * @Description : 插入一条ArticleAtcodLst
  28. *
  29. * @Function Parameters : 需要插入的ArticleAtcodLst
  30. *
  31. * @Return Value : 执行时发生的错误
  32. *
  33. * @Author : 代码生成器创建
  34. *
  35. * @Date : 2021-04-19 09:34:38
  36. *
  37. ******************************************************************************/
  38. InsertOne(*model.ArticleAtcodLst) error
  39. /******************************************************************************
  40. *
  41. * @Function Name : DeleteOne
  42. *-----------------------------------------------------------------------------
  43. *
  44. * @Description : 删除指定键的ArticleAtcodLst
  45. *
  46. * @Function Parameters : 主键
  47. *
  48. * @Function Parameters : 主键
  49. *
  50. * @Function Parameters : 主键
  51. *
  52. * @Function Parameters : 主键
  53. *
  54. * @Function Parameters : 主键
  55. *
  56. * @Return Value : 执行时发生的错误
  57. *
  58. * @Author : 代码生成器创建
  59. *
  60. * @Date : 2021-04-19 09:34:38
  61. *
  62. ******************************************************************************/
  63. DeleteOne(string, int, string, int, string) error
  64. /******************************************************************************
  65. *
  66. * @Function Name : SelectOne
  67. *-----------------------------------------------------------------------------
  68. *
  69. * @Description : 查找指定键的ArticleAtcodLst
  70. *
  71. * @Function Parameters : 主键
  72. *
  73. * @Function Parameters : 主键
  74. *
  75. * @Function Parameters : 主键
  76. *
  77. * @Function Parameters : 主键
  78. *
  79. * @Function Parameters : 主键
  80. *
  81. * @Return Value : 查找到的ArticleAtcodLst
  82. *
  83. * @Return Value : 执行时发生的错误
  84. *
  85. * @Author : 代码生成器创建
  86. *
  87. * @Date : 2021-04-19 09:34:38
  88. *
  89. ******************************************************************************/
  90. SelectOne(string, int, string, int, string) (*model.ArticleAtcodLst, error)
  91. /******************************************************************************
  92. *
  93. * @Function Name : UpdateOne
  94. *-----------------------------------------------------------------------------
  95. *
  96. * @Description : 修改ArticleAtcodLst
  97. *
  98. * @Function Parameters : 需要修改的ArticleAtcodLst
  99. *
  100. * @Return Value : 执行时发生的错误
  101. *
  102. * @Author : 代码生成器创建
  103. *
  104. * @Date : 2021-04-19 09:34:38
  105. *
  106. ******************************************************************************/
  107. UpdateOne(*model.ArticleAtcodLst) error
  108. /******************************************************************************
  109. *
  110. * @Function Name : Insert
  111. *-----------------------------------------------------------------------------
  112. *
  113. * @Description : 插入多条ArticleAtcodLst
  114. *
  115. * @Function Parameters : 需要插入的ArticleAtcodLst列表
  116. *
  117. * @Return Value : 执行时发生的错误
  118. *
  119. * @Author : 代码生成器创建
  120. *
  121. * @Date : 2021-04-19 09:34:38
  122. *
  123. ******************************************************************************/
  124. Insert(*[]model.ArticleAtcodLst) error
  125. /******************************************************************************
  126. *
  127. * @Function Name : Delete
  128. *-----------------------------------------------------------------------------
  129. *
  130. * @Description : 删除多条ArticleAtcodLst
  131. *
  132. * @Function Parameters : 需要删除的ArticleAtcodLst列表
  133. *
  134. * @Return Value : 执行时发生的错误
  135. *
  136. * @Author : 代码生成器创建
  137. *
  138. * @Date : 2021-04-19 09:34:38
  139. *
  140. ******************************************************************************/
  141. Delete(*[]model.ArticleAtcodLst) error
  142. /******************************************************************************
  143. *
  144. * @Function Name : DeleteWhere
  145. *-----------------------------------------------------------------------------
  146. *
  147. * @Description : 按条件删除ArticleAtcodLst
  148. *
  149. * @Return Value : 执行时发生的错误
  150. *
  151. * @Author : 代码生成器创建
  152. *
  153. * @Date : 2021-04-19 09:34:38
  154. *
  155. ******************************************************************************/
  156. DeleteWhere([]grmi.Predicate) error
  157. /******************************************************************************
  158. *
  159. * @Function Name : Select
  160. *-----------------------------------------------------------------------------
  161. *
  162. * @Description : 按条件查询ArticleAtcodLst
  163. *
  164. * @Function Parameters : 查询条件
  165. *
  166. * @Function Parameters : 排序字段
  167. *
  168. * @Return Value : 查询结果
  169. *
  170. * @Return Value : 执行时发生的错误
  171. *
  172. * @Author : 代码生成器创建
  173. *
  174. * @Date : 2021-04-19 09:34:38
  175. *
  176. ******************************************************************************/
  177. Select([]grmi.Predicate, []grmi.Field) ([]model.ArticleAtcodLst, error)
  178. /******************************************************************************
  179. *
  180. * @Function Name : SelectAndPaging
  181. *-----------------------------------------------------------------------------
  182. *
  183. * @Description : 按条件查询ArticleAtcodLst并分页
  184. *
  185. * @Function Parameters : 分页信息
  186. *
  187. * @Function Parameters : 查询条件
  188. *
  189. * @Function Parameters : 排序字段
  190. *
  191. * @Return Value : 查询结果
  192. *
  193. * @Return Value : 执行时发生的错误
  194. *
  195. * @Author : 代码生成器创建
  196. *
  197. * @Date : 2021-04-19 09:34:38
  198. *
  199. ******************************************************************************/
  200. SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
  201. /******************************************************************************
  202. *
  203. * @Function Name : Update
  204. *-----------------------------------------------------------------------------
  205. *
  206. * @Description : 修改多条ArticleAtcodLst
  207. *
  208. * @Function Parameters : 需要修改的ArticleAtcodLst列表
  209. *
  210. * @Return Value : 执行时发生的错误
  211. *
  212. * @Author : 代码生成器创建
  213. *
  214. * @Date : 2021-04-19 09:34:38
  215. *
  216. ******************************************************************************/
  217. Update(*[]model.ArticleAtcodLst) error
  218. /******************************************************************************
  219. *
  220. * @Function Name : UpdateWhere
  221. *-----------------------------------------------------------------------------
  222. *
  223. * @Description : 按条件修改ArticleAtcodLst
  224. *
  225. * @Return Value : 执行时发生的错误
  226. *
  227. * @Author : 代码生成器创建
  228. *
  229. * @Date : 2021-04-19 09:34:38
  230. *
  231. ******************************************************************************/
  232. UpdateWhere([]grmi.Predicate, *model.ArticleAtcodLst, ...string) error
  233. /******************************************************************************
  234. *
  235. * @Function Name : SelectAllot
  236. *-----------------------------------------------------------------------------
  237. *
  238. * @Description : 通过ArticleAtcodLst和Attribute联查出已分配的属性
  239. *
  240. * @Return Value : 执行时发生的错误
  241. *
  242. * @Author : Lou Wen Zhi
  243. *
  244. * @Date : 2021-04-19 09:53:49
  245. *
  246. ******************************************************************************/
  247. SelectAllot(artId string) ([]model.Attribute, error)
  248. /******************************************************************************
  249. *
  250. * @Function Name : SelectUnAllot
  251. *-----------------------------------------------------------------------------
  252. *
  253. * @Description : 通过ArticleAtcodLst查询出未分配的属性
  254. *
  255. * @Return Value : 执行时发生的错误
  256. *
  257. * @Author : Lou Wen Zhi
  258. *
  259. * @Date : 2021-04-19 09:53:49
  260. *
  261. ******************************************************************************/
  262. SelectUnAllot(attrCodes []int) ([]model.Attribute, error)
  263. }
  264. /******************************************************************************
  265. *
  266. * @Function Name : NewArticleAtcodLstDAO
  267. *-----------------------------------------------------------------------------
  268. *
  269. * @Description : 创建一个ArticleAtcodLstDAO实例
  270. *
  271. * @Function Parameters : xorm会话
  272. *
  273. * @Function Parameters : 基本主键
  274. *
  275. * @Return Value : ArticleAtcodLstDAO实例
  276. *
  277. * @Author : 代码生成器创建
  278. *
  279. * @Date : 2021-04-19 09:34:38
  280. *
  281. ******************************************************************************/
  282. func NewArticleAtcodLstDAO(session *xorm.Session, plantNr int, userid string) ArticleAtcodLstDAO {
  283. return implments.NewArticleAtcodLstDAOImplement(session, plantNr, userid)
  284. }