Commit 63bd5e2e by levphon

添加车辆搜索

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