testU8.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <insert id="save">
  55. INSERT INTO sy_view (
  56. oa_id,
  57. par_type,
  58. account_code,
  59. dept_name,
  60. dept_code,
  61. job_number,
  62. create_time,
  63. sy_message,
  64. table_type
  65. )
  66. VALUES (
  67. #{oaId},
  68. #{parType},
  69. #{accountCode},
  70. #{deptName},
  71. #{deptCode},
  72. #{jobNumber},
  73. now(),
  74. #{syMessage},
  75. #{tableType}
  76. )
  77. </insert>
  78. </mapper>