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.

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