| | |
| | | package cn.exrick.xboot.your.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import cn.exrick.xboot.your.entity.Accident; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Result; |
| | | import org.apache.ibatis.annotations.Results; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | public interface AccidentMapper extends BaseMapper<Accident> { |
| | | |
| | | @Select("SELECT a.*,b.car_no as temp FROM t_accident a LEFT JOIN t_car b ON a.car_id=b.id ${ew.customSqlSegment} ") |
| | | @Results({@Result(column="temp", property="carNo", jdbcType = JdbcType.VARCHAR)}) |
| | | IPage<Accident> page2(Page initMpPage, @Param(Constants.WRAPPER) QueryWrapper<Accident> wrapper); |
| | | } |