|
@ -1,10 +1,10 @@
|
|
|
package com.yihu.jw.base.dao.team;
|
|
|
package com.yihu.jw.label;
|
|
|
|
|
|
import com.yihu.jw.entity.care.label.WlyyPatientLabelDO;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@ -17,6 +17,13 @@ public interface WlyyPatientLabelDao extends JpaRepository<WlyyPatientLabelDO, S
|
|
|
@Query("delete WlyyPatientLabelDO a where a.patient=?1 and a.labelType=?2")
|
|
|
int deleteByPatientAndLabelType(String patient, String labelType) throws Exception;
|
|
|
|
|
|
@Modifying
|
|
|
@Query("delete WlyyPatientLabelDO a where a.patient=?1")
|
|
|
int deleteByPatient(String patiente) throws Exception;
|
|
|
|
|
|
@Query("from WlyyPatientLabelDO w where w.patient=?1 group by w.labelType,w.labelCode order by w.czrq desc")
|
|
|
List<WlyyPatientLabelDO> findByPatient(String patient);
|
|
|
|
|
|
@Query("from WlyyPatientLabelDO w where w.patient=?1 and w.labelCode=?2 and w.labelType=?3 ")
|
|
|
List<WlyyPatientLabelDO> findByPatient(String patient, String labelCode, String labelType);
|
|
|
}
|