38 changed files with 846 additions and 58 deletions
@ -0,0 +1,96 @@
|
||||
package com.biutag.supervision.controller.mobileSupervision; |
||||
|
||||
import cn.hutool.core.io.FileUtil; |
||||
import cn.hutool.core.util.ObjectUtil; |
||||
import cn.hutool.core.util.StrUtil; |
||||
import com.alibaba.excel.EasyExcel; |
||||
import com.alibaba.excel.ExcelReader; |
||||
import com.alibaba.excel.context.AnalysisContext; |
||||
import com.alibaba.excel.read.listener.ReadListener; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.biutag.supervision.pojo.Result; |
||||
import com.biutag.supervision.pojo.dto.DataCaseVerifImportDto; |
||||
import com.biutag.supervision.pojo.dto.TaskManagementDto; |
||||
import com.biutag.supervision.pojo.dto.TemperancePoliceDto; |
||||
import com.biutag.supervision.pojo.param.TaskInspectionQueryParam; |
||||
import com.biutag.supervision.pojo.param.TaskQueryParam; |
||||
import com.biutag.supervision.pojo.vo.TaskInspectionVo; |
||||
import com.biutag.supervision.pojo.vo.TaskVo; |
||||
import com.biutag.supervision.service.SupTaskService; |
||||
import com.biutag.supervision.service.TaskManagementService; |
||||
import lombok.RequiredArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
|
||||
import java.io.IOException; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
@Slf4j |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/task/management") |
||||
@RestController |
||||
public class TaskManagementController { |
||||
|
||||
private final TaskManagementService taskManagementService; |
||||
|
||||
private final SupTaskService taskService; |
||||
@GetMapping |
||||
public Result<Page<TaskVo>> pageResult(TaskQueryParam queryParam) { |
||||
return Result.success(taskService.pageTaskData(queryParam)); |
||||
} |
||||
@PostMapping("/addTaskManagement") |
||||
public Result addTaskManagement(@RequestBody TaskManagementDto dto){ |
||||
if(taskManagementService.save(dto)){ |
||||
return Result.success(); |
||||
}else{ |
||||
return Result.failed("操作失败"); |
||||
} |
||||
} |
||||
|
||||
@GetMapping("/{id}") |
||||
public Result<TaskManagementDto> getDetil(@PathVariable Integer id){ |
||||
TaskManagementDto taskManagementDto = taskManagementService.getDetail(id); |
||||
if(ObjectUtil.isNotEmpty(taskManagementDto)){ |
||||
return Result.success(taskManagementDto); |
||||
}else{ |
||||
return Result.failed("查询失败"); |
||||
} |
||||
} |
||||
|
||||
@DeleteMapping("/{id}") |
||||
public Result delTaskById(@PathVariable Integer id){ |
||||
if(taskManagementService.delTaskById(id)){ |
||||
return Result.success(); |
||||
}else{ |
||||
return Result.failed("操作失败"); |
||||
} |
||||
} |
||||
|
||||
@PostMapping("import") |
||||
public Result<List<TemperancePoliceDto>> importExcel(@RequestPart("file") MultipartFile file) throws IOException { |
||||
log.info("文件导入中------------------------------"); |
||||
String fileNameType = FileUtil.extName(file.getOriginalFilename()); |
||||
if (!"xls".equals(fileNameType) && !"xlsx".equals(fileNameType)) { |
||||
throw new RuntimeException("仅支持 xls/xlsx 格式文件的导入"); |
||||
} |
||||
List<TemperancePoliceDto> list = new ArrayList<>(); |
||||
|
||||
ExcelReader excelReader = EasyExcel.read(file.getInputStream(), TemperancePoliceDto.class, new ReadListener<TemperancePoliceDto>() { |
||||
@Override |
||||
public void invoke(TemperancePoliceDto data, AnalysisContext analysisContext) { |
||||
list.add(data); |
||||
} |
||||
|
||||
@Override |
||||
public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
||||
|
||||
} |
||||
}).build().read(EasyExcel.readSheet(0).build()); |
||||
excelReader.close(); |
||||
log.info("数据导入完成"); |
||||
return Result.success(list); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,11 @@
|
||||
package com.biutag.supervision.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervision.pojo.entity.SupTaskSelfexaminationDepart; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
|
||||
public interface SupTaskSelfexaminationDepartMapper extends BaseMapper<SupTaskSelfexaminationDepart> { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,10 @@
|
||||
package com.biutag.supervision.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervision.pojo.entity.BaseUser; |
||||
import com.biutag.supervision.pojo.entity.SupTaskTestingAlcoholSampling; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
|
||||
public interface SupTaskTestingAlcoholSamplingMapper extends BaseMapper<SupTaskTestingAlcoholSampling> { |
||||
} |
||||
@ -0,0 +1,49 @@
|
||||
package com.biutag.supervision.pojo.dto; |
||||
|
||||
import com.biutag.supervision.pojo.entity.SupTaskPerson; |
||||
import com.biutag.supervision.pojo.entity.SupTaskSelfexaminationContent; |
||||
import com.biutag.supervision.pojo.entity.SupTaskTestingAlcoholPeople; |
||||
import com.biutag.supervision.pojo.vo.TemperancePoliceVo; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class TaskManagementDto { |
||||
|
||||
//任务名称
|
||||
private String taskName; |
||||
// 督察单位
|
||||
private Integer supDepartId; |
||||
// 督察类型
|
||||
private String supervisionType; |
||||
//专项督察类型
|
||||
private String specialType; |
||||
//督察时间
|
||||
private List<LocalDateTime> times = new ArrayList<>(); |
||||
//督察人员
|
||||
private List<SupTaskPerson> persons = new ArrayList<>(); |
||||
//督察对象方式(禁酒督察)
|
||||
private String samplingTarget; |
||||
//excel 导入的数据
|
||||
private List<TemperancePoliceVo> policeVos; |
||||
//选择的禁闭规则
|
||||
private List<String> samplingIds; |
||||
// 选择的数据
|
||||
private List<SupTaskTestingAlcoholPeople> userList; |
||||
// 任务要求
|
||||
private String taskContent; |
||||
//任务要求
|
||||
private String taskContentHtml; |
||||
//自选单位
|
||||
private List<String> selfOrgs; |
||||
//任务内容
|
||||
private List<SupTaskSelfexaminationContent> selfContents; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,18 @@
|
||||
package com.biutag.supervision.pojo.dto; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
@Getter |
||||
@Setter |
||||
public class TemperancePoliceDto { |
||||
@ExcelProperty({"警号"}) |
||||
private String empNo; |
||||
|
||||
@ExcelProperty({"姓名"}) |
||||
private String name; |
||||
|
||||
@ExcelProperty({"身份证"}) |
||||
private String idCode; |
||||
} |
||||
@ -0,0 +1,25 @@
|
||||
package com.biutag.supervision.pojo.entity; |
||||
|
||||
import cn.hutool.core.date.DateTime; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
@Getter |
||||
@Setter |
||||
public class SupTaskSelfexaminationDepart { |
||||
@TableId |
||||
private String id; |
||||
//部门id
|
||||
@TableField("depart_id") |
||||
private String departId; |
||||
//任务id
|
||||
@TableField("task_id") |
||||
private Integer taskId; |
||||
//创建时间
|
||||
@TableField("create_time") |
||||
private LocalDateTime createTime; |
||||
} |
||||
@ -0,0 +1,19 @@
|
||||
package com.biutag.supervision.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
@Getter |
||||
@Setter |
||||
public class SupTaskTestingAlcoholSampling { |
||||
@TableId |
||||
private String id; |
||||
//督察任务id
|
||||
@TableField("task_id") |
||||
private Integer taskId; |
||||
//人员抽检规则id
|
||||
@TableField("sampling_id") |
||||
private String samplingId; |
||||
} |
||||
@ -0,0 +1,42 @@
|
||||
package com.biutag.supervision.pojo.vo; |
||||
|
||||
import com.biutag.supervision.pojo.dto.TaskProblemDto; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
@Getter |
||||
@Setter |
||||
public class TaskSelfexaminationProblemVo { |
||||
|
||||
private Integer id; |
||||
//任务列表
|
||||
private Integer taskId; |
||||
|
||||
// 是否存在督察问题
|
||||
private Boolean hasProblem; |
||||
//督察单位ID
|
||||
private String departId; |
||||
//督察单位
|
||||
private String departName; |
||||
//问题类型
|
||||
private String problemType; |
||||
//问题类型编码
|
||||
private String problemTypeCode; |
||||
|
||||
// 具体情况
|
||||
private String detail; |
||||
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm") |
||||
private LocalDateTime createTime; |
||||
|
||||
// 附件
|
||||
private List<FileVo> files = new ArrayList<>(); |
||||
|
||||
private List<TaskProblemDto.People> peoples = new ArrayList<>(); |
||||
} |
||||
@ -0,0 +1,18 @@
|
||||
package com.biutag.supervision.pojo.vo; |
||||
|
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
/** |
||||
* 禁酒抽检人员 |
||||
* */ |
||||
@Getter |
||||
@Setter |
||||
public class TemperancePoliceVo { |
||||
|
||||
private String empNo; |
||||
|
||||
private String empName; |
||||
|
||||
private String idCode; |
||||
} |
||||
@ -0,0 +1,10 @@
|
||||
package com.biutag.supervision.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervision.mapper.SupTaskSelfexaminationDepartMapper; |
||||
import com.biutag.supervision.pojo.entity.SupTaskSelfexaminationDepart; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
public class SupTaskSelfexaminationDepartService extends ServiceImpl<SupTaskSelfexaminationDepartMapper, SupTaskSelfexaminationDepart> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervision.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervision.mapper.SupTaskTestingAlcoholSamplingMapper; |
||||
import com.biutag.supervision.pojo.entity.SupTaskTestingAlcoholSampling; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@RequiredArgsConstructor |
||||
@Service |
||||
public class SupTaskTestingAlcoholSamplingService extends ServiceImpl<SupTaskTestingAlcoholSamplingMapper, SupTaskTestingAlcoholSampling> { |
||||
} |
||||
@ -0,0 +1,230 @@
|
||||
package com.biutag.supervision.service; |
||||
|
||||
import cn.hutool.core.collection.CollectionUtil; |
||||
import cn.hutool.core.util.IdUtil; |
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.biutag.supervision.constants.enums.TaskStatusEnum; |
||||
import com.biutag.supervision.pojo.Result; |
||||
import com.biutag.supervision.pojo.dto.TaskInspectionDto; |
||||
import com.biutag.supervision.pojo.dto.TaskManagementDto; |
||||
import com.biutag.supervision.pojo.entity.*; |
||||
import com.biutag.supervision.pojo.param.TaskQueryParam; |
||||
import com.biutag.supervision.pojo.vo.TaskVo; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.beans.BeanUtils; |
||||
import org.springframework.stereotype.Service; |
||||
import org.springframework.transaction.annotation.Transactional; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
@RequiredArgsConstructor |
||||
@Service |
||||
public class TaskManagementService { |
||||
private final SupDepartService departService; |
||||
|
||||
private final SupTaskService taskService; |
||||
|
||||
private final SupTaskPersonService taskPersonService; |
||||
|
||||
private final SupTaskInspectionService supTaskInspectionService; |
||||
|
||||
private final SupTaskSelfexaminationService selfexaminationService; |
||||
|
||||
private final SupTaskSelfexaminationContentService selfexaminationContentService; |
||||
|
||||
private final SupTaskTestingAlcoholService testingAlcoholService; |
||||
|
||||
private final SupTaskTestingAlcoholPeopleService testingAlcoholPeopleService; |
||||
|
||||
|
||||
private final SupTaskTestingAlcoholSamplingService alcoholSamplingService; |
||||
|
||||
private final SupTaskSelfexaminationDepartService supTaskSelfexaminationDepartService; |
||||
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class) |
||||
public boolean save(TaskManagementDto dto) { |
||||
SupTask task = new SupTask(); |
||||
BeanUtils.copyProperties(dto, task); |
||||
task.setCreateTime(LocalDateTime.now()); |
||||
//specialType 所队自查(selfexamination) 禁酒督察(testing_alcohol)
|
||||
//supervisionType 日常督察(inspection)
|
||||
task.setTaskStatus(TaskStatusEnum.todo.name()); |
||||
task.setBeginTime(dto.getTimes().get(0)); |
||||
task.setEndTime(dto.getTimes().get(1)); |
||||
if("日常督察".equals(dto.getSupervisionType())){ |
||||
task.setTaskType("inspection"); |
||||
}else{ |
||||
if("所队自查".equals(dto.getSpecialType())){ |
||||
task.setTaskType("selfexamination"); |
||||
} |
||||
if("禁酒督察".equals(dto.getSpecialType())){ |
||||
task.setTaskType("testing_alcohol"); |
||||
} |
||||
} |
||||
taskService.save(task); |
||||
if("日常督察".equals(dto.getSupervisionType())){ |
||||
SupTaskInspection testingAlcohol = new SupTaskInspection(); |
||||
BeanUtils.copyProperties(dto, testingAlcohol); |
||||
testingAlcohol.setTaskId(task.getId()); |
||||
supTaskInspectionService.save(testingAlcohol); |
||||
dto.getPersons().forEach(item -> { |
||||
item.setTaskId(task.getId()); |
||||
}); |
||||
return taskPersonService.saveBatch(dto.getPersons()); |
||||
}else{ |
||||
if("所队自查".equals(dto.getSpecialType())){ |
||||
SupTaskSelfexamination selfexamination = new SupTaskSelfexamination(); |
||||
selfexamination.setTaskId(task.getId()); |
||||
selfexamination.setType(dto.getSpecialType()); |
||||
selfexamination.setRequirement(dto.getTaskContent()); |
||||
selfexamination.setRequirementHtml(dto.getTaskContentHtml()); |
||||
selfexamination.setHasSign(false); |
||||
selfexaminationService.save(selfexamination); |
||||
// 自选单位
|
||||
List<SupTaskSelfexaminationDepart> list = new ArrayList<>(); |
||||
dto.getSelfOrgs().forEach(s->{ |
||||
SupTaskSelfexaminationDepart depart = new SupTaskSelfexaminationDepart(); |
||||
depart.setTaskId(task.getId()); |
||||
depart.setDepartId(s); |
||||
depart.setId(IdUtil.fastSimpleUUID()); |
||||
depart.setCreateTime(LocalDateTime.now()); |
||||
list.add(depart); |
||||
}); |
||||
supTaskSelfexaminationDepartService.saveBatch(list); |
||||
//任务内容
|
||||
dto.getSelfContents().forEach(content -> { |
||||
content.setTaskId(task.getId()); |
||||
content.setStatus(TaskStatusEnum.todo.name()); |
||||
}); |
||||
return selfexaminationContentService.saveBatch(dto.getSelfContents()); |
||||
|
||||
} |
||||
if("禁酒督察".equals(dto.getSpecialType())){ |
||||
SupTaskTestingAlcohol testingAlcohol = new SupTaskTestingAlcohol(); |
||||
BeanUtils.copyProperties(dto, testingAlcohol); |
||||
testingAlcohol.setTaskId(task.getId()); |
||||
testingAlcohol.setDataGenerationMethod(dto.getSamplingTarget()); |
||||
testingAlcoholService.save(testingAlcohol); |
||||
//处理关联关系
|
||||
List<SupTaskTestingAlcoholSampling> samplings = new ArrayList<>(); |
||||
if(CollectionUtil.isNotEmpty(dto.getSamplingIds())){ |
||||
dto.getSamplingIds().forEach(s->{ |
||||
SupTaskTestingAlcoholSampling sampling=new SupTaskTestingAlcoholSampling(); |
||||
sampling.setTaskId(task.getId()); |
||||
sampling.setSamplingId(s); |
||||
samplings.add(sampling); |
||||
}); |
||||
alcoholSamplingService.saveBatch(samplings); |
||||
} |
||||
|
||||
dto.getPersons().forEach(item -> { |
||||
item.setTaskId(task.getId()); |
||||
}); |
||||
taskPersonService.saveBatch(dto.getPersons()); |
||||
dto.getUserList().forEach(item -> { |
||||
item.setTaskId(task.getId()); |
||||
item.setStatus(TaskStatusEnum.todo.name()); |
||||
}); |
||||
return testingAlcoholPeopleService.saveBatch(dto.getUserList()); |
||||
}else{ |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
} |
||||
/** |
||||
* 查看督察任务详情 |
||||
* */ |
||||
public TaskManagementDto getDetail(Integer id){ |
||||
TaskManagementDto taskManagementDto =new TaskManagementDto(); |
||||
SupTask supTask = taskService.getById(id); |
||||
BeanUtils.copyProperties(supTask,taskManagementDto); |
||||
List<LocalDateTime> times = new ArrayList<>(); |
||||
times.add(supTask.getBeginTime()); |
||||
times.add(supTask.getEndTime()); |
||||
|
||||
taskManagementDto.setTimes(times); |
||||
|
||||
switch (supTask.getTaskType()){ |
||||
case "inspection": |
||||
taskManagementDto.setSupervisionType("日常督察"); |
||||
SupTaskInspection testInspection = supTaskInspectionService.getOne(new LambdaQueryWrapper<SupTaskInspection>().eq(SupTaskInspection::getTaskId,id)); |
||||
BeanUtils.copyProperties(testInspection,taskManagementDto ); |
||||
List<SupTaskPerson> personList = taskPersonService.list(new LambdaQueryWrapper<SupTaskPerson>().eq(SupTaskPerson::getTaskId,id)); |
||||
taskManagementDto.setPersons(personList); |
||||
break; |
||||
case "selfexamination": |
||||
taskManagementDto.setSpecialType("所队自查"); |
||||
taskManagementDto.setSupervisionType("专项督察"); |
||||
SupTaskSelfexamination selfexamination = selfexaminationService.getOne(new LambdaQueryWrapper<SupTaskSelfexamination>().eq(SupTaskSelfexamination::getTaskId,id)); |
||||
taskManagementDto.setTaskContent(selfexamination.getRequirement()); |
||||
taskManagementDto.setTaskContentHtml(selfexamination.getRequirementHtml()); |
||||
//自选单位
|
||||
List<SupTaskSelfexaminationDepart> list =supTaskSelfexaminationDepartService.list(new LambdaQueryWrapper<SupTaskSelfexaminationDepart>().eq(SupTaskSelfexaminationDepart::getTaskId,id)); |
||||
if(CollectionUtil.isNotEmpty(list)){ |
||||
taskManagementDto.setSelfOrgs(list.stream().map(SupTaskSelfexaminationDepart::getDepartId).toList()); |
||||
} |
||||
//任务内容
|
||||
List<SupTaskSelfexaminationContent> contents = selfexaminationContentService.list(new LambdaQueryWrapper<SupTaskSelfexaminationContent>().eq(SupTaskSelfexaminationContent::getTaskId,id)); |
||||
taskManagementDto.setSelfContents(contents); |
||||
break; |
||||
case "testing_alcohol": |
||||
taskManagementDto.setSpecialType("禁酒督察"); |
||||
taskManagementDto.setSupervisionType("专项督察"); |
||||
SupTaskTestingAlcohol testingAlcohol = testingAlcoholService.getOne(new LambdaQueryWrapper<SupTaskTestingAlcohol>().eq(SupTaskTestingAlcohol::getTaskId,id)); |
||||
|
||||
BeanUtils.copyProperties(testingAlcohol, taskManagementDto); |
||||
taskManagementDto.setSamplingTarget(testingAlcohol.getDataGenerationMethod()); |
||||
List<SupTaskTestingAlcoholSampling> sampling= alcoholSamplingService.list(new LambdaQueryWrapper<SupTaskTestingAlcoholSampling>().eq(SupTaskTestingAlcoholSampling::getTaskId,id)); |
||||
if(CollectionUtil.isNotEmpty(sampling)){ |
||||
taskManagementDto.setSamplingIds(sampling.stream().map(SupTaskTestingAlcoholSampling::getSamplingId).toList()); |
||||
} |
||||
//督察人员
|
||||
List<SupTaskPerson> taskPersonList = taskPersonService.list(new LambdaQueryWrapper<SupTaskPerson>().eq(SupTaskPerson::getTaskId,id)); |
||||
taskManagementDto.setPersons(taskPersonList); |
||||
//选择的数据
|
||||
List<SupTaskTestingAlcoholPeople> taskTestingAlcoholPeople= testingAlcoholPeopleService.list(new LambdaQueryWrapper<SupTaskTestingAlcoholPeople>().eq(SupTaskTestingAlcoholPeople::getTaskId,id)); |
||||
if (CollectionUtil.isNotEmpty(taskTestingAlcoholPeople)){ |
||||
taskManagementDto.setUserList(taskTestingAlcoholPeople); |
||||
} |
||||
|
||||
break; |
||||
} |
||||
return taskManagementDto; |
||||
} |
||||
|
||||
/** |
||||
* 删除数据 |
||||
* */ |
||||
public Boolean delTaskById(Integer id){ |
||||
//获取信息
|
||||
SupTask supTask = taskService.getById(id); |
||||
taskService.removeById(id); |
||||
switch (supTask.getTaskType()){ |
||||
case "inspection": |
||||
supTaskInspectionService.remove(new LambdaQueryWrapper<SupTaskInspection>().eq(SupTaskInspection::getTaskId,id)); |
||||
taskPersonService.remove(new LambdaQueryWrapper<SupTaskPerson>().eq(SupTaskPerson::getTaskId,id)); |
||||
break; |
||||
case "selfexamination": |
||||
selfexaminationService.remove(new LambdaQueryWrapper<SupTaskSelfexamination>().eq(SupTaskSelfexamination::getTaskId,id)); |
||||
supTaskSelfexaminationDepartService.remove(new LambdaQueryWrapper<SupTaskSelfexaminationDepart>().eq(SupTaskSelfexaminationDepart::getTaskId,id)); |
||||
selfexaminationContentService.remove(new LambdaQueryWrapper<SupTaskSelfexaminationContent>().eq(SupTaskSelfexaminationContent::getTaskId,id)); |
||||
break; |
||||
case "testing_alcohol": |
||||
testingAlcoholService.remove(new LambdaQueryWrapper<SupTaskTestingAlcohol>().eq(SupTaskTestingAlcohol::getTaskId,id)); |
||||
alcoholSamplingService.remove(new LambdaQueryWrapper<SupTaskTestingAlcoholSampling>().eq(SupTaskTestingAlcoholSampling::getTaskId,id)); |
||||
taskPersonService.remove(new LambdaQueryWrapper<SupTaskPerson>().eq(SupTaskPerson::getTaskId,id)); |
||||
testingAlcoholPeopleService.remove(new LambdaQueryWrapper<SupTaskTestingAlcoholPeople>().eq(SupTaskTestingAlcoholPeople::getTaskId,id)); |
||||
break; |
||||
} |
||||
return true; |
||||
} |
||||
|
||||
} |
||||
Binary file not shown.
Loading…
Reference in new issue