|
@@ -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 id="selectByUserPlan" parameterType="com.zhongzheng.modules.user.bo.UserPlanQueryBo" resultMap="UserPlanResult">
|
|
|
SELECT * FROM user_plan where 1=1 AND `status` =1
|
|
SELECT * FROM user_plan where 1=1 AND `status` =1
|
|
|
AND user_id = #{userId}
|
|
AND user_id = #{userId}
|
|
|
|
|
+ <if test="planId != null and planId !=''">
|
|
|
|
|
+ and plan_id = #{planId}
|
|
|
|
|
+
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertSource" parameterType="map" useGeneratedKeys="true" keyProperty="id" >
|
|
<insert id="insertSource" parameterType="map" useGeneratedKeys="true" keyProperty="id" >
|