|
@@ -60,7 +60,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectTBusEnterpriseList" parameterType="TBusEnterprise" resultMap="TBusEnterpriseResult">
|
|
|
<include refid="selectTBusEnterpriseVo"/>
|
|
|
<where>
|
|
|
- e.del_flag = '0'
|
|
|
<if test="deptId != null "> and e.dept_id = #{deptId}</if>
|
|
|
<if test="deptName != null "> and d.dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
<if test="userName != null "> and u.nick_name like concat('%', #{userName}, '%')</if>
|
|
@@ -77,7 +76,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tradeDept != null and tradeDept != ''"> and e.trade_dept = #{tradeDept}</if>
|
|
|
<if test="longitude != null and longitude != ''"> and e.longitude = #{longitude}</if>
|
|
|
<if test="latitude != null and latitude != ''"> and e.latitude = #{latitude}</if>
|
|
|
- <if test="dataStatus != null and dataStatus != ''"> and e.data_status = #{dataStatus}</if>
|
|
|
<if test="enterpriseCode != null and enterpriseCode != ''"> and e.enterprise_code = #{enterpriseCode}</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
@@ -85,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by e.create_time desc
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectTBusEnterpriseByBusEnterpriseId" parameterType="Object" resultMap="TBusEnterpriseResult">
|
|
|
+ <select id="selectTBusEnterpriseByBusEnterpriseId" parameterType="TBusEnterprise" resultMap="TBusEnterpriseResult">
|
|
|
<include refid="selectTBusEnterpriseVo"/>
|
|
|
where bus_enterprise_id = #{busEnterpriseId}
|
|
|
</select>
|
|
@@ -110,7 +108,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="longitude != null">longitude,</if>
|
|
|
<if test="latitude != null">latitude,</if>
|
|
|
- <if test="dataStatus != null">data_status,</if>
|
|
|
<if test="enterpriseCode != null">enterprise_code,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -131,7 +128,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="longitude != null">#{longitude},</if>
|
|
|
<if test="latitude != null">#{latitude},</if>
|
|
|
- <if test="dataStatus != null">#{dataStatus},</if>
|
|
|
<if test="enterpriseCode != null">#{enterpriseCode},</if>
|
|
|
</trim>
|
|
|
</insert>
|