添加实体类
parent
801e609c50
commit
b3d3d76d48
|
@ -1,5 +1,8 @@
|
||||||
package com.muyu.domain;
|
package com.muyu.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
|
@ -16,8 +19,14 @@ import lombok.experimental.SuperBuilder;
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@SuperBuilder
|
@SuperBuilder
|
||||||
|
@TableName(value = "task_info",autoResultMap = true)
|
||||||
public class TaskInfo extends BaseEntity {
|
public class TaskInfo extends BaseEntity {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "id",type = IdType.AUTO)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -39,14 +39,16 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
|
||||||
StringUtils.isNotEmpty(taskInfo.getName()),
|
StringUtils.isNotEmpty(taskInfo.getName()),
|
||||||
TaskInfo::getName, taskInfo.getName()
|
TaskInfo::getName, taskInfo.getName()
|
||||||
);
|
);
|
||||||
// queryWrapper.ne(TaskInfo::getStatus, 0);
|
if(taskInfo.getStatus()!=0){
|
||||||
// queryWrapper.eq(
|
queryWrapper.eq(
|
||||||
// TaskInfo::getStatus,taskInfo.getStatus()
|
TaskInfo::getStatus,taskInfo.getStatus()
|
||||||
// );
|
);
|
||||||
// queryWrapper.ne(TaskInfo::getWeigh, 0);
|
}
|
||||||
// queryWrapper.eq(
|
if(taskInfo.getWeigh()!=0){
|
||||||
// TaskInfo::getStatus,taskInfo.getWeigh()
|
queryWrapper.eq(
|
||||||
// );
|
TaskInfo::getWeigh,taskInfo.getWeigh()
|
||||||
|
);
|
||||||
|
}
|
||||||
return this.list(queryWrapper);
|
return this.list(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +58,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
|
||||||
return "success";
|
return "success";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String updById(TaskInfo taskInfo) {
|
public String updById(TaskInfo taskInfo) {
|
||||||
this.updateById(taskInfo);
|
this.updateById(taskInfo);
|
||||||
|
|
Loading…
Reference in New Issue