更新
This commit is contained in:
parent
1299cc1872
commit
777e07a5b0
@ -95,6 +95,9 @@ public class HitCompetitionStudentInfo implements Serializable {
|
|||||||
@ApiModelProperty(value = "个人选拔赛分数")
|
@ApiModelProperty(value = "个人选拔赛分数")
|
||||||
private BigDecimal trialsScore;
|
private BigDecimal trialsScore;
|
||||||
|
|
||||||
|
@Excel(name = "赛道",readConverterExp = "1=常规赛道,2=产业赛道,3=国际赛道")
|
||||||
|
private Integer racetrack;
|
||||||
|
|
||||||
// @Excel(name = "是否被选为参加地区选拔赛人员", readConverterExp = "false=待审核,true=已入选",type = EXPORT)
|
// @Excel(name = "是否被选为参加地区选拔赛人员", readConverterExp = "false=待审核,true=已入选",type = EXPORT)
|
||||||
@ApiModelProperty(value = "是否被选为参加初赛人员 (0: 否, 1: 是)")
|
@ApiModelProperty(value = "是否被选为参加初赛人员 (0: 否, 1: 是)")
|
||||||
private Boolean isPreliminary;
|
private Boolean isPreliminary;
|
||||||
@ -160,4 +163,7 @@ public class HitCompetitionStudentInfo implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Boolean isUpdateTeam;
|
private Boolean isUpdateTeam;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String racetrackStr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,12 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://61.156.90.46:3360/hgd_website?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true
|
# url: jdbc:mysql://61.156.90.46:3360/hgd_website?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true
|
||||||
# url: jdbc:mysql://localhost:3306/hgd_website?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true
|
url: jdbc:mysql://fn.xuyuncong.fun:3360/hgd_website?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true
|
||||||
username: obrhgd
|
# username: obrhgd
|
||||||
# username: root
|
username: hgd_website
|
||||||
password: Obr7890&*()
|
# password: Obr7890&*()
|
||||||
# password: 123456
|
password: ZSERXa7zHGGfmmBT
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
@ -34,19 +34,30 @@
|
|||||||
|
|
||||||
<select id="selectHitCompetitionStudentInfoList" parameterType="HitCompetitionStudentInfo"
|
<select id="selectHitCompetitionStudentInfoList" parameterType="HitCompetitionStudentInfo"
|
||||||
resultType="com.ruoyi.cms.domain.HitCompetitionStudentInfo">
|
resultType="com.ruoyi.cms.domain.HitCompetitionStudentInfo">
|
||||||
select * from hit_competition_student_info
|
select *,
|
||||||
|
CASE
|
||||||
|
WHEN racetrack = '1' THEN '常规赛道'
|
||||||
|
WHEN racetrack = '2' THEN '产业赛道'
|
||||||
|
WHEN racetrack = '3' THEN '国际赛道'
|
||||||
|
ELSE ''
|
||||||
|
END racetrackStr
|
||||||
|
from hit_competition_student_info
|
||||||
<where>
|
<where>
|
||||||
<if test="hitRegId != null and hitRegId != ''">and hit_reg_id = #{hitRegId}</if>
|
<if test="hitRegId != null and hitRegId != ''">and hit_reg_id = #{hitRegId}</if>
|
||||||
<if test="stuName != null and stuName != ''">and stu_name like concat('%', #{stuName}, '%')</if>
|
<if test="stuName != null and stuName != ''">and stu_name like concat('%', #{stuName}, '%')</if>
|
||||||
<if test="schoolName != null and schoolName != ''">and school_name = #{schoolName}</if>
|
<if test="schoolName != null and schoolName != ''">and school_name = #{schoolName}</if>
|
||||||
<if test="collegeName != null and collegeName != ''"> and college_name like concat('%', #{collegeName}, '%')</if>
|
<if test="collegeName != null and collegeName != ''">and college_name like concat('%', #{collegeName},
|
||||||
<if test="schoolName != null and schoolName != ''"> and school_name like concat('%', #{schoolName}, '%')</if>
|
'%')
|
||||||
|
</if>
|
||||||
|
<if test="schoolName != null and schoolName != ''">and school_name like concat('%', #{schoolName}, '%')
|
||||||
|
</if>
|
||||||
<if test="major != null and major != ''">and major = #{major}</if>
|
<if test="major != null and major != ''">and major = #{major}</if>
|
||||||
<if test="division != null and division != ''">and division = #{division}</if>
|
<if test="division != null and division != ''">and division = #{division}</if>
|
||||||
<if test="phoneNumber != null and phoneNumber != ''">and phone_number = #{phoneNumber}</if>
|
<if test="phoneNumber != null and phoneNumber != ''">and phone_number = #{phoneNumber}</if>
|
||||||
<if test="email != null and email != ''">and email = #{email}</if>
|
<if test="email != null and email != ''">and email = #{email}</if>
|
||||||
<if test="studentIdCard != null and studentIdCard != ''">and student_id_card = #{studentIdCard}</if>
|
<if test="studentIdCard != null and studentIdCard != ''">and student_id_card = #{studentIdCard}</if>
|
||||||
<if test="trialsScore != null ">and trials_score = #{trialsScore}</if>
|
<if test="trialsScore != null ">and trials_score = #{trialsScore}</if>
|
||||||
|
<if test="racetrack != null ">and racetrack = #{racetrack}</if>
|
||||||
<if test="isPreliminary != null ">and is_preliminary = #{isPreliminary}</if>
|
<if test="isPreliminary != null ">and is_preliminary = #{isPreliminary}</if>
|
||||||
<if test="year != null ">and create_time like concat(#{year},'%')</if>
|
<if test="year != null ">and create_time like concat(#{year},'%')</if>
|
||||||
</where>
|
</where>
|
||||||
@ -85,6 +96,7 @@
|
|||||||
<if test="studentIdCard != null">student_id_card,</if>
|
<if test="studentIdCard != null">student_id_card,</if>
|
||||||
<if test="trialsScore != null">trials_score,</if>
|
<if test="trialsScore != null">trials_score,</if>
|
||||||
<if test="isPreliminary != null">is_preliminary,</if>
|
<if test="isPreliminary != null">is_preliminary,</if>
|
||||||
|
<if test="racetrack != null">racetrack,</if>
|
||||||
<if test="remark != null">remark,</if>
|
<if test="remark != null">remark,</if>
|
||||||
<if test="sex != null">sex,</if>
|
<if test="sex != null">sex,</if>
|
||||||
<if test="delFlag != null">del_flag,</if>
|
<if test="delFlag != null">del_flag,</if>
|
||||||
@ -107,6 +119,7 @@
|
|||||||
<if test="studentIdCard != null">#{studentIdCard},</if>
|
<if test="studentIdCard != null">#{studentIdCard},</if>
|
||||||
<if test="trialsScore != null">#{trialsScore},</if>
|
<if test="trialsScore != null">#{trialsScore},</if>
|
||||||
<if test="isPreliminary != null">#{isPreliminary},</if>
|
<if test="isPreliminary != null">#{isPreliminary},</if>
|
||||||
|
<if test="racetrack != null">#{racetrack},</if>
|
||||||
<if test="remark != null">#{remark},</if>
|
<if test="remark != null">#{remark},</if>
|
||||||
<if test="sex != null">#{sex},</if>
|
<if test="sex != null">#{sex},</if>
|
||||||
<if test="delFlag != null">#{delFlag},</if>
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 13 KiB |
BIN
ruoyi-ui/src/assets/images/cha_kan_geng_duo1.png
Normal file
BIN
ruoyi-ui/src/assets/images/cha_kan_geng_duo1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -30,6 +30,16 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="赛道" prop="year">
|
||||||
|
<el-select v-model="queryParams.racetrack" placeholder="请选择" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in racetrack"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
@ -79,6 +89,7 @@
|
|||||||
<el-table-column label="所属赛区" align="center" prop="division" />
|
<el-table-column label="所属赛区" align="center" prop="division" />
|
||||||
<el-table-column label="手机号" align="center" prop="phoneNumber" />
|
<el-table-column label="手机号" align="center" prop="phoneNumber" />
|
||||||
<el-table-column label="邮箱" align="center" prop="email" />
|
<el-table-column label="邮箱" align="center" prop="email" />
|
||||||
|
<el-table-column label="赛道" align="center" prop="racetrackStr" />
|
||||||
<el-table-column label="学生证" align="center" prop="studentIdCard">
|
<el-table-column label="学生证" align="center" prop="studentIdCard">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<image-preview :src="scope.row.studentIdCard" :width="50" :height="50" />
|
<image-preview :src="scope.row.studentIdCard" :width="50" :height="50" />
|
||||||
@ -228,6 +239,20 @@ export default {
|
|||||||
ids: [],
|
ids: [],
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
single: true,
|
single: true,
|
||||||
|
racetrack: [
|
||||||
|
{
|
||||||
|
label: '常规赛道',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '产业赛道',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '国际赛道',
|
||||||
|
value: 3
|
||||||
|
},
|
||||||
|
],
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
multiple: true,
|
multiple: true,
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
@ -316,6 +341,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
// 获取路由中的参数
|
||||||
|
// console.log('路由参数',this.$route.query)
|
||||||
|
// this.queryParams.racetrack = this.$route.query.type
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -79,6 +79,16 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="赛道" prop="racetrack">
|
||||||
|
<el-select v-model="signUpForm.racetrack" filterable allow-create default-first-option
|
||||||
|
placeholder="请选择学校名称"
|
||||||
|
>
|
||||||
|
<el-option v-for="item in racetrack" :key="item.value" :label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="院系名称" prop="collegeName">
|
<el-form-item label="院系名称" prop="collegeName">
|
||||||
<el-input v-model="signUpForm.collegeName"></el-input>
|
<el-input v-model="signUpForm.collegeName"></el-input>
|
||||||
@ -530,6 +540,20 @@ export default {
|
|||||||
imgurl: process.env.VUE_APP_BASE_API,
|
imgurl: process.env.VUE_APP_BASE_API,
|
||||||
//修改学生信息
|
//修改学生信息
|
||||||
studentForm: {},
|
studentForm: {},
|
||||||
|
racetrack: [
|
||||||
|
{
|
||||||
|
label: '常规赛道',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '产业赛道',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '国际赛道',
|
||||||
|
value: 3
|
||||||
|
},
|
||||||
|
],
|
||||||
//修改团队信息
|
//修改团队信息
|
||||||
teamForm: {
|
teamForm: {
|
||||||
competition: []
|
competition: []
|
||||||
@ -601,6 +625,9 @@ export default {
|
|||||||
],
|
],
|
||||||
competition: [
|
competition: [
|
||||||
{required: true, message: '赛事不能为空', trigger: 'blur'}
|
{required: true, message: '赛事不能为空', trigger: 'blur'}
|
||||||
|
],
|
||||||
|
racetrack: [
|
||||||
|
{required: true, message: '赛道不能为空', trigger: 'blur'}
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user