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.

280 lines
10 KiB

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