浏览代码

数据权限调整

wucl 2 年之前
父节点
当前提交
1776baddfe
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 2
      dao/src/main/resources/mapper/VisitMapper.xml
  2. 2 0
      domain/src/main/java/com/dayou/vo/VisitVO.java

+ 2 - 2
dao/src/main/resources/mapper/VisitMapper.xml

@@ -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>

+ 2 - 0
domain/src/main/java/com/dayou/vo/VisitVO.java

@@ -33,4 +33,6 @@ public class VisitVO extends Visit {
     private String customerSection;
 
     private String customerPosition;
+
+    private String customerLevel;
 }