| | |
| | | select id from man_plan_url |
| | | where 1=1 |
| | | and plan_id=#{planId} |
| | | </select> |
| | | |
| | | <select id="selectPlanUrlIdByPlanId2" resultType="java.lang.Integer"> |
| | | select id from man_plan_url |
| | | where 1=1 |
| | | and plan_id=#{planId} |
| | | and type = #{type} |
| | | and hide_url = #{hideUrl} |
| | | <if test="type != 0"> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="hideUrl != 0"> |
| | | and hide_url=#{hideUrl} |
| | | </if> |
| | | <if test="status != 0"> |
| | | and status=#{status} |
| | | </if> |
| | | or (plan_id=#{planId} and hide_url=0 ) |
| | | </select> |
| | | |
| | | <select id="selectPlanUrlByPlanId" resultMap="BaseResultMap"> |
| | | select * from man_plan_url |
| | | where 1=1 |
| | | and plan_id=#{planId} |
| | | </select> |
| | | |
| | | <select id="selectPlanUrlByPlanId2" resultMap="BaseResultMap"> |
| | | select * from man_plan_url |
| | | where 1=1 |
| | | and plan_id=#{planId} |
| | | and type = #{type} |
| | | and hide_url = #{hideUrl} |
| | | <if test="type != 0"> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="hideUrl != 0"> |
| | | and hide_url=#{hideUrl} |
| | | </if> |
| | | <if test="status != 0"> |
| | | and status=#{status} |
| | | </if> |
| | | or (plan_id=#{planId} and hide_url=0 ) |
| | | </select> |
| | | |
| | | </mapper> |