Commit 63bd5e2e by levphon

添加车辆搜索

1 parent 21a7fdba
......@@ -38,6 +38,7 @@
#{userId}
</foreach>
</select>
<select id="search" resultType="cn.com.glsx.admin.modules.model.ApprovalDto">
select
app.id as approvalId,
......@@ -105,13 +106,13 @@
and (t6.username like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t1.vin like concat('%',#{search.keywords},'%')
)
</if>
GROUP BY
t5.biz_id
GROUP BY t5.biz_id
ORDER BY t5.created_date desc
</select>
<select id="searchFenceApp" resultType="cn.com.glsx.admin.modules.model.FenceApproDto">
select
app.id as approvalId,
......@@ -145,11 +146,10 @@
or tvd.fence_name like concat('%',#{search.keywords},'%')
)
</if>
GROUP BY
app.id
GROUP BY app.id
ORDER BY app.created_date desc
</select>
<select id="selectByTypeAndId" resultMap="BaseResultMap"
parameterType="cn.com.glsx.admin.modules.entity.Approval">
select * from t_approval
......
......@@ -77,13 +77,13 @@
</if>
<if test="search.keywords !=null and search.keywords != ''">
and (t6.username like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t1.vin like concat('%',#{search.keywords},'%')
)
</if>
GROUP BY
t1.id
order by t1.created_date desc
GROUP BY t1.id
order by t1.created_date desc
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!