| | |
| | | <if test="query.generationType != null"> |
| | | and generation_type = #{query.generationType} |
| | | </if> |
| | | <if test="query.projectIds != null and query.projectIds.size() > 0"> |
| | | and project_id in |
| | | <foreach item="item" collection="query.projectIds" separator="," open="(" close=")" index=""> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | |
| | | where pedigree_chart_id = #{query.id} |
| | | and status = 1 |
| | | and type = 1 |
| | | and vaccinate_id is not null |
| | | and preserve_id is null |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </select> |