增加问卷调查展示逻辑
This commit is contained in:
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.dw.mapper.DwIndexConfigMapper">
|
||||
|
||||
<resultMap type="DwIndexConfig" id="DwIndexConfigResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="indexName" column="index_name" />
|
||||
<result property="questionId" column="question_id" />
|
||||
<result property="infoId" column="info_id" />
|
||||
<result property="indexType" column="index_type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</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
|
||||
</sql>
|
||||
|
||||
<select id="selectDwIndexConfigList" parameterType="DwIndexConfig" resultMap="DwIndexConfigResult">
|
||||
<include refid="selectDwIndexConfigVo"/>
|
||||
<where>
|
||||
<if test="indexName != null and indexName != ''"> and index_name like concat('%', #{indexName}, '%')</if>
|
||||
<if test="questionId != null and questionId != ''"> and question_id = #{questionId}</if>
|
||||
<if test="infoId != null "> and info_id = #{infoId}</if>
|
||||
<if test="indexType != null "> and index_type = #{indexType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwIndexConfigById" parameterType="Long" resultMap="DwIndexConfigResult">
|
||||
<include refid="selectDwIndexConfigVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwIndexConfig" parameterType="DwIndexConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dw_index_config
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="indexName != null">index_name,</if>
|
||||
<if test="questionId != null">question_id,</if>
|
||||
<if test="infoId != null">info_id,</if>
|
||||
<if test="indexType != null">index_type,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="indexName != null">#{indexName},</if>
|
||||
<if test="questionId != null">#{questionId},</if>
|
||||
<if test="infoId != null">#{infoId},</if>
|
||||
<if test="indexType != null">#{indexType},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwIndexConfig" parameterType="DwIndexConfig">
|
||||
update dw_index_config
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="indexName != null">index_name = #{indexName},</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>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwIndexConfigById" parameterType="Long">
|
||||
delete from dw_index_config where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwIndexConfigByIds" parameterType="String">
|
||||
delete from dw_index_config where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user