ctr_contract_advance.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "context"
  7. "database/sql"
  8. "time"
  9. "dashoo.cn/opms_parent/app/model/contract"
  10. "github.com/gogf/gf/database/gdb"
  11. "github.com/gogf/gf/frame/g"
  12. "github.com/gogf/gf/frame/gmvc"
  13. )
  14. // CtrContractAdvanceDao is the manager for logic model data accessing
  15. // and custom defined data operations functions management.
  16. type CtrContractAdvanceDao struct {
  17. gmvc.M
  18. DB gdb.DB
  19. Table string
  20. Columns ctrContractAdvanceColumns
  21. }
  22. // CtrContractAdvanceColumns defines and stores column names for table ctr_contract_advance.
  23. type ctrContractAdvanceColumns struct {
  24. Id string // 主键ID
  25. AdvanceCode string // 提前执行申请编号(系统自动生成)
  26. AdvanceName string // 提前执行项目名称
  27. NboId string // 关联项目ID(与正式合同一致)
  28. NboName string // 项目名称
  29. CustId string // 客户ID
  30. CustName string // 客户名称
  31. ProductLine string // 产品线
  32. IsBig string // 是否大项目
  33. CustProvinceId string // 所在省ID
  34. CustProvince string // 所在省
  35. CustCityId string // 所在市ID
  36. CustCity string // 所在市
  37. SignatoryType string // 签订单位类型 10终端 20经销商 30代理商
  38. SignatoryUnit string // 合同签订单位
  39. DistributorId string // 经销商ID
  40. DistributorName string // 经销商名称
  41. EstimateAmount string // 预估合同金额(提前执行必填)
  42. EarnestMoney string // 质量/履约保证金
  43. AdvanceExecuteTime string // 计划提前执行开始时间
  44. EstimateSignTime string // 预计正式合同签订时间
  45. AdvanceReason string // 提前执行原因(必填)
  46. ExecuteScope string // 提前执行范围/内容说明
  47. InchargeId string // 负责人ID
  48. InchargeName string // 负责人(销售)
  49. ApproStatus string // 审核状态 10待提交 20审核中 30审核通过 40审核拒绝 50已撤销 60已转正式合同
  50. ContractId string // 转换后的正式合同ID(转合同后回填)
  51. ContractCode string // 正式合同编号
  52. ConvertTime string // 转换为正式合同的时间
  53. ConvertBy string // 转换操作人ID
  54. ConvertName string // 转换操作人姓名
  55. Remark string // 备注
  56. CreatedBy string // 创建人ID
  57. CreatedName string // 创建人姓名
  58. CreatedTime string // 创建时间
  59. UpdatedBy string // 更新人ID
  60. UpdatedName string // 更新人姓名
  61. UpdatedTime string // 更新时间
  62. DeletedTime string // 删除时间(软删除)
  63. }
  64. var (
  65. // CtrContractAdvance is globally public accessible object for table ctr_contract_advance operations.
  66. CtrContractAdvance = CtrContractAdvanceDao{
  67. M: g.DB("default").Model("ctr_contract_advance").Safe(),
  68. DB: g.DB("default"),
  69. Table: "ctr_contract_advance",
  70. Columns: ctrContractAdvanceColumns{
  71. Id: "id",
  72. AdvanceCode: "advance_code",
  73. AdvanceName: "advance_name",
  74. NboId: "nbo_id",
  75. NboName: "nbo_name",
  76. CustId: "cust_id",
  77. CustName: "cust_name",
  78. ProductLine: "product_line",
  79. IsBig: "is_big",
  80. CustProvinceId: "cust_province_id",
  81. CustProvince: "cust_province",
  82. CustCityId: "cust_city_id",
  83. CustCity: "cust_city",
  84. SignatoryType: "signatory_type",
  85. SignatoryUnit: "signatory_unit",
  86. DistributorId: "distributor_id",
  87. DistributorName: "distributor_name",
  88. EstimateAmount: "estimate_amount",
  89. EarnestMoney: "earnest_money",
  90. AdvanceExecuteTime: "advance_execute_time",
  91. EstimateSignTime: "estimate_sign_time",
  92. AdvanceReason: "advance_reason",
  93. ExecuteScope: "execute_scope",
  94. InchargeId: "incharge_id",
  95. InchargeName: "incharge_name",
  96. ApproStatus: "appro_status",
  97. ContractId: "contract_id",
  98. ContractCode: "contract_code",
  99. ConvertTime: "convert_time",
  100. ConvertBy: "convert_by",
  101. ConvertName: "convert_name",
  102. Remark: "remark",
  103. CreatedBy: "created_by",
  104. CreatedName: "created_name",
  105. CreatedTime: "created_time",
  106. UpdatedBy: "updated_by",
  107. UpdatedName: "updated_name",
  108. UpdatedTime: "updated_time",
  109. DeletedTime: "deleted_time",
  110. },
  111. }
  112. )
  113. func NewCtrContractAdvanceDao(tenant string) CtrContractAdvanceDao {
  114. var dao CtrContractAdvanceDao
  115. dao = CtrContractAdvanceDao{
  116. M: g.DB(tenant).Model("ctr_contract_advance").Safe(),
  117. DB: g.DB(tenant),
  118. Table: "ctr_contract_advance",
  119. Columns: ctrContractAdvanceColumns{
  120. Id: "id",
  121. AdvanceCode: "advance_code",
  122. AdvanceName: "advance_name",
  123. NboId: "nbo_id",
  124. NboName: "nbo_name",
  125. CustId: "cust_id",
  126. CustName: "cust_name",
  127. ProductLine: "product_line",
  128. IsBig: "is_big",
  129. CustProvinceId: "cust_province_id",
  130. CustProvince: "cust_province",
  131. CustCityId: "cust_city_id",
  132. CustCity: "cust_city",
  133. SignatoryType: "signatory_type",
  134. SignatoryUnit: "signatory_unit",
  135. DistributorId: "distributor_id",
  136. DistributorName: "distributor_name",
  137. EstimateAmount: "estimate_amount",
  138. EarnestMoney: "earnest_money",
  139. AdvanceExecuteTime: "advance_execute_time",
  140. EstimateSignTime: "estimate_sign_time",
  141. AdvanceReason: "advance_reason",
  142. ExecuteScope: "execute_scope",
  143. InchargeId: "incharge_id",
  144. InchargeName: "incharge_name",
  145. ApproStatus: "appro_status",
  146. ContractId: "contract_id",
  147. ContractCode: "contract_code",
  148. ConvertTime: "convert_time",
  149. ConvertBy: "convert_by",
  150. ConvertName: "convert_name",
  151. Remark: "remark",
  152. CreatedBy: "created_by",
  153. CreatedName: "created_name",
  154. CreatedTime: "created_time",
  155. UpdatedBy: "updated_by",
  156. UpdatedName: "updated_name",
  157. UpdatedTime: "updated_time",
  158. DeletedTime: "deleted_time",
  159. },
  160. }
  161. return dao
  162. }
  163. // Ctx is a chaining function, which creates and returns a new DB that is a shallow copy
  164. // of current DB object and with given context in it.
  165. // Note that this returned DB object can be used only once, so do not assign it to
  166. // a global or package variable for long using.
  167. func (d *CtrContractAdvanceDao) Ctx(ctx context.Context) *CtrContractAdvanceDao {
  168. return &CtrContractAdvanceDao{M: d.M.Ctx(ctx)}
  169. }
  170. // As sets an alias name for current table.
  171. func (d *CtrContractAdvanceDao) As(as string) *CtrContractAdvanceDao {
  172. return &CtrContractAdvanceDao{M: d.M.As(as)}
  173. }
  174. // TX sets the transaction for current operation.
  175. func (d *CtrContractAdvanceDao) TX(tx *gdb.TX) *CtrContractAdvanceDao {
  176. return &CtrContractAdvanceDao{M: d.M.TX(tx)}
  177. }
  178. // Master marks the following operation on master node.
  179. func (d *CtrContractAdvanceDao) Master() *CtrContractAdvanceDao {
  180. return &CtrContractAdvanceDao{M: d.M.Master()}
  181. }
  182. // Slave marks the following operation on slave node.
  183. // Note that it makes sense only if there's any slave node configured.
  184. func (d *CtrContractAdvanceDao) Slave() *CtrContractAdvanceDao {
  185. return &CtrContractAdvanceDao{M: d.M.Slave()}
  186. }
  187. // Args sets custom arguments for model operation.
  188. func (d *CtrContractAdvanceDao) Args(args ...interface{}) *CtrContractAdvanceDao {
  189. return &CtrContractAdvanceDao{M: d.M.Args(args...)}
  190. }
  191. // LeftJoin does "LEFT JOIN ... ON ..." statement on the model.
  192. // The parameter <table> can be joined table and its joined condition,
  193. // and also with its alias name, like:
  194. // Table("user").LeftJoin("user_detail", "user_detail.uid=user.uid")
  195. // Table("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")
  196. func (d *CtrContractAdvanceDao) LeftJoin(table ...string) *CtrContractAdvanceDao {
  197. return &CtrContractAdvanceDao{M: d.M.LeftJoin(table...)}
  198. }
  199. // RightJoin does "RIGHT JOIN ... ON ..." statement on the model.
  200. // The parameter <table> can be joined table and its joined condition,
  201. // and also with its alias name, like:
  202. // Table("user").RightJoin("user_detail", "user_detail.uid=user.uid")
  203. // Table("user", "u").RightJoin("user_detail", "ud", "ud.uid=u.uid")
  204. func (d *CtrContractAdvanceDao) RightJoin(table ...string) *CtrContractAdvanceDao {
  205. return &CtrContractAdvanceDao{M: d.M.RightJoin(table...)}
  206. }
  207. // InnerJoin does "INNER JOIN ... ON ..." statement on the model.
  208. // The parameter <table> can be joined table and its joined condition,
  209. // and also with its alias name, like:
  210. // Table("user").InnerJoin("user_detail", "user_detail.uid=user.uid")
  211. // Table("user", "u").InnerJoin("user_detail", "ud", "ud.uid=u.uid")
  212. func (d *CtrContractAdvanceDao) InnerJoin(table ...string) *CtrContractAdvanceDao {
  213. return &CtrContractAdvanceDao{M: d.M.InnerJoin(table...)}
  214. }
  215. // Fields sets the operation fields of the model, multiple fields joined using char ','.
  216. // The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
  217. func (d *CtrContractAdvanceDao) Fields(fieldNamesOrMapStruct ...interface{}) *CtrContractAdvanceDao {
  218. return &CtrContractAdvanceDao{M: d.M.Fields(fieldNamesOrMapStruct...)}
  219. }
  220. // FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','.
  221. // The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
  222. func (d *CtrContractAdvanceDao) FieldsEx(fieldNamesOrMapStruct ...interface{}) *CtrContractAdvanceDao {
  223. return &CtrContractAdvanceDao{M: d.M.FieldsEx(fieldNamesOrMapStruct...)}
  224. }
  225. // Option sets the extra operation option for the model.
  226. func (d *CtrContractAdvanceDao) Option(option int) *CtrContractAdvanceDao {
  227. return &CtrContractAdvanceDao{M: d.M.Option(option)}
  228. }
  229. // OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
  230. // the data and where attributes for empty values.
  231. func (d *CtrContractAdvanceDao) OmitEmpty() *CtrContractAdvanceDao {
  232. return &CtrContractAdvanceDao{M: d.M.OmitEmpty()}
  233. }
  234. // Filter marks filtering the fields which does not exist in the fields of the operated table.
  235. func (d *CtrContractAdvanceDao) Filter() *CtrContractAdvanceDao {
  236. return &CtrContractAdvanceDao{M: d.M.Filter()}
  237. }
  238. // Where sets the condition statement for the model. The parameter <where> can be type of
  239. // string/map/gmap/slice/struct/*struct, etc. Note that, if it's called more than one times,
  240. // multiple conditions will be joined into where statement using "AND".
  241. // Eg:
  242. // Where("uid=10000")
  243. // Where("uid", 10000)
  244. // Where("money>? AND name like ?", 99999, "vip_%")
  245. // Where("uid", 1).Where("name", "john")
  246. // Where("status IN (?)", g.Slice{1,2,3})
  247. // Where("age IN(?,?)", 18, 50)
  248. // Where(User{ Id : 1, UserName : "john"})
  249. func (d *CtrContractAdvanceDao) Where(where interface{}, args ...interface{}) *CtrContractAdvanceDao {
  250. return &CtrContractAdvanceDao{M: d.M.Where(where, args...)}
  251. }
  252. // WherePri does the same logic as M.Where except that if the parameter <where>
  253. // is a single condition like int/string/float/slice, it treats the condition as the primary
  254. // key value. That is, if primary key is "id" and given <where> parameter as "123", the
  255. // WherePri function treats the condition as "id=123", but M.Where treats the condition
  256. // as string "123".
  257. func (d *CtrContractAdvanceDao) WherePri(where interface{}, args ...interface{}) *CtrContractAdvanceDao {
  258. return &CtrContractAdvanceDao{M: d.M.WherePri(where, args...)}
  259. }
  260. // And adds "AND" condition to the where statement.
  261. func (d *CtrContractAdvanceDao) And(where interface{}, args ...interface{}) *CtrContractAdvanceDao {
  262. return &CtrContractAdvanceDao{M: d.M.And(where, args...)}
  263. }
  264. // Or adds "OR" condition to the where statement.
  265. func (d *CtrContractAdvanceDao) Or(where interface{}, args ...interface{}) *CtrContractAdvanceDao {
  266. return &CtrContractAdvanceDao{M: d.M.Or(where, args...)}
  267. }
  268. // Group sets the "GROUP BY" statement for the model.
  269. func (d *CtrContractAdvanceDao) Group(groupBy string) *CtrContractAdvanceDao {
  270. return &CtrContractAdvanceDao{M: d.M.Group(groupBy)}
  271. }
  272. // Order sets the "ORDER BY" statement for the model.
  273. func (d *CtrContractAdvanceDao) Order(orderBy ...string) *CtrContractAdvanceDao {
  274. return &CtrContractAdvanceDao{M: d.M.Order(orderBy...)}
  275. }
  276. // Limit sets the "LIMIT" statement for the model.
  277. // The parameter <limit> can be either one or two number, if passed two number is passed,
  278. // it then sets "LIMIT limit[0],limit[1]" statement for the model, or else it sets "LIMIT limit[0]"
  279. // statement.
  280. func (d *CtrContractAdvanceDao) Limit(limit ...int) *CtrContractAdvanceDao {
  281. return &CtrContractAdvanceDao{M: d.M.Limit(limit...)}
  282. }
  283. // Offset sets the "OFFSET" statement for the model.
  284. // It only makes sense for some databases like SQLServer, PostgreSQL, etc.
  285. func (d *CtrContractAdvanceDao) Offset(offset int) *CtrContractAdvanceDao {
  286. return &CtrContractAdvanceDao{M: d.M.Offset(offset)}
  287. }
  288. // Page sets the paging number for the model.
  289. // The parameter <page> is started from 1 for paging.
  290. // Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
  291. func (d *CtrContractAdvanceDao) Page(page, limit int) *CtrContractAdvanceDao {
  292. return &CtrContractAdvanceDao{M: d.M.Page(page, limit)}
  293. }
  294. // Batch sets the batch operation number for the model.
  295. func (d *CtrContractAdvanceDao) Batch(batch int) *CtrContractAdvanceDao {
  296. return &CtrContractAdvanceDao{M: d.M.Batch(batch)}
  297. }
  298. // Cache sets the cache feature for the model. It caches the result of the sql, which means
  299. // if there's another same sql request, it just reads and returns the result from cache, it
  300. // but not committed and executed into the database.
  301. //
  302. // If the parameter <duration> < 0, which means it clear the cache with given <name>.
  303. // If the parameter <duration> = 0, which means it never expires.
  304. // If the parameter <duration> > 0, which means it expires after <duration>.
  305. //
  306. // The optional parameter <name> is used to bind a name to the cache, which means you can later
  307. // control the cache like changing the <duration> or clearing the cache with specified <name>.
  308. //
  309. // Note that, the cache feature is disabled if the model is operating on a transaction.
  310. func (d *CtrContractAdvanceDao) Cache(duration time.Duration, name ...string) *CtrContractAdvanceDao {
  311. return &CtrContractAdvanceDao{M: d.M.Cache(duration, name...)}
  312. }
  313. // Data sets the operation data for the model.
  314. // The parameter <data> can be type of string/map/gmap/slice/struct/*struct, etc.
  315. // Eg:
  316. // Data("uid=10000")
  317. // Data("uid", 10000)
  318. // Data(g.Map{"uid": 10000, "name":"john"})
  319. // Data(g.Slice{g.Map{"uid": 10000, "name":"john"}, g.Map{"uid": 20000, "name":"smith"})
  320. func (d *CtrContractAdvanceDao) Data(data ...interface{}) *CtrContractAdvanceDao {
  321. return &CtrContractAdvanceDao{M: d.M.Data(data...)}
  322. }
  323. // All does "SELECT FROM ..." statement for the model.
  324. // It retrieves the records from table and returns the result as []*model.CtrContractAdvance.
  325. // It returns nil if there's no record retrieved with the given conditions from table.
  326. //
  327. // The optional parameter <where> is the same as the parameter of M.Where function,
  328. // see M.Where.
  329. func (d *CtrContractAdvanceDao) All(where ...interface{}) ([]*contract.CtrContractAdvance, error) {
  330. all, err := d.M.All(where...)
  331. if err != nil {
  332. return nil, err
  333. }
  334. var entities []*contract.CtrContractAdvance
  335. if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
  336. return nil, err
  337. }
  338. return entities, nil
  339. }
  340. // One retrieves one record from table and returns the result as *model.CtrContractAdvance.
  341. // It returns nil if there's no record retrieved with the given conditions from table.
  342. //
  343. // The optional parameter <where> is the same as the parameter of M.Where function,
  344. // see M.Where.
  345. func (d *CtrContractAdvanceDao) One(where ...interface{}) (*contract.CtrContractAdvance, error) {
  346. one, err := d.M.One(where...)
  347. if err != nil {
  348. return nil, err
  349. }
  350. var entity *contract.CtrContractAdvance
  351. if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
  352. return nil, err
  353. }
  354. return entity, nil
  355. }
  356. // FindOne retrieves and returns a single Record by M.WherePri and M.One.
  357. // Also see M.WherePri and M.One.
  358. func (d *CtrContractAdvanceDao) FindOne(where ...interface{}) (*contract.CtrContractAdvance, error) {
  359. one, err := d.M.FindOne(where...)
  360. if err != nil {
  361. return nil, err
  362. }
  363. var entity *contract.CtrContractAdvance
  364. if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
  365. return nil, err
  366. }
  367. return entity, nil
  368. }
  369. // FindAll retrieves and returns Result by by M.WherePri and M.All.
  370. // Also see M.WherePri and M.All.
  371. func (d *CtrContractAdvanceDao) FindAll(where ...interface{}) ([]*contract.CtrContractAdvance, error) {
  372. all, err := d.M.FindAll(where...)
  373. if err != nil {
  374. return nil, err
  375. }
  376. var entities []*contract.CtrContractAdvance
  377. if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
  378. return nil, err
  379. }
  380. return entities, nil
  381. }
  382. // Struct retrieves one record from table and converts it into given struct.
  383. // The parameter <pointer> should be type of *struct/**struct. If type **struct is given,
  384. // it can create the struct internally during converting.
  385. //
  386. // The optional parameter <where> is the same as the parameter of Model.Where function,
  387. // see Model.Where.
  388. //
  389. // Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
  390. // from table and <pointer> is not nil.
  391. //
  392. // Eg:
  393. // user := new(User)
  394. // err := dao.User.Where("id", 1).Struct(user)
  395. //
  396. // user := (*User)(nil)
  397. // err := dao.User.Where("id", 1).Struct(&user)
  398. func (d *CtrContractAdvanceDao) Struct(pointer interface{}, where ...interface{}) error {
  399. return d.M.Struct(pointer, where...)
  400. }
  401. // Structs retrieves records from table and converts them into given struct slice.
  402. // The parameter <pointer> should be type of *[]struct/*[]*struct. It can create and fill the struct
  403. // slice internally during converting.
  404. //
  405. // The optional parameter <where> is the same as the parameter of Model.Where function,
  406. // see Model.Where.
  407. //
  408. // Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
  409. // from table and <pointer> is not empty.
  410. //
  411. // Eg:
  412. // users := ([]User)(nil)
  413. // err := dao.User.Structs(&users)
  414. //
  415. // users := ([]*User)(nil)
  416. // err := dao.User.Structs(&users)
  417. func (d *CtrContractAdvanceDao) Structs(pointer interface{}, where ...interface{}) error {
  418. return d.M.Structs(pointer, where...)
  419. }
  420. // Scan automatically calls Struct or Structs function according to the type of parameter <pointer>.
  421. // It calls function Struct if <pointer> is type of *struct/**struct.
  422. // It calls function Structs if <pointer> is type of *[]struct/*[]*struct.
  423. //
  424. // The optional parameter <where> is the same as the parameter of Model.Where function,
  425. // see Model.Where.
  426. //
  427. // Note that it returns sql.ErrNoRows if there's no record retrieved and given pointer is not empty or nil.
  428. //
  429. // Eg:
  430. // user := new(User)
  431. // err := dao.User.Where("id", 1).Scan(user)
  432. //
  433. // user := (*User)(nil)
  434. // err := dao.User.Where("id", 1).Scan(&user)
  435. //
  436. // users := ([]User)(nil)
  437. // err := dao.User.Scan(&users)
  438. //
  439. // users := ([]*User)(nil)
  440. // err := dao.User.Scan(&users)
  441. func (d *CtrContractAdvanceDao) Scan(pointer interface{}, where ...interface{}) error {
  442. return d.M.Scan(pointer, where...)
  443. }
  444. // Chunk iterates the table with given size and callback function.
  445. func (d *CtrContractAdvanceDao) Chunk(limit int, callback func(entities []*contract.CtrContractAdvance, err error) bool) {
  446. d.M.Chunk(limit, func(result gdb.Result, err error) bool {
  447. var entities []*contract.CtrContractAdvance
  448. err = result.Structs(&entities)
  449. if err == sql.ErrNoRows {
  450. return false
  451. }
  452. return callback(entities, err)
  453. })
  454. }
  455. // LockUpdate sets the lock for update for current operation.
  456. func (d *CtrContractAdvanceDao) LockUpdate() *CtrContractAdvanceDao {
  457. return &CtrContractAdvanceDao{M: d.M.LockUpdate()}
  458. }
  459. // LockShared sets the lock in share mode for current operation.
  460. func (d *CtrContractAdvanceDao) LockShared() *CtrContractAdvanceDao {
  461. return &CtrContractAdvanceDao{M: d.M.LockShared()}
  462. }
  463. // Unscoped enables/disables the soft deleting feature.
  464. func (d *CtrContractAdvanceDao) Unscoped() *CtrContractAdvanceDao {
  465. return &CtrContractAdvanceDao{M: d.M.Unscoped()}
  466. }