|
|
@@ -163,12 +163,13 @@
|
|
|
FROM lab_risk_plan_abnormal_group g
|
|
|
LEFT JOIN lab_subject s ON s.id = g.subject_id
|
|
|
<where>
|
|
|
+ g.STATUS = 0
|
|
|
<if test="searchValue != null and searchValue!='' ">and (
|
|
|
g.group_name like concat('%', #{searchValue}, '%')
|
|
|
or s.name like concat('%', #{searchValue}, '%')
|
|
|
)
|
|
|
</if>
|
|
|
- <if test="riskAttribute != null ">and risk_attribute = #{riskAttribute}</if>
|
|
|
+ <if test="riskAttribute != null ">and g.risk_attribute = #{riskAttribute}</if>
|
|
|
</where>
|
|
|
ORDER BY g.create_time DESC
|
|
|
</select>
|