@ -62,6 +62,7 @@ public interface SignPatientLabelInfoDao extends
int deleteByPatientAndLabelTypeAndStatus(String patient, String labelType, Integer status);
@Modifying
@Query("update SignPatientLabelInfo set status = 0 where label = ?1 and status = 1")
int deleteByLabel(String labelCode);
/**
@ -1475,7 +1475,9 @@ public class SignPatientLabelInfoService extends BaseService {
return -1;
}
labelInfoDao.delete(labelInfo);
labelInfo.setStatus(0);
labelInfoDao.save(labelInfo);
return 1;