src/main/resources/mapper/UserPositionMapper.xml
@@ -542,21 +542,6 @@ limit 1 </select> <select id="getUserPositionDzList" resultType="com.nq.pojo.UserPosition"> SELECT u.* FROM user_position u LEFT JOIN user_position_check_dz dz ON dz.id = u.dz_id <where> <if test="userId != null "> and u.user_id = #{userId} </if> <if test="checkType != null "> and dz.check_type = #{checkType} </if> </where> ORDER BY u.buy_order_time DESC </select> </mapper>