项目初始化
This commit is contained in:
24
ruoyi-dw/pom.xml
Normal file
24
ruoyi-dw/pom.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<version>3.9.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>ruoyi-dw</artifactId>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.dw.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.dw.domain.CjOption;
|
||||
import com.ruoyi.dw.service.ICjOptionService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据采集选项Controller
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/cj/option")
|
||||
public class CjOptionController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICjOptionService cjOptionService;
|
||||
|
||||
/**
|
||||
* 查询数据采集选项列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CjOption cjOption)
|
||||
{
|
||||
startPage();
|
||||
List<CjOption> list = cjOptionService.selectCjOptionList(cjOption);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出数据采集选项列表
|
||||
*/
|
||||
@Log(title = "数据采集选项", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CjOption cjOption)
|
||||
{
|
||||
List<CjOption> list = cjOptionService.selectCjOptionList(cjOption);
|
||||
ExcelUtil<CjOption> util = new ExcelUtil<CjOption>(CjOption.class);
|
||||
util.exportExcel(response, list, "数据采集选项数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据采集选项详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(cjOptionService.selectCjOptionById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据采集选项
|
||||
*/
|
||||
@Log(title = "数据采集选项", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CjOption cjOption)
|
||||
{
|
||||
return toAjax(cjOptionService.insertCjOption(cjOption));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据采集选项
|
||||
*/
|
||||
@Log(title = "数据采集选项", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CjOption cjOption)
|
||||
{
|
||||
return toAjax(cjOptionService.updateCjOption(cjOption));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据采集选项
|
||||
*/
|
||||
@Log(title = "数据采集选项", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(cjOptionService.deleteCjOptionByIds(ids));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.ruoyi.dw.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.dw.domain.CjStudent;
|
||||
import com.ruoyi.dw.service.ICjStudentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采集学生信息Controller
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/cj/student")
|
||||
public class CjStudentController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICjStudentService cjStudentService;
|
||||
|
||||
/**
|
||||
* 查询采集学生信息列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CjStudent cjStudent)
|
||||
{
|
||||
startPage();
|
||||
List<CjStudent> list = cjStudentService.selectCjStudentList(cjStudent);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 导出采集学生信息列表
|
||||
*/
|
||||
@Log(title = "采集学生信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CjStudent cjStudent)
|
||||
{
|
||||
List<CjStudent> list = cjStudentService.selectCjStudentList(cjStudent);
|
||||
ExcelUtil<CjStudent> util = new ExcelUtil<CjStudent>(CjStudent.class);
|
||||
util.exportExcel(response, list, "采集学生信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采集学生信息详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(cjStudentService.selectCjStudentById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增采集学生信息
|
||||
*/
|
||||
@Log(title = "采集学生信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CjStudent cjStudent)
|
||||
{
|
||||
return toAjax(cjStudentService.insertCjStudent(cjStudent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采集学生信息
|
||||
*/
|
||||
@Log(title = "采集学生信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CjStudent cjStudent)
|
||||
{
|
||||
return toAjax(cjStudentService.updateCjStudent(cjStudent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采集学生信息
|
||||
*/
|
||||
@Log(title = "采集学生信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(cjStudentService.deleteCjStudentByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认采集学生信息
|
||||
*/
|
||||
@Log(title = "采集学生信息", businessType = BusinessType.DELETE)
|
||||
@PutMapping("/confirm/{ids}")
|
||||
public AjaxResult confirmStudent(@PathVariable Long[] ids) {
|
||||
return toAjax(cjStudentService.confirmCjStudent(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.dw.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.dw.domain.DwAnswer;
|
||||
import com.ruoyi.dw.service.IDwAnswerService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调查问卷答案Controller
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dw/answer")
|
||||
public class DwAnswerController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDwAnswerService dwAnswerService;
|
||||
|
||||
/**
|
||||
* 查询调查问卷答案列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DwAnswer dwAnswer)
|
||||
{
|
||||
startPage();
|
||||
List<DwAnswer> list = dwAnswerService.selectDwAnswerList(dwAnswer);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷答案列表
|
||||
*/
|
||||
@Log(title = "调查问卷答案", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DwAnswer dwAnswer)
|
||||
{
|
||||
List<DwAnswer> list = dwAnswerService.selectDwAnswerList(dwAnswer);
|
||||
ExcelUtil<DwAnswer> util = new ExcelUtil<DwAnswer>(DwAnswer.class);
|
||||
util.exportExcel(response, list, "调查问卷答案数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调查问卷答案详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(dwAnswerService.selectDwAnswerById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷答案
|
||||
*/
|
||||
@Log(title = "调查问卷答案", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DwAnswer dwAnswer)
|
||||
{
|
||||
return toAjax(dwAnswerService.insertDwAnswer(dwAnswer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷答案
|
||||
*/
|
||||
@Log(title = "调查问卷答案", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DwAnswer dwAnswer)
|
||||
{
|
||||
return toAjax(dwAnswerService.updateDwAnswer(dwAnswer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷答案
|
||||
*/
|
||||
@Log(title = "调查问卷答案", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(dwAnswerService.deleteDwAnswerByIds(ids));
|
||||
}
|
||||
|
||||
@Log(title = "导入调查问卷", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importData")
|
||||
public AjaxResult importAnswer(MultipartFile file, int infoId) throws Exception{
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.ruoyi.dw.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.dw.domain.DwInfo;
|
||||
import com.ruoyi.dw.service.IDwInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调查问卷主体Controller
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dw/info")
|
||||
public class DwInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDwInfoService dwInfoService;
|
||||
|
||||
/**
|
||||
* 查询调查问卷主体列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DwInfo dwInfo)
|
||||
{
|
||||
startPage();
|
||||
List<DwInfo> list = dwInfoService.selectDwInfoList(dwInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 调查问卷下拉框选择
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/select")
|
||||
public AjaxResult select()
|
||||
{
|
||||
List<DwInfo> list = dwInfoService.selectDwInfoList(new DwInfo());
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷主体列表
|
||||
*/
|
||||
@Log(title = "调查问卷主体", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DwInfo dwInfo)
|
||||
{
|
||||
List<DwInfo> list = dwInfoService.selectDwInfoList(dwInfo);
|
||||
ExcelUtil<DwInfo> util = new ExcelUtil<DwInfo>(DwInfo.class);
|
||||
util.exportExcel(response, list, "调查问卷主体数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调查问卷主体详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(dwInfoService.selectDwInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷主体
|
||||
*/
|
||||
@Log(title = "调查问卷主体", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DwInfo dwInfo)
|
||||
{
|
||||
return toAjax(dwInfoService.insertDwInfo(dwInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷主体
|
||||
*/
|
||||
@Log(title = "调查问卷主体", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DwInfo dwInfo)
|
||||
{
|
||||
return toAjax(dwInfoService.updateDwInfo(dwInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷主体
|
||||
*/
|
||||
@Log(title = "调查问卷主体", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(dwInfoService.deleteDwInfoByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.ruoyi.dw.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.dw.domain.DwQuestion;
|
||||
import com.ruoyi.dw.service.IDwQuestionService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调查问卷问题Controller
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/dw/question")
|
||||
public class DwQuestionController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDwQuestionService dwQuestionService;
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DwQuestion dwQuestion)
|
||||
{
|
||||
startPage();
|
||||
List<DwQuestion> list = dwQuestionService.selectDwQuestionList(dwQuestion);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷问题列表
|
||||
*/
|
||||
@Log(title = "调查问卷问题", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DwQuestion dwQuestion)
|
||||
{
|
||||
List<DwQuestion> list = dwQuestionService.selectDwQuestionList(dwQuestion);
|
||||
ExcelUtil<DwQuestion> util = new ExcelUtil<DwQuestion>(DwQuestion.class);
|
||||
util.exportExcel(response, list, "调查问卷问题数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调查问卷问题详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(dwQuestionService.selectDwQuestionById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
*/
|
||||
@Log(title = "调查问卷问题", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DwQuestion dwQuestion)
|
||||
{
|
||||
return toAjax(dwQuestionService.insertDwQuestion(dwQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷问题
|
||||
*/
|
||||
@Log(title = "调查问卷问题", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DwQuestion dwQuestion)
|
||||
{
|
||||
return toAjax(dwQuestionService.updateDwQuestion(dwQuestion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题
|
||||
*/
|
||||
@Log(title = "调查问卷问题", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(dwQuestionService.deleteDwQuestionByIds(ids));
|
||||
}
|
||||
}
|
52
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/CjOption.java
Normal file
52
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/CjOption.java
Normal file
@ -0,0 +1,52 @@
|
||||
package com.ruoyi.dw.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 数据采集选项对象 cj_option
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class CjOption extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 数据采集选项 */
|
||||
@Excel(name = "数据采集选项")
|
||||
private String optionInfo;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setOptionInfo(String optionInfo)
|
||||
{
|
||||
this.optionInfo = optionInfo;
|
||||
}
|
||||
|
||||
public String getOptionInfo()
|
||||
{
|
||||
return optionInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("optionInfo", getOptionInfo())
|
||||
.toString();
|
||||
}
|
||||
}
|
277
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/CjStudent.java
Normal file
277
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/CjStudent.java
Normal file
@ -0,0 +1,277 @@
|
||||
package com.ruoyi.dw.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 采集学生信息对象 cj_student
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class CjStudent extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String xm;
|
||||
|
||||
/** 性别 */
|
||||
@Excel(name = "性别")
|
||||
private String xb;
|
||||
|
||||
/** 专业 */
|
||||
@Excel(name = "专业")
|
||||
private String zy;
|
||||
|
||||
/** 毕业年份 */
|
||||
@Excel(name = "毕业年份")
|
||||
private Long bynf;
|
||||
|
||||
/** 最高学历 */
|
||||
@Excel(name = "最高学历")
|
||||
private String zgyl;
|
||||
|
||||
/** 工作单位 */
|
||||
@Excel(name = "工作单位")
|
||||
private String gzdw;
|
||||
|
||||
/** 单位性质 */
|
||||
@Excel(name = "单位性质")
|
||||
private String dwxz;
|
||||
|
||||
/** 单位地址 */
|
||||
@Excel(name = "单位地址")
|
||||
private String dwdz;
|
||||
|
||||
/** 职务级别 */
|
||||
@Excel(name = "职务级别")
|
||||
private String zwjb;
|
||||
|
||||
/** 职务级别 */
|
||||
@Excel(name = "职务级别")
|
||||
private String shjz;
|
||||
|
||||
/** 代表荣誉 */
|
||||
@Excel(name = "代表荣誉")
|
||||
private String dbry;
|
||||
|
||||
/** 荣誉是否展示 */
|
||||
@Excel(name = "荣誉是否展示")
|
||||
private Long rysfzs;
|
||||
|
||||
/** 手机 */
|
||||
@Excel(name = "手机")
|
||||
private String sj;
|
||||
|
||||
/** 邮箱 */
|
||||
@Excel(name = "邮箱")
|
||||
private String yx;
|
||||
|
||||
/** 其他 */
|
||||
@Excel(name = "其他")
|
||||
private String qt;
|
||||
|
||||
/** 是否确认 */
|
||||
@Excel(name = "是否确认")
|
||||
private Long sfqr;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setXm(String xm)
|
||||
{
|
||||
this.xm = xm;
|
||||
}
|
||||
|
||||
public String getXm()
|
||||
{
|
||||
return xm;
|
||||
}
|
||||
|
||||
public void setXb(String xb)
|
||||
{
|
||||
this.xb = xb;
|
||||
}
|
||||
|
||||
public String getXb()
|
||||
{
|
||||
return xb;
|
||||
}
|
||||
|
||||
public void setZy(String zy)
|
||||
{
|
||||
this.zy = zy;
|
||||
}
|
||||
|
||||
public String getZy()
|
||||
{
|
||||
return zy;
|
||||
}
|
||||
|
||||
public void setBynf(Long bynf)
|
||||
{
|
||||
this.bynf = bynf;
|
||||
}
|
||||
|
||||
public Long getBynf()
|
||||
{
|
||||
return bynf;
|
||||
}
|
||||
|
||||
public void setZgyl(String zgyl)
|
||||
{
|
||||
this.zgyl = zgyl;
|
||||
}
|
||||
|
||||
public String getZgyl()
|
||||
{
|
||||
return zgyl;
|
||||
}
|
||||
|
||||
public void setGzdw(String gzdw)
|
||||
{
|
||||
this.gzdw = gzdw;
|
||||
}
|
||||
|
||||
public String getGzdw()
|
||||
{
|
||||
return gzdw;
|
||||
}
|
||||
|
||||
public void setDwxz(String dwxz)
|
||||
{
|
||||
this.dwxz = dwxz;
|
||||
}
|
||||
|
||||
public String getDwxz()
|
||||
{
|
||||
return dwxz;
|
||||
}
|
||||
|
||||
public void setDwdz(String dwdz)
|
||||
{
|
||||
this.dwdz = dwdz;
|
||||
}
|
||||
|
||||
public String getDwdz()
|
||||
{
|
||||
return dwdz;
|
||||
}
|
||||
|
||||
public void setZwjb(String zwjb)
|
||||
{
|
||||
this.zwjb = zwjb;
|
||||
}
|
||||
|
||||
public String getZwjb()
|
||||
{
|
||||
return zwjb;
|
||||
}
|
||||
|
||||
public void setShjz(String shjz)
|
||||
{
|
||||
this.shjz = shjz;
|
||||
}
|
||||
|
||||
public String getShjz()
|
||||
{
|
||||
return shjz;
|
||||
}
|
||||
|
||||
public void setDbry(String dbry)
|
||||
{
|
||||
this.dbry = dbry;
|
||||
}
|
||||
|
||||
public String getDbry()
|
||||
{
|
||||
return dbry;
|
||||
}
|
||||
|
||||
public void setRysfzs(Long rysfzs)
|
||||
{
|
||||
this.rysfzs = rysfzs;
|
||||
}
|
||||
|
||||
public Long getRysfzs()
|
||||
{
|
||||
return rysfzs;
|
||||
}
|
||||
|
||||
public void setSj(String sj)
|
||||
{
|
||||
this.sj = sj;
|
||||
}
|
||||
|
||||
public String getSj()
|
||||
{
|
||||
return sj;
|
||||
}
|
||||
|
||||
public void setYx(String yx)
|
||||
{
|
||||
this.yx = yx;
|
||||
}
|
||||
|
||||
public String getYx()
|
||||
{
|
||||
return yx;
|
||||
}
|
||||
|
||||
public void setQt(String qt)
|
||||
{
|
||||
this.qt = qt;
|
||||
}
|
||||
|
||||
public String getQt()
|
||||
{
|
||||
return qt;
|
||||
}
|
||||
|
||||
public void setSfqr(Long sfqr)
|
||||
{
|
||||
this.sfqr = sfqr;
|
||||
}
|
||||
|
||||
public Long getSfqr()
|
||||
{
|
||||
return sfqr;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("xm", getXm())
|
||||
.append("xb", getXb())
|
||||
.append("zy", getZy())
|
||||
.append("bynf", getBynf())
|
||||
.append("zgyl", getZgyl())
|
||||
.append("gzdw", getGzdw())
|
||||
.append("dwxz", getDwxz())
|
||||
.append("dwdz", getDwdz())
|
||||
.append("zwjb", getZwjb())
|
||||
.append("shjz", getShjz())
|
||||
.append("dbry", getDbry())
|
||||
.append("rysfzs", getRysfzs())
|
||||
.append("sj", getSj())
|
||||
.append("yx", getYx())
|
||||
.append("qt", getQt())
|
||||
.append("sfqr", getSfqr())
|
||||
.toString();
|
||||
}
|
||||
}
|
82
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java
Normal file
82
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java
Normal file
@ -0,0 +1,82 @@
|
||||
package com.ruoyi.dw.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 调查问卷答案对象 dw_answer
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class DwAnswer extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 调查问卷id */
|
||||
@Excel(name = "调查问卷id")
|
||||
private Long infoId;
|
||||
|
||||
/** 问题id */
|
||||
@Excel(name = "问题id")
|
||||
private Long questionId;
|
||||
|
||||
/** 回答 */
|
||||
@Excel(name = "回答")
|
||||
private String answer;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInfoId(Long infoId)
|
||||
{
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public Long getInfoId()
|
||||
{
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setQuestionId(Long questionId)
|
||||
{
|
||||
this.questionId = questionId;
|
||||
}
|
||||
|
||||
public Long getQuestionId()
|
||||
{
|
||||
return questionId;
|
||||
}
|
||||
|
||||
public void setAnswer(String answer)
|
||||
{
|
||||
this.answer = answer;
|
||||
}
|
||||
|
||||
public String getAnswer()
|
||||
{
|
||||
return answer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("infoId", getInfoId())
|
||||
.append("questionId", getQuestionId())
|
||||
.append("answer", getAnswer())
|
||||
.toString();
|
||||
}
|
||||
}
|
52
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwInfo.java
Normal file
52
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwInfo.java
Normal file
@ -0,0 +1,52 @@
|
||||
package com.ruoyi.dw.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 调查问卷主体对象 dw_info
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class DwInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 调查问卷名称 */
|
||||
@Excel(name = "调查问卷名称")
|
||||
private String dwName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setDwName(String dwName)
|
||||
{
|
||||
this.dwName = dwName;
|
||||
}
|
||||
|
||||
public String getDwName()
|
||||
{
|
||||
return dwName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("dwName", getDwName())
|
||||
.toString();
|
||||
}
|
||||
}
|
82
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwQuestion.java
Normal file
82
ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwQuestion.java
Normal file
@ -0,0 +1,82 @@
|
||||
package com.ruoyi.dw.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 调查问卷问题对象 dw_question
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public class DwQuestion extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 问卷主体id */
|
||||
@Excel(name = "问卷主体id")
|
||||
private Long infoId;
|
||||
|
||||
/** 问题 */
|
||||
@Excel(name = "问题")
|
||||
private String question;
|
||||
|
||||
/** 问题排序 */
|
||||
@Excel(name = "问题排序")
|
||||
private Long questionSort;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setInfoId(Long infoId)
|
||||
{
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public Long getInfoId()
|
||||
{
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setQuestion(String question)
|
||||
{
|
||||
this.question = question;
|
||||
}
|
||||
|
||||
public String getQuestion()
|
||||
{
|
||||
return question;
|
||||
}
|
||||
|
||||
public void setQuestionSort(Long questionSort)
|
||||
{
|
||||
this.questionSort = questionSort;
|
||||
}
|
||||
|
||||
public Long getQuestionSort()
|
||||
{
|
||||
return questionSort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("infoId", getInfoId())
|
||||
.append("question", getQuestion())
|
||||
.append("questionSort", getQuestionSort())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.CjOption;
|
||||
|
||||
/**
|
||||
* 数据采集选项Mapper接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface CjOptionMapper
|
||||
{
|
||||
/**
|
||||
* 查询数据采集选项
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 数据采集选项
|
||||
*/
|
||||
public CjOption selectCjOptionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询数据采集选项列表
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 数据采集选项集合
|
||||
*/
|
||||
public List<CjOption> selectCjOptionList(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 新增数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCjOption(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 修改数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCjOption(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 删除数据采集选项
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjOptionById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除数据采集选项
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjOptionByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.dw.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.CjStudent;
|
||||
|
||||
/**
|
||||
* 采集学生信息Mapper接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface CjStudentMapper
|
||||
{
|
||||
/**
|
||||
* 查询采集学生信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 采集学生信息
|
||||
*/
|
||||
public CjStudent selectCjStudentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询采集学生信息列表
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 采集学生信息集合
|
||||
*/
|
||||
public List<CjStudent> selectCjStudentList(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 新增采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCjStudent(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 修改采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCjStudent(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 删除采集学生信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjStudentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除采集学生信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjStudentByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量确认采集学生信息
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
public int confirmCjStudentByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwAnswer;
|
||||
|
||||
/**
|
||||
* 调查问卷答案Mapper接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface DwAnswerMapper
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷答案
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 调查问卷答案
|
||||
*/
|
||||
public DwAnswer selectDwAnswerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷答案列表
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 调查问卷答案集合
|
||||
*/
|
||||
public List<DwAnswer> selectDwAnswerList(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 新增调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwAnswer(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 修改调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwAnswer(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 删除调查问卷答案
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwAnswerById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷答案
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwAnswerByIds(Long[] ids);
|
||||
}
|
61
ruoyi-dw/src/main/java/com/ruoyi/dw/mapper/DwInfoMapper.java
Normal file
61
ruoyi-dw/src/main/java/com/ruoyi/dw/mapper/DwInfoMapper.java
Normal file
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwInfo;
|
||||
|
||||
/**
|
||||
* 调查问卷主体Mapper接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface DwInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷主体
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 调查问卷主体
|
||||
*/
|
||||
public DwInfo selectDwInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷主体列表
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 调查问卷主体集合
|
||||
*/
|
||||
public List<DwInfo> selectDwInfoList(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 新增调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwInfo(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 修改调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwInfo(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 删除调查问卷主体
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷主体
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwInfoByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwQuestion;
|
||||
|
||||
/**
|
||||
* 调查问卷问题Mapper接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface DwQuestionMapper
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷问题
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 调查问卷问题
|
||||
*/
|
||||
public DwQuestion selectDwQuestionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 调查问卷问题集合
|
||||
*/
|
||||
public List<DwQuestion> selectDwQuestionList(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwQuestion(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 修改调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwQuestion(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwQuestionById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷问题
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwQuestionByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.CjOption;
|
||||
|
||||
/**
|
||||
* 数据采集选项Service接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface ICjOptionService
|
||||
{
|
||||
/**
|
||||
* 查询数据采集选项
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 数据采集选项
|
||||
*/
|
||||
public CjOption selectCjOptionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询数据采集选项列表
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 数据采集选项集合
|
||||
*/
|
||||
public List<CjOption> selectCjOptionList(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 新增数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCjOption(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 修改数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCjOption(CjOption cjOption);
|
||||
|
||||
/**
|
||||
* 批量删除数据采集选项
|
||||
*
|
||||
* @param ids 需要删除的数据采集选项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjOptionByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除数据采集选项信息
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjOptionById(Long id);
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.dw.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.CjStudent;
|
||||
|
||||
/**
|
||||
* 采集学生信息Service接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface ICjStudentService
|
||||
{
|
||||
/**
|
||||
* 查询采集学生信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 采集学生信息
|
||||
*/
|
||||
public CjStudent selectCjStudentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询采集学生信息列表
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 采集学生信息集合
|
||||
*/
|
||||
public List<CjStudent> selectCjStudentList(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 新增采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCjStudent(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 修改采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCjStudent(CjStudent cjStudent);
|
||||
|
||||
/**
|
||||
* 批量删除采集学生信息
|
||||
*
|
||||
* @param ids 需要删除的采集学生信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjStudentByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除采集学生信息信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCjStudentById(Long id);
|
||||
|
||||
/**
|
||||
* 确认学生采集结果
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
public int confirmCjStudent(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwAnswer;
|
||||
|
||||
/**
|
||||
* 调查问卷答案Service接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface IDwAnswerService
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷答案
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 调查问卷答案
|
||||
*/
|
||||
public DwAnswer selectDwAnswerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷答案列表
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 调查问卷答案集合
|
||||
*/
|
||||
public List<DwAnswer> selectDwAnswerList(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 新增调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwAnswer(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 修改调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwAnswer(DwAnswer dwAnswer);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷答案
|
||||
*
|
||||
* @param ids 需要删除的调查问卷答案主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwAnswerByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除调查问卷答案信息
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwAnswerById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwInfo;
|
||||
|
||||
/**
|
||||
* 调查问卷主体Service接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface IDwInfoService
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷主体
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 调查问卷主体
|
||||
*/
|
||||
public DwInfo selectDwInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷主体列表
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 调查问卷主体集合
|
||||
*/
|
||||
public List<DwInfo> selectDwInfoList(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 新增调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwInfo(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 修改调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwInfo(DwInfo dwInfo);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷主体
|
||||
*
|
||||
* @param ids 需要删除的调查问卷主体主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除调查问卷主体信息
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwInfoById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.dw.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.dw.domain.DwQuestion;
|
||||
|
||||
/**
|
||||
* 调查问卷问题Service接口
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface IDwQuestionService
|
||||
{
|
||||
/**
|
||||
* 查询调查问卷问题
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 调查问卷问题
|
||||
*/
|
||||
public DwQuestion selectDwQuestionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 调查问卷问题集合
|
||||
*/
|
||||
public List<DwQuestion> selectDwQuestionList(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDwQuestion(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 修改调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDwQuestion(DwQuestion dwQuestion);
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷问题
|
||||
*
|
||||
* @param ids 需要删除的调查问卷问题主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwQuestionByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题信息
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDwQuestionById(Long id);
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.dw.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.dw.mapper.CjOptionMapper;
|
||||
import com.ruoyi.dw.domain.CjOption;
|
||||
import com.ruoyi.dw.service.ICjOptionService;
|
||||
|
||||
/**
|
||||
* 数据采集选项Service业务层处理
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class CjOptionServiceImpl implements ICjOptionService
|
||||
{
|
||||
@Autowired
|
||||
private CjOptionMapper cjOptionMapper;
|
||||
|
||||
/**
|
||||
* 查询数据采集选项
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 数据采集选项
|
||||
*/
|
||||
@Override
|
||||
public CjOption selectCjOptionById(Long id)
|
||||
{
|
||||
return cjOptionMapper.selectCjOptionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据采集选项列表
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 数据采集选项
|
||||
*/
|
||||
@Override
|
||||
public List<CjOption> selectCjOptionList(CjOption cjOption)
|
||||
{
|
||||
return cjOptionMapper.selectCjOptionList(cjOption);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCjOption(CjOption cjOption)
|
||||
{
|
||||
return cjOptionMapper.insertCjOption(cjOption);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据采集选项
|
||||
*
|
||||
* @param cjOption 数据采集选项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCjOption(CjOption cjOption)
|
||||
{
|
||||
return cjOptionMapper.updateCjOption(cjOption);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除数据采集选项
|
||||
*
|
||||
* @param ids 需要删除的数据采集选项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCjOptionByIds(Long[] ids)
|
||||
{
|
||||
return cjOptionMapper.deleteCjOptionByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据采集选项信息
|
||||
*
|
||||
* @param id 数据采集选项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCjOptionById(Long id)
|
||||
{
|
||||
return cjOptionMapper.deleteCjOptionById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.dw.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.dw.mapper.CjStudentMapper;
|
||||
import com.ruoyi.dw.domain.CjStudent;
|
||||
import com.ruoyi.dw.service.ICjStudentService;
|
||||
|
||||
/**
|
||||
* 采集学生信息Service业务层处理
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class CjStudentServiceImpl implements ICjStudentService
|
||||
{
|
||||
@Autowired
|
||||
private CjStudentMapper cjStudentMapper;
|
||||
|
||||
/**
|
||||
* 查询采集学生信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 采集学生信息
|
||||
*/
|
||||
@Override
|
||||
public CjStudent selectCjStudentById(Long id)
|
||||
{
|
||||
return cjStudentMapper.selectCjStudentById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询采集学生信息列表
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 采集学生信息
|
||||
*/
|
||||
@Override
|
||||
public List<CjStudent> selectCjStudentList(CjStudent cjStudent)
|
||||
{
|
||||
return cjStudentMapper.selectCjStudentList(cjStudent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCjStudent(CjStudent cjStudent)
|
||||
{
|
||||
return cjStudentMapper.insertCjStudent(cjStudent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采集学生信息
|
||||
*
|
||||
* @param cjStudent 采集学生信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCjStudent(CjStudent cjStudent)
|
||||
{
|
||||
return cjStudentMapper.updateCjStudent(cjStudent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除采集学生信息
|
||||
*
|
||||
* @param ids 需要删除的采集学生信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCjStudentByIds(Long[] ids)
|
||||
{
|
||||
return cjStudentMapper.deleteCjStudentByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采集学生信息信息
|
||||
*
|
||||
* @param id 采集学生信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCjStudentById(Long id)
|
||||
{
|
||||
return cjStudentMapper.deleteCjStudentById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int confirmCjStudent(Long[] ids) {
|
||||
return cjStudentMapper.confirmCjStudentByIds(ids);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.dw.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.dw.mapper.DwAnswerMapper;
|
||||
import com.ruoyi.dw.domain.DwAnswer;
|
||||
import com.ruoyi.dw.service.IDwAnswerService;
|
||||
|
||||
/**
|
||||
* 调查问卷答案Service业务层处理
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class DwAnswerServiceImpl implements IDwAnswerService
|
||||
{
|
||||
@Autowired
|
||||
private DwAnswerMapper dwAnswerMapper;
|
||||
|
||||
/**
|
||||
* 查询调查问卷答案
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 调查问卷答案
|
||||
*/
|
||||
@Override
|
||||
public DwAnswer selectDwAnswerById(Long id)
|
||||
{
|
||||
return dwAnswerMapper.selectDwAnswerById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷答案列表
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 调查问卷答案
|
||||
*/
|
||||
@Override
|
||||
public List<DwAnswer> selectDwAnswerList(DwAnswer dwAnswer)
|
||||
{
|
||||
return dwAnswerMapper.selectDwAnswerList(dwAnswer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDwAnswer(DwAnswer dwAnswer)
|
||||
{
|
||||
return dwAnswerMapper.insertDwAnswer(dwAnswer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷答案
|
||||
*
|
||||
* @param dwAnswer 调查问卷答案
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDwAnswer(DwAnswer dwAnswer)
|
||||
{
|
||||
return dwAnswerMapper.updateDwAnswer(dwAnswer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷答案
|
||||
*
|
||||
* @param ids 需要删除的调查问卷答案主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwAnswerByIds(Long[] ids)
|
||||
{
|
||||
return dwAnswerMapper.deleteDwAnswerByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷答案信息
|
||||
*
|
||||
* @param id 调查问卷答案主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwAnswerById(Long id)
|
||||
{
|
||||
return dwAnswerMapper.deleteDwAnswerById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.dw.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.dw.mapper.DwInfoMapper;
|
||||
import com.ruoyi.dw.domain.DwInfo;
|
||||
import com.ruoyi.dw.service.IDwInfoService;
|
||||
|
||||
/**
|
||||
* 调查问卷主体Service业务层处理
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class DwInfoServiceImpl implements IDwInfoService
|
||||
{
|
||||
@Autowired
|
||||
private DwInfoMapper dwInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询调查问卷主体
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 调查问卷主体
|
||||
*/
|
||||
@Override
|
||||
public DwInfo selectDwInfoById(Long id)
|
||||
{
|
||||
return dwInfoMapper.selectDwInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷主体列表
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 调查问卷主体
|
||||
*/
|
||||
@Override
|
||||
public List<DwInfo> selectDwInfoList(DwInfo dwInfo)
|
||||
{
|
||||
return dwInfoMapper.selectDwInfoList(dwInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDwInfo(DwInfo dwInfo)
|
||||
{
|
||||
return dwInfoMapper.insertDwInfo(dwInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷主体
|
||||
*
|
||||
* @param dwInfo 调查问卷主体
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDwInfo(DwInfo dwInfo)
|
||||
{
|
||||
return dwInfoMapper.updateDwInfo(dwInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷主体
|
||||
*
|
||||
* @param ids 需要删除的调查问卷主体主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwInfoByIds(Long[] ids)
|
||||
{
|
||||
return dwInfoMapper.deleteDwInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷主体信息
|
||||
*
|
||||
* @param id 调查问卷主体主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwInfoById(Long id)
|
||||
{
|
||||
return dwInfoMapper.deleteDwInfoById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.ruoyi.dw.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.dw.mapper.DwQuestionMapper;
|
||||
import com.ruoyi.dw.domain.DwQuestion;
|
||||
import com.ruoyi.dw.service.IDwQuestionService;
|
||||
|
||||
/**
|
||||
* 调查问卷问题Service业务层处理
|
||||
*
|
||||
* @author sunyg
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class DwQuestionServiceImpl implements IDwQuestionService
|
||||
{
|
||||
@Autowired
|
||||
private DwQuestionMapper dwQuestionMapper;
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 调查问卷问题
|
||||
*/
|
||||
@Override
|
||||
public DwQuestion selectDwQuestionById(Long id)
|
||||
{
|
||||
return dwQuestionMapper.selectDwQuestionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 调查问卷问题
|
||||
*/
|
||||
@Override
|
||||
public List<DwQuestion> selectDwQuestionList(DwQuestion dwQuestion)
|
||||
{
|
||||
return dwQuestionMapper.selectDwQuestionList(dwQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDwQuestion(DwQuestion dwQuestion)
|
||||
{
|
||||
return dwQuestionMapper.insertDwQuestion(dwQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调查问卷问题
|
||||
*
|
||||
* @param dwQuestion 调查问卷问题
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDwQuestion(DwQuestion dwQuestion)
|
||||
{
|
||||
return dwQuestionMapper.updateDwQuestion(dwQuestion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除调查问卷问题
|
||||
*
|
||||
* @param ids 需要删除的调查问卷问题主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwQuestionByIds(Long[] ids)
|
||||
{
|
||||
return dwQuestionMapper.deleteDwQuestionByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题信息
|
||||
*
|
||||
* @param id 调查问卷问题主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDwQuestionById(Long id)
|
||||
{
|
||||
return dwQuestionMapper.deleteDwQuestionById(id);
|
||||
}
|
||||
}
|
56
ruoyi-dw/src/main/resources/mapper/dw/CjOptionMapper.xml
Normal file
56
ruoyi-dw/src/main/resources/mapper/dw/CjOptionMapper.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.CjOptionMapper">
|
||||
|
||||
<resultMap type="CjOption" id="CjOptionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="optionInfo" column="option_info" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCjOptionVo">
|
||||
select id, option_info from cj_option
|
||||
</sql>
|
||||
|
||||
<select id="selectCjOptionList" parameterType="CjOption" resultMap="CjOptionResult">
|
||||
<include refid="selectCjOptionVo"/>
|
||||
<where>
|
||||
<if test="optionInfo != null and optionInfo != ''"> and option_info = #{optionInfo}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCjOptionById" parameterType="Long" resultMap="CjOptionResult">
|
||||
<include refid="selectCjOptionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCjOption" parameterType="CjOption" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cj_option
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="optionInfo != null">option_info,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="optionInfo != null">#{optionInfo},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCjOption" parameterType="CjOption">
|
||||
update cj_option
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="optionInfo != null">option_info = #{optionInfo},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCjOptionById" parameterType="Long">
|
||||
delete from cj_option where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCjOptionByIds" parameterType="String">
|
||||
delete from cj_option where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
138
ruoyi-dw/src/main/resources/mapper/dw/CjStudentMapper.xml
Normal file
138
ruoyi-dw/src/main/resources/mapper/dw/CjStudentMapper.xml
Normal file
@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.CjStudentMapper">
|
||||
|
||||
<resultMap type="CjStudent" id="CjStudentResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="xm" column="xm" />
|
||||
<result property="xb" column="xb" />
|
||||
<result property="zy" column="zy" />
|
||||
<result property="bynf" column="bynf" />
|
||||
<result property="zgyl" column="zgyl" />
|
||||
<result property="gzdw" column="gzdw" />
|
||||
<result property="dwxz" column="dwxz" />
|
||||
<result property="dwdz" column="dwdz" />
|
||||
<result property="zwjb" column="zwjb" />
|
||||
<result property="shjz" column="shjz" />
|
||||
<result property="dbry" column="dbry" />
|
||||
<result property="rysfzs" column="rysfzs" />
|
||||
<result property="sj" column="sj" />
|
||||
<result property="yx" column="yx" />
|
||||
<result property="qt" column="qt" />
|
||||
<result property="sfqr" column="sfqr" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCjStudentVo">
|
||||
select id, xm, xb, zy, bynf, zgyl, gzdw, dwxz, dwdz, zwjb, shjz, dbry, rysfzs, sj, yx, qt, sfqr from cj_student
|
||||
</sql>
|
||||
|
||||
<select id="selectCjStudentList" parameterType="CjStudent" resultMap="CjStudentResult">
|
||||
<include refid="selectCjStudentVo"/>
|
||||
<where>
|
||||
<if test="xm != null and xm != ''"> and xm = #{xm}</if>
|
||||
<if test="xb != null and xb != ''"> and xb = #{xb}</if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy}</if>
|
||||
<if test="bynf != null "> and bynf = #{bynf}</if>
|
||||
<if test="zgyl != null and zgyl != ''"> and zgyl = #{zgyl}</if>
|
||||
<if test="gzdw != null and gzdw != ''"> and gzdw = #{gzdw}</if>
|
||||
<if test="dwxz != null and dwxz != ''"> and dwxz = #{dwxz}</if>
|
||||
<if test="dwdz != null and dwdz != ''"> and dwdz = #{dwdz}</if>
|
||||
<if test="zwjb != null and zwjb != ''"> and zwjb = #{zwjb}</if>
|
||||
<if test="shjz != null and shjz != ''"> and shjz = #{shjz}</if>
|
||||
<if test="dbry != null and dbry != ''"> and dbry = #{dbry}</if>
|
||||
<if test="rysfzs != null "> and rysfzs = #{rysfzs}</if>
|
||||
<if test="sj != null and sj != ''"> and sj = #{sj}</if>
|
||||
<if test="yx != null and yx != ''"> and yx = #{yx}</if>
|
||||
<if test="qt != null and qt != ''"> and qt = #{qt}</if>
|
||||
<if test="sfqr != null "> and sfqr = #{sfqr}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCjStudentById" parameterType="Long" resultMap="CjStudentResult">
|
||||
<include refid="selectCjStudentVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCjStudent" parameterType="CjStudent" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cj_student
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="xm != null">xm,</if>
|
||||
<if test="xb != null">xb,</if>
|
||||
<if test="zy != null">zy,</if>
|
||||
<if test="bynf != null">bynf,</if>
|
||||
<if test="zgyl != null">zgyl,</if>
|
||||
<if test="gzdw != null">gzdw,</if>
|
||||
<if test="dwxz != null">dwxz,</if>
|
||||
<if test="dwdz != null">dwdz,</if>
|
||||
<if test="zwjb != null">zwjb,</if>
|
||||
<if test="shjz != null">shjz,</if>
|
||||
<if test="dbry != null">dbry,</if>
|
||||
<if test="rysfzs != null">rysfzs,</if>
|
||||
<if test="sj != null">sj,</if>
|
||||
<if test="yx != null">yx,</if>
|
||||
<if test="qt != null">qt,</if>
|
||||
<if test="sfqr != null">sfqr,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="xm != null">#{xm},</if>
|
||||
<if test="xb != null">#{xb},</if>
|
||||
<if test="zy != null">#{zy},</if>
|
||||
<if test="bynf != null">#{bynf},</if>
|
||||
<if test="zgyl != null">#{zgyl},</if>
|
||||
<if test="gzdw != null">#{gzdw},</if>
|
||||
<if test="dwxz != null">#{dwxz},</if>
|
||||
<if test="dwdz != null">#{dwdz},</if>
|
||||
<if test="zwjb != null">#{zwjb},</if>
|
||||
<if test="shjz != null">#{shjz},</if>
|
||||
<if test="dbry != null">#{dbry},</if>
|
||||
<if test="rysfzs != null">#{rysfzs},</if>
|
||||
<if test="sj != null">#{sj},</if>
|
||||
<if test="yx != null">#{yx},</if>
|
||||
<if test="qt != null">#{qt},</if>
|
||||
<if test="sfqr != null">#{sfqr},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCjStudent" parameterType="CjStudent">
|
||||
update cj_student
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="xm != null">xm = #{xm},</if>
|
||||
<if test="xb != null">xb = #{xb},</if>
|
||||
<if test="zy != null">zy = #{zy},</if>
|
||||
<if test="bynf != null">bynf = #{bynf},</if>
|
||||
<if test="zgyl != null">zgyl = #{zgyl},</if>
|
||||
<if test="gzdw != null">gzdw = #{gzdw},</if>
|
||||
<if test="dwxz != null">dwxz = #{dwxz},</if>
|
||||
<if test="dwdz != null">dwdz = #{dwdz},</if>
|
||||
<if test="zwjb != null">zwjb = #{zwjb},</if>
|
||||
<if test="shjz != null">shjz = #{shjz},</if>
|
||||
<if test="dbry != null">dbry = #{dbry},</if>
|
||||
<if test="rysfzs != null">rysfzs = #{rysfzs},</if>
|
||||
<if test="sj != null">sj = #{sj},</if>
|
||||
<if test="yx != null">yx = #{yx},</if>
|
||||
<if test="qt != null">qt = #{qt},</if>
|
||||
<if test="sfqr != null">sfqr = #{sfqr},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCjStudentById" parameterType="Long">
|
||||
delete from cj_student where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCjStudentByIds" parameterType="String">
|
||||
delete from cj_student where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="confirmCjStudentByIds" parameterType="String">
|
||||
update cj_student set sfqr = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
68
ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml
Normal file
68
ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml
Normal file
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.DwAnswerMapper">
|
||||
|
||||
<resultMap type="DwAnswer" id="DwAnswerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="infoId" column="info_id" />
|
||||
<result property="questionId" column="question_id" />
|
||||
<result property="answer" column="answer" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwAnswerVo">
|
||||
select id, info_id, question_id, answer from dw_answer
|
||||
</sql>
|
||||
|
||||
<select id="selectDwAnswerList" parameterType="DwAnswer" resultMap="DwAnswerResult">
|
||||
<include refid="selectDwAnswerVo"/>
|
||||
<where>
|
||||
<if test="infoId != null "> and info_id = #{infoId}</if>
|
||||
<if test="questionId != null "> and question_id = #{questionId}</if>
|
||||
<if test="answer != null and answer != ''"> and answer = #{answer}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwAnswerById" parameterType="Long" resultMap="DwAnswerResult">
|
||||
<include refid="selectDwAnswerVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwAnswer" parameterType="DwAnswer">
|
||||
insert into dw_answer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="infoId != null">info_id,</if>
|
||||
<if test="questionId != null">question_id,</if>
|
||||
<if test="answer != null">answer,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="infoId != null">#{infoId},</if>
|
||||
<if test="questionId != null">#{questionId},</if>
|
||||
<if test="answer != null">#{answer},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwAnswer" parameterType="DwAnswer">
|
||||
update dw_answer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="infoId != null">info_id = #{infoId},</if>
|
||||
<if test="questionId != null">question_id = #{questionId},</if>
|
||||
<if test="answer != null">answer = #{answer},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwAnswerById" parameterType="Long">
|
||||
delete from dw_answer where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwAnswerByIds" parameterType="String">
|
||||
delete from dw_answer where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
58
ruoyi-dw/src/main/resources/mapper/dw/DwInfoMapper.xml
Normal file
58
ruoyi-dw/src/main/resources/mapper/dw/DwInfoMapper.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.DwInfoMapper">
|
||||
|
||||
<resultMap type="DwInfo" id="DwInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="dwName" column="dw_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwInfoVo">
|
||||
select id, dw_name from dw_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDwInfoList" parameterType="DwInfo" resultMap="DwInfoResult">
|
||||
<include refid="selectDwInfoVo"/>
|
||||
<where>
|
||||
<if test="dwName != null and dwName != ''"> and dw_name like concat('%', #{dwName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwInfoById" parameterType="Long" resultMap="DwInfoResult">
|
||||
<include refid="selectDwInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwInfo" parameterType="DwInfo">
|
||||
insert into dw_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="dwName != null">dw_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="dwName != null">#{dwName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwInfo" parameterType="DwInfo">
|
||||
update dw_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="dwName != null">dw_name = #{dwName},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwInfoById" parameterType="Long">
|
||||
delete from dw_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwInfoByIds" parameterType="String">
|
||||
delete from dw_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
68
ruoyi-dw/src/main/resources/mapper/dw/DwQuestionMapper.xml
Normal file
68
ruoyi-dw/src/main/resources/mapper/dw/DwQuestionMapper.xml
Normal file
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.DwQuestionMapper">
|
||||
|
||||
<resultMap type="DwQuestion" id="DwQuestionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="infoId" column="info_id" />
|
||||
<result property="question" column="question" />
|
||||
<result property="questionSort" column="question_sort" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwQuestionVo">
|
||||
select id, info_id, question, question_sort from dw_question
|
||||
</sql>
|
||||
|
||||
<select id="selectDwQuestionList" parameterType="DwQuestion" resultMap="DwQuestionResult">
|
||||
<include refid="selectDwQuestionVo"/>
|
||||
<where>
|
||||
<if test="infoId != null "> and info_id = #{infoId}</if>
|
||||
<if test="question != null and question != ''"> and question = #{question}</if>
|
||||
<if test="questionSort != null "> and question_sort = #{questionSort}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwQuestionById" parameterType="Long" resultMap="DwQuestionResult">
|
||||
<include refid="selectDwQuestionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwQuestion" parameterType="DwQuestion">
|
||||
insert into dw_question
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="infoId != null">info_id,</if>
|
||||
<if test="question != null">question,</if>
|
||||
<if test="questionSort != null">question_sort,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="infoId != null">#{infoId},</if>
|
||||
<if test="question != null">#{question},</if>
|
||||
<if test="questionSort != null">#{questionSort},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwQuestion" parameterType="DwQuestion">
|
||||
update dw_question
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="infoId != null">info_id = #{infoId},</if>
|
||||
<if test="question != null">question = #{question},</if>
|
||||
<if test="questionSort != null">question_sort = #{questionSort},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwQuestionById" parameterType="Long">
|
||||
delete from dw_question where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwQuestionByIds" parameterType="String">
|
||||
delete from dw_question where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user