bug修复

This commit is contained in:
chuyan 2020-09-10 21:29:19 +08:00
parent baf12c0657
commit ac05b505cc
2 changed files with 3 additions and 11 deletions

View File

@ -1,16 +1,12 @@
package com.codesdream.ase.model.parent; package com.codesdream.ase.model.parent;
import com.codesdream.ase.model.mark.Tag;
import com.codesdream.ase.model.permission.User; import com.codesdream.ase.model.permission.User;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import javax.annotation.Generated; import javax.persistence.Entity;
import javax.persistence.*;
import java.util.List;
@Entity @Entity
@Table
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
public class Parent extends User { public class Parent extends User {

View File

@ -1,7 +1,6 @@
package com.codesdream.ase.repository.activity; package com.codesdream.ase.repository.activity;
import com.codesdream.ase.model.activity.Activity; import com.codesdream.ase.model.activity.Activity;
import com.codesdream.ase.model.permission.User;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@ -14,10 +13,7 @@ public interface ActivityRepository extends JpaRepository<Activity, Integer> {
List<Activity> findByTitle(String title); List<Activity> findByTitle(String title);
List<Activity> findByTitle(String title, Sort sort); List<Activity> findByTitle(String title, Sort sort);
List<Activity> findByCreator(User creator); List<Activity> findByCreatorId(int creator);
List<Activity> findByCreator(User creator, Sort sort); List<Activity> findByCreatorId(int creator, Sort sort);
List<Activity> findByManager(User manager);
List<Activity> findByManager(User manager, Sort sort);
} }