Commit ddb109c4 authored by 盖献康's avatar 盖献康

车企信息 - 只查存在

parent 558ff021
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="deleted" column="deleted"/>
</resultMap> </resultMap>
<sql id="selectAutomobileEnterpriseVo"> <sql id="selectAutomobileEnterpriseVo">
...@@ -27,7 +28,8 @@ ...@@ -27,7 +28,8 @@
create_by, create_by,
create_time, create_time,
update_by, update_by,
update_time update_time,
deleted
from t_automobile_enterprise from t_automobile_enterprise
</sql> </sql>
...@@ -35,6 +37,7 @@ ...@@ -35,6 +37,7 @@
resultMap="AutomobileEnterpriseResult"> resultMap="AutomobileEnterpriseResult">
<include refid="selectAutomobileEnterpriseVo"/> <include refid="selectAutomobileEnterpriseVo"/>
<where> <where>
deleted = 0
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%', <if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',
#{enterpriseName}, '%') #{enterpriseName}, '%')
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment