Sfoglia il codice sorgente

修改userType条件查询

yousongbo 1 settimana fa
parent
commit
d0d34dd388

+ 6 - 0
suishenbang-wxportal/suishenbang-wxportal-common/src/main/resources/mapper/wxportal/WxMagnetMapper.xml

@@ -50,6 +50,9 @@
             <if test="magnetSize != null and magnetSize != ''">
                 AND m.magnet_size = #{magnetSize}
             </if>
+            <if test="userType != null and userType != ''">
+                AND m.user_type = #{userType}
+            </if>
             <if test="magnetType != null and magnetType != ''">
                 AND m.magnet_type = #{magnetType}
             </if>
@@ -148,6 +151,9 @@
             <if test="wxMagnet.magnetName != null and wxMagnet.magnetName != ''">
                 AND m.magnet_name like concat('%', #{wxMagnet.magnetName}, '%')
             </if>
+            <if test="wxMagnet.userType != null and wxMagnet.userType != ''">
+                AND m.user_type = #{wxMagnet.userType}
+            </if>
             <if test="wxMagnet.visible != null and wxMagnet.visible != ''">
                 AND m.visible = #{wxMagnet.visible}
             </if>