<?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.dl.mapper.DlShebeixxCdSssjMapper">
|
|
<resultMap type="DlShebeixxCdSssj" id="DlShebeixxCdSssjResult">
|
<result property="id" column="id" />
|
<result property="ceDianBM" column="ceDianBM" />
|
<result property="ceDianLXBM" column="ceDianLXBM" />
|
<result property="ceDianLXMC" column="ceDianLXMC" />
|
<result property="suoShuSBBM" column="suoShuSBBM" />
|
<result property="ceDianSZ" column="ceDianSZ" />
|
<result property="ceDianSZDW" column="ceDianSZDW" />
|
<result property="ceDianZT" column="ceDianZT" />
|
<result property="shuJuSJ" column="shuJuSJ" />
|
<result property="xiTongBM" column="xiTongBM" />
|
<result property="wenJianFL" column="wenJianFL" />
|
</resultMap>
|
|
<sql id="selectDlShebeixxCdSssjVo">
|
select id, ceDianBM, ceDianLXBM, ceDianLXMC,xiTongBM,wenJianFL, suoShuSBBM, ceDianSZ, ceDianSZDW, ceDianZT, shuJuSJ from dl_shebeixx_cd_sssj
|
</sql>
|
|
<select id="selectDlShebeixxCdSssjList" parameterType="DlShebeixxCdSssj" resultMap="DlShebeixxCdSssjResult">
|
<include refid="selectDlShebeixxCdSssjVo"/>
|
<where>
|
<if test="ceDianBM != null and ceDianBM != ''"> and ceDianBM = #{ceDianBM}</if>
|
<if test="ceDianLXBM != null and ceDianLXBM != ''"> and ceDianLXBM = #{ceDianLXBM}</if>
|
<if test="ceDianLXMC != null and ceDianLXMC != ''"> and ceDianLXMC = #{ceDianLXMC}</if>
|
<if test="suoShuSBBM != null and suoShuSBBM != ''"> and suoShuSBBM = #{suoShuSBBM}</if>
|
<if test="ceDianSZ != null and ceDianSZ != ''"> and ceDianSZ = #{ceDianSZ}</if>
|
<if test="ceDianSZDW != null and ceDianSZDW != ''"> and ceDianSZDW = #{ceDianSZDW}</if>
|
<if test="ceDianZT != null and ceDianZT != ''"> and ceDianZT = #{ceDianZT}</if>
|
<if test="shuJuSJ != null "> and shuJuSJ = #{shuJuSJ}</if>
|
<if test="xiTongBM != null "> and xiTongBM = #{xiTongBM}</if>
|
<if test="wenJianFL != null "> and wenJianFL = #{wenJianFL}</if>
|
</where>
|
</select>
|
|
<select id="selectListByGroupBy" parameterType="DlShebeixxCdSssj" resultMap="DlShebeixxCdSssjResult">
|
select xiTongBM,wenJianFL from dl_shebeixx_cd_sssj where xiTongBM is not null and wenJianFL is not null GROUP BY xiTongBM,wenJianFL
|
</select>
|
|
<select id="selectDlShebeixxCdSssjById" parameterType="Long" resultMap="DlShebeixxCdSssjResult">
|
<include refid="selectDlShebeixxCdSssjVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertDlShebeixxCdSssj" parameterType="DlShebeixxCdSssj" useGeneratedKeys="true" keyProperty="id">
|
insert into dl_shebeixx_cd_sssj
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="ceDianBM != null">ceDianBM,</if>
|
<if test="ceDianLXBM != null">ceDianLXBM,</if>
|
<if test="ceDianLXMC != null">ceDianLXMC,</if>
|
<if test="suoShuSBBM != null">suoShuSBBM,</if>
|
<if test="ceDianSZ != null">ceDianSZ,</if>
|
<if test="ceDianSZDW != null">ceDianSZDW,</if>
|
<if test="ceDianZT != null">ceDianZT,</if>
|
<if test="shuJuSJ != null">shuJuSJ,</if>
|
<if test="xiTongBM != null">xiTongBM,</if>
|
<if test="wenJianFL != null">wenJianFL,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="ceDianBM != null">#{ceDianBM},</if>
|
<if test="ceDianLXBM != null">#{ceDianLXBM},</if>
|
<if test="ceDianLXMC != null">#{ceDianLXMC},</if>
|
<if test="suoShuSBBM != null">#{suoShuSBBM},</if>
|
<if test="ceDianSZ != null">#{ceDianSZ},</if>
|
<if test="ceDianSZDW != null">#{ceDianSZDW},</if>
|
<if test="ceDianZT != null">#{ceDianZT},</if>
|
<if test="shuJuSJ != null">#{shuJuSJ},</if>
|
<if test="xiTongBM != null">#{xiTongBM},</if>
|
<if test="wenJianFL != null">#{wenJianFL},</if>
|
</trim>
|
</insert>
|
|
<update id="updateDlShebeixxCdSssj" parameterType="DlShebeixxCdSssj">
|
update dl_shebeixx_cd_sssj
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="ceDianBM != null">ceDianBM = #{ceDianBM},</if>
|
<if test="ceDianLXBM != null">ceDianLXBM = #{ceDianLXBM},</if>
|
<if test="ceDianLXMC != null">ceDianLXMC = #{ceDianLXMC},</if>
|
<if test="suoShuSBBM != null">suoShuSBBM = #{suoShuSBBM},</if>
|
<if test="ceDianSZ != null">ceDianSZ = #{ceDianSZ},</if>
|
<if test="ceDianSZDW != null">ceDianSZDW = #{ceDianSZDW},</if>
|
<if test="ceDianZT != null">ceDianZT = #{ceDianZT},</if>
|
<if test="shuJuSJ != null">shuJuSJ = #{shuJuSJ},</if>
|
<if test="xiTongBM != null">xiTongBM = #{xiTongBM},</if>
|
<if test="wenJianFL != null">wenJianFL = #{wenJianFL},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteDlShebeixxCdSssjById" parameterType="Long">
|
delete from dl_shebeixx_cd_sssj where id = #{id}
|
</delete>
|
|
<delete id="deleteDlShebeixxCdSssjByIds" parameterType="String">
|
delete from dl_shebeixx_cd_sssj where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|