SystemInfoV1ServiceDaoImplMapper.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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="systemInfoV1ServiceDaoImpl">
  6. <!-- 保存系统配置信息 add by wuxw 2018-07-03 -->
  7. <insert id="saveSystemInfoInfo" parameterType="Map">
  8. insert into system_info(
  9. img_url,system_id,owner_title,default_community_id,system_title,qq_map_key,sub_system_title,company_name,mall_url,logo_url,property_title
  10. ) values (
  11. #{imgUrl},#{systemId},#{ownerTitle},#{defaultCommunityId},#{systemTitle},#{qqMapKey},#{subSystemTitle},#{companyName},#{mallUrl},#{logoUrl},#{propertyTitle}
  12. )
  13. </insert>
  14. <!-- 查询系统配置信息 add by wuxw 2018-07-03 -->
  15. <select id="getSystemInfoInfo" parameterType="Map" resultType="Map">
  16. select t.img_url,t.img_url imgUrl,t.system_id,t.system_id systemId,t.owner_title,t.owner_title ownerTitle,t.default_community_id,t.default_community_id defaultCommunityId,t.system_title,t.system_title systemTitle,t.qq_map_key,t.qq_map_key qqMapKey,t.sub_system_title,t.sub_system_title subSystemTitle,t.company_name,t.company_name companyName,t.mall_url,t.mall_url mallUrl,t.status_cd,t.status_cd statusCd,t.logo_url,t.logo_url logoUrl,t.property_title,t.property_title propertyTitle
  17. from system_info t
  18. where 1 =1
  19. <if test="imgUrl !=null and imgUrl != ''">
  20. and t.img_url= #{imgUrl}
  21. </if>
  22. <if test="systemId !=null and systemId != ''">
  23. and t.system_id= #{systemId}
  24. </if>
  25. <if test="ownerTitle !=null and ownerTitle != ''">
  26. and t.owner_title= #{ownerTitle}
  27. </if>
  28. <if test="defaultCommunityId !=null and defaultCommunityId != ''">
  29. and t.default_community_id= #{defaultCommunityId}
  30. </if>
  31. <if test="systemTitle !=null and systemTitle != ''">
  32. and t.system_title= #{systemTitle}
  33. </if>
  34. <if test="qqMapKey !=null and qqMapKey != ''">
  35. and t.qq_map_key= #{qqMapKey}
  36. </if>
  37. <if test="subSystemTitle !=null and subSystemTitle != ''">
  38. and t.sub_system_title= #{subSystemTitle}
  39. </if>
  40. <if test="companyName !=null and companyName != ''">
  41. and t.company_name= #{companyName}
  42. </if>
  43. <if test="mallUrl !=null and mallUrl != ''">
  44. and t.mall_url= #{mallUrl}
  45. </if>
  46. <if test="statusCd !=null and statusCd != ''">
  47. and t.status_cd= #{statusCd}
  48. </if>
  49. <if test="logoUrl !=null and logoUrl != ''">
  50. and t.logo_url= #{logoUrl}
  51. </if>
  52. <if test="propertyTitle !=null and propertyTitle != ''">
  53. and t.property_title= #{propertyTitle}
  54. </if>
  55. order by t.create_time desc
  56. <if test="page != -1 and page != null ">
  57. limit #{page}, #{row}
  58. </if>
  59. </select>
  60. <!-- 修改系统配置信息 add by wuxw 2018-07-03 -->
  61. <update id="updateSystemInfoInfo" parameterType="Map">
  62. update system_info t set t.status_cd = #{statusCd}
  63. <if test="newBId != null and newBId != ''">
  64. ,t.b_id = #{newBId}
  65. </if>
  66. <if test="imgUrl !=null and imgUrl != ''">
  67. , t.img_url= #{imgUrl}
  68. </if>
  69. <if test="ownerTitle !=null and ownerTitle != ''">
  70. , t.owner_title= #{ownerTitle}
  71. </if>
  72. <if test="defaultCommunityId !=null and defaultCommunityId != ''">
  73. , t.default_community_id= #{defaultCommunityId}
  74. </if>
  75. <if test="systemTitle !=null and systemTitle != ''">
  76. , t.system_title= #{systemTitle}
  77. </if>
  78. <if test="qqMapKey !=null and qqMapKey != ''">
  79. , t.qq_map_key= #{qqMapKey}
  80. </if>
  81. <if test="subSystemTitle !=null and subSystemTitle != ''">
  82. , t.sub_system_title= #{subSystemTitle}
  83. </if>
  84. <if test="companyName !=null and companyName != ''">
  85. , t.company_name= #{companyName}
  86. </if>
  87. <if test="mallUrl !=null and mallUrl != ''">
  88. , t.mall_url= #{mallUrl}
  89. </if>
  90. <if test="logoUrl !=null and logoUrl != ''">
  91. , t.logo_url= #{logoUrl}
  92. </if>
  93. <if test="propertyTitle !=null and propertyTitle != ''">
  94. , t.property_title= #{propertyTitle}
  95. </if>
  96. where 1=1 <if test="systemId !=null and systemId != ''">
  97. and t.system_id= #{systemId}
  98. </if>
  99. </update>
  100. <!-- 查询系统配置数量 add by wuxw 2018-07-03 -->
  101. <select id="querySystemInfosCount" parameterType="Map" resultType="Map">
  102. select count(1) count
  103. from system_info t
  104. where 1 =1
  105. <if test="imgUrl !=null and imgUrl != ''">
  106. and t.img_url= #{imgUrl}
  107. </if>
  108. <if test="systemId !=null and systemId != ''">
  109. and t.system_id= #{systemId}
  110. </if>
  111. <if test="ownerTitle !=null and ownerTitle != ''">
  112. and t.owner_title= #{ownerTitle}
  113. </if>
  114. <if test="defaultCommunityId !=null and defaultCommunityId != ''">
  115. and t.default_community_id= #{defaultCommunityId}
  116. </if>
  117. <if test="systemTitle !=null and systemTitle != ''">
  118. and t.system_title= #{systemTitle}
  119. </if>
  120. <if test="qqMapKey !=null and qqMapKey != ''">
  121. and t.qq_map_key= #{qqMapKey}
  122. </if>
  123. <if test="subSystemTitle !=null and subSystemTitle != ''">
  124. and t.sub_system_title= #{subSystemTitle}
  125. </if>
  126. <if test="companyName !=null and companyName != ''">
  127. and t.company_name= #{companyName}
  128. </if>
  129. <if test="mallUrl !=null and mallUrl != ''">
  130. and t.mall_url= #{mallUrl}
  131. </if>
  132. <if test="statusCd !=null and statusCd != ''">
  133. and t.status_cd= #{statusCd}
  134. </if>
  135. <if test="logoUrl !=null and logoUrl != ''">
  136. and t.logo_url= #{logoUrl}
  137. </if>
  138. <if test="propertyTitle !=null and propertyTitle != ''">
  139. and t.property_title= #{propertyTitle}
  140. </if>
  141. </select>
  142. </mapper>