change 4 lat temu
rodzic
commit
34e177f61e

+ 4 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserPlanMapper.xml

@@ -122,6 +122,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectByUserPlan" parameterType="com.zhongzheng.modules.user.bo.UserPlanQueryBo"  resultMap="UserPlanResult">
         SELECT * FROM user_plan where 1=1 AND `status` =1
                                   AND user_id = #{userId}
+        <if test="planId != null and planId !=''">
+            and plan_id = #{planId}
+
+        </if>
     </select>
 
     <insert id="insertSource" parameterType="map" useGeneratedKeys="true" keyProperty="id" >