删减逻辑代码 去除任务分级

master
bynt 3 years ago
parent c6386fd709
commit 66fd6a13cf

@ -100,18 +100,6 @@ public class TaskRecord implements Serializable {
private Long taskPushId;
@Column(name = "level")
@ApiModelProperty(value = "等级")
private Integer level;
@Column(name = "parent_id")
@ApiModelProperty(value = "父类id")
private Integer parentId;
@Transient
@ApiModelProperty(value = "父类id")
private List<TaskRecord> children;
public void copy(TaskRecord source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));

@ -20,8 +20,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @website https://el-admin.vip
* @author x
@ -30,11 +28,6 @@ import java.util.List;
@Repository
public interface TaskRecordRepository extends JpaRepository<TaskRecord, Integer>, JpaSpecificationExecutor<TaskRecord> {
/**
*
* @param parentId
* @return
*/
List<TaskRecord> findByParentId(Long parentId);
}

@ -72,6 +72,5 @@ public class TaskRecordDto implements Serializable {
*/
private Long taskPushId;
/*** 子数据*/
private List<TaskRecordDto> children;
}

@ -47,6 +47,5 @@ public class TaskRecordQueryCriteria{
@Query
private String oprationName;
@Query
private Long parentId;
}

Loading…
Cancel
Save