|
@@ -28,7 +28,7 @@
|
|
|
<select id="page" parameterType="com.dayou.vo.VisitVO" resultType="com.dayou.vo.VisitVO">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>,c.name as customerName,u.name as userName,c.section as customerSection,
|
|
|
- c.department as customerDepartment,c.position as customerPosition
|
|
|
+ c.department as customerDepartment,c.position as customerPosition,c.level as customerLevel
|
|
|
from visit v left join customer c on v.customer_id = c.id left join user u on u.id = v.user_id
|
|
|
where v.deleted = 0 and c.deleted = 0
|
|
|
<if test="visit!=null and visit.customerName!=null and visit.customerName!='' ">
|
|
@@ -49,7 +49,7 @@
|
|
|
<select id="detail" parameterType="java.lang.Long" resultType="com.dayou.vo.VisitVO">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>,c.name as customerName,u.name as userName,c.section as customerSection,
|
|
|
- c.department as customerDepartment,c.position as customerPosition
|
|
|
+ c.department as customerDepartment,c.position as customerPosition,c.level as customerLevel
|
|
|
from visit v left join customer c on v.customer_id = c.id left join user u on u.id = v.user_id
|
|
|
where v.deleted = 0 and c.deleted = 0 and v.id = #{id}
|
|
|
</select>
|