146 lines
9.5 KiB
XML
146 lines
9.5 KiB
XML
<?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.xdadan.erp.emis.mapper.EmisElectronicPagMapper">
|
|
|
|
<resultMap type="EmisElectronicPag" id="EmisElectronicPagResult">
|
|
<result property="id" column="id" />
|
|
<result property="startNo" column="start_no" />
|
|
<result property="endNo" column="end_no" />
|
|
<result property="billCount" column="bill_count" />
|
|
<result property="billFee" column="bill_fee" />
|
|
<result property="curStartNo" column="cur_start_no" />
|
|
<result property="hasBillCount" column="has_bill_count" />
|
|
<result property="provideDate" column="provide_date" />
|
|
<result property="provideMan" column="provide_man" />
|
|
<result property="provideSite" column="provide_site" />
|
|
<result property="status" column="status" />
|
|
<result property="createSiteCode" column="create_site_code" />
|
|
<result property="modifySiteCode" column="modify_site_code" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<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="selectEmisElectronicPagVo">
|
|
select id, start_no, end_no, bill_count, bill_fee, cur_start_no, has_bill_count, provide_date, provide_man, provide_site, status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_electronic_pag
|
|
</sql>
|
|
|
|
<select id="selectEmisElectronicPagList" parameterType="EmisElectronicPag" resultMap="EmisElectronicPagResult">
|
|
<include refid="selectEmisElectronicPagVo"/>
|
|
<where>
|
|
<if test="id != null "> and id = #{id}</if>
|
|
<if test="startNo != null and startNo != ''"> and start_no like concat('%', #{startNo}, '%')</if>
|
|
<if test="endNo != null and endNo != ''"> and end_no like concat('%', #{endNo}, '%')</if>
|
|
<if test="billCount != null "> and bill_count like concat('%', #{billCount}, '%')</if>
|
|
<if test="billFee != null "> and bill_fee like concat('%', #{billFee}, '%')</if>
|
|
<if test="curStartNo != null and curStartNo != ''"> and cur_start_no like concat('%', #{curStartNo}, '%')</if>
|
|
<if test="hasBillCount != null "> and has_bill_count like concat('%', #{hasBillCount}, '%')</if>
|
|
<if test="provideDate != null "> and provide_date = #{provideDate}</if>
|
|
<if test="provideMan != null and provideMan != ''"> and provide_man like concat('%', #{provideMan}, '%')</if>
|
|
<if test="provideSite != null and provideSite != ''"> and provide_site like concat('%', #{provideSite}, '%')</if>
|
|
<if test="status != null "> and status like concat('%', #{status}, '%')</if>
|
|
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
|
|
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
|
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
|
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
|
</where>
|
|
order by create_time desc
|
|
</select>
|
|
|
|
<select id="selectEmisElectronicPagById" parameterType="Long" resultMap="EmisElectronicPagResult">
|
|
select id, start_no, end_no, bill_count, bill_fee, cur_start_no, has_bill_count, provide_date, provide_man, provide_site, status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
|
from emis_electronic_pag a
|
|
where a.id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertEmisElectronicPag" parameterType="EmisElectronicPag">
|
|
insert into emis_electronic_pag
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="startNo != null and startNo != ''">start_no,</if>
|
|
<if test="endNo != null and endNo != ''">end_no,</if>
|
|
<if test="billCount != null">bill_count,</if>
|
|
<if test="billFee != null">bill_fee,</if>
|
|
<if test="curStartNo != null and curStartNo != ''">cur_start_no,</if>
|
|
<if test="hasBillCount != null">has_bill_count,</if>
|
|
<if test="provideDate != null">provide_date,</if>
|
|
<if test="provideMan != null and provideMan != ''">provide_man,</if>
|
|
<if test="provideSite != null and provideSite != ''">provide_site,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
|
|
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
|
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="startNo != null and startNo != ''">#{startNo},</if>
|
|
<if test="endNo != null and endNo != ''">#{endNo},</if>
|
|
<if test="billCount != null">#{billCount},</if>
|
|
<if test="billFee != null">#{billFee},</if>
|
|
<if test="curStartNo != null and curStartNo != ''">#{curStartNo},</if>
|
|
<if test="hasBillCount != null">#{hasBillCount},</if>
|
|
<if test="provideDate != null">#{provideDate},</if>
|
|
<if test="provideMan != null and provideMan != ''">#{provideMan},</if>
|
|
<if test="provideSite != null and provideSite != ''">#{provideSite},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
|
|
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
|
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateEmisElectronicPag" parameterType="EmisElectronicPag">
|
|
update emis_electronic_pag
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="startNo != null and startNo != ''">start_no = #{startNo},</if>
|
|
<if test="endNo != null and endNo != ''">end_no = #{endNo},</if>
|
|
<if test="billCount != null">bill_count = #{billCount},</if>
|
|
<if test="billFee != null">bill_fee = #{billFee},</if>
|
|
<if test="curStartNo != null and curStartNo != ''">cur_start_no = #{curStartNo},</if>
|
|
<if test="hasBillCount != null">has_bill_count = #{hasBillCount},</if>
|
|
<if test="provideDate != null">provide_date = #{provideDate},</if>
|
|
<if test="provideMan != null and provideMan != ''">provide_man = #{provideMan},</if>
|
|
<if test="provideSite != null and provideSite != ''">provide_site = #{provideSite},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
|
|
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
|
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteEmisElectronicPagById" parameterType="Long">
|
|
delete from emis_electronic_pag where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteEmisElectronicPagByIds" parameterType="String">
|
|
delete from emis_electronic_pag where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |