CrmPatientTzxxDao.java 834 B

12345678910111213141516171819
  1. package thyyxxk.webserver.dao.his.chronicDisease;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import org.apache.ibatis.annotations.Delete;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.apache.ibatis.annotations.Select;
  7. import thyyxxk.webserver.entity.chronicDisease.CrmPatientTzxx;
  8. @Mapper
  9. public interface CrmPatientTzxxDao extends BaseMapper<CrmPatientTzxx> {
  10. @Select(" select * from crm_patient_tzxx where p_id = #{pId} and visit_times = #{visitTimes} ")
  11. CrmPatientTzxx selectCrmTzxxByPid(@Param("pId") String pId, @Param("visitTimes") Integer visitTimes);
  12. @Delete(" delete from crm_patient_tzxx where p_id = #{pId} and visit_times = #{visitTimes} ")
  13. int deleteCrmTzxxByPid(@Param("pId") String pId, @Param("visitTimes") Integer visitTimes);
  14. }