笔试名单导入导出功能完成

This commit is contained in:
mumu
2020-08-23 23:56:21 +08:00
parent 477f6e71bd
commit 184b0fe675
8 changed files with 236 additions and 85 deletions

View File

@ -3,9 +3,11 @@ package com.ruoyi.jxjs.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.enums.BusinessType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;
/**
@ -21,13 +23,7 @@ public class TsbzJdcx extends BaseEntity
/** 编号 */
private Long id;
/** 方案编号 */
// @Excel(name = "方案编号")
private Long faid;
/** 教师编号 */
// @Excel(name = "教师编号")
private Long jsid;
@ -51,9 +47,7 @@ public class TsbzJdcx extends BaseEntity
// @Excel(name = "区级审核人")
private Long qjshr;
/** 区级审核状态 */
// @Excel(name = "区级审核状态")
private String qjshzt;
/** 区级审核意见 */
// @Excel(name = "区级审核意见")
@ -63,21 +57,7 @@ public class TsbzJdcx extends BaseEntity
// @Excel(name = "基地排序")
private Long jdpx;
/** 案例分析得分 */
// @Excel(name = "案例分析得分")
private BigDecimal alfxdf;
/** 教案设计得分 */
// @Excel(name = "教案设计得分")
private BigDecimal jasjdf;
/** 钢笔字得分 */
// @Excel(name = "钢笔字得分")
private BigDecimal gbzdf;
/** 综合得分 */
// @Excel(name = "综合得分")
private BigDecimal zhdf;
/** 成绩导入创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ -96,39 +76,63 @@ public class TsbzJdcx extends BaseEntity
/** 面试结果模拟课堂教学 */
// @Excel(name = "面试结果模拟课堂教学")
private BigDecimal msjgmnktjxdf;
/** 演讲得分 */
// @Excel(name = "演讲得分")
private BigDecimal yjdf;
/** 综合得分2 */
// @Excel(name = "综合得分2")
private BigDecimal zhdf2;
/**
* 录取状态
*/
/** 录取状态 */
private String lqzt;
@Excel(name = "评选名称")
private String faname;
@Excel(name = "基地校")
private String jdxmc;
@Excel(name = "姓名")
private String jsname;
@Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
private String xb;
@Excel(name = "学段", readConverterExp = "1=学前教育,2=小学,3=普通初中,4=普通高中")
private String rjxd;
@Excel(name = "学科", readConverterExp = "11=品德与生活(社会) ,12=思想品德(政治) ,13=语文 ,14=数学 ,15=科学 ,16=物理 ,17=化学 ,18=生物 ,19=历史与社会 ,20=地理 ,21=历史 ,22=体育与健康 ,23=艺术 ,24=音乐 ,25=美术 ,41=英语")
private String rjxk;
@Excel(name = "联系方式")
private String phone;
@Excel(name = "聘任校")
private String prdwmc;
/** 当前状态 */
@Excel(name = "当前状态")
// @Excel(name = "当前状态")
private String dqzt;
/** 方案编号 */
// @Excel(name = "方案编号", type = Type.IMPORT)
private Long faid;
@Excel(name = "方案名称", type = Type.EXPORT)
private String faname;
/** 教师编号 */
@Excel(name = "教师编号", type = Type.IMPORT)
private Long jsid;
@Excel(name = "基地校", type = Type.EXPORT)
private String jdxmc;
@Excel(name = "教师姓名")
private String jsname;
@Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知", type = Type.EXPORT)
private String xb;
@Excel(name = "学段", readConverterExp = "1=学前教育,2=小学,3=普通初中,4=普通高中", type = Type.EXPORT)
private String rjxd;
@Excel(name = "学科", readConverterExp = "11=品德与生活(社会) ,12=思想品德(政治) ,13=语文 ,14=数学 ,15=科学 ,16=物理 ,17=化学 ,18=生物 ,19=历史与社会 ,20=地理 ,21=历史 ,22=体育与健康 ,23=艺术 ,24=音乐 ,25=美术 ,41=英语", type = Type.EXPORT)
private String rjxk;
@Excel(name = "联系方式", type = Type.EXPORT)
private String phone;
@Excel(name = "聘任校", type = Type.EXPORT)
private String prdwmc;
/** 区级审核状态 */
@Excel(name = "评审状态", type = Type.EXPORT)
private String qjshzt;
/** 案例分析得分 */
@Excel(name = "案例分析得分", type = Type.IMPORT)
private BigDecimal alfxdf;
/** 教案设计得分 */
@Excel(name = "教案设计得分", type = Type.IMPORT)
private BigDecimal jasjdf;
/** 钢笔字得分 */
@Excel(name = "钢笔字得分", type = Type.IMPORT)
private BigDecimal gbzdf;
/** 综合得分 */
@Excel(name = "综合得分", type = Type.IMPORT)
private BigDecimal zhdf;
/** 演讲得分 */
@Excel(name = "演讲得分", type = Type.IMPORT)
private BigDecimal yjdf;
/** 综合得分2 */
@Excel(name = "综合得分2", type = Type.IMPORT)
private BigDecimal zhdf2;
public String getFaname() { return faname; }
public void setFaname(String faname) { this.faname = faname;}

