package com.ltkj.system.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ltkj.system.domain.TjDjdDyjl; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; /** * 体检导检单打印记录Mapper接口 * * @author ltkj * @date 2024-10-25 */ @Mapper public interface TjDjdDyjlMapper extends BaseMapper { /** * 查询体检导检单打印记录 * * @param id 体检导检单打印记录主键 * @return 体检导检单打印记录 */ public TjDjdDyjl selectTjDjdDyjlById(Long id); /** * 查询体检导检单打印记录列表 * * @param tjDjdDyjl 体检导检单打印记录 * @return 体检导检单打印记录集合 */ public List selectTjDjdDyjlList(TjDjdDyjl tjDjdDyjl); /** * 新增体检导检单打印记录 * * @param tjDjdDyjl 体检导检单打印记录 * @return 结果 */ public int insertTjDjdDyjl(TjDjdDyjl tjDjdDyjl); /** * 修改体检导检单打印记录 * * @param tjDjdDyjl 体检导检单打印记录 * @return 结果 */ public int updateTjDjdDyjl(TjDjdDyjl tjDjdDyjl); /** * 删除体检导检单打印记录 * * @param id 体检导检单打印记录主键 * @return 结果 */ public int deleteTjDjdDyjlById(Long id); /** * 批量删除体检导检单打印记录 * * @param ids 需要删除的数据主键集合 * @return 结果 */ public int deleteTjDjdDyjlByIds(Long[] ids); @Select("SELECT * FROM tj_djd_dyjl a WHERE a.deleted=0 AND a.tj_num=#{tjNumber} AND a.dylx=0") TjDjdDyjl getDjdDyCsByTjNum(String tjNumber); }