SystemInfoV1ServiceDaoImplMapper.xml 6.3 KB

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