<?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.DlShebeixxMapper">
|
|
<resultMap type="DlShebeixx" id="DlShebeixxResult">
|
<result property="id" column="id" />
|
<result property="kuangDuanSBLX" column="kuangDuanSBLX" />
|
<result property="kuangDuanSBLXMC" column="kuangDuanSBLXMC" />
|
<result property="sheBeiBM" column="sheBeiBM" />
|
<result property="sheBeiMC" column="sheBeiMC" />
|
<result property="guiGeXH" column="guiGeXH" />
|
<result property="sheBeiLX" column="sheBeiLX" />
|
<result property="shengChanRQ" column="shengChanRQ" />
|
<result property="suoShuXT" column="suoShuXT" />
|
<result property="anZhuangRQ" column="anZhuangRQ" />
|
<result property="anZhuangWZ" column="anZhuangWZ" />
|
<result property="shengChanCJ" column="shengChanCJ" />
|
<result property="chuChangBM" column="chuChangBM" />
|
<result property="anBIaoZSBH" column="anBIaoZSBH" />
|
<result property="fangBaoZSBH" column="fangBaoZSBH" />
|
<result property="eDingDY" column="eDingDY" />
|
<result property="eDingDL" column="eDingDL" />
|
<result property="eDingGL" column="eDingGL" />
|
<result property="xiTongBM" column="xiTongBM" />
|
<result property="wenJianFL" column="wenJianFL" />
|
</resultMap>
|
|
<sql id="selectDlShebeixxVo">
|
select id, kuangDuanSBLX, kuangDuanSBLXMC,xiTongBM,wenJianFL, sheBeiBM, sheBeiMC, guiGeXH, sheBeiLX, shengChanRQ, suoShuXT, anZhuangRQ, anZhuangWZ, shengChanCJ, chuChangBM, anBIaoZSBH, fangBaoZSBH, eDingDY, eDingDL, eDingGL from dl_shebeixx
|
</sql>
|
|
<select id="selectDlShebeixxList" parameterType="DlShebeixx" resultMap="DlShebeixxResult">
|
<include refid="selectDlShebeixxVo"/>
|
<where>
|
<if test="kuangDuanSBLX != null "> and kuangDuanSBLX = #{kuangDuanSBLX}</if>
|
<if test="kuangDuanSBLXMC != null and kuangDuanSBLXMC != ''"> and kuangDuanSBLXMC = #{kuangDuanSBLXMC}</if>
|
<if test="sheBeiBM != null and sheBeiBM != ''"> and sheBeiBM = #{sheBeiBM}</if>
|
<if test="sheBeiMC != null and sheBeiMC != ''"> and sheBeiMC = #{sheBeiMC}</if>
|
<if test="guiGeXH != null and guiGeXH != ''"> and guiGeXH = #{guiGeXH}</if>
|
<if test="sheBeiLX != null "> and sheBeiLX = #{sheBeiLX}</if>
|
<if test="shengChanRQ != null "> and shengChanRQ = #{shengChanRQ}</if>
|
<if test="suoShuXT != null and suoShuXT != ''"> and suoShuXT = #{suoShuXT}</if>
|
<if test="anZhuangRQ != null "> and anZhuangRQ = #{anZhuangRQ}</if>
|
<if test="anZhuangWZ != null and anZhuangWZ != ''"> and anZhuangWZ = #{anZhuangWZ}</if>
|
<if test="shengChanCJ != null and shengChanCJ != ''"> and shengChanCJ = #{shengChanCJ}</if>
|
<if test="chuChangBM != null and chuChangBM != ''"> and chuChangBM = #{chuChangBM}</if>
|
<if test="anBIaoZSBH != null and anBIaoZSBH != ''"> and anBIaoZSBH = #{anBIaoZSBH}</if>
|
<if test="fangBaoZSBH != null and fangBaoZSBH != ''"> and fangBaoZSBH = #{fangBaoZSBH}</if>
|
<if test="eDingDY != null "> and eDingDY = #{eDingDY}</if>
|
<if test="eDingDL != null "> and eDingDL = #{eDingDL}</if>
|
<if test="eDingGL != null "> and eDingGL = #{eDingGL}</if>
|
<if test="xiTongBM != null "> and xiTongBM = #{xiTongBM}</if>
|
<if test="wenJianFL != null "> and wenJianFL = #{wenJianFL}</if>
|
</where>
|
</select>
|
|
<select id="selectListByGroupBy" parameterType="DlShebeixx" resultMap="DlShebeixxResult">
|
select xiTongBM,wenJianFL from dl_shebeixx where xiTongBM is not null and wenJianFL is not null GROUP BY xiTongBM,wenJianFL
|
</select>
|
|
|
<select id="selectDlShebeixxById" parameterType="Long" resultMap="DlShebeixxResult">
|
<include refid="selectDlShebeixxVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertDlShebeixx" parameterType="DlShebeixx" useGeneratedKeys="true" keyProperty="id">
|
insert into dl_shebeixx
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="kuangDuanSBLX != null">kuangDuanSBLX,</if>
|
<if test="kuangDuanSBLXMC != null">kuangDuanSBLXMC,</if>
|
<if test="sheBeiBM != null">sheBeiBM,</if>
|
<if test="sheBeiMC != null">sheBeiMC,</if>
|
<if test="guiGeXH != null">guiGeXH,</if>
|
<if test="sheBeiLX != null">sheBeiLX,</if>
|
<if test="shengChanRQ != null">shengChanRQ,</if>
|
<if test="suoShuXT != null">suoShuXT,</if>
|
<if test="anZhuangRQ != null">anZhuangRQ,</if>
|
<if test="anZhuangWZ != null">anZhuangWZ,</if>
|
<if test="shengChanCJ != null">shengChanCJ,</if>
|
<if test="chuChangBM != null">chuChangBM,</if>
|
<if test="anBIaoZSBH != null">anBIaoZSBH,</if>
|
<if test="fangBaoZSBH != null">fangBaoZSBH,</if>
|
<if test="eDingDY != null">eDingDY,</if>
|
<if test="eDingDL != null">eDingDL,</if>
|
<if test="eDingGL != null">eDingGL,</if>
|
<if test="xiTongBM != null">xiTongBM,</if>
|
<if test="wenJianFL != null">wenJianFL,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="kuangDuanSBLX != null">#{kuangDuanSBLX},</if>
|
<if test="kuangDuanSBLXMC != null">#{kuangDuanSBLXMC},</if>
|
<if test="sheBeiBM != null">#{sheBeiBM},</if>
|
<if test="sheBeiMC != null">#{sheBeiMC},</if>
|
<if test="guiGeXH != null">#{guiGeXH},</if>
|
<if test="sheBeiLX != null">#{sheBeiLX},</if>
|
<if test="shengChanRQ != null">#{shengChanRQ},</if>
|
<if test="suoShuXT != null">#{suoShuXT},</if>
|
<if test="anZhuangRQ != null">#{anZhuangRQ},</if>
|
<if test="anZhuangWZ != null">#{anZhuangWZ},</if>
|
<if test="shengChanCJ != null">#{shengChanCJ},</if>
|
<if test="chuChangBM != null">#{chuChangBM},</if>
|
<if test="anBIaoZSBH != null">#{anBIaoZSBH},</if>
|
<if test="fangBaoZSBH != null">#{fangBaoZSBH},</if>
|
<if test="eDingDY != null">#{eDingDY},</if>
|
<if test="eDingDL != null">#{eDingDL},</if>
|
<if test="eDingGL != null">#{eDingGL},</if>
|
<if test="xiTongBM != null">#{xiTongBM},</if>
|
<if test="wenJianFL != null">#{wenJianFL},</if>
|
</trim>
|
</insert>
|
|
<update id="updateDlShebeixx" parameterType="DlShebeixx">
|
update dl_shebeixx
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="kuangDuanSBLX != null">kuangDuanSBLX = #{kuangDuanSBLX},</if>
|
<if test="kuangDuanSBLXMC != null">kuangDuanSBLXMC = #{kuangDuanSBLXMC},</if>
|
<if test="sheBeiBM != null">sheBeiBM = #{sheBeiBM},</if>
|
<if test="sheBeiMC != null">sheBeiMC = #{sheBeiMC},</if>
|
<if test="guiGeXH != null">guiGeXH = #{guiGeXH},</if>
|
<if test="sheBeiLX != null">sheBeiLX = #{sheBeiLX},</if>
|
<if test="shengChanRQ != null">shengChanRQ = #{shengChanRQ},</if>
|
<if test="suoShuXT != null">suoShuXT = #{suoShuXT},</if>
|
<if test="anZhuangRQ != null">anZhuangRQ = #{anZhuangRQ},</if>
|
<if test="anZhuangWZ != null">anZhuangWZ = #{anZhuangWZ},</if>
|
<if test="shengChanCJ != null">shengChanCJ = #{shengChanCJ},</if>
|
<if test="chuChangBM != null">chuChangBM = #{chuChangBM},</if>
|
<if test="anBIaoZSBH != null">anBIaoZSBH = #{anBIaoZSBH},</if>
|
<if test="fangBaoZSBH != null">fangBaoZSBH = #{fangBaoZSBH},</if>
|
<if test="eDingDY != null">eDingDY = #{eDingDY},</if>
|
<if test="eDingDL != null">eDingDL = #{eDingDL},</if>
|
<if test="eDingGL != null">eDingGL = #{eDingGL},</if>
|
<if test="xiTongBM != null">xiTongBM = #{xiTongBM},</if>
|
<if test="wenJianFL != null">wenJianFL = #{wenJianFL},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteDlShebeixxById" parameterType="Long">
|
delete from dl_shebeixx where id = #{id}
|
</delete>
|
|
<delete id="deleteDlShebeixxByIds" parameterType="String">
|
delete from dl_shebeixx where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|