成绩权重
parent
99056f7333
commit
50b00807e5
@ -0,0 +1,27 @@
|
||||
package com.ibeetl.jlw.dao;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ibeetl.jlw.entity.*;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseScoreWeightQuery;
|
||||
|
||||
import org.beetl.sql.mapper.annotation.SqlResource;
|
||||
import org.beetl.sql.mapper.BaseMapper;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.beetl.sql.mapper.annotation.Update;
|
||||
|
||||
/**
|
||||
* 成绩权重 Dao
|
||||
*/
|
||||
@SqlResource("jlw.teacherOpenCourseScoreWeight")
|
||||
public interface TeacherOpenCourseScoreWeightDao extends BaseMapper<TeacherOpenCourseScoreWeight>{
|
||||
PageQuery<TeacherOpenCourseScoreWeight> queryByCondition(PageQuery query);
|
||||
PageQuery<TeacherOpenCourseScoreWeight> queryByConditionQuery(PageQuery query);
|
||||
@Update
|
||||
void deleteTeacherOpenCourseScoreWeightByIds(String ids);
|
||||
@Update
|
||||
int updateGivenByIds(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery);
|
||||
List<TeacherOpenCourseScoreWeight> getByIds(String ids);
|
||||
List<TeacherOpenCourseScoreWeight> getValuesByQuery(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery);
|
||||
}
|
@ -0,0 +1,555 @@
|
||||
package com.ibeetl.jlw.entity;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import com.ibeetl.admin.core.entity.BaseEntity;
|
||||
import org.beetl.sql.annotation.entity.*;
|
||||
|
||||
import com.ibeetl.admin.core.util.ValidateConfig;
|
||||
|
||||
import com.ibeetl.admin.core.annotation.Dict;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/*
|
||||
* 教师-我的课程-成绩权重
|
||||
* gen by Spring Boot2 Admin 2022-09-30
|
||||
*/
|
||||
public class TeacherOpenCourseScoreWeight extends BaseEntity{
|
||||
|
||||
//课程id
|
||||
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
||||
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
||||
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.TeacherOpenCourseScoreWeight")
|
||||
|
||||
private Long teacherOpenCourseId ;
|
||||
|
||||
//老师id
|
||||
|
||||
private Long teacherId ;
|
||||
|
||||
//签到成绩(权重)
|
||||
|
||||
private String signInResult ;
|
||||
|
||||
//章节联系成绩(权重)
|
||||
|
||||
private String chapterContactResult ;
|
||||
|
||||
//课程实操成绩(权重)
|
||||
|
||||
private String coursePracticeResult ;
|
||||
|
||||
//作业成绩(权重)
|
||||
|
||||
private String homeworkResult ;
|
||||
|
||||
//考试成绩(权重)
|
||||
|
||||
private String examinationResult ;
|
||||
|
||||
//互动成绩(权重)
|
||||
|
||||
private String interactionResult ;
|
||||
|
||||
//签到成绩设置1签到次数2到课到率
|
||||
|
||||
private String signInResultSetting ;
|
||||
|
||||
//签到次数_每签到一次分数
|
||||
|
||||
private String signInScore ;
|
||||
|
||||
//章节联系设置1正确率积分2平均完成度计分
|
||||
|
||||
private String chapterContactResultSetting ;
|
||||
|
||||
//课程实操成绩设置1平均分2平均完成进度
|
||||
|
||||
private String coursePracticeResultSetting ;
|
||||
|
||||
//作业成绩设置1平均分(默认1)
|
||||
|
||||
private String homeworkResultSetting ;
|
||||
|
||||
//考试成绩设置1平均分(默认1)
|
||||
|
||||
private String examinationResultSetting ;
|
||||
|
||||
//互动成绩设置1留言2提问3回答
|
||||
|
||||
private String interactionResultSetting ;
|
||||
|
||||
//互动成绩留言得分
|
||||
|
||||
private String interactionResultMessageScore ;
|
||||
|
||||
//互动成绩提问得分
|
||||
|
||||
private String interactionResultQuestionScore ;
|
||||
|
||||
//互动成绩回答得分
|
||||
|
||||
private String interactionResultAnswerScore ;
|
||||
|
||||
//成绩状态设置1二分法2等级法3字母法
|
||||
|
||||
private String resultStatusSetting ;
|
||||
|
||||
//二分法分数
|
||||
|
||||
private String dichotomyScore ;
|
||||
|
||||
//等级法优秀分数
|
||||
|
||||
private String excellentScore ;
|
||||
|
||||
//等级法良好分数
|
||||
|
||||
private String goodScore ;
|
||||
|
||||
//等级法中等分数
|
||||
|
||||
private String secondaryScore ;
|
||||
|
||||
//等级法及格分数
|
||||
|
||||
private String passScore ;
|
||||
|
||||
//字母法A分数
|
||||
|
||||
private String letteraScore ;
|
||||
|
||||
//字母法B分数
|
||||
|
||||
private String letterbScore ;
|
||||
|
||||
//字母法C分数
|
||||
|
||||
private String lettercScore ;
|
||||
|
||||
//字母法D分数
|
||||
|
||||
private String letterdScore ;
|
||||
|
||||
//组织ID
|
||||
|
||||
private Long orgId ;
|
||||
|
||||
//用户ID
|
||||
|
||||
private Long userId ;
|
||||
|
||||
//创建时间
|
||||
|
||||
private Long createTime ;
|
||||
|
||||
public TeacherOpenCourseScoreWeight(){
|
||||
}
|
||||
|
||||
/**课程id
|
||||
*@return
|
||||
*/
|
||||
public Long getTeacherOpenCourseId(){
|
||||
return teacherOpenCourseId;
|
||||
}
|
||||
/**课程id
|
||||
*@param teacherOpenCourseId
|
||||
*/
|
||||
public void setTeacherOpenCourseId(Long teacherOpenCourseId){
|
||||
this.teacherOpenCourseId = teacherOpenCourseId;
|
||||
}
|
||||
|
||||
/**老师id
|
||||
*@return
|
||||
*/
|
||||
public Long getTeacherId(){
|
||||
return teacherId;
|
||||
}
|
||||
/**老师id
|
||||
*@param teacherId
|
||||
*/
|
||||
public void setTeacherId(Long teacherId){
|
||||
this.teacherId = teacherId;
|
||||
}
|
||||
|
||||
/**签到成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getSignInResult(){
|
||||
return signInResult;
|
||||
}
|
||||
/**签到成绩(权重)
|
||||
*@param signInResult
|
||||
*/
|
||||
public void setSignInResult(String signInResult){
|
||||
this.signInResult = signInResult;
|
||||
}
|
||||
|
||||
/**章节联系成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getChapterContactResult(){
|
||||
return chapterContactResult;
|
||||
}
|
||||
/**章节联系成绩(权重)
|
||||
*@param chapterContactResult
|
||||
*/
|
||||
public void setChapterContactResult(String chapterContactResult){
|
||||
this.chapterContactResult = chapterContactResult;
|
||||
}
|
||||
|
||||
/**课程实操成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getCoursePracticeResult(){
|
||||
return coursePracticeResult;
|
||||
}
|
||||
/**课程实操成绩(权重)
|
||||
*@param coursePracticeResult
|
||||
*/
|
||||
public void setCoursePracticeResult(String coursePracticeResult){
|
||||
this.coursePracticeResult = coursePracticeResult;
|
||||
}
|
||||
|
||||
/**作业成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getHomeworkResult(){
|
||||
return homeworkResult;
|
||||
}
|
||||
/**作业成绩(权重)
|
||||
*@param homeworkResult
|
||||
*/
|
||||
public void setHomeworkResult(String homeworkResult){
|
||||
this.homeworkResult = homeworkResult;
|
||||
}
|
||||
|
||||
/**考试成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getExaminationResult(){
|
||||
return examinationResult;
|
||||
}
|
||||
/**考试成绩(权重)
|
||||
*@param examinationResult
|
||||
*/
|
||||
public void setExaminationResult(String examinationResult){
|
||||
this.examinationResult = examinationResult;
|
||||
}
|
||||
|
||||
/**互动成绩(权重)
|
||||
*@return
|
||||
*/
|
||||
public String getInteractionResult(){
|
||||
return interactionResult;
|
||||
}
|
||||
/**互动成绩(权重)
|
||||
*@param interactionResult
|
||||
*/
|
||||
public void setInteractionResult(String interactionResult){
|
||||
this.interactionResult = interactionResult;
|
||||
}
|
||||
|
||||
/**签到成绩设置1签到次数2到课到率
|
||||
*@return
|
||||
*/
|
||||
public String getSignInResultSetting(){
|
||||
return signInResultSetting;
|
||||
}
|
||||
/**签到成绩设置1签到次数2到课到率
|
||||
*@param signInResultSetting
|
||||
*/
|
||||
public void setSignInResultSetting(String signInResultSetting){
|
||||
this.signInResultSetting = signInResultSetting;
|
||||
}
|
||||
|
||||
/**签到次数_每签到一次分数
|
||||
*@return
|
||||
*/
|
||||
public String getSignInScore(){
|
||||
return signInScore;
|
||||
}
|
||||
/**签到次数_每签到一次分数
|
||||
*@param signInScore
|
||||
*/
|
||||
public void setSignInScore(String signInScore){
|
||||
this.signInScore = signInScore;
|
||||
}
|
||||
|
||||
/**章节联系设置1正确率积分2平均完成度计分
|
||||
*@return
|
||||
*/
|
||||
public String getChapterContactResultSetting(){
|
||||
return chapterContactResultSetting;
|
||||
}
|
||||
/**章节联系设置1正确率积分2平均完成度计分
|
||||
*@param chapterContactResultSetting
|
||||
*/
|
||||
public void setChapterContactResultSetting(String chapterContactResultSetting){
|
||||
this.chapterContactResultSetting = chapterContactResultSetting;
|
||||
}
|
||||
|
||||
/**课程实操成绩设置1平均分2平均完成进度
|
||||
*@return
|
||||
*/
|
||||
public String getCoursePracticeResultSetting(){
|
||||
return coursePracticeResultSetting;
|
||||
}
|
||||
/**课程实操成绩设置1平均分2平均完成进度
|
||||
*@param coursePracticeResultSetting
|
||||
*/
|
||||
public void setCoursePracticeResultSetting(String coursePracticeResultSetting){
|
||||
this.coursePracticeResultSetting = coursePracticeResultSetting;
|
||||
}
|
||||
|
||||
/**作业成绩设置1平均分(默认1)
|
||||
*@return
|
||||
*/
|
||||
public String getHomeworkResultSetting(){
|
||||
return homeworkResultSetting;
|
||||
}
|
||||
/**作业成绩设置1平均分(默认1)
|
||||
*@param homeworkResultSetting
|
||||
*/
|
||||
public void setHomeworkResultSetting(String homeworkResultSetting){
|
||||
this.homeworkResultSetting = homeworkResultSetting;
|
||||
}
|
||||
|
||||
/**考试成绩设置1平均分(默认1)
|
||||
*@return
|
||||
*/
|
||||
public String getExaminationResultSetting(){
|
||||
return examinationResultSetting;
|
||||
}
|
||||
/**考试成绩设置1平均分(默认1)
|
||||
*@param examinationResultSetting
|
||||
*/
|
||||
public void setExaminationResultSetting(String examinationResultSetting){
|
||||
this.examinationResultSetting = examinationResultSetting;
|
||||
}
|
||||
|
||||
/**互动成绩设置1留言2提问3回答
|
||||
*@return
|
||||
*/
|
||||
public String getInteractionResultSetting(){
|
||||
return interactionResultSetting;
|
||||
}
|
||||
/**互动成绩设置1留言2提问3回答
|
||||
*@param interactionResultSetting
|
||||
*/
|
||||
public void setInteractionResultSetting(String interactionResultSetting){
|
||||
this.interactionResultSetting = interactionResultSetting;
|
||||
}
|
||||
|
||||
/**互动成绩留言得分
|
||||
*@return
|
||||
*/
|
||||
public String getInteractionResultMessageScore(){
|
||||
return interactionResultMessageScore;
|
||||
}
|
||||
/**互动成绩留言得分
|
||||
*@param interactionResultMessageScore
|
||||
*/
|
||||
public void setInteractionResultMessageScore(String interactionResultMessageScore){
|
||||
this.interactionResultMessageScore = interactionResultMessageScore;
|
||||
}
|
||||
|
||||
/**互动成绩提问得分
|
||||
*@return
|
||||
*/
|
||||
public String getInteractionResultQuestionScore(){
|
||||
return interactionResultQuestionScore;
|
||||
}
|
||||
/**互动成绩提问得分
|
||||
*@param interactionResultQuestionScore
|
||||
*/
|
||||
public void setInteractionResultQuestionScore(String interactionResultQuestionScore){
|
||||
this.interactionResultQuestionScore = interactionResultQuestionScore;
|
||||
}
|
||||
|
||||
/**互动成绩回答得分
|
||||
*@return
|
||||
*/
|
||||
public String getInteractionResultAnswerScore(){
|
||||
return interactionResultAnswerScore;
|
||||
}
|
||||
/**互动成绩回答得分
|
||||
*@param interactionResultAnswerScore
|
||||
*/
|
||||
public void setInteractionResultAnswerScore(String interactionResultAnswerScore){
|
||||
this.interactionResultAnswerScore = interactionResultAnswerScore;
|
||||
}
|
||||
|
||||
/**成绩状态设置1二分法2等级法3字母法
|
||||
*@return
|
||||
*/
|
||||
public String getResultStatusSetting(){
|
||||
return resultStatusSetting;
|
||||
}
|
||||
/**成绩状态设置1二分法2等级法3字母法
|
||||
*@param resultStatusSetting
|
||||
*/
|
||||
public void setResultStatusSetting(String resultStatusSetting){
|
||||
this.resultStatusSetting = resultStatusSetting;
|
||||
}
|
||||
|
||||
/**二分法分数
|
||||
*@return
|
||||
*/
|
||||
public String getDichotomyScore(){
|
||||
return dichotomyScore;
|
||||
}
|
||||
/**二分法分数
|
||||
*@param dichotomyScore
|
||||
*/
|
||||
public void setDichotomyScore(String dichotomyScore){
|
||||
this.dichotomyScore = dichotomyScore;
|
||||
}
|
||||
|
||||
/**等级法优秀分数
|
||||
*@return
|
||||
*/
|
||||
public String getExcellentScore(){
|
||||
return excellentScore;
|
||||
}
|
||||
/**等级法优秀分数
|
||||
*@param excellentScore
|
||||
*/
|
||||
public void setExcellentScore(String excellentScore){
|
||||
this.excellentScore = excellentScore;
|
||||
}
|
||||
|
||||
/**等级法良好分数
|
||||
*@return
|
||||
*/
|
||||
public String getGoodScore(){
|
||||
return goodScore;
|
||||
}
|
||||
/**等级法良好分数
|
||||
*@param goodScore
|
||||
*/
|
||||
public void setGoodScore(String goodScore){
|
||||
this.goodScore = goodScore;
|
||||
}
|
||||
|
||||
/**等级法中等分数
|
||||
*@return
|
||||
*/
|
||||
public String getSecondaryScore(){
|
||||
return secondaryScore;
|
||||
}
|
||||
/**等级法中等分数
|
||||
*@param secondaryScore
|
||||
*/
|
||||
public void setSecondaryScore(String secondaryScore){
|
||||
this.secondaryScore = secondaryScore;
|
||||
}
|
||||
|
||||
/**等级法及格分数
|
||||
*@return
|
||||
*/
|
||||
public String getPassScore(){
|
||||
return passScore;
|
||||
}
|
||||
/**等级法及格分数
|
||||
*@param passScore
|
||||
*/
|
||||
public void setPassScore(String passScore){
|
||||
this.passScore = passScore;
|
||||
}
|
||||
|
||||
/**字母法A分数
|
||||
*@return
|
||||
*/
|
||||
public String getLetteraScore(){
|
||||
return letteraScore;
|
||||
}
|
||||
/**字母法A分数
|
||||
*@param letteraScore
|
||||
*/
|
||||
public void setLetteraScore(String letteraScore){
|
||||
this.letteraScore = letteraScore;
|
||||
}
|
||||
|
||||
/**字母法B分数
|
||||
*@return
|
||||
*/
|
||||
public String getLetterbScore(){
|
||||
return letterbScore;
|
||||
}
|
||||
/**字母法B分数
|
||||
*@param letterbScore
|
||||
*/
|
||||
public void setLetterbScore(String letterbScore){
|
||||
this.letterbScore = letterbScore;
|
||||
}
|
||||
|
||||
/**字母法C分数
|
||||
*@return
|
||||
*/
|
||||
public String getLettercScore(){
|
||||
return lettercScore;
|
||||
}
|
||||
/**字母法C分数
|
||||
*@param lettercScore
|
||||
*/
|
||||
public void setLettercScore(String lettercScore){
|
||||
this.lettercScore = lettercScore;
|
||||
}
|
||||
|
||||
/**字母法D分数
|
||||
*@return
|
||||
*/
|
||||
public String getLetterdScore(){
|
||||
return letterdScore;
|
||||
}
|
||||
/**字母法D分数
|
||||
*@param letterdScore
|
||||
*/
|
||||
public void setLetterdScore(String letterdScore){
|
||||
this.letterdScore = letterdScore;
|
||||
}
|
||||
|
||||
/**组织ID
|
||||
*@return
|
||||
*/
|
||||
public Long getOrgId(){
|
||||
return orgId;
|
||||
}
|
||||
/**组织ID
|
||||
*@param orgId
|
||||
*/
|
||||
public void setOrgId(Long orgId){
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
/**用户ID
|
||||
*@return
|
||||
*/
|
||||
public Long getUserId(){
|
||||
return userId;
|
||||
}
|
||||
/**用户ID
|
||||
*@param userId
|
||||
*/
|
||||
public void setUserId(Long userId){
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/**创建时间
|
||||
*@return
|
||||
*/
|
||||
public Long getCreateTime(){
|
||||
return createTime;
|
||||
}
|
||||
/**创建时间
|
||||
*@param createTime
|
||||
*/
|
||||
public void setCreateTime(Long createTime){
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,163 @@
|
||||
package com.ibeetl.jlw.service;
|
||||
|
||||
import java.io.*;
|
||||
import java.text.DateFormat;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import cn.jlw.util.ToolUtils;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ibeetl.admin.core.entity.CoreUser;
|
||||
import com.ibeetl.admin.core.util.TimeTool;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import com.ibeetl.admin.core.web.JsonReturnCode;
|
||||
import com.ibeetl.jlw.dao.TeacherOpenCourseScoreWeightDao;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseScoreWeight;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseScoreWeightQuery;
|
||||
import com.ibeetl.jlw.entity.FileEntity;
|
||||
|
||||
import com.ibeetl.admin.core.service.CoreBaseService;
|
||||
import com.ibeetl.admin.core.util.PlatformException;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.beetl.sql.core.SqlId;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 成绩权重 Service
|
||||
* 当分布式ID开启后请勿使用insert(*,true)
|
||||
*/
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class TeacherOpenCourseScoreWeightService extends CoreBaseService<TeacherOpenCourseScoreWeight>{
|
||||
|
||||
@Resource private TeacherOpenCourseScoreWeightDao teacherOpenCourseScoreWeightDao;
|
||||
|
||||
public PageQuery<TeacherOpenCourseScoreWeight>queryByCondition(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseScoreWeightDao.queryByCondition(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public PageQuery<TeacherOpenCourseScoreWeight>queryByConditionQuery(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseScoreWeightDao.queryByConditionQuery(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void deleteByList(List list){
|
||||
String ids = "";
|
||||
ToolUtils.deleteNullList(list);
|
||||
for(int i=0;null != list && i<list.size();i++){
|
||||
ids += list.get(i).toString()+(i==list.size()-1?"":",");
|
||||
}
|
||||
if(StringUtils.isNotBlank(ids)){
|
||||
teacherOpenCourseScoreWeightDao.deleteTeacherOpenCourseScoreWeightByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
public void deleteTeacherOpenCourseScoreWeight(String ids){
|
||||
try {
|
||||
teacherOpenCourseScoreWeightDao.deleteTeacherOpenCourseScoreWeightByIds(ids);
|
||||
} catch (Exception e) {
|
||||
throw new PlatformException("批量删除成绩权重失败", e);
|
||||
}
|
||||
}
|
||||
|
||||
public String addAll(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
String msg = "";
|
||||
List<TeacherOpenCourseScoreWeight> teacherOpenCourseScoreWeightList = new ArrayList<>();
|
||||
try {
|
||||
teacherOpenCourseScoreWeightList = JSON.parseArray(teacherOpenCourseScoreWeightQuery.getTeacherOpenCourseScoreWeightJsonStr(), TeacherOpenCourseScoreWeight.class);
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
teacherOpenCourseScoreWeightList.add(JSONObject.parseObject(teacherOpenCourseScoreWeightQuery.getTeacherOpenCourseScoreWeightJsonStr(), TeacherOpenCourseScoreWeight.class));
|
||||
} catch (Exception e1) {}
|
||||
}
|
||||
ToolUtils.deleteNullList(teacherOpenCourseScoreWeightList);
|
||||
if(null != teacherOpenCourseScoreWeightList && teacherOpenCourseScoreWeightList.size()>0){
|
||||
for(int i=0;i<teacherOpenCourseScoreWeightList.size();i++){
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightList.get(i);
|
||||
teacherOpenCourseScoreWeight.setUserId(teacherOpenCourseScoreWeightQuery.getUserId());
|
||||
teacherOpenCourseScoreWeight.setOrgId(teacherOpenCourseScoreWeightQuery.getOrgId());
|
||||
}
|
||||
insertBatch(teacherOpenCourseScoreWeightList);
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public JsonResult add(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightQuery.pojo();
|
||||
teacherOpenCourseScoreWeightDao.insert(teacherOpenCourseScoreWeight);
|
||||
teacherOpenCourseScoreWeightQuery.setTeacherOpenCourseId(teacherOpenCourseScoreWeight.getTeacherOpenCourseId());
|
||||
JsonResult jsonResult = new JsonResult();
|
||||
jsonResult.setData(teacherOpenCourseScoreWeight.getTeacherOpenCourseId());//自增的ID丢进去
|
||||
jsonResult.setCode(JsonReturnCode.SUCCESS.getCode());
|
||||
jsonResult.setMsg(msg);
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public String edit(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightQuery.pojo();
|
||||
teacherOpenCourseScoreWeightDao.updateTemplateById(teacherOpenCourseScoreWeight);
|
||||
return msg;
|
||||
}
|
||||
|
||||
public String updateGivenByIds(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
String msg = "";
|
||||
if(StringUtils.isNotBlank(teacherOpenCourseScoreWeightQuery.get_given())){
|
||||
boolean flag = teacherOpenCourseScoreWeightDao.updateGivenByIds(teacherOpenCourseScoreWeightQuery) > 0;
|
||||
if(!flag){
|
||||
msg = "更新指定参数失败";
|
||||
}
|
||||
}else{
|
||||
msg = "指定参数为空";
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseScoreWeight> getValues (Object paras){
|
||||
return sqlManager.select(SqlId.of("jlw.teacherOpenCourseScoreWeight.getTeacherOpenCourseScoreWeightValues"), TeacherOpenCourseScoreWeight.class, paras);
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseScoreWeight> getValuesByQuery (TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
return teacherOpenCourseScoreWeightDao.getValuesByQuery(teacherOpenCourseScoreWeightQuery);
|
||||
}
|
||||
|
||||
public TeacherOpenCourseScoreWeight getInfo (Long teacherOpenCourseId){
|
||||
TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery = new TeacherOpenCourseScoreWeightQuery();
|
||||
teacherOpenCourseScoreWeightQuery.setTeacherOpenCourseId(teacherOpenCourseId);
|
||||
List<TeacherOpenCourseScoreWeight> list = teacherOpenCourseScoreWeightDao.getValuesByQuery(teacherOpenCourseScoreWeightQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public TeacherOpenCourseScoreWeight getInfo (TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery){
|
||||
List<TeacherOpenCourseScoreWeight> list = teacherOpenCourseScoreWeightDao.getValuesByQuery(teacherOpenCourseScoreWeightQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,223 @@
|
||||
package com.ibeetl.jlw.web;
|
||||
|
||||
import cn.jlw.Interceptor.RFile;
|
||||
import cn.jlw.Interceptor.SCoreUser;
|
||||
import cn.jlw.Interceptor.GetFile;
|
||||
import cn.jlw.util.ToolUtils;
|
||||
import cn.jlw.validate.ValidateConfig;
|
||||
import com.ibeetl.admin.core.entity.CoreUser;
|
||||
import com.ibeetl.admin.core.file.FileService;
|
||||
import com.ibeetl.admin.core.util.ConvertUtil;
|
||||
import com.ibeetl.admin.core.util.PlatformException;
|
||||
import com.ibeetl.admin.core.util.TimeTool;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import com.ibeetl.admin.console.web.dto.DictExcelImportData;
|
||||
import com.ibeetl.admin.console.web.query.UserQuery;
|
||||
import com.ibeetl.admin.core.annotation.Function;
|
||||
import com.ibeetl.jlw.entity.*;
|
||||
import com.ibeetl.jlw.service.*;
|
||||
import com.ibeetl.jlw.web.query.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 成绩权重 教师-我的课程-成绩权重 接口
|
||||
* 切记不要对非线程安全的静态变量进行写操作
|
||||
*/
|
||||
|
||||
@RestController
|
||||
public class TeacherOpenCourseScoreWeightController{
|
||||
|
||||
private final Log log = LogFactory.getLog(this.getClass());
|
||||
private static final String MODEL = "/jlw/teacherOpenCourseScoreWeight";
|
||||
private static final String API = "/api/teacherOpenCourseScoreWeight";
|
||||
|
||||
|
||||
@Resource private TeacherOpenCourseScoreWeightService teacherOpenCourseScoreWeightService;
|
||||
|
||||
@Resource FileService fileService;
|
||||
|
||||
/* 前端接口 */
|
||||
|
||||
@PostMapping(API + "/getPageList.do")
|
||||
public JsonResult<PageQuery> getPageList(TeacherOpenCourseScoreWeightQuery condition,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseScoreWeightService.queryByConditionQuery(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getInfo.do")
|
||||
public JsonResult<TeacherOpenCourseScoreWeight>getInfo(TeacherOpenCourseScoreWeightQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightService.getInfo(param);
|
||||
return JsonResult.success(teacherOpenCourseScoreWeight);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getList.do")
|
||||
public JsonResult<List<TeacherOpenCourseScoreWeight>>getList(TeacherOpenCourseScoreWeightQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
List<TeacherOpenCourseScoreWeight>list = teacherOpenCourseScoreWeightService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 后台页面 */
|
||||
|
||||
@GetMapping(MODEL + "/index.do")
|
||||
@Function("teacherOpenCourseScoreWeight.query")
|
||||
public ModelAndView index() {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseScoreWeight/index.html") ;
|
||||
view.addObject("search", TeacherOpenCourseScoreWeightQuery.class.getName());
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/edit.do")
|
||||
@Function("teacherOpenCourseScoreWeight.edit")
|
||||
public ModelAndView edit(Long teacherOpenCourseId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseScoreWeight/edit.html");
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightService.queryById(teacherOpenCourseId);
|
||||
view.addObject("teacherOpenCourseScoreWeight", teacherOpenCourseScoreWeight);
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/add.do")
|
||||
@Function("teacherOpenCourseScoreWeight.add")
|
||||
public ModelAndView add(Long teacherOpenCourseId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseScoreWeight/add.html");
|
||||
if(null != teacherOpenCourseId){
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightService.queryById(teacherOpenCourseId);
|
||||
view.addObject("teacherOpenCourseScoreWeight", teacherOpenCourseScoreWeight);
|
||||
}else {
|
||||
view.addObject("teacherOpenCourseScoreWeight", new TeacherOpenCourseScoreWeight());
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
/* 后台接口 */
|
||||
|
||||
@PostMapping(MODEL + "/list.json")
|
||||
@Function("teacherOpenCourseScoreWeight.query")
|
||||
public JsonResult<PageQuery> list(TeacherOpenCourseScoreWeightQuery condition){
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseScoreWeightService.queryByCondition(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/addAll.json")
|
||||
@Function("teacherOpenCourseScoreWeight.add")
|
||||
public JsonResult addAll(TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
teacherOpenCourseScoreWeightQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseScoreWeightQuery.setOrgId(coreUser.getOrgId());
|
||||
String msg = teacherOpenCourseScoreWeightService.addAll(teacherOpenCourseScoreWeightQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("新增失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/add.json")
|
||||
@Function("teacherOpenCourseScoreWeight.add")
|
||||
public JsonResult add(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else{
|
||||
teacherOpenCourseScoreWeightQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseScoreWeightQuery.setOrgId(coreUser.getOrgId());
|
||||
return teacherOpenCourseScoreWeightService.add(teacherOpenCourseScoreWeightQuery);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/edit.json")
|
||||
@Function("teacherOpenCourseScoreWeight.edit")
|
||||
public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) TeacherOpenCourseScoreWeightQuery teacherOpenCourseScoreWeightQuery, BindingResult result) {
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else {
|
||||
teacherOpenCourseScoreWeightQuery.setUserId(null);
|
||||
teacherOpenCourseScoreWeightQuery.setOrgId(null);
|
||||
String msg = teacherOpenCourseScoreWeightService.edit(teacherOpenCourseScoreWeightQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("更新失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(MODEL + "/view.json")
|
||||
@Function("teacherOpenCourseScoreWeight.query")
|
||||
public JsonResult<TeacherOpenCourseScoreWeight>queryInfo(Long teacherOpenCourseId) {
|
||||
TeacherOpenCourseScoreWeight teacherOpenCourseScoreWeight = teacherOpenCourseScoreWeightService.queryById( teacherOpenCourseId);
|
||||
return JsonResult.success(teacherOpenCourseScoreWeight);
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/getValues.json")
|
||||
@Function("teacherOpenCourseScoreWeight.query")
|
||||
public JsonResult<List<TeacherOpenCourseScoreWeight>>getValues(TeacherOpenCourseScoreWeightQuery param) {
|
||||
List<TeacherOpenCourseScoreWeight>list = teacherOpenCourseScoreWeightService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(MODEL + "/delete.json")
|
||||
@Function("teacherOpenCourseScoreWeight.delete")
|
||||
@ResponseBody
|
||||
public JsonResult delete(String ids) {
|
||||
teacherOpenCourseScoreWeightService.deleteTeacherOpenCourseScoreWeight(ids);
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,351 @@
|
||||
package com.ibeetl.jlw.web.query;
|
||||
|
||||
import cn.jlw.validate.ValidateConfig;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseScoreWeight;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import com.ibeetl.admin.core.annotation.Query;
|
||||
import com.ibeetl.admin.core.util.Tool;
|
||||
import com.ibeetl.admin.core.util.enums.CoreDictType;
|
||||
import com.ibeetl.admin.core.web.query.PageParam;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*成绩权重查询
|
||||
*/
|
||||
public class TeacherOpenCourseScoreWeightQuery extends PageParam {
|
||||
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
||||
@Query(name = "课程id", display = false)
|
||||
private Long teacherOpenCourseId;
|
||||
@Query(name = "老师id", display = false)
|
||||
private Long teacherId;
|
||||
@Query(name = "签到成绩(权重)", display = false)
|
||||
private String signInResult;
|
||||
@Query(name = "章节联系成绩(权重)", display = false)
|
||||
private String chapterContactResult;
|
||||
@Query(name = "课程实操成绩(权重)", display = false)
|
||||
private String coursePracticeResult;
|
||||
@Query(name = "作业成绩(权重)", display = false)
|
||||
private String homeworkResult;
|
||||
@Query(name = "考试成绩(权重)", display = false)
|
||||
private String examinationResult;
|
||||
@Query(name = "互动成绩(权重)", display = false)
|
||||
private String interactionResult;
|
||||
@Query(name = "签到成绩设置1签到次数2到课到率", display = false)
|
||||
private String signInResultSetting;
|
||||
@Query(name = "签到次数_每签到一次分数", display = false)
|
||||
private String signInScore;
|
||||
@Query(name = "章节联系设置1正确率积分2平均完成度计分", display = false)
|
||||
private String chapterContactResultSetting;
|
||||
@Query(name = "课程实操成绩设置1平均分2平均完成进度", display = false)
|
||||
private String coursePracticeResultSetting;
|
||||
@Query(name = "作业成绩设置1平均分(默认1)", display = false)
|
||||
private String homeworkResultSetting;
|
||||
@Query(name = "考试成绩设置1平均分(默认1)", display = false)
|
||||
private String examinationResultSetting;
|
||||
@Query(name = "互动成绩设置1留言2提问3回答", display = false)
|
||||
private String interactionResultSetting;
|
||||
@Query(name = "互动成绩留言得分", display = false)
|
||||
private String interactionResultMessageScore;
|
||||
@Query(name = "互动成绩提问得分", display = false)
|
||||
private String interactionResultQuestionScore;
|
||||
@Query(name = "互动成绩回答得分", display = false)
|
||||
private String interactionResultAnswerScore;
|
||||
@Query(name = "成绩状态设置1二分法2等级法3字母法", display = false)
|
||||
private String resultStatusSetting;
|
||||
@Query(name = "二分法分数", display = false)
|
||||
private String dichotomyScore;
|
||||
@Query(name = "等级法优秀分数", display = false)
|
||||
private String excellentScore;
|
||||
@Query(name = "等级法良好分数", display = false)
|
||||
private String goodScore;
|
||||
@Query(name = "等级法中等分数", display = false)
|
||||
private String secondaryScore;
|
||||
@Query(name = "等级法及格分数", display = false)
|
||||
private String passScore;
|
||||
@Query(name = "字母法A分数", display = false)
|
||||
private String letteraScore;
|
||||
@Query(name = "字母法B分数", display = false)
|
||||
private String letterbScore;
|
||||
@Query(name = "字母法C分数", display = false)
|
||||
private String lettercScore;
|
||||
@Query(name = "字母法D分数", display = false)
|
||||
private String letterdScore;
|
||||
@Query(name = "组织ID", display = false)
|
||||
private Long orgId;
|
||||
@Query(name = "用户ID", display = false)
|
||||
private Long userId;
|
||||
@Query(name = "创建时间", display = false)
|
||||
private Long createTime;
|
||||
|
||||
private String teacherOpenCourseIdPlural;
|
||||
private String teacherIdPlural;
|
||||
private String orgIdPlural;
|
||||
private String userIdPlural;
|
||||
|
||||
private String teacherOpenCourseScoreWeightJsonStr;//json格式
|
||||
|
||||
private String _given;//指定更新的特定字段,多个逗号隔开
|
||||
|
||||
public Long getTeacherOpenCourseId(){
|
||||
return teacherOpenCourseId;
|
||||
}
|
||||
public void setTeacherOpenCourseId(Long teacherOpenCourseId ){
|
||||
this.teacherOpenCourseId = teacherOpenCourseId;
|
||||
}
|
||||
public Long getTeacherId(){
|
||||
return teacherId;
|
||||
}
|
||||
public void setTeacherId(Long teacherId ){
|
||||
this.teacherId = teacherId;
|
||||
}
|
||||
public String getSignInResult(){
|
||||
return signInResult;
|
||||
}
|
||||
public void setSignInResult(String signInResult ){
|
||||
this.signInResult = signInResult;
|
||||
}
|
||||
public String getChapterContactResult(){
|
||||
return chapterContactResult;
|
||||
}
|
||||
public void setChapterContactResult(String chapterContactResult ){
|
||||
this.chapterContactResult = chapterContactResult;
|
||||
}
|
||||
public String getCoursePracticeResult(){
|
||||
return coursePracticeResult;
|
||||
}
|
||||
public void setCoursePracticeResult(String coursePracticeResult ){
|
||||
this.coursePracticeResult = coursePracticeResult;
|
||||
}
|
||||
public String getHomeworkResult(){
|
||||
return homeworkResult;
|
||||
}
|
||||
public void setHomeworkResult(String homeworkResult ){
|
||||
this.homeworkResult = homeworkResult;
|
||||
}
|
||||
public String getExaminationResult(){
|
||||
return examinationResult;
|
||||
}
|
||||
public void setExaminationResult(String examinationResult ){
|
||||
this.examinationResult = examinationResult;
|
||||
}
|
||||
public String getInteractionResult(){
|
||||
return interactionResult;
|
||||
}
|
||||
public void setInteractionResult(String interactionResult ){
|
||||
this.interactionResult = interactionResult;
|
||||
}
|
||||
public String getSignInResultSetting(){
|
||||
return signInResultSetting;
|
||||
}
|
||||
public void setSignInResultSetting(String signInResultSetting ){
|
||||
this.signInResultSetting = signInResultSetting;
|
||||
}
|
||||
public String getSignInScore(){
|
||||
return signInScore;
|
||||
}
|
||||
public void setSignInScore(String signInScore ){
|
||||
this.signInScore = signInScore;
|
||||
}
|
||||
public String getChapterContactResultSetting(){
|
||||
return chapterContactResultSetting;
|
||||
}
|
||||
public void setChapterContactResultSetting(String chapterContactResultSetting ){
|
||||
this.chapterContactResultSetting = chapterContactResultSetting;
|
||||
}
|
||||
public String getCoursePracticeResultSetting(){
|
||||
return coursePracticeResultSetting;
|
||||
}
|
||||
public void setCoursePracticeResultSetting(String coursePracticeResultSetting ){
|
||||
this.coursePracticeResultSetting = coursePracticeResultSetting;
|
||||
}
|
||||
public String getHomeworkResultSetting(){
|
||||
return homeworkResultSetting;
|
||||
}
|
||||
public void setHomeworkResultSetting(String homeworkResultSetting ){
|
||||
this.homeworkResultSetting = homeworkResultSetting;
|
||||
}
|
||||
public String getExaminationResultSetting(){
|
||||
return examinationResultSetting;
|
||||
}
|
||||
public void setExaminationResultSetting(String examinationResultSetting ){
|
||||
this.examinationResultSetting = examinationResultSetting;
|
||||
}
|
||||
public String getInteractionResultSetting(){
|
||||
return interactionResultSetting;
|
||||
}
|
||||
public void setInteractionResultSetting(String interactionResultSetting ){
|
||||
this.interactionResultSetting = interactionResultSetting;
|
||||
}
|
||||
public String getInteractionResultMessageScore(){
|
||||
return interactionResultMessageScore;
|
||||
}
|
||||
public void setInteractionResultMessageScore(String interactionResultMessageScore ){
|
||||
this.interactionResultMessageScore = interactionResultMessageScore;
|
||||
}
|
||||
public String getInteractionResultQuestionScore(){
|
||||
return interactionResultQuestionScore;
|
||||
}
|
||||
public void setInteractionResultQuestionScore(String interactionResultQuestionScore ){
|
||||
this.interactionResultQuestionScore = interactionResultQuestionScore;
|
||||
}
|
||||
public String getInteractionResultAnswerScore(){
|
||||
return interactionResultAnswerScore;
|
||||
}
|
||||
public void setInteractionResultAnswerScore(String interactionResultAnswerScore ){
|
||||
this.interactionResultAnswerScore = interactionResultAnswerScore;
|
||||
}
|
||||
public String getResultStatusSetting(){
|
||||
return resultStatusSetting;
|
||||
}
|
||||
public void setResultStatusSetting(String resultStatusSetting ){
|
||||
this.resultStatusSetting = resultStatusSetting;
|
||||
}
|
||||
public String getDichotomyScore(){
|
||||
return dichotomyScore;
|
||||
}
|
||||
public void setDichotomyScore(String dichotomyScore ){
|
||||
this.dichotomyScore = dichotomyScore;
|
||||
}
|
||||
public String getExcellentScore(){
|
||||
return excellentScore;
|
||||
}
|
||||
public void setExcellentScore(String excellentScore ){
|
||||
this.excellentScore = excellentScore;
|
||||
}
|
||||
public String getGoodScore(){
|
||||
return goodScore;
|
||||
}
|
||||
public void setGoodScore(String goodScore ){
|
||||
this.goodScore = goodScore;
|
||||
}
|
||||
public String getSecondaryScore(){
|
||||
return secondaryScore;
|
||||
}
|
||||
public void setSecondaryScore(String secondaryScore ){
|
||||
this.secondaryScore = secondaryScore;
|
||||
}
|
||||
public String getPassScore(){
|
||||
return passScore;
|
||||
}
|
||||
public void setPassScore(String passScore ){
|
||||
this.passScore = passScore;
|
||||
}
|
||||
public String getLetteraScore(){
|
||||
return letteraScore;
|
||||
}
|
||||
public void setLetteraScore(String letteraScore ){
|
||||
this.letteraScore = letteraScore;
|
||||
}
|
||||
public String getLetterbScore(){
|
||||
return letterbScore;
|
||||
}
|
||||
public void setLetterbScore(String letterbScore ){
|
||||
this.letterbScore = letterbScore;
|
||||
}
|
||||
public String getLettercScore(){
|
||||
return lettercScore;
|
||||
}
|
||||
public void setLettercScore(String lettercScore ){
|
||||
this.lettercScore = lettercScore;
|
||||
}
|
||||
public String getLetterdScore(){
|
||||
return letterdScore;
|
||||
}
|
||||
public void setLetterdScore(String letterdScore ){
|
||||
this.letterdScore = letterdScore;
|
||||
}
|
||||
public Long getOrgId(){
|
||||
return orgId;
|
||||
}
|
||||
public void setOrgId(Long orgId ){
|
||||
this.orgId = orgId;
|
||||
}
|
||||
public Long getUserId(){
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(Long userId ){
|
||||
this.userId = userId;
|
||||
}
|
||||
public Long getCreateTime(){
|
||||
return createTime;
|
||||
}
|
||||
public void setCreateTime(Long createTime ){
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public TeacherOpenCourseScoreWeight pojo(){
|
||||
TeacherOpenCourseScoreWeight pojo = new TeacherOpenCourseScoreWeight();
|
||||
pojo.setTeacherOpenCourseId(this.getTeacherOpenCourseId());
|
||||
pojo.setTeacherId(this.getTeacherId());
|
||||
pojo.setSignInResult(this.getSignInResult());
|
||||
pojo.setChapterContactResult(this.getChapterContactResult());
|
||||
pojo.setCoursePracticeResult(this.getCoursePracticeResult());
|
||||
pojo.setHomeworkResult(this.getHomeworkResult());
|
||||
pojo.setExaminationResult(this.getExaminationResult());
|
||||
pojo.setInteractionResult(this.getInteractionResult());
|
||||
pojo.setSignInResultSetting(this.getSignInResultSetting());
|
||||
pojo.setSignInScore(this.getSignInScore());
|
||||
pojo.setChapterContactResultSetting(this.getChapterContactResultSetting());
|
||||
pojo.setCoursePracticeResultSetting(this.getCoursePracticeResultSetting());
|
||||
pojo.setHomeworkResultSetting(this.getHomeworkResultSetting());
|
||||
pojo.setExaminationResultSetting(this.getExaminationResultSetting());
|
||||
pojo.setInteractionResultSetting(this.getInteractionResultSetting());
|
||||
pojo.setInteractionResultMessageScore(this.getInteractionResultMessageScore());
|
||||
pojo.setInteractionResultQuestionScore(this.getInteractionResultQuestionScore());
|
||||
pojo.setInteractionResultAnswerScore(this.getInteractionResultAnswerScore());
|
||||
pojo.setResultStatusSetting(this.getResultStatusSetting());
|
||||
pojo.setDichotomyScore(this.getDichotomyScore());
|
||||
pojo.setExcellentScore(this.getExcellentScore());
|
||||
pojo.setGoodScore(this.getGoodScore());
|
||||
pojo.setSecondaryScore(this.getSecondaryScore());
|
||||
pojo.setPassScore(this.getPassScore());
|
||||
pojo.setLetteraScore(this.getLetteraScore());
|
||||
pojo.setLetterbScore(this.getLetterbScore());
|
||||
pojo.setLettercScore(this.getLettercScore());
|
||||
pojo.setLetterdScore(this.getLetterdScore());
|
||||
pojo.setOrgId(this.getOrgId());
|
||||
pojo.setUserId(this.getUserId());
|
||||
pojo.setCreateTime(this.getCreateTime());
|
||||
return pojo;
|
||||
}
|
||||
|
||||
public String getTeacherOpenCourseIdPlural(){
|
||||
return teacherOpenCourseIdPlural;
|
||||
}
|
||||
public void setTeacherOpenCourseIdPlural(String teacherOpenCourseIdPlural){
|
||||
this.teacherOpenCourseIdPlural = teacherOpenCourseIdPlural;
|
||||
}
|
||||
public String getTeacherIdPlural(){
|
||||
return teacherIdPlural;
|
||||
}
|
||||
public void setTeacherIdPlural(String teacherIdPlural){
|
||||
this.teacherIdPlural = teacherIdPlural;
|
||||
}
|
||||
public String getOrgIdPlural(){
|
||||
return orgIdPlural;
|
||||
}
|
||||
public void setOrgIdPlural(String orgIdPlural){
|
||||
this.orgIdPlural = orgIdPlural;
|
||||
}
|
||||
public String getUserIdPlural(){
|
||||
return userIdPlural;
|
||||
}
|
||||
public void setUserIdPlural(String userIdPlural){
|
||||
this.userIdPlural = userIdPlural;
|
||||
}
|
||||
public String getTeacherOpenCourseScoreWeightJsonStr(){
|
||||
return teacherOpenCourseScoreWeightJsonStr;
|
||||
}
|
||||
public void setTeacherOpenCourseScoreWeightJsonStr(String teacherOpenCourseScoreWeightJsonStr ){
|
||||
this.teacherOpenCourseScoreWeightJsonStr = teacherOpenCourseScoreWeightJsonStr;
|
||||
}
|
||||
public String get_given() {
|
||||
return _given;
|
||||
}
|
||||
public void set_given(String _given) {
|
||||
this._given = _given;
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseScoreWeightApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseScoreWeightApi = layui.teacherOpenCourseScoreWeightApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#addForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#addButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
var teacherOpenCourseId = $("#addForm input[name='teacherOpenCourseId']").val();
|
||||
if(!$.isEmpty(teacherOpenCourseId)){
|
||||
teacherOpenCourseScoreWeightApi.updateTeacherOpenCourseScoreWeight($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}else{
|
||||
teacherOpenCourseScoreWeightApi.addTeacherOpenCourseScoreWeight($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("添加成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$("#addButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('add',view);
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
layui.define(['table', 'teacherOpenCourseScoreWeightApi'], function(exports) {
|
||||
var teacherOpenCourseScoreWeightApi = layui.teacherOpenCourseScoreWeightApi;
|
||||
var table=layui.table;
|
||||
var view = {
|
||||
init:function(){
|
||||
},
|
||||
delBatch:function(){
|
||||
var data = Common.getMoreDataFromTable(table,"teacherOpenCourseScoreWeightTable");
|
||||
if(data==null){
|
||||
return ;
|
||||
}
|
||||
Common.openConfirm("确认要删除这些成绩权重?",function(){
|
||||
var ids =Common.concatBatchId(data,"teacherOpenCourseId");
|
||||
teacherOpenCourseScoreWeightApi.del(ids,function(){
|
||||
Common.info("删除成功");
|
||||
dataReload();
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
exports('del',view);
|
||||
|
||||
});
|
@ -0,0 +1,28 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseScoreWeightApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseScoreWeightApi = layui.teacherOpenCourseScoreWeightApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#updateForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#updateButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
teacherOpenCourseScoreWeightApi.updateTeacherOpenCourseScoreWeight($('#updateForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
});
|
||||
});
|
||||
$("#updateButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('edit',view);
|
||||
|
||||
});
|
@ -0,0 +1,18 @@
|
||||
/*访问后台的代码*/
|
||||
layui.define([], function(exports) {
|
||||
var api={
|
||||
updateTeacherOpenCourseScoreWeight:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseScoreWeight/edit.json",form,{},callback)
|
||||
},
|
||||
addTeacherOpenCourseScoreWeight:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseScoreWeight/add.json",form,{},callback)
|
||||
},
|
||||
del:function(ids,callback){
|
||||
Common.post("/jlw/teacherOpenCourseScoreWeight/delete.json",{"ids":ids},function(){
|
||||
callback();
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
exports('teacherOpenCourseScoreWeightApi',api);
|
||||
});
|
@ -0,0 +1,29 @@
|
||||
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/teacherOpenCourseScoreWeight/"}){ -->
|
||||
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
|
||||
</layui:searchForm>
|
||||
<table id="teacherOpenCourseScoreWeightTable" lay-filter="teacherOpenCourseScoreWeightTable"></table>
|
||||
<!--#} -->
|
||||
|
||||
<script type="text/html" id="toolbar_teacherOpenCourseScoreWeight">
|
||||
<div class="layui-btn-container">
|
||||
<div class="layui-btn-group" >
|
||||
<!--# if(core.searchIsShow(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseScoreWeight.query" id="searchFormSearch" action="search"><i class="layui-icon"></i>搜索</layui:accessButton>
|
||||
<!--# }-->
|
||||
<layui:accessButton function="teacherOpenCourseScoreWeight.add" action="add">添加</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseScoreWeight.edit" action="edit">修改</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseScoreWeight.del" action="del">删除</layui:accessButton>
|
||||
<!--# if(!isEmpty(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseScoreWeight.query" action="refresh"><i class="layui-icon"></i>刷新</layui:accessButton>
|
||||
<!--# }-->
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
layui.use(['index'], function(){
|
||||
var index = layui.index;
|
||||
index.init();
|
||||
});
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue