ImportFeeServiceDaoImplMapper.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="importFeeServiceDaoImpl">
  6. <!-- 保存费用导入信息 add by wuxw 2018-07-03 -->
  7. <insert id="saveImportFeeInfo" parameterType="Map">
  8. insert into import_fee(
  9. fee_type_cd,import_fee_id,community_id,remark
  10. ) values (
  11. #{feeTypeCd},#{importFeeId},#{communityId},#{remark}
  12. )
  13. </insert>
  14. <!-- 查询费用导入信息 add by wuxw 2018-07-03 -->
  15. <select id="getImportFeeInfo" parameterType="Map" resultType="Map">
  16. select t.fee_type_cd,t.fee_type_cd feeTypeCd,t.status_cd,t.status_cd statusCd,t.import_fee_id,t.import_fee_id
  17. importFeeId,t.community_id,t.community_id communityId,t.create_time createTime,d.name feeTypeCdName,remark
  18. from import_fee t
  19. left join t_dict d on t.fee_type_cd = d.status_cd and d.table_name = 'pay_fee_config' and d.table_columns = 'fee_type_cd'
  20. where 1 =1
  21. <if test="feeTypeCd !=null and feeTypeCd != ''">
  22. and t.fee_type_cd= #{feeTypeCd}
  23. </if>
  24. <if test="statusCd !=null and statusCd != ''">
  25. and t.status_cd= #{statusCd}
  26. </if>
  27. <if test="importFeeId !=null and importFeeId != ''">
  28. and t.import_fee_id= #{importFeeId}
  29. </if>
  30. <if test="communityId !=null and communityId != ''">
  31. and t.community_id= #{communityId}
  32. </if>
  33. order by t.create_time desc
  34. <if test="page != -1 and page != null ">
  35. limit #{page}, #{row}
  36. </if>
  37. </select>
  38. <!-- 修改费用导入信息 add by wuxw 2018-07-03 -->
  39. <update id="updateImportFeeInfo" parameterType="Map">
  40. update import_fee t set t.status_cd = #{statusCd}
  41. <if test="newBId != null and newBId != ''">
  42. ,t.b_id = #{newBId}
  43. </if>
  44. <if test="feeTypeCd !=null and feeTypeCd != ''">
  45. , t.fee_type_cd= #{feeTypeCd}
  46. </if>
  47. <if test="communityId !=null and communityId != ''">
  48. , t.community_id= #{communityId}
  49. </if>
  50. where 1=1
  51. <if test="importFeeId !=null and importFeeId != ''">
  52. and t.import_fee_id= #{importFeeId}
  53. </if>
  54. </update>
  55. <!-- 查询费用导入数量 add by wuxw 2018-07-03 -->
  56. <select id="queryImportFeesCount" parameterType="Map" resultType="Map">
  57. select count(1) count
  58. from import_fee t
  59. where 1 =1
  60. <if test="feeTypeCd !=null and feeTypeCd != ''">
  61. and t.fee_type_cd= #{feeTypeCd}
  62. </if>
  63. <if test="statusCd !=null and statusCd != ''">
  64. and t.status_cd= #{statusCd}
  65. </if>
  66. <if test="importFeeId !=null and importFeeId != ''">
  67. and t.import_fee_id= #{importFeeId}
  68. </if>
  69. <if test="communityId !=null and communityId != ''">
  70. and t.community_id= #{communityId}
  71. </if>
  72. </select>
  73. </mapper>