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.

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