HeatingDocDao.dql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. -- [queryHeatingApp]
  2. select * from $table$;
  3. -- [addHeatingApp]
  4. insert into $table$ (id, appId, appName, appPublicKey,
  5. appPrivateKey, supplyPublicKey, status,
  6. chargeFrom, chargeUserName, verifyKind,
  7. whiteIps, createBy, createTime,
  8. createTimeLong, updateBy, updateTime,
  9. updateTimeLong ) values ( #{id}, #{appid}, #{appname}, #{apppublickey},
  10. #{appprivatekey}, #{supplypublickey}, #{status},
  11. #{chargefrom}, #{chargeusername}, #{verifykind},
  12. #{whiteips}, #{createby}, #{createtime},
  13. #{createtimelong}, #{updateby}, #{updatetime},
  14. #{updatetimelong} );
  15. -- [updateHeatingApp]
  16. update $table$ set
  17. appName = #{appname},
  18. appPublicKey = #{apppublickey},
  19. appPrivateKey = #{appprivatekey},
  20. supplyPublicKey = #{supplypublickey},
  21. verifyKind = #{verifykind},
  22. whiteIps = #{whiteips},
  23. updateBy = #{updateby},
  24. updateTime = #{updatetime}
  25. where appId = #{appid};
  26. -- [voidHeatingApp]
  27. update $table$ set
  28. status = #{status},
  29. updateBy = #{updateby},
  30. updateTime = #{updatetime}
  31. where appId = #{appid};
  32. -- [queryHeatingAppInvoker]
  33. select * from $table$
  34. -- trim prefix=WHERE prefixOverrides=AND|OR
  35. -- isNotEmpty ids
  36. and idHeatingApp in (/* in ids */)
  37. -- end
  38. -- end
  39. ;
  40. -- [addHeatingAppInvoker]
  41. insert into $table$ (id, appId, appName, invokerName,
  42. invokerCode, description, invokerUrl,
  43. createBy, createTime, createTimeLong,
  44. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{appid}, #{appname}, #{invokername},
  45. #{invokercode}, #{description}, #{invokerurl},
  46. #{createby}, #{createtime}, #{createtimelong},
  47. #{updateby}, #{updatetime}, #{updatetimelong} );
  48. -- [updateHeatingAppInvoker]
  49. update $table$ set
  50. invokerName = #{invokername},
  51. invokerCode = #{invokercode},
  52. description = #{description},
  53. invokerUrl = #{invokerurl},
  54. updateBy = #{updateby},
  55. updateTime = #{updatetime}
  56. where id = #{id};
  57. -- [deleteHeatingAppInvoker]
  58. delete from $table$ where id = #{id};