|
@@ -149,7 +149,8 @@
|
|
|
a.beh_dept_id,
|
|
|
a.beh_dept_name
|
|
|
ORDER BY
|
|
|
- percent DESC
|
|
|
+ percent DESC,
|
|
|
+ a.beh_dept_name ASC
|
|
|
</select>
|
|
|
|
|
|
<!-- 按模块统计质控缺陷数 -->
|
|
@@ -1436,7 +1437,12 @@
|
|
|
AND a.beh_dept_name like CONCAT('%', #{filterPageByDeptVO.deptName},'%')
|
|
|
</if>
|
|
|
<if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
|
|
|
- AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName},'%')
|
|
|
+ <if test="filterPageByDeptVO.doctorName=='未知'">
|
|
|
+ AND (a.doctor_name is null OR a.doctor_name='')
|
|
|
+ </if>
|
|
|
+ <if test="filterPageByDeptVO.doctorName!='未知'">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName},'%')
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="filterPageByDeptVO.ruleType != null ">
|
|
|
AND e.rule_type = #{filterPageByDeptVO.ruleType}
|
|
@@ -1506,7 +1512,12 @@
|
|
|
AND a.beh_dept_name like CONCAT('%', #{filterPageByDeptVO.deptName},'%')
|
|
|
</if>
|
|
|
<if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
|
|
|
- AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName},'%')
|
|
|
+ <if test="filterPageByDeptVO.doctorName=='未知'">
|
|
|
+ AND (a.doctor_name is null OR a.doctor_name='')
|
|
|
+ </if>
|
|
|
+ <if test="filterPageByDeptVO.doctorName!='未知'">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName},'%')
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="filterPageByDeptVO.ruleType != null ">
|
|
|
AND e.rule_type = #{filterPageByDeptVO.ruleType}
|