2023年5月29日 添加评价转换
This commit is contained in:
parent
2026ca0fe3
commit
7308299ed0
|
@ -0,0 +1,236 @@
|
|||
package org.jeecg.modules.kc.grab.SynchronizationService;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.google.common.collect.Maps;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.compress.utils.Lists;
|
||||
import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync;
|
||||
import org.jeecg.modules.kc.grab.imports.entity.Xxhbsynclog;
|
||||
import org.jeecg.modules.kc.ktgl.entity.KcKetangbiao;
|
||||
import org.jeecg.modules.kc.ktgl.service.IKcKetangbiaoService;
|
||||
import org.jeecg.modules.kc.qa.entity.*;
|
||||
import org.jeecg.modules.kc.qa.service.*;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static cn.hutool.core.date.DatePattern.*;
|
||||
|
||||
/**
|
||||
* 同步旧版本调查问卷
|
||||
*/
|
||||
@Slf4j
|
||||
public class SyncOldEvaluation extends BaseSync {
|
||||
|
||||
@Autowired
|
||||
private IKcKetangbiaoService kcKetangbiaoService;
|
||||
|
||||
//----------------------------------旧系统------------------------------------------
|
||||
@Autowired
|
||||
private IKcOldEvaluationansService kcOldEvaluationansService;//旧系统答案(混合)
|
||||
|
||||
@Autowired
|
||||
private IKcOldEvaluationqueService kcOldEvaluationqueService;//旧系统问题(纯问题)
|
||||
|
||||
//----------------------------------旧系统END------------------------------------------
|
||||
|
||||
//----------------------------------正在使用------------------------------------------
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationansService kcEvaluationansService;//正在使用答案(纯答案)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationqueService kcEvaluationqueService;//正在使用问题(纯问题)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationService kcEvaluationService;//正在使用问题(回答主表)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationsService kcEvaluationsService;//正在使用问题(回答明细子表)
|
||||
|
||||
//----------------------------------正在使用END------------------------------------------
|
||||
|
||||
//----------------------------------政务大厅------------------------------------------
|
||||
//----------------------------------政务大厅END------------------------------------------
|
||||
|
||||
//----------------------------------纸质评价(后台导入)------------------------------------------
|
||||
//----------------------------------纸质评价(后台导入)END------------------------------------------
|
||||
|
||||
|
||||
Map<String,String> optionMap = Maps.newHashMap();
|
||||
|
||||
/**
|
||||
* 若参数变量名修改 QuartzJobController中也需对应修改
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) {
|
||||
start();
|
||||
run(getParamMap());
|
||||
end();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 有参定时任务实现
|
||||
* @param param
|
||||
*/
|
||||
public void run(Map<String, Object> param){
|
||||
|
||||
//旧版本
|
||||
washOldData(param);
|
||||
|
||||
Xxhbsynclog xxhbsynclog = new Xxhbsynclog();
|
||||
xxhbsynclog.setSyncRowNum("1");
|
||||
saveLog(xxhbsynclog, KcOldEvaluationque.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 无参定时任务实现
|
||||
*/
|
||||
public void run(){
|
||||
run(null);
|
||||
}
|
||||
|
||||
public void washOldData(Map<String, Object> param) {
|
||||
|
||||
optionMap.put("0","A");
|
||||
optionMap.put("1","B");
|
||||
optionMap.put("2","C");
|
||||
optionMap.put("3","D");
|
||||
optionMap.put("4","E");
|
||||
|
||||
int source = 1;
|
||||
|
||||
//查询数据
|
||||
List<KcOldEvaluationans> inDataList = kcOldEvaluationansService.list();
|
||||
List<KcEvaluation> saveMainList = Lists.newArrayList();
|
||||
|
||||
List<KcEvaluations> saveChildList = Lists.newArrayList();
|
||||
|
||||
inDataList.forEach(x -> {
|
||||
KcEvaluation main = new KcEvaluation();
|
||||
main.setUpDate(DateUtil.parse(x.getPksj(),NORM_DATE_PATTERN));
|
||||
main.setUpTime(DateUtil.parse(x.getPksj(),NORM_TIME_PATTERN));
|
||||
main.setUpTimestamp(x.getPksj());
|
||||
main.setUpuser(x.getTkjs());
|
||||
main.setUserid(x.getTkjgh());
|
||||
|
||||
//main.setMinkcid(x.get);????好像得多条件查询 kcmc kkdw jgh skjs sksj hh skdd tkjgh tkjs
|
||||
|
||||
QueryWrapper<KcKetangbiao> qwKeTang = new QueryWrapper<>();
|
||||
qwKeTang.eq("kcmc",x.getKcmc());
|
||||
qwKeTang.eq("kkdw",x.getKkdw());
|
||||
// qwKeTang.eq("",x.getJgh());
|
||||
qwKeTang.eq("skjs",x.getSkjs());
|
||||
qwKeTang.eq("sksj",x.getSksj());
|
||||
qwKeTang.eq("hh",x.getHh());
|
||||
qwKeTang.eq("skdd",x.getSkdd());
|
||||
// qwKeTang.eq("",x.getTkjgh());
|
||||
// qwKeTang.eq("",x.getTkjs());
|
||||
qwKeTang.last("limit 1");
|
||||
KcKetangbiao ketangbiao = kcKetangbiaoService.getOne(qwKeTang);
|
||||
if(ketangbiao == null) {
|
||||
ketangbiao = new KcKetangbiao();
|
||||
log.error("错误的课题");
|
||||
}
|
||||
main.setMinkcid(ketangbiao.getId());
|
||||
|
||||
main.setAnswer1(x.getAns1());
|
||||
main.setAnswer2(x.getAns2());
|
||||
main.setAnswer3(x.getAns3());
|
||||
main.setAnswer4(x.getAns4());
|
||||
main.setAnswer5(x.getAns5());
|
||||
main.setAnswer6(x.getAns6());
|
||||
main.setAnswer7(x.getAns7());
|
||||
main.setAnswer8(x.getAns8());
|
||||
main.setAnswer9(x.getAns9());
|
||||
main.setAnswer10(x.getAns10());
|
||||
|
||||
main.setEvaluationver(-1);//题版本
|
||||
main.setSource(source);//老版本
|
||||
saveMainList.add(main);
|
||||
//子数据
|
||||
//100004 2022-09-06 14:31:00 杨霞 2010900015 2022-09-06 14:31:42 193359 11 75 4568 0
|
||||
String optionId1 = optionMap.get(x.getAns1());
|
||||
String optionId2 = optionMap.get(x.getAns2());
|
||||
String optionId3 = optionMap.get(x.getAns3());
|
||||
String optionId4 = optionMap.get(x.getAns4());
|
||||
String optionId5 = optionMap.get(x.getAns5());
|
||||
String optionId6 = optionMap.get(x.getAns6());
|
||||
String optionId7 = optionMap.get(x.getAns7());
|
||||
String optionId8 = optionMap.get(x.getAns8());
|
||||
String optionId9 = optionMap.get(x.getAns9());
|
||||
|
||||
|
||||
for (int i = 1; 9 >= i; i++){
|
||||
String optionId = "";
|
||||
String queid = source + "0" + i;
|
||||
switch (i) {
|
||||
case 1: optionId = optionId1; break;
|
||||
case 2: optionId = optionId2; break;
|
||||
case 3: optionId = optionId3; break;
|
||||
case 4: optionId = optionId4; break;
|
||||
case 5: optionId = optionId5; break;
|
||||
case 6: optionId = optionId6; break;
|
||||
case 7: optionId = optionId7; break;
|
||||
case 8: optionId = optionId8; break;
|
||||
case 9: optionId = optionId9; break;
|
||||
}
|
||||
KcEvaluations child = new KcEvaluations();
|
||||
child.setUpDate(DateUtil.parse(x.getPksj(),NORM_DATE_PATTERN));
|
||||
child.setUpTime(DateUtil.parse(x.getPksj(),NORM_TIME_PATTERN));
|
||||
child.setUpTimestamp(x.getPksj());
|
||||
child.setUpuser(x.getTkjs());
|
||||
child.setUpuserid(x.getTkjgh());
|
||||
child.setKetangbiaoid(ketangbiao.getId());//用上面的ID
|
||||
|
||||
child.setQueid(Integer.parseInt(queid));//问题ID
|
||||
child.setAnsid(Integer.parseInt(queid+optionId));//答案ID
|
||||
|
||||
// if(i == 10){
|
||||
// child.setTextanscontent();//多行文本型答案内容
|
||||
// }
|
||||
|
||||
child.setSource(source);//老版本
|
||||
saveChildList.add(child);
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
kcEvaluationService.saveBatch(saveMainList);
|
||||
kcEvaluationsService.saveBatch(saveChildList);
|
||||
|
||||
// List<KcEvaluationque> saveList = Lists.newArrayList();
|
||||
//
|
||||
//
|
||||
// //删除旧数据
|
||||
// QueryWrapper<KcEvaluationque> rqw = new QueryWrapper<>();
|
||||
// rqw.eq("source",1);
|
||||
// kcEvaluationqueService.remove(rqw);
|
||||
//
|
||||
// inDataList.forEach(x -> {
|
||||
// KcEvaluationque que = new KcEvaluationque();
|
||||
// que.setContent(x.getContent());
|
||||
// que.setStatus(x.getStatus());
|
||||
// que.setGenre(x.getGenre());
|
||||
// que.setOrdernum(x.getOrdernum());
|
||||
// que.setQuetype(x.getQuetype());
|
||||
// que.setIsrequire(x.getIsrequire());
|
||||
// que.setEvaluationver(x.getEvaluationver());
|
||||
// que.setSource(1);
|
||||
// saveList.add(que);
|
||||
// });
|
||||
//
|
||||
// kcEvaluationqueService.saveBatch(saveList);
|
||||
|
||||
//有ID了,清洗数据
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,237 @@
|
|||
package org.jeecg.modules.kc.grab.SynchronizationService;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.google.common.collect.Maps;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.compress.utils.Lists;
|
||||
import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync;
|
||||
import org.jeecg.modules.kc.grab.imports.entity.Xxhbbkjxtkpj;
|
||||
import org.jeecg.modules.kc.grab.imports.entity.Xxhbsynclog;
|
||||
import org.jeecg.modules.kc.grab.imports.service.IXxhbbkjxtkpjService;
|
||||
import org.jeecg.modules.kc.ktgl.entity.KcKetangbiao;
|
||||
import org.jeecg.modules.kc.ktgl.service.IKcKetangbiaoService;
|
||||
import org.jeecg.modules.kc.qa.entity.KcEvaluation;
|
||||
import org.jeecg.modules.kc.qa.entity.KcEvaluations;
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationans;
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationque;
|
||||
import org.jeecg.modules.kc.qa.service.*;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static cn.hutool.core.date.DatePattern.NORM_DATETIME_FORMAT;
|
||||
import static cn.hutool.core.date.DatePattern.NORM_TIME_FORMAT;
|
||||
|
||||
/**
|
||||
* 同步旧版本调查问卷
|
||||
*/
|
||||
@Slf4j
|
||||
public class SyncZwdtEvaluation extends BaseSync {
|
||||
|
||||
@Autowired
|
||||
private IKcKetangbiaoService kcKetangbiaoService;
|
||||
|
||||
//----------------------------------旧系统------------------------------------------
|
||||
@Autowired
|
||||
private IXxhbbkjxtkpjService xxhbbkjxtkpjService;//政务大厅(纯回答)
|
||||
|
||||
//----------------------------------旧系统END------------------------------------------
|
||||
|
||||
//----------------------------------正在使用------------------------------------------
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationansService kcEvaluationansService;//正在使用答案(纯答案)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationqueService kcEvaluationqueService;//正在使用问题(纯问题)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationService kcEvaluationService;//正在使用问题(回答主表)
|
||||
|
||||
@Autowired
|
||||
private IKcEvaluationsService kcEvaluationsService;//正在使用问题(回答明细子表)
|
||||
|
||||
//----------------------------------正在使用END------------------------------------------
|
||||
|
||||
//----------------------------------政务大厅------------------------------------------
|
||||
//----------------------------------政务大厅END------------------------------------------
|
||||
|
||||
//----------------------------------纸质评价(后台导入)------------------------------------------
|
||||
//----------------------------------纸质评价(后台导入)END------------------------------------------
|
||||
|
||||
|
||||
Map<String,String> optionMap = Maps.newHashMap();
|
||||
|
||||
/**
|
||||
* 若参数变量名修改 QuartzJobController中也需对应修改
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) {
|
||||
start();
|
||||
run(getParamMap());
|
||||
end();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 有参定时任务实现
|
||||
* @param param
|
||||
*/
|
||||
public void run(Map<String, Object> param){
|
||||
|
||||
//旧版本
|
||||
washOldData(param);
|
||||
|
||||
Xxhbsynclog xxhbsynclog = new Xxhbsynclog();
|
||||
xxhbsynclog.setSyncRowNum("1");
|
||||
saveLog(xxhbsynclog, KcOldEvaluationque.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 无参定时任务实现
|
||||
*/
|
||||
public void run(){
|
||||
run(null);
|
||||
}
|
||||
|
||||
public void washOldData(Map<String, Object> param) {
|
||||
|
||||
optionMap.put("0","A");
|
||||
optionMap.put("1","B");
|
||||
optionMap.put("2","C");
|
||||
optionMap.put("3","D");
|
||||
optionMap.put("4","E");
|
||||
|
||||
int source = 2;
|
||||
|
||||
//查询数据
|
||||
List<Xxhbbkjxtkpj> inDataList = xxhbbkjxtkpjService.list();
|
||||
List<KcEvaluation> saveMainList = Lists.newArrayList();
|
||||
|
||||
List<KcEvaluations> saveChildList = Lists.newArrayList();
|
||||
|
||||
inDataList.forEach(x -> {
|
||||
KcEvaluation main = new KcEvaluation();
|
||||
main.setUpDate(x.getTimestamps());
|
||||
main.setUpTime(x.getTimestamps());
|
||||
main.setUpTimestamp(DateUtil.format(x.getTimestamps(),NORM_DATETIME_FORMAT));
|
||||
main.setUpuser(x.getTkrxm());
|
||||
main.setUserid(x.getTkrgh());
|
||||
|
||||
//main.setMinkcid(x.get);????好像得多条件查询 tkkcmc
|
||||
QueryWrapper<KcKetangbiao> qwKeTang = new QueryWrapper<>();
|
||||
qwKeTang.eq("kcmc",x.getTkkcmc());
|
||||
// qwKeTang.eq("kkdw",x.getKkdw());
|
||||
// qwKeTang.eq("",x.getJgh());
|
||||
qwKeTang.eq("skjs",x.getRkjs());
|
||||
// qwKeTang.eq("sksj",x.getSksj());
|
||||
// qwKeTang.eq("hh",x.getHh());
|
||||
qwKeTang.eq("skdd",x.getTkjs());
|
||||
// qwKeTang.eq("",x.getTkjgh());
|
||||
// qwKeTang.eq("",x.getTkjs());
|
||||
qwKeTang.last("limit 1");
|
||||
KcKetangbiao ketangbiao = kcKetangbiaoService.getOne(qwKeTang);
|
||||
if(ketangbiao == null) {
|
||||
ketangbiao = new KcKetangbiao();
|
||||
log.error("错误的课题");
|
||||
}
|
||||
main.setMinkcid(ketangbiao.getId());
|
||||
|
||||
main.setAnswer1(x.getJspg1());
|
||||
main.setAnswer2(x.getJspg2());
|
||||
main.setAnswer3(x.getJspg3());
|
||||
main.setAnswer4(x.getJspg4());
|
||||
main.setAnswer5(x.getJspg5());
|
||||
main.setAnswer6(x.getXspg1());
|
||||
main.setAnswer7(x.getXspg2());
|
||||
main.setAnswer8(x.getXspg3());
|
||||
main.setAnswer9(x.getZtpj());
|
||||
main.setAnswer10(x.getQtyj());
|
||||
|
||||
main.setEvaluationver(0);//题版本
|
||||
main.setSource(source);//老版本
|
||||
saveMainList.add(main);
|
||||
//子数据
|
||||
//100004 2022-09-06 14:31:00 杨霞 2010900015 2022-09-06 14:31:42 193359 11 75 4568 0
|
||||
String optionId1 = optionMap.get(x.getJspg1());
|
||||
String optionId2 = optionMap.get(x.getJspg2());
|
||||
String optionId3 = optionMap.get(x.getJspg3());
|
||||
String optionId4 = optionMap.get(x.getJspg4());
|
||||
String optionId5 = optionMap.get(x.getJspg5());
|
||||
String optionId6 = optionMap.get(x.getXspg1());
|
||||
String optionId7 = optionMap.get(x.getXspg2());
|
||||
String optionId8 = optionMap.get(x.getXspg3());
|
||||
String optionId9 = optionMap.get(x.getZtpj());
|
||||
|
||||
|
||||
for (int i = 1; 9 >= i; i++){
|
||||
String optionId = "";
|
||||
String queid = source + "0" + i;
|
||||
switch (i) {
|
||||
case 1: optionId = optionId1; break;
|
||||
case 2: optionId = optionId2; break;
|
||||
case 3: optionId = optionId3; break;
|
||||
case 4: optionId = optionId4; break;
|
||||
case 5: optionId = optionId5; break;
|
||||
case 6: optionId = optionId6; break;
|
||||
case 7: optionId = optionId7; break;
|
||||
case 8: optionId = optionId8; break;
|
||||
case 9: optionId = optionId9; break;
|
||||
}
|
||||
KcEvaluations child = new KcEvaluations();
|
||||
child.setUpDate(x.getTimestamps());
|
||||
child.setUpTime(x.getTimestamps());
|
||||
child.setUpTimestamp(DateUtil.format(x.getTimestamps(),NORM_DATETIME_FORMAT));
|
||||
child.setUpuser(x.getTkrxm());
|
||||
child.setUpuserid(x.getTkrgh());
|
||||
child.setKetangbiaoid(ketangbiao.getId());//用上面的ID
|
||||
|
||||
child.setQueid(Integer.parseInt(queid));//问题ID
|
||||
child.setAnsid(Integer.parseInt(queid+optionId));//答案ID
|
||||
|
||||
// if(i == 10){
|
||||
// child.setTextanscontent();//多行文本型答案内容
|
||||
// }
|
||||
|
||||
child.setSource(source);//老版本
|
||||
saveChildList.add(child);
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
kcEvaluationService.saveBatch(saveMainList);
|
||||
kcEvaluationsService.saveBatch(saveChildList);
|
||||
// List<KcEvaluationque> saveList = Lists.newArrayList();
|
||||
//
|
||||
//
|
||||
// //删除旧数据
|
||||
// QueryWrapper<KcEvaluationque> rqw = new QueryWrapper<>();
|
||||
// rqw.eq("source",1);
|
||||
// kcEvaluationqueService.remove(rqw);
|
||||
//
|
||||
// inDataList.forEach(x -> {
|
||||
// KcEvaluationque que = new KcEvaluationque();
|
||||
// que.setContent(x.getContent());
|
||||
// que.setStatus(x.getStatus());
|
||||
// que.setGenre(x.getGenre());
|
||||
// que.setOrdernum(x.getOrdernum());
|
||||
// que.setQuetype(x.getQuetype());
|
||||
// que.setIsrequire(x.getIsrequire());
|
||||
// que.setEvaluationver(x.getEvaluationver());
|
||||
// que.setSource(1);
|
||||
// saveList.add(que);
|
||||
// });
|
||||
//
|
||||
// kcEvaluationqueService.saveBatch(saveList);
|
||||
|
||||
//有ID了,清洗数据
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.kc.qa.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationans;
|
||||
import org.jeecg.modules.kc.qa.service.IKcOldEvaluationansService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 答案表(老系统,答案与内容混合)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="答案表(老系统,答案与内容混合)")
|
||||
@RestController
|
||||
@RequestMapping("/qa/kcOldEvaluationans")
|
||||
@Slf4j
|
||||
public class KcOldEvaluationansController extends JeecgController<KcOldEvaluationans, IKcOldEvaluationansService> {
|
||||
@Autowired
|
||||
private IKcOldEvaluationansService kcOldEvaluationansService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param kcOldEvaluationans
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "答案表(老系统,答案与内容混合)-分页列表查询")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-分页列表查询", notes="答案表(老系统,答案与内容混合)-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<KcOldEvaluationans>> queryPageList(KcOldEvaluationans kcOldEvaluationans,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<KcOldEvaluationans> queryWrapper = QueryGenerator.initQueryWrapper(kcOldEvaluationans, req.getParameterMap());
|
||||
Page<KcOldEvaluationans> page = new Page<KcOldEvaluationans>(pageNo, pageSize);
|
||||
IPage<KcOldEvaluationans> pageList = kcOldEvaluationansService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param kcOldEvaluationans
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "答案表(老系统,答案与内容混合)-添加")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-添加", notes="答案表(老系统,答案与内容混合)-添加")
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody KcOldEvaluationans kcOldEvaluationans) {
|
||||
kcOldEvaluationansService.save(kcOldEvaluationans);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param kcOldEvaluationans
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "答案表(老系统,答案与内容混合)-编辑")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-编辑", notes="答案表(老系统,答案与内容混合)-编辑")
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody KcOldEvaluationans kcOldEvaluationans) {
|
||||
kcOldEvaluationansService.updateById(kcOldEvaluationans);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "答案表(老系统,答案与内容混合)-通过id删除")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-通过id删除", notes="答案表(老系统,答案与内容混合)-通过id删除")
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
kcOldEvaluationansService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "答案表(老系统,答案与内容混合)-批量删除")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-批量删除", notes="答案表(老系统,答案与内容混合)-批量删除")
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.kcOldEvaluationansService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "答案表(老系统,答案与内容混合)-通过id查询")
|
||||
@ApiOperation(value="答案表(老系统,答案与内容混合)-通过id查询", notes="答案表(老系统,答案与内容混合)-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<KcOldEvaluationans> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
KcOldEvaluationans kcOldEvaluationans = kcOldEvaluationansService.getById(id);
|
||||
if(kcOldEvaluationans==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(kcOldEvaluationans);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param kcOldEvaluationans
|
||||
*/
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, KcOldEvaluationans kcOldEvaluationans) {
|
||||
return super.exportXls(request, kcOldEvaluationans, KcOldEvaluationans.class, "答案表(老系统,答案与内容混合)");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qa:kc_old_evaluationans:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, KcOldEvaluationans.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.kc.qa.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.kc.qa.service.IKcOldEvaluationqueService;
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationque;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 调查问卷问题表(老系统)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="调查问卷问题表(老系统)")
|
||||
@RestController
|
||||
@RequestMapping("/qa/kcOldEvaluationque")
|
||||
@Slf4j
|
||||
public class KcOldEvaluationqueController extends JeecgController<KcOldEvaluationque, IKcOldEvaluationqueService> {
|
||||
@Autowired
|
||||
private IKcOldEvaluationqueService kcOldEvaluationqueService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param kcOldEvaluationque
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "调查问卷问题表(老系统)-分页列表查询")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-分页列表查询", notes="调查问卷问题表(老系统)-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<KcOldEvaluationque>> queryPageList(KcOldEvaluationque kcOldEvaluationque,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<KcOldEvaluationque> queryWrapper = QueryGenerator.initQueryWrapper(kcOldEvaluationque, req.getParameterMap());
|
||||
Page<KcOldEvaluationque> page = new Page<KcOldEvaluationque>(pageNo, pageSize);
|
||||
IPage<KcOldEvaluationque> pageList = kcOldEvaluationqueService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param kcOldEvaluationque
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "调查问卷问题表(老系统)-添加")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-添加", notes="调查问卷问题表(老系统)-添加")
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody KcOldEvaluationque kcOldEvaluationque) {
|
||||
kcOldEvaluationqueService.save(kcOldEvaluationque);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param kcOldEvaluationque
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "调查问卷问题表(老系统)-编辑")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-编辑", notes="调查问卷问题表(老系统)-编辑")
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody KcOldEvaluationque kcOldEvaluationque) {
|
||||
kcOldEvaluationqueService.updateById(kcOldEvaluationque);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "调查问卷问题表(老系统)-通过id删除")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-通过id删除", notes="调查问卷问题表(老系统)-通过id删除")
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
kcOldEvaluationqueService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "调查问卷问题表(老系统)-批量删除")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-批量删除", notes="调查问卷问题表(老系统)-批量删除")
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.kcOldEvaluationqueService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "调查问卷问题表(老系统)-通过id查询")
|
||||
@ApiOperation(value="调查问卷问题表(老系统)-通过id查询", notes="调查问卷问题表(老系统)-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<KcOldEvaluationque> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
KcOldEvaluationque kcOldEvaluationque = kcOldEvaluationqueService.getById(id);
|
||||
if(kcOldEvaluationque==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(kcOldEvaluationque);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param kcOldEvaluationque
|
||||
*/
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, KcOldEvaluationque kcOldEvaluationque) {
|
||||
return super.exportXls(request, kcOldEvaluationque, KcOldEvaluationque.class, "调查问卷问题表(老系统)");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("qa:kc_old_evaluationque:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, KcOldEvaluationque.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -55,7 +55,7 @@ public class KcEvaluation implements Serializable {
|
|||
private java.lang.String upTimestamp;
|
||||
/**课程最小id*/
|
||||
@ApiModelProperty(value = "课程最小id")
|
||||
private java.lang.Integer minkcid;
|
||||
private java.lang.String minkcid;
|
||||
/**答案2*/
|
||||
@ApiModelProperty(value = "答案2")
|
||||
private java.lang.String answer2;
|
||||
|
@ -91,7 +91,7 @@ public class KcEvaluation implements Serializable {
|
|||
private java.lang.Integer evaluationver;
|
||||
|
||||
/**数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)*/
|
||||
@ApiModelProperty(value = "数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)")
|
||||
@ApiModelProperty(value = "数据来源(0:课程中心,1:老系统,2:政务大厅,3:纸质评价)")
|
||||
private java.lang.Integer source;
|
||||
|
||||
@Excel(name = "职工号", width = 15)
|
||||
|
|
|
@ -59,6 +59,6 @@ public class KcEvaluationans implements Serializable {
|
|||
@ApiModelProperty(value = "是否参与评分 0:参与 1:不参与")
|
||||
private java.lang.Integer inavg;
|
||||
/**数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)*/
|
||||
@ApiModelProperty(value = "数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)")
|
||||
@ApiModelProperty(value = "数据来源(0:课程中心,1:老系统,2:政务大厅,3:纸质评价)")
|
||||
private java.lang.Integer source;
|
||||
}
|
||||
|
|
|
@ -65,6 +65,6 @@ public class KcEvaluationque implements Serializable {
|
|||
@ApiModelProperty(value = "问题版本")
|
||||
private java.lang.Integer evaluationver;
|
||||
/**数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)*/
|
||||
@ApiModelProperty(value = "数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)")
|
||||
@ApiModelProperty(value = "数据来源(0:课程中心,1:老系统,2:政务大厅,3:纸质评价)")
|
||||
private java.lang.Integer source;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public class KcEvaluations implements Serializable {
|
|||
/**上传人id*/
|
||||
@Excel(name = "上传人id", width = 15)
|
||||
@ApiModelProperty(value = "上传人id")
|
||||
private java.lang.Integer upuserid;
|
||||
private java.lang.String upuserid;
|
||||
/**上传时间戳*/
|
||||
@Excel(name = "上传时间戳", width = 15)
|
||||
@ApiModelProperty(value = "上传时间戳")
|
||||
|
@ -63,7 +63,7 @@ public class KcEvaluations implements Serializable {
|
|||
/**课堂表id*/
|
||||
@Excel(name = "课堂表id", width = 15)
|
||||
@ApiModelProperty(value = "课堂表id")
|
||||
private java.lang.Integer ketangbiaoid;
|
||||
private java.lang.String ketangbiaoid;
|
||||
/**问题id*/
|
||||
@Excel(name = "问题id", width = 15)
|
||||
@ApiModelProperty(value = "问题id")
|
||||
|
@ -80,4 +80,7 @@ public class KcEvaluations implements Serializable {
|
|||
@Excel(name = "问卷版本", width = 15)
|
||||
@ApiModelProperty(value = "问卷版本")
|
||||
private java.lang.String evaluationid;
|
||||
/**数据来源(0:门户添加,1:老系统,2:政务大厅,3后台导入)*/
|
||||
@ApiModelProperty(value = "数据来源(0:课程中心,1:老系统,2:政务大厅,3:纸质评价)")
|
||||
private java.lang.Integer source;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,119 @@
|
|||
package org.jeecg.modules.kc.qa.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 答案表(老系统,答案与内容混合)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("kc_old_evaluationans")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="kc_old_evaluationans对象", description="答案表(老系统,答案与内容混合)")
|
||||
public class KcOldEvaluationans implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**课程名称*/
|
||||
@Excel(name = "课程名称", width = 15)
|
||||
@ApiModelProperty(value = "课程名称")
|
||||
private java.lang.String kcmc;
|
||||
/**开课院系*/
|
||||
@Excel(name = "开课院系", width = 15)
|
||||
@ApiModelProperty(value = "开课院系")
|
||||
private java.lang.String kkdw;
|
||||
/**上课教师工号*/
|
||||
@Excel(name = "上课教师工号", width = 15)
|
||||
@ApiModelProperty(value = "上课教师工号")
|
||||
private java.lang.String jgh;
|
||||
/**上课教师*/
|
||||
@Excel(name = "上课教师", width = 15)
|
||||
@ApiModelProperty(value = "上课教师")
|
||||
private java.lang.String skjs;
|
||||
/**上课时间*/
|
||||
@Excel(name = "上课时间", width = 15)
|
||||
@ApiModelProperty(value = "上课时间")
|
||||
private java.lang.String sksj;
|
||||
/**课程节次*/
|
||||
@Excel(name = "课程节次", width = 15)
|
||||
@ApiModelProperty(value = "课程节次")
|
||||
private java.lang.String hh;
|
||||
/**上课地点*/
|
||||
@Excel(name = "上课地点", width = 15)
|
||||
@ApiModelProperty(value = "上课地点")
|
||||
private java.lang.String skdd;
|
||||
/**听课教师工号*/
|
||||
@Excel(name = "听课教师工号", width = 15)
|
||||
@ApiModelProperty(value = "听课教师工号")
|
||||
private java.lang.String tkjgh;
|
||||
/**听课教师*/
|
||||
@Excel(name = "听课教师", width = 15)
|
||||
@ApiModelProperty(value = "听课教师")
|
||||
private java.lang.String tkjs;
|
||||
/**评课时间*/
|
||||
@Excel(name = "评课时间", width = 15)
|
||||
@ApiModelProperty(value = "评课时间")
|
||||
private java.lang.String pksj;
|
||||
/**答案1*/
|
||||
@Excel(name = "答案1", width = 15)
|
||||
@ApiModelProperty(value = "答案1")
|
||||
private java.lang.String ans1;
|
||||
/**答案2*/
|
||||
@Excel(name = "答案2", width = 15)
|
||||
@ApiModelProperty(value = "答案2")
|
||||
private java.lang.String ans2;
|
||||
/**答案3*/
|
||||
@Excel(name = "答案3", width = 15)
|
||||
@ApiModelProperty(value = "答案3")
|
||||
private java.lang.String ans3;
|
||||
/**答案4*/
|
||||
@Excel(name = "答案4", width = 15)
|
||||
@ApiModelProperty(value = "答案4")
|
||||
private java.lang.String ans4;
|
||||
/**答案5*/
|
||||
@Excel(name = "答案5", width = 15)
|
||||
@ApiModelProperty(value = "答案5")
|
||||
private java.lang.String ans5;
|
||||
/**答案6*/
|
||||
@Excel(name = "答案6", width = 15)
|
||||
@ApiModelProperty(value = "答案6")
|
||||
private java.lang.String ans6;
|
||||
/**答案7*/
|
||||
@Excel(name = "答案7", width = 15)
|
||||
@ApiModelProperty(value = "答案7")
|
||||
private java.lang.String ans7;
|
||||
/**答案8*/
|
||||
@Excel(name = "答案8", width = 15)
|
||||
@ApiModelProperty(value = "答案8")
|
||||
private java.lang.String ans8;
|
||||
/**答案9*/
|
||||
@Excel(name = "答案9", width = 15)
|
||||
@ApiModelProperty(value = "答案9")
|
||||
private java.lang.String ans9;
|
||||
/**答案10*/
|
||||
@Excel(name = "答案10", width = 15)
|
||||
@ApiModelProperty(value = "答案10")
|
||||
private java.lang.String ans10;
|
||||
/**学年学期*/
|
||||
@Excel(name = "学年学期", width = 15)
|
||||
@ApiModelProperty(value = "学年学期")
|
||||
private java.lang.String xnxq;
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package org.jeecg.modules.kc.qa.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 调查问卷问题表(老系统)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("kc_old_evaluationque")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="kc_old_evaluationque对象", description="调查问卷问题表(老系统)")
|
||||
public class KcOldEvaluationque implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**内容*/
|
||||
@Excel(name = "内容", width = 15)
|
||||
@ApiModelProperty(value = "内容")
|
||||
private java.lang.String content;
|
||||
/**状态 0:可用 1:不可用*/
|
||||
@Excel(name = "状态 0:可用 1:不可用", width = 15)
|
||||
@ApiModelProperty(value = "状态 0:可用 1:不可用")
|
||||
private java.lang.Integer status;
|
||||
/**分类 0:总评 1:教学准备 2:教师情况 3:学生情况 4:教学效果 5:其他*/
|
||||
@Excel(name = "分类 0:总评 1:教学准备 2:教师情况 3:学生情况 4:教学效果 5:其他", width = 15)
|
||||
@ApiModelProperty(value = "分类 0:总评 1:教学准备 2:教师情况 3:学生情况 4:教学效果 5:其他")
|
||||
private java.lang.Integer genre;
|
||||
/**排序*/
|
||||
@Excel(name = "排序", width = 15)
|
||||
@ApiModelProperty(value = "排序")
|
||||
private java.lang.Integer ordernum;
|
||||
/**问题形式 1:单选 2:多选 3:多行文本*/
|
||||
@Excel(name = "问题形式 1:单选 2:多选 3:多行文本", width = 15)
|
||||
@ApiModelProperty(value = "问题形式 1:单选 2:多选 3:多行文本")
|
||||
private java.lang.Integer quetype;
|
||||
/**是否必填 0:是 1:否*/
|
||||
@Excel(name = "是否必填 0:是 1:否", width = 15)
|
||||
@ApiModelProperty(value = "是否必填 0:是 1:否")
|
||||
private java.lang.Integer isrequire;
|
||||
/**问题版本*/
|
||||
@Excel(name = "问题版本", width = 15)
|
||||
@ApiModelProperty(value = "问题版本")
|
||||
private java.lang.Integer evaluationver;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.kc.qa.mapper;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationans;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 答案表(老系统,答案与内容混合)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface KcOldEvaluationansMapper extends BaseMapper<KcOldEvaluationans> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.kc.qa.mapper;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationque;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 调查问卷问题表(老系统)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface KcOldEvaluationqueMapper extends BaseMapper<KcOldEvaluationque> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?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="org.jeecg.modules.kc.qa.mapper.KcOldEvaluationansMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?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="org.jeecg.modules.kc.qa.mapper.KcOldEvaluationqueMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.kc.qa.service;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationans;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 答案表(老系统,答案与内容混合)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IKcOldEvaluationansService extends IService<KcOldEvaluationans> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.kc.qa.service;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationque;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 调查问卷问题表(老系统)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IKcOldEvaluationqueService extends IService<KcOldEvaluationque> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.kc.qa.service.impl;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationans;
|
||||
import org.jeecg.modules.kc.qa.mapper.KcOldEvaluationansMapper;
|
||||
import org.jeecg.modules.kc.qa.service.IKcOldEvaluationansService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 答案表(老系统,答案与内容混合)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class KcOldEvaluationansServiceImpl extends ServiceImpl<KcOldEvaluationansMapper, KcOldEvaluationans> implements IKcOldEvaluationansService {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.kc.qa.service.impl;
|
||||
|
||||
import org.jeecg.modules.kc.qa.entity.KcOldEvaluationque;
|
||||
import org.jeecg.modules.kc.qa.mapper.KcOldEvaluationqueMapper;
|
||||
import org.jeecg.modules.kc.qa.service.IKcOldEvaluationqueService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 调查问卷问题表(老系统)
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class KcOldEvaluationqueServiceImpl extends ServiceImpl<KcOldEvaluationqueMapper, KcOldEvaluationque> implements IKcOldEvaluationqueService {
|
||||
|
||||
}
|
Loading…
Reference in New Issue