Commit b04429e2 by 刘宇峰
2 parents 010dbdf6 13410afa
......@@ -3,6 +3,7 @@ package cn.com.glsx.admin.modules.mapper;
import cn.com.glsx.admin.modules.entity.ElectricFenceDrive;
import cn.com.glsx.admin.modules.model.export.TrialDriveReportExport;
import cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch;
import com.glsx.plat.common.annotation.DataPerm;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
......@@ -13,9 +14,10 @@ import java.util.List;
*/
@Mapper
public interface TrialDriveReportMapper extends CommonBaseMapper<ElectricFenceDrive> {
@DataPerm(showSql = true)
List<TrialDriveReportExport> getTestDrivePageList(TrialDriveReportSearch search);
@DataPerm(showSql = true)
List<TrialDriveReportExport> getEffectiveTestDriveData(TrialDriveReportSearch search);
List<String> getYearWithData();
......
......@@ -41,5 +41,5 @@ public class TrialDriveReportSearch extends Page {
/**
* 特约店代码 |特约店名称
*/
private String keyWord;
private String keywords;
}
......@@ -60,6 +60,7 @@ public class TrialDriveReportService {
search.setSplitList(splitList);
search.setSn(drivePageExcel.getSn());
List<TrialDriveReportExport> testDriveDataOneList = trialDriveReportMapper.getEffectiveTestDriveData(search);
log.info("testDriveDataOneList 的长度是" + testDriveDataOneList.size());
//你将没一个查询的对象进行填充
makeDriveData(testDriveDataOneList, excelHashMap);
}
......
......@@ -38,10 +38,10 @@
left join t_vehicle tv on tv.vin = tefs.vin
where tefs.fence_id = tef.id
and tef.biz_fence_type = 12
<if test="keyWord!=null and keyWord!=''">
<if test="keywords != null and keywords!='' ">
and (
tu.account like '%${keyWord}%'
or tu.username like '%${keyWord}%'
tu.account like '%${keywords}%'
or tu.username like '%${keywords}%'
)
</if>
<if test="userIdList != null">
......@@ -88,10 +88,10 @@
</otherwise>
</choose>
<if test="keyWord !=null and keyWord != ''">
<if test="keywords !=null and keywords != ''">
and (
tu.account like '%${keyWord}%'
or tu.username like '%${keyWord}%'
tu.account like '%${keywords}%'
or tu.username like '%${keywords}%'
)
</if>
<if test="sn !=null and sn != ''">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!