Commit a2957e4c by zhouhaibao

Merge remote-tracking branch 'origin/master'

2 parents 2a1195f9 a7b3784d
...@@ -39,8 +39,10 @@ ...@@ -39,8 +39,10 @@
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="keyWord!=null and keyWord!=''">
and tu.account like '%${keyWord}%' and (
and tu.username like '%${keyWord}%' tu.account like '%${keyWord}%'
or tu.username like '%${keyWord}%'
)
</if> </if>
<if test="userIdList != null"> <if test="userIdList != null">
and tu.id IN and tu.id IN
...@@ -87,8 +89,10 @@ ...@@ -87,8 +89,10 @@
</choose> </choose>
<if test="keyWord !=null and keyWord != ''"> <if test="keyWord !=null and keyWord != ''">
and tu.account like '%${keyWord}%' and (
and tu.username like '%${keyWord}%' tu.account like '%${keyWord}%'
or tu.username like '%${keyWord}%'
)
</if> </if>
<if test="sn !=null and sn != ''"> <if test="sn !=null and sn != ''">
and tefdd.sn = #{sn,jdbcType=VARCHAR} and tefdd.sn = #{sn,jdbcType=VARCHAR}
......
...@@ -32,7 +32,7 @@ public class TrialDriveReportServiceTest { ...@@ -32,7 +32,7 @@ public class TrialDriveReportServiceTest {
@Test @Test
public void listEffectiveTestDriveReportPage() { public void listEffectiveTestDriveReportPage() {
TrialDriveReportSearch trialDriveReportSearch = new TrialDriveReportSearch(); TrialDriveReportSearch trialDriveReportSearch = new TrialDriveReportSearch();
trialDriveReportSearch.setMonth("2"); trialDriveReportSearch.setMonth("02");
List<TrialDriveReportExport> searchList = trialDriveReportService.search(trialDriveReportSearch); List<TrialDriveReportExport> searchList = trialDriveReportService.search(trialDriveReportSearch);
List<TrialDriveReportExport> reportExportList = trialDriveReportService.listEffectiveTestDriveReportPage(trialDriveReportSearch, searchList); List<TrialDriveReportExport> reportExportList = trialDriveReportService.listEffectiveTestDriveReportPage(trialDriveReportSearch, searchList);
System.out.println("reportExportList = " + JSON.toJSONString(reportExportList)); System.out.println("reportExportList = " + JSON.toJSONString(reportExportList));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!