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