This commit is contained in:
杜建超 2020-10-26 18:04:11 +08:00
parent 1ebb514d10
commit 515dadf812
4 changed files with 15 additions and 2 deletions

View File

@ -71,8 +71,7 @@ public class AssessManagerController {
if(flowStart == null){ if(flowStart == null){
return R.error("没有此条记录"); return R.error("没有此条记录");
} }
resultRecordMapper.batchDeleteByStartId(flowStart.getId()); assessManagerService.accessDelete(flowStart);
return R.ok(); return R.ok();
} }
} }

View File

@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
@Data @Data
@ApiModel(value = "报表统计实体") @ApiModel(value = "报表统计实体")
@ -13,4 +14,7 @@ public class ChartStatistical {
@ApiModelProperty(value = "人数",name = "num") @ApiModelProperty(value = "人数",name = "num")
private int num = 0; private int num = 0;
@ApiModelProperty(value = "是否被选中",name = "check")
private int check;
} }

View File

@ -16,4 +16,6 @@ public interface AssessManagerService {
PageUtils assessDetail(AssessDetailReq req); PageUtils assessDetail(AssessDetailReq req);
void accessDelete(FlowStart flowStart);
} }

View File

@ -78,4 +78,12 @@ public class AssessManagerServiceImpl implements AssessManagerService {
); );
return pageUtils; return pageUtils;
} }
@Override
public void accessDelete(FlowStart flowStart) {
flowStart.setIsDelete(1);
flowStartMapper.updateFlowStartById(flowStart);
resultRecordMapper.batchDeleteByStartId(flowStart.getId());
return ;
}
} }