e799d61807a62edd6f4e8e1c836f9282ba19b23c.svn-base 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="org.jeecg.modules.demo.hzz.shjsgc.shxmxx.mapper.RmShxmxxbMapper">
  4. <select id="countter" resultType="String">
  5. select count(1) from rm_shxmxxb
  6. </select>
  7. <select id="yjcount" resultType="String">
  8. select count(1) from rm_shxmxxb where jszt='yj'
  9. </select>
  10. <select id="zjcount" resultType="int">
  11. select count(1) from rm_shxmxxb where jszt='zj'
  12. </select>
  13. <select id="njcount" resultType="int">
  14. select count(1) from rm_shxmxxb where jszt='nj'
  15. </select>
  16. <select id="findAllhlcd" resultType="java.util.HashMap">
  17. select hlmc, hlcd from rm_river where length(hlmc) >= 3 and hlmc like '%河' order by hlcd
  18. DESC limit 10
  19. </select>
  20. <select id="bzgccount" resultType="int">
  21. select count(1) from rm_shxmxxb where xmlx='bzgc'
  22. </select>
  23. <select id="zbgccount" resultType="int">
  24. select count(1) from rm_shxmxxb where xmlx='zbgc'
  25. </select>
  26. <select id="dfgccount" resultType="int">
  27. select count(1) from rm_shxmxxb where xmlx='dfgc'
  28. </select>
  29. <select id="xjbgcount" resultType="int">
  30. select count(1) from rm_shxmxxb where xmlx='xjbgc'
  31. </select>
  32. <select id="skcount" resultType="int">
  33. select count(1) from rm_shxmxxb where xmlx='skgc'
  34. </select>
  35. <select id="lhbcount" resultType="int">
  36. select count(1) from rm_shxmxxb where xmlx='lhbgc'
  37. </select>
  38. <select id="gxcount" resultType="int">
  39. select count(1) from rm_shxmxxb where xmlx='gxgc'
  40. </select>
  41. <select id="qlcount" resultType="int">
  42. select count(1) from rm_shxmxxb where xmlx='qlgc'
  43. </select>
  44. <select id="szcount" resultType="int">
  45. select count(1) from rm_shxmxxb where xmlx='szgc'
  46. </select>
  47. <insert id="addxcjg" keyProperty="id">
  48. insert into rm_xcjgjl(id,jsxmmc) values(#{id},#{jsxmmc})
  49. </insert>
  50. <delete id="delxcjg">
  51. delete from rm_xcjgjl where id=#{id}
  52. </delete>
  53. <update id="updataxcjg">
  54. update rm_xcjgjl set jsxmmc=#{jsxmmc} where id=#{id}
  55. </update>
  56. <select id="selectjsqk" resultType="hashmap">
  57. SELECT substr(xzqh,4,6)AS xzqh,count(1) AS zj from rm_shxmxxb where jszt='zj'and xzqh!='' GROUP BY substr(xzqh,4,6)ORDER BY zj asc
  58. -- select replace(xzqh,'德州市','') AS xzqh,count(1) from rm_shxmxxb where xzqh like '%德州市%' and jszt='zj' GROUP BY xzqh
  59. </select>
  60. <select id="selectnjqk" resultType="hashmap">
  61. SELECT substr(xzqh,4,3)AS xzqh,count(1) AS nj from rm_shxmxxb where jszt='nj'and xzqh!='' GROUP BY substr(xzqh,4,3) ORDER BY nj asc
  62. </select>
  63. <select id="countxmlx" resultType="hashmap">
  64. SELECT xmlx,count(1) from rm_shxmxxb GROUP BY xmlx
  65. </select>
  66. <select id="countjg" resultType="hashmap">
  67. select jsxmmc, count(1) as num from rm_xcjgjl GROUP BY jsxmmc ORDER BY num ASC
  68. </select>
  69. </mapper>