Selaa lähdekoodia

修改添加回访记录

周箭河 4 vuotta sitten
vanhempi
commit
6507017fbb

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml

@@ -695,7 +695,7 @@
     </select>
 
     <select id="getUsers" resultType="com.ym.mec.biz.dal.dto.BasicUserDto">
-            SELECT username_,id_ user_id_,phone_ FROM sys_user
+            SELECT username_ name ,id_ userId,phone_ phone FROM sys_user
             WHERE id_ = #{search} OR username_ LIKE CONCAT('%',#{search},'%') OR phone_ LIKE CONCAT('%',#{search},'%')
     </select>
 </mapper>

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/StudentVisitMapper.xml

@@ -109,6 +109,9 @@
             <if test="student != null and student != ''">
                 AND (s.id_ = #{student} OR s.username_ LIKE CONCAT('%',#{student},'%'))
             </if>
+            <if test="teacherId !=null">
+                AND sv.teacher_id_ = #{teacherId}
+            </if>
             <if test="organId != null and organId != ''">
                 AND FIND_IN_SET(sv.organ_id_,#{organId})
             </if>