个人画像大屏修改
This commit is contained in:
@@ -245,17 +245,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
left join cph_rules as b on a.rule_id = b.rule_id
|
||||
where stu_no = #{stuNo} and stu_year_id = #{stuYearId};
|
||||
</select>
|
||||
<select id="getcphiamByOne" resultType="com.srs.comprehensive.domain.CphAuditDetails" parameterType="String">
|
||||
select c.rule_name as rule_name, g.stu_year_name as stu_year_name,a.iam_score as operate_score
|
||||
from cph_iam as a
|
||||
left join srs_student as b on a.to_add = b.stu_id
|
||||
left join cph_rules as c on a.rule_id = c.rule_id
|
||||
left join srs_class as d on b.class_id = d.class_id
|
||||
left join srs_majors as e on d.major_id = e.major_id
|
||||
left join sys_dept as f on e.college_id = f.dept_id
|
||||
left join srs_stu_year as g on a.stu_year_id = g.id
|
||||
left join cph_audit_details as h on a.id = h.project_id
|
||||
where b.stu_no = #{stuNo} and audit_status=6
|
||||
ORDER BY a.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.comprehensive.mapper.SrsCqScoreMapper">
|
||||
|
||||
|
||||
<resultMap type="SrsCqScore" id="SrsCqScoreResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="stuNo" column="stu_no"/>
|
||||
@@ -37,7 +37,7 @@
|
||||
m.major_name,
|
||||
c.class_name,
|
||||
stu_year_name
|
||||
|
||||
|
||||
from srs_cq_score cq
|
||||
left join srs_student s
|
||||
on s.stu_no = cq.stu_no
|
||||
@@ -46,7 +46,7 @@
|
||||
left JOIN srs_majors m ON c.major_id = m.major_id
|
||||
left JOIN sys_dept d ON m.college_id = d.dept_id
|
||||
left JOIN srs_stu_year sy ON cq.stu_year_id = sy.id
|
||||
|
||||
|
||||
</sql>
|
||||
<select id="getComprehensiveSummary" parameterType="int" statementType="CALLABLE" resultType="java.util.Map">
|
||||
{CALL test2(#{id, mode=IN})}
|
||||
@@ -82,8 +82,32 @@
|
||||
) as t1
|
||||
where t1.stu_no = #{stuNo}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getOwn2" resultType="com.srs.comprehensive.domain.Vo.CphOwnScore">
|
||||
select t1.stu_year_id,t1.stu_year_name,t1.total_score,t1.iam_score,t1.sport_score,
|
||||
t1.ce_score,t1.stu_score,t1.classtwo_score,t1.class_rank,t1.major_rank
|
||||
from (
|
||||
select a.stu_year_id,b.stu_year_name,
|
||||
a.cph_score as total_score,
|
||||
a.iam_score as iam_score,
|
||||
a.sport_score as sport_score,
|
||||
a.ce_score as ce_score,
|
||||
a.stu_score as stu_score,
|
||||
a.classtwo_score as classtwo_score,
|
||||
a.stu_no,
|
||||
RANK() OVER(PARTITION BY a.class_id,a.stu_year_id,c.grade_id ORDER BY a.cph_score DESC ) as class_rank,
|
||||
RANK() OVER(PARTITION BY a.major_id,a.stu_year_id,c.grade_id ORDER BY a.cph_score DESC ) as major_rank
|
||||
from cph_total_score as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_class as c on a.class_code = c.class_code
|
||||
left join srs_student as e on a.stu_no = e.stu_no
|
||||
left join srs_majors as d on c.major_id = d.major_id
|
||||
ORDER BY a.stu_year_id,a.stu_no
|
||||
) as t1
|
||||
where t1.stu_no = #{stuNo} order by stu_year_name desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectSrsCqScoreList" parameterType="CphSearch" resultMap="SrsCqScoreResult">
|
||||
<include refid="selectSrsCqScoreVo"/>
|
||||
<where>
|
||||
@@ -145,7 +169,7 @@
|
||||
select '分数<60' as `name`, count(*) as`value` from cph_total_score as a
|
||||
where a.cph_score < 60 and a.stu_year_id = #{stuYearId}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectSrsCqScoreById" parameterType="Long" resultMap="SrsCqScoreResult">
|
||||
<include refid="selectSrsCqScoreVo"/>
|
||||
where cq.id = #{id}
|
||||
@@ -355,9 +379,6 @@
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<insert id="insertSrsCqScore" parameterType="SrsCqScore">
|
||||
insert into srs_cq_score
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -383,7 +404,7 @@
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updateSrsCqScore" parameterType="SrsCqScore">
|
||||
update srs_cq_score
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
@@ -398,20 +419,20 @@
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
|
||||
<delete id="deleteSrsCqScoreById" parameterType="Long">
|
||||
delete
|
||||
from srs_cq_score
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteSrsCqScoreByIds" parameterType="String">
|
||||
delete from srs_cq_score where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
<select id="getScoreDistribution" resultType="java.util.Map">
|
||||
select s.stu_id, s.stu_no, s.name, s.class_id,
|
||||
COALESCE(ts.score, 0) + COALESCE(ci.score, 0) + COALESCE(st.score, 0) + COALESCE(cs.score, 0) +
|
||||
@@ -470,7 +491,7 @@
|
||||
<if test="majorId != null">and sm.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectPerson"
|
||||
resultType="com.srs.comprehensive.domain.Vo.SrsCeScoreClassDeptGradeMajorsStudentStuYear">
|
||||
SELECT
|
||||
@@ -539,5 +560,21 @@
|
||||
AND stu_year_id=#{stuYearId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
<select id="getcphiamByOne" resultType="com.srs.comprehensive.domain.CphAuditDetails" parameterType="String">
|
||||
select c.rule_name as rule_name, g.stu_year_name as stu_year_name,a.iam_score as operate_score
|
||||
from cph_iam as a
|
||||
left join srs_student as b on a.to_add = b.stu_id
|
||||
left join cph_rules as c on a.rule_id = c.rule_id
|
||||
left join srs_class as d on b.class_id = d.class_id
|
||||
left join srs_majors as e on d.major_id = e.major_id
|
||||
left join sys_dept as f on e.college_id = f.dept_id
|
||||
left join srs_stu_year as g on a.stu_year_id = g.id
|
||||
left join cph_audit_details as h on a.id = h.project_id
|
||||
where b.stu_no = #{stuNo} and audit_status=6
|
||||
ORDER BY a.create_time desc
|
||||
</select>
|
||||
<select id="getStuData" resultType="com.srs.comprehensive.domain.SrsCqScore" parameterType="String">
|
||||
select a.*,b.stu_year_name from cph_total_score as a left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
where stu_no=#{stuNo} order by b.stu_year_name desc limit 3
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user