InspectionFillMapper.java
1.1 KB
package com.skua.modules.inspection.mapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.inspection.vo.InspectionFillVO;
import org.apache.ibatis.annotations.Param;
import com.skua.modules.inspection.entity.InspectionFill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
/**
* 巡检填报项
*/
public interface InspectionFillMapper extends BaseMapper<InspectionFill> {
@Select("SELECT\n" +
"\tifi.*,\n" +
"\tgroup_concat( choice_name ORDER BY ifc.sort SEPARATOR \"|\" ) choice_name \n" +
"FROM\n" +
" inspection_fill ifi\n" +
"\tLEFT JOIN inspection_fill_choice ifc ON ifi.id = ifc.inspection_fill_id \n" +
"${ew.customSqlSegment}")
IPage<InspectionFillVO> getPage(Page<InspectionFillVO> page, @Param(Constants.WRAPPER) QueryWrapper<InspectionFillVO> queryWrapper);
}