完善系统

This commit is contained in:
2025-07-23 16:44:27 +08:00
parent 2d3cb0845c
commit f2b3858310
23 changed files with 364 additions and 38 deletions

View File

@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="DwIndexConfig" id="DwIndexConfigResult">
<result property="id" column="id" />
<result property="indexName" column="index_name" />
<result property="indexTitle" column="index_title" />
<result property="questionId" column="question_id" />
<result property="infoId" column="info_id" />
<result property="indexType" column="index_type" />
@ -33,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDwIndexConfigVo">
select id, index_name, question_id, info_id, index_type, create_by, create_time, update_by, update_time, remark from dw_index_config
select id, index_name,index_title, question_id, info_id, index_type from dw_index_config
</sql>
<select id="selectDwIndexConfigList" parameterType="DwIndexConfig" resultMap="DwIndexConfigResult">
@ -55,12 +56,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into dw_index_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="indexName != null">index_name,</if>
<if test="indexTitle != null">index_title,</if>
<if test="questionId != null">question_id,</if>
<if test="infoId != null">info_id,</if>
<if test="indexType != null">index_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="indexName != null">#{indexName},</if>
<if test="indexTitle != null">#{indexTitle},</if>
<if test="questionId != null">#{questionId},</if>
<if test="infoId != null">#{infoId},</if>
<if test="indexType != null">#{indexType},</if>
@ -71,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update dw_index_config
<trim prefix="SET" suffixOverrides=",">
<if test="indexName != null">index_name = #{indexName},</if>
<if test="indexTitle != null">index_title = #{indexTitle},</if>
<if test="questionId != null">question_id = #{questionId},</if>
<if test="infoId != null">info_id = #{infoId},</if>
<if test="indexType != null">index_type = #{indexType},</if>
@ -125,7 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectDwxz" resultMap="dwxzVo">
select dwxz,count(0) as dwxz_count from cj_student where sfqr = 1 group by dwxz
select dwxz,count(0) as dwxz_count from cj_student where sfqr = 1 and dwxz is not null group by dwxz
</select>
</mapper>