testU8.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="net.chenlin.dp.modules.sys.dao.TestU8Mapper">
  4. <select id="testAll" resultType="int">
  5. SELECT
  6. count(1)
  7. FROM
  8. AA_Bank
  9. </select>
  10. <select id="callGetMaxCode" parameterType="map" statementType="CALLABLE" resultType="int">
  11. {
  12. call getMaxCode(
  13. #{StuNo, mode=IN, jdbcType=VARCHAR}
  14. )
  15. }
  16. </select>
  17. <select id="callProductIn" parameterType="map" statementType="CALLABLE">
  18. {
  19. call product_In(
  20. #{upTime, mode=IN, jdbcType=VARCHAR}
  21. )
  22. }
  23. </select>
  24. <select id="callProMaxClassIn" parameterType="map" statementType="CALLABLE">
  25. {
  26. call ProMaxClass_In
  27. }
  28. </select>
  29. <select id="callProMinClassIn" parameterType="map" statementType="CALLABLE">
  30. {
  31. call ProMinClass_In
  32. }
  33. </select>
  34. <select id="callCurrentStockJiangSu" parameterType="map" statementType="CALLABLE">
  35. {
  36. call CurrentStock_jiangSu
  37. }
  38. </select>
  39. <select id="callCurrentStockShanDong" parameterType="map" statementType="CALLABLE">
  40. {
  41. call CurrentStock_shanDong
  42. }
  43. </select>
  44. <select id="callSaleBack" parameterType="map" statementType="CALLABLE">
  45. {
  46. call sale_Back
  47. }
  48. </select>
  49. <select id="selectView" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
  50. select oa_Id as oaId from sy_view
  51. where DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d')
  52. and table_type = #{tableType}
  53. </select>
  54. <select id="selectViewByError" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
  55. select oa_Id as oaId from sy_view
  56. where DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') and sy_state = "error"
  57. and table_type = #{tableType}
  58. </select>
  59. <select id="selectViewByTrue" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
  60. select oa_Id as oaId from sy_view
  61. where DATE_FORMAT(create_time,'%Y-%m-%d') >= DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 10 DAY),'%Y-%m-%d')
  62. and sy_state = "true" and table_type = #{tableType}
  63. </select>
  64. <insert id="save">
  65. INSERT INTO sy_view (
  66. oa_id,
  67. oa_nid,
  68. par_type,
  69. account_code,
  70. dept_name,
  71. dept_code,
  72. job_number,
  73. create_time,
  74. sy_message,
  75. sy_state,
  76. table_type
  77. )
  78. VALUES (
  79. #{oaId},
  80. #{oaNid},
  81. #{parType},
  82. #{accountCode},
  83. #{deptName},
  84. #{deptCode},
  85. #{jobNumber},
  86. now(),
  87. #{syMessage},
  88. #{syState},
  89. #{tableType}
  90. )
  91. </insert>
  92. </mapper>