Commit d60823da by 涂亚平

导入模板统一

1 parent eede23cb
...@@ -94,7 +94,7 @@ public class AdministerController { ...@@ -94,7 +94,7 @@ public class AdministerController {
@PostMapping("classDetail") @PostMapping("classDetail")
@ApiOperation("班级管理--班级成员 id 班级id userName") @ApiOperation("班级管理--班级成员 id 班级id userName")
//@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public ResponseVO classDetail(@RequestBody ClassDetailDTO classDetailDTO){ public ResponseVO classDetail(@RequestBody ClassDetailDTO classDetailDTO){
return ResponseData.generateCreatedResponse(0,administerService.classDetail(classDetailDTO)); return ResponseData.generateCreatedResponse(0,administerService.classDetail(classDetailDTO));
} }
...@@ -109,14 +109,14 @@ public class AdministerController { ...@@ -109,14 +109,14 @@ public class AdministerController {
@PostMapping("signDetail") @PostMapping("signDetail")
@ApiOperation("班级管理--注册签到 id 班级id userName") @ApiOperation("班级管理--注册签到 id 班级id userName")
//@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public ResponseVO signDetail(@RequestBody ClassDetailDTO classDetailDTO){ public ResponseVO signDetail(@RequestBody ClassDetailDTO classDetailDTO){
return ResponseData.generateCreatedResponse(0,administerService.signDetail(classDetailDTO)); return ResponseData.generateCreatedResponse(0,administerService.signDetail(classDetailDTO));
} }
@PostMapping("exportSignDetail") @PostMapping("exportSignDetail")
@ApiOperation("班级管理--注册签到 id 班级id userName") @ApiOperation("班级管理--注册签到 id 班级id userName")
//@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public void exportSignDetail(@RequestBody ClassDetailDTO classDetailDTO)throws Exception{ public void exportSignDetail(@RequestBody ClassDetailDTO classDetailDTO)throws Exception{
classDetailDTO.setFlag(true); classDetailDTO.setFlag(true);
administerService.exportSignDetail(classDetailDTO); administerService.exportSignDetail(classDetailDTO);
...@@ -131,7 +131,7 @@ public class AdministerController { ...@@ -131,7 +131,7 @@ public class AdministerController {
@PostMapping("exportExerciseTest") @PostMapping("exportExerciseTest")
@ApiOperation("班级管理--测评成绩 id 班级id userName paperId") @ApiOperation("班级管理--测评成绩 id 班级id userName paperId")
//@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public void exportExerciseTest(@RequestBody ClassDetailDTO classDetailDTO)throws Exception{ public void exportExerciseTest(@RequestBody ClassDetailDTO classDetailDTO)throws Exception{
classDetailDTO.setFlag(true); classDetailDTO.setFlag(true);
administerService.exportExerciseTest(classDetailDTO); administerService.exportExerciseTest(classDetailDTO);
......
...@@ -77,7 +77,6 @@ public class CourseDictServiceImpl extends ServiceImpl<CourseDictMapper, CourseD ...@@ -77,7 +77,6 @@ public class CourseDictServiceImpl extends ServiceImpl<CourseDictMapper, CourseD
return this.baseMapper.queryCourses(pager, queryCoursesDTO.getCourseName(), queryCoursesDTO.getCategoryId(), queryCoursesDTO.getCourseType(), queryCoursesDTO.getCourseSource(), queryCoursesDTO.getCompanyId()); return this.baseMapper.queryCourses(pager, queryCoursesDTO.getCourseName(), queryCoursesDTO.getCategoryId(), queryCoursesDTO.getCourseType(), queryCoursesDTO.getCourseSource(), queryCoursesDTO.getCompanyId());
} }
@Async
public String updateCourses(CourseDictDO courseDictDO) { public String updateCourses(CourseDictDO courseDictDO) {
int count; int count;
......
...@@ -98,7 +98,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper, ...@@ -98,7 +98,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper,
return getDepartmentsVOS; return getDepartmentsVOS;
} }
@Async
public String addDepartment(DepartmentDictDO departmentDictDO) { public String addDepartment(DepartmentDictDO departmentDictDO) {
Integer counter = this.baseMapper.selectCount(new QueryWrapper<DepartmentDictDO>() Integer counter = this.baseMapper.selectCount(new QueryWrapper<DepartmentDictDO>()
...@@ -115,7 +114,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper, ...@@ -115,7 +114,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper,
return ConstantUtils.ADD_SUCCESS; return ConstantUtils.ADD_SUCCESS;
} }
@Async
public String deleteDepartment(DepartmentDictDO departmentDictDO) { public String deleteDepartment(DepartmentDictDO departmentDictDO) {
this.baseMapper.deleteById(departmentDictDO.getId()); this.baseMapper.deleteById(departmentDictDO.getId());
...@@ -143,7 +141,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper, ...@@ -143,7 +141,6 @@ public class DepartmentDictServiceImpl extends ServiceImpl<DepartmentDictMapper,
this.baseMapper.deleteById(departmentDictDO.getId()); this.baseMapper.deleteById(departmentDictDO.getId());
} }
@Async
public String updateDepartment(DepartmentDictDO departmentDictDO) { public String updateDepartment(DepartmentDictDO departmentDictDO) {
Integer counter = this.baseMapper.selectCount(new QueryWrapper<DepartmentDictDO>() Integer counter = this.baseMapper.selectCount(new QueryWrapper<DepartmentDictDO>()
......
...@@ -376,7 +376,6 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple ...@@ -376,7 +376,6 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
return null; return null;
} }
@Async
public String updatePassword(MemberDO memberDO) { public String updatePassword(MemberDO memberDO) {
this.baseMapper.updateById(memberDO); this.baseMapper.updateById(memberDO);
MemberDO memberDO1 = this.baseMapper.selectById(memberDO.getId()); MemberDO memberDO1 = this.baseMapper.selectById(memberDO.getId());
......
...@@ -28,19 +28,16 @@ public class PaperDictServiceImpl extends ServiceImpl<PaperDictMapper, PaperDict ...@@ -28,19 +28,16 @@ public class PaperDictServiceImpl extends ServiceImpl<PaperDictMapper, PaperDict
return this.baseMapper.queryPapers(paperDictDO.getCourseId(),paperDictDO.getPaperName(),null); return this.baseMapper.queryPapers(paperDictDO.getCourseId(),paperDictDO.getPaperName(),null);
} }
@Async
public String deletePaper(PaperDictDO paperDictDO){ public String deletePaper(PaperDictDO paperDictDO){
this.baseMapper.deleteById(paperDictDO.getId()); this.baseMapper.deleteById(paperDictDO.getId());
return ConstantUtils.DELETE_SUCCESS; return ConstantUtils.DELETE_SUCCESS;
} }
@Async
public String updateStatus(PaperDictDO paperDictDO){ public String updateStatus(PaperDictDO paperDictDO){
this.baseMapper.updateById(paperDictDO); this.baseMapper.updateById(paperDictDO);
return ConstantUtils.SET_SUCCESS; return ConstantUtils.SET_SUCCESS;
} }
@Async
public String addPaper(PaperDictDO paperDictDO){ public String addPaper(PaperDictDO paperDictDO){
Integer count = this.baseMapper.selectCount(new QueryWrapper<PaperDictDO>() Integer count = this.baseMapper.selectCount(new QueryWrapper<PaperDictDO>()
......
...@@ -37,7 +37,6 @@ public class SmsVerifyCodeServiceImpl extends ServiceImpl<SmsVerifyCodeMapper, S ...@@ -37,7 +37,6 @@ public class SmsVerifyCodeServiceImpl extends ServiceImpl<SmsVerifyCodeMapper, S
@Autowired @Autowired
private RedisUtil redisUtil; private RedisUtil redisUtil;
@Async
public void sendVerifyCode(SendVerifyCodeDTO sendVerifyCodeDTO) { public void sendVerifyCode(SendVerifyCodeDTO sendVerifyCodeDTO) {
MemberDO memberDO = memberMapper.selectOne(new QueryWrapper<MemberDO>() MemberDO memberDO = memberMapper.selectOne(new QueryWrapper<MemberDO>()
.lambda() .lambda()
......
...@@ -6,11 +6,11 @@ import java.util.List; ...@@ -6,11 +6,11 @@ import java.util.List;
public class ExcelFormatUtils { public class ExcelFormatUtils {
public static final List<String> memberList = Arrays.asList("序号", "成员名称", "身份证号码", "账号", "联系方式", "签到次数", "课程进度", "培训时长", "答疑数", "测试成绩", "总评价"); public static final List<String> memberList = Arrays.asList("序号", "成员名称","身份证号码", "性别", "账号", "联系方式", "签到次数", "课程进度", "学习时长", "答疑数", "测试成绩", "总评价");
public static final List<String> signList = Arrays.asList("序号", "成员名称", "身份证号码", "手机号码", "培训时长", "课程进度", "完成率", "签到次数", "签到日期"); public static final List<String> signList = Arrays.asList("序号", "成员名称", "身份证号码", "联系方式", "学习时长", "课程进度", "完成率", "签到次数", "签到日期");
public static final List<String> scoreList = Arrays.asList("序号", "成员名称", "身份证号码", "手机号码", "测试最高成绩", "测试次数", "总评价"); public static final List<String> scoreList = Arrays.asList("序号", "成员名称", "身份证号码", "联系方式", "测试成绩", "测试次数", "总评价");
public static final List<String> answersList = Arrays.asList("序号", "提问", "答疑", "提问时间", "提问成员", "答疑时间"); public static final List<String> answersList = Arrays.asList("序号", "提问", "答疑", "提问时间", "提问成员", "答疑时间");
......
...@@ -404,38 +404,40 @@ public class ExcelUtil { ...@@ -404,38 +404,40 @@ public class ExcelUtil {
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getIdCard()); newCell.setCellValue(classDetailVO.getIdCard());
newCell = dataRow.createCell(3); newCell = dataRow.createCell(3);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getAccountName()); newCell.setCellValue(classDetailVO.getGender());
newCell = dataRow.createCell(4); newCell = dataRow.createCell(4);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getTelephone()); newCell.setCellValue(classDetailVO.getAccountName());
newCell = dataRow.createCell(5); newCell = dataRow.createCell(5);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getSignCounts()); newCell.setCellValue(classDetailVO.getTelephone());
newCell = dataRow.createCell(6); newCell = dataRow.createCell(6);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getClassProcess()); newCell.setCellValue(classDetailVO.getSignCounts());
newCell = dataRow.createCell(7); newCell = dataRow.createCell(7);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getTrainingLengthStr()); newCell.setCellValue(classDetailVO.getClassProcess());
newCell = dataRow.createCell(8); newCell = dataRow.createCell(8);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getAskCounts()); newCell.setCellValue(classDetailVO.getTrainingLengthStr());
newCell = dataRow.createCell(9); newCell = dataRow.createCell(9);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getScore()); newCell.setCellValue(classDetailVO.getAskCounts());
newCell = dataRow.createCell(10); newCell = dataRow.createCell(10);
newCell.setCellStyle(cellStyle); newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getScore());
newCell = dataRow.createCell(11);
newCell.setCellStyle(cellStyle);
newCell.setCellValue(classDetailVO.getResult()); newCell.setCellValue(classDetailVO.getResult());
rowIndex++; rowIndex++;
seq++; seq++;
...@@ -1162,7 +1164,7 @@ public class ExcelUtil { ...@@ -1162,7 +1164,7 @@ public class ExcelUtil {
int[] secondWidth = new int[6]; int[] secondWidth = new int[6];
// 产生表格标题行,以及设置列宽 // 产生表格标题行,以及设置列宽
String[] secondHead = new String[6]; String[] secondHead = new String[6];
List<String> secondList = Arrays.asList("学员姓名", memberDO.getUserName(), "性别:" + memberDO.getGender(), "身份证号", memberDO.getIdCard(), "手机号", memberDO.getTelephone()); List<String> secondList = Arrays.asList("成员名称:" + memberDO.getUserName(), "性别:" + memberDO.getGender(), "身份证号码", memberDO.getIdCard(), "联系方式", memberDO.getTelephone());
ii = 0; ii = 0;
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
...@@ -1257,6 +1259,7 @@ public class ExcelUtil { ...@@ -1257,6 +1259,7 @@ public class ExcelUtil {
e.printStackTrace(); e.printStackTrace();
} }
} }
private static void setStyle(CellStyle cellStyle) { private static void setStyle(CellStyle cellStyle) {
// 水平居中 // 水平居中
cellStyle.setAlignment(CellStyle.ALIGN_CENTER); cellStyle.setAlignment(CellStyle.ALIGN_CENTER);
......
...@@ -16,5 +16,7 @@ public class ClassDailyInfoVO { ...@@ -16,5 +16,7 @@ public class ClassDailyInfoVO {
private Integer total; private Integer total;
private Integer studyLength;
private List<ClassVodDailyInfoItemVO> classVodDailyInfoItemVOS; private List<ClassVodDailyInfoItemVO> classVodDailyInfoItemVOS;
} }
...@@ -18,16 +18,22 @@ public class ClassDetailVO{ ...@@ -18,16 +18,22 @@ public class ClassDetailVO{
@ExcelColumn(col = 2,value = "账号") @ExcelColumn(col = 2,value = "账号")
private String accountName; private String accountName;
@ExcelColumn(col = 3,value = "身份证号") /**
* 性别
*/
@ExcelColumn(col = 3,value = "性别")
private String gender;
@ExcelColumn(col = 4,value = "身份证号")
private String idCard; private String idCard;
@ExcelColumn(col = 4,value = "联系方式") @ExcelColumn(col = 5,value = "联系方式")
private String telephone; private String telephone;
/** /**
* 签到次数 * 签到次数
*/ */
@ExcelColumn(col = 5,value = "签到次数") @ExcelColumn(col = 6,value = "签到次数")
private Long signCounts; private Long signCounts;
/** /**
...@@ -40,12 +46,12 @@ public class ClassDetailVO{ ...@@ -40,12 +46,12 @@ public class ClassDetailVO{
*/ */
//private Integer allVodCounts; //private Integer allVodCounts;
@ExcelColumn(col = 6,value = "课程进度") @ExcelColumn(col = 7,value = "课程进度")
private String classProcess; private String classProcess;
private Integer trainingLength; private Integer trainingLength;
@ExcelColumn(col = 7,value = "培训时长") @ExcelColumn(col = 8,value = "培训时长")
private String trainingLengthStr; private String trainingLengthStr;
...@@ -62,13 +68,13 @@ public class ClassDetailVO{ ...@@ -62,13 +68,13 @@ public class ClassDetailVO{
/** /**
* 评价测试 * 评价测试
*/ */
@ExcelColumn(col = 8,value = "评价测试") @ExcelColumn(col = 9,value = "评价测试")
private String score; private String score;
/** /**
* 答疑个数 * 答疑个数
*/ */
@ExcelColumn(col = 9,value = "答题数") @ExcelColumn(col = 10,value = "答题数")
private Integer askCounts; private Integer askCounts;
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
SELECT SELECT
t2.id, t2.id,
t2.user_name, t2.user_name,
t2.gender,
t2.id_card, t2.id_card,
t2.account_name, t2.account_name,
t2.telephone t2.telephone
......
...@@ -36,7 +36,10 @@ ...@@ -36,7 +36,10 @@
t3.play_record, t3.play_record,
t3.create_date, t3.create_date,
IF IF
( t.play_length >= t2.vod_length, 'true', 'false' ) AS STATUS (
round( t.play_length * 100 / t2.vod_length )>= 100,
100,
round( t.play_length * 100 / t2.vod_length )) AS percent
FROM FROM
( (
SELECT SELECT
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!