View File

@ -65,4 +65,11 @@ public interface TsbzJdcxMapper
* @return 基地区级审核集合
*/
public List<TsbzJdcx> selectTsbzJdcxExport(TsbzJdcx tsbzJdcx);
/**
* 成绩导入
*
* @param tsbzJdcx 基地区级审核
* @return 结果
*/
public int updateTsbzJdcxforjsfa(TsbzJdcx tsbzJdcx);
}

View File

@ -66,4 +66,11 @@ public interface ITsbzJdcxService
* @return 基地区级审核集合
*/
public List<TsbzJdcx> selectTsbzJdcxExport(TsbzJdcx tsbzJdcx);
/**
* 成绩导入
*
* @param tsbzJdcx 基地区级审核
* @return 结果
*/
public int updateTsbzJdcxforjsfa(TsbzJdcx tsbzJdcx);
}

View File

@ -104,5 +104,16 @@ public class TsbzJdcxServiceImpl implements ITsbzJdcxService
{
return tsbzJdcxMapper.selectTsbzJdcxExport(tsbzJdcx);
}
/**
* 成绩导入
*
* @param tsbzJdcx 基地区级审核
* @return 结果
*/
@Override
public int updateTsbzJdcxforjsfa(TsbzJdcx tsbzJdcx)
{
return tsbzJdcxMapper.updateTsbzJdcxforjsfa(tsbzJdcx);
}
}

View File

@ -189,5 +189,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="zhdf2 != null "> and a.zhdf2 = #{zhdf2}</if>
</where>
</select>
<update id="updateTsbzJdcxforjsfa" parameterType="TsbzJdcx">
update tsbz_jdcx
<trim prefix="SET" suffixOverrides=",">
<if test="faid != null">faid = #{faid},</if>
<if test="jsid != null">jsid = #{jsid},</if>
<if test="dqzt != null">dqzt = #{dqzt},</if>
<if test="createuserid != null">createuserid = #{createuserid},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="jdxshr != null">jdxshr = #{jdxshr},</if>
<if test="jdxshzt != null">jdxshzt = #{jdxshzt},</if>
<if test="sbly != null">sbly = #{sbly},</if>
<if test="qjshr != null">qjshr = #{qjshr},</if>
<if test="qjshzt != null">qjshzt = #{qjshzt},</if>
<if test="qjshyj != null">qjshyj = #{qjshyj},</if>
<if test="jdpx != null">jdpx = #{jdpx},</if>
<if test="alfxdf != null">alfxdf = #{alfxdf},</if>
<if test="jasjdf != null">jasjdf = #{jasjdf},</if>
<if test="gbzdf != null">gbzdf = #{gbzdf},</if>
<if test="zhdf != null">zhdf = #{zhdf},</if>
<if test="cjdrcreateTime != null">cjdrcreate_time = #{cjdrcreateTime},</if>
<if test="msqr != null">msqr = #{msqr},</if>
<if test="msqrcreateTime != null">msqrcreate_time = #{msqrcreateTime},</if>
<if test="msjgmnktjxdf != null">msjgmnktjxdf = #{msjgmnktjxdf},</if>
<if test="yjdf != null">yjdf = #{yjdf},</if>
<if test="zhdf2 != null">zhdf2 = #{zhdf2},</if>
<if test="lqzt != null">lqzt = #{lqzt},</if>
</trim>
where faid = #{faid} and jsid = #{jsid}
</update>
</mapper>