|
@ -9,9 +9,9 @@ import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
*/
|
|
|
public interface ManageSynergyWorkorderServicerLogDao extends PagingAndSortingRepository<ManageSynergyWorkorderServicerLogDO, Long> {
|
|
|
|
|
|
@Query("select count(distinct l.servicePatientCode) from ManageSynergyWorkorderServicerLogDO l where l.workorderCode=?1 and l.followUp=2 ")
|
|
|
@Query("select count(distinct l.workorderServiceCode) from ManageSynergyWorkorderServicerLogDO l where l.workorderCode=?1 and l.followUp=2 ")
|
|
|
Integer findByWorkorderCodeAndFollowUp(String workorderCode);
|
|
|
|
|
|
@Query("select count(distinct l.servicePatientCode) from ManageSynergyWorkorderServicerLogDO l where l.workorderCode=?1 and l.returnVisit=2 ")
|
|
|
@Query("select count(distinct l.workorderServiceCode) from ManageSynergyWorkorderServicerLogDO l where l.workorderCode=?1 and l.returnVisit=2 ")
|
|
|
Integer findByWorkorderCodeAndReturnVisit(String workorderCode);
|
|
|
}
|