修改签收和取消签收

master
hujl 4 years ago
parent 1676d92384
commit 78631c51da

@ -19,12 +19,12 @@ public interface ArchiveMasterRepository extends JpaRepository<ArchiveMaster, St
public ArchiveMaster findByInpNoAndVisitIdAndIsValid(String inpNo, String visitId, Integer isValid); public ArchiveMaster findByInpNoAndVisitIdAndIsValid(String inpNo, String visitId, Integer isValid);
@Query(value = "select o from ArchiveMaster o where (o.archiveState = '初审' or o.archiveState = '已归档') and o.sendTime is null ") @Query(value = "select o from ArchiveMaster o where (o.archiveState = '初审' or o.archiveState = '已归档') and o.sendTime is null and o.inpNo not like '%LG%'")
public List<ArchiveMaster> findArchiveMasterBySendTime(); public List<ArchiveMaster> findArchiveMasterBySendTime();
@Transactional @Transactional
@Modifying @Modifying
@Query(value = "update ArchiveMaster o set o.sendTime = ?1 where (o.archiveState = '初审' or o.archiveState = '已归档') and o.id = ?2 and o.isValid = 0 ") @Query(value = "update ArchiveMaster o set o.sendTime = ?1 where (o.archiveState = '初审' or o.archiveState = '已归档') and o.id = ?2 and o.isValid = 0 and o.inpNo not like '%LG%' ")
public Integer updateSendTime(String nowDate,String id); public Integer updateSendTime(String nowDate,String id);
@Transactional @Transactional
@ -32,6 +32,6 @@ public interface ArchiveMasterRepository extends JpaRepository<ArchiveMaster, St
@Query(value = "update ArchiveMaster o set o.sendTime = null where o.archiveState = '复审退回' and o.id = ?1 and o.isValid = 0 ") @Query(value = "update ArchiveMaster o set o.sendTime = null where o.archiveState = '复审退回' and o.id = ?1 and o.isValid = 0 ")
public Integer updateSendTimeBySendBack(String id); public Integer updateSendTimeBySendBack(String id);
@Query(value = "select o from ArchiveMaster o where (o.archiveState = '复审退回' or o.archiveState = '主任退回' ) and o.sendTime is not null ") @Query(value = "select o from ArchiveMaster o where (o.archiveState = '复审退回' or o.archiveState = '主任退回' ) and o.sendTime is not null and o.inpNo not like '%LG%'")
List<ArchiveMaster> findArchiveMasterBySendBackAndSendTime(); List<ArchiveMaster> findArchiveMasterBySendBackAndSendTime();
} }

Loading…
Cancel
Save