|
|
@ -408,82 +408,82 @@ |
|
|
|
and t.phone = #{param.phone} |
|
|
|
</if> |
|
|
|
<if test="param.hypertension != null"> |
|
|
|
<if test="param.hypertension = 1"> |
|
|
|
<if test="param.hypertension == 1"> |
|
|
|
and (FIND_IN_SET('01',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.hypertension = 0"> |
|
|
|
<if test="param.hypertension == 0"> |
|
|
|
and (FIND_IN_SET('01',t.illness) = 0 or FIND_IN_SET('01',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.bloodFat != null"> |
|
|
|
<if test="param.bloodFat = 1"> |
|
|
|
<if test="param.bloodFat == 1"> |
|
|
|
and (FIND_IN_SET('02',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.bloodFat = 0"> |
|
|
|
<if test="param.bloodFat == 0"> |
|
|
|
and (FIND_IN_SET('02',t.illness) = 0 or FIND_IN_SET('02',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.diabetes != null"> |
|
|
|
<if test="param.diabetes = 1"> |
|
|
|
<if test="param.diabetes == 1"> |
|
|
|
and (FIND_IN_SET('03',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.diabetes = 0"> |
|
|
|
<if test="param.diabetes == 0"> |
|
|
|
and (FIND_IN_SET('03',t.illness) = 0 or FIND_IN_SET('03',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.fibrillation != null"> |
|
|
|
<if test="param.fibrillation = 1"> |
|
|
|
<if test="param.fibrillation == 1"> |
|
|
|
and (FIND_IN_SET('04',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.fibrillation = 0"> |
|
|
|
<if test="param.fibrillation == 0"> |
|
|
|
and (FIND_IN_SET('04',t.illness) = 0 or FIND_IN_SET('04',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.smoke != null"> |
|
|
|
<if test="param.smoke = 1"> |
|
|
|
<if test="param.smoke == 1"> |
|
|
|
and (FIND_IN_SET('05',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.smoke = 0"> |
|
|
|
<if test="param.smoke == 0"> |
|
|
|
and (FIND_IN_SET('05',t.illness) = 0 or FIND_IN_SET('05',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.weight != null"> |
|
|
|
<if test="param.weight = 1"> |
|
|
|
<if test="param.weight == 1"> |
|
|
|
and (FIND_IN_SET('06',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.weight = 0"> |
|
|
|
<if test="param.weight == 0"> |
|
|
|
and (FIND_IN_SET('06',t.illness) = 0 or FIND_IN_SET('06',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.sports != null"> |
|
|
|
<if test="param.sports = 1"> |
|
|
|
<if test="param.sports == 1"> |
|
|
|
and (FIND_IN_SET('07',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.sports = 0"> |
|
|
|
<if test="param.sports == 0"> |
|
|
|
and (FIND_IN_SET('07',t.illness) = 0 or FIND_IN_SET('07',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.apoplexyFamily != null"> |
|
|
|
<if test="param.apoplexyFamily = 1"> |
|
|
|
<if test="param.apoplexyFamily == 1"> |
|
|
|
and (FIND_IN_SET('08',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.apoplexyFamily = 0"> |
|
|
|
<if test="param.apoplexyFamily == 0"> |
|
|
|
and (FIND_IN_SET('08',t.illness) = 0 or FIND_IN_SET('08',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.cerebralStroke != null"> |
|
|
|
<if test="param.cerebralStroke = 1"> |
|
|
|
<if test="param.cerebralStroke == 1"> |
|
|
|
and (FIND_IN_SET('09',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.cerebralStroke = 0"> |
|
|
|
<if test="param.cerebralStroke == 0"> |
|
|
|
and (FIND_IN_SET('09',t.illness) = 0 or FIND_IN_SET('09',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.cerebralIschemia != null"> |
|
|
|
<if test="param.cerebralIschemia = 1"> |
|
|
|
<if test="param.cerebralIschemia == 1"> |
|
|
|
and (FIND_IN_SET('10',t.illness) > 0) |
|
|
|
</if> |
|
|
|
<if test="param.cerebralIschemia = 0"> |
|
|
|
<if test="param.cerebralIschemia == 0"> |
|
|
|
and (FIND_IN_SET('10',t.illness) = 0 or FIND_IN_SET('10',t.illness) is null) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|