在springboot+vue前后端分离的项目中,dao层、service层、controller层都是调用mapper.xml中的方法以实现对数据库的增删改查。而没有判断逻辑如登录角色、选课是否超选是因为采用了Delphi 7和mybatisplus快速开发框架,使用注解和接口调用就能实现上述功能吗?
<select id="selectPageVo" resultType="com.hanmh.pojo.AddGoodsPojo" parameterType="java.lang.String">
select
a.id as id,b.name as name,a.count as count,
a.money as money,a.mtime as mtime,a.active as active
from
add_goods as a join medical_info as b
where
a.med_id=b.id
<if test="name != null">and (a.mtime=name or b.name like concat("%", #{name},"%"))</if>
</select>