246 lines
19 KiB
XML
246 lines
19 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.EmisElectronicPagApplyMapper">
|
|
|
|
<resultMap type="EmisElectronicPagApply" id="EmisElectronicPagApplyResult">
|
|
<result property="id" column="id" />
|
|
<result property="applySeq" column="apply_seq" />
|
|
<result property="applyDate" column="apply_date" />
|
|
<result property="provideType" column="provide_type" />
|
|
<result property="applyName" column="apply_name" />
|
|
<result property="applyMan" column="apply_man" />
|
|
<result property="applyManCode" column="apply_man_code" />
|
|
<result property="applySite" column="apply_site" />
|
|
<result property="applySiteCode" column="apply_site_code" />
|
|
<result property="unitMoney" column="unit_money" />
|
|
<result property="applyCount" column="apply_count" />
|
|
<result property="sumMoney" column="sum_money" />
|
|
<result property="blSend" column="bl_send" />
|
|
<result property="sendDate" column="send_date" />
|
|
<result property="sendMan" column="send_man" />
|
|
<result property="sendManCode" column="send_man_code" />
|
|
<result property="sendSite" column="send_site" />
|
|
<result property="sendSiteCode" column="send_site_code" />
|
|
<result property="blCancel" column="bl_cancel" />
|
|
<result property="cancelMan" column="cancel_man" />
|
|
<result property="cancelManCode" column="cancel_man_code" />
|
|
<result property="cancelDate" column="cancel_date" />
|
|
<result property="cancelSite" column="cancel_site" />
|
|
<result property="cancelSiteCode" column="cancel_site_code" />
|
|
<result property="userSite" column="user_site" />
|
|
<result property="userSiteCode" column="user_site_code" />
|
|
<result property="startNo" column="start_no" />
|
|
<result property="endNo" column="end_no" />
|
|
<result property="curStartNo" column="cur_start_no" />
|
|
<result property="hasBillCount" column="has_bill_count" />
|
|
<result property="blAllowAllocate" column="bl_allow_allocate" />
|
|
<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="selectEmisElectronicPagApplyVo">
|
|
select id, apply_seq, apply_date, provide_type, apply_name, apply_man, apply_man_code, apply_site, apply_site_code, unit_money, apply_count, sum_money, bl_send, send_date, send_man, send_man_code, send_site, send_site_code, bl_cancel, cancel_man, cancel_man_code, cancel_date, cancel_site, cancel_site_code, user_site, user_site_code, start_no, end_no, cur_start_no, has_bill_count, bl_allow_allocate, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_electronic_pag_apply
|
|
</sql>
|
|
|
|
<select id="selectEmisElectronicPagApplyList" parameterType="EmisElectronicPagApply" resultMap="EmisElectronicPagApplyResult">
|
|
<include refid="selectEmisElectronicPagApplyVo"/>
|
|
<where>
|
|
<if test="id != null "> and id = #{id}</if>
|
|
<if test="applySeq != null and applySeq != ''"> and apply_seq like concat('%', #{applySeq}, '%')</if>
|
|
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
|
<if test="provideType != null and provideType != ''"> and provide_type like concat('%', #{provideType}, '%')</if>
|
|
<if test="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if>
|
|
<if test="applyMan != null and applyMan != ''"> and apply_man like concat('%', #{applyMan}, '%')</if>
|
|
<if test="applyManCode != null and applyManCode != ''"> and apply_man_code like concat('%', #{applyManCode}, '%')</if>
|
|
<if test="applySite != null and applySite != ''"> and apply_site like concat('%', #{applySite}, '%')</if>
|
|
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code like concat('%', #{applySiteCode}, '%')</if>
|
|
<if test="unitMoney != null and unitMoney != ''"> and unit_money like concat('%', #{unitMoney}, '%')</if>
|
|
<if test="applyCount != null and applyCount != ''"> and apply_count like concat('%', #{applyCount}, '%')</if>
|
|
<if test="sumMoney != null and sumMoney != ''"> and sum_money like concat('%', #{sumMoney}, '%')</if>
|
|
<if test="blSend != null and blSend != ''"> and bl_send like concat('%', #{blSend}, '%')</if>
|
|
<if test="sendDate != null and sendDate != ''"> and send_date like concat('%', #{sendDate}, '%')</if>
|
|
<if test="sendMan != null and sendMan != ''"> and send_man like concat('%', #{sendMan}, '%')</if>
|
|
<if test="sendManCode != null and sendManCode != ''"> and send_man_code like concat('%', #{sendManCode}, '%')</if>
|
|
<if test="sendSite != null and sendSite != ''"> and send_site like concat('%', #{sendSite}, '%')</if>
|
|
<if test="sendSiteCode != null and sendSiteCode != ''"> and send_site_code like concat('%', #{sendSiteCode}, '%')</if>
|
|
<if test="blCancel != null and blCancel != ''"> and bl_cancel like concat('%', #{blCancel}, '%')</if>
|
|
<if test="cancelMan != null and cancelMan != ''"> and cancel_man like concat('%', #{cancelMan}, '%')</if>
|
|
<if test="cancelManCode != null and cancelManCode != ''"> and cancel_man_code like concat('%', #{cancelManCode}, '%')</if>
|
|
<if test="cancelDate != null and cancelDate != ''"> and cancel_date like concat('%', #{cancelDate}, '%')</if>
|
|
<if test="cancelSite != null and cancelSite != ''"> and cancel_site like concat('%', #{cancelSite}, '%')</if>
|
|
<if test="cancelSiteCode != null and cancelSiteCode != ''"> and cancel_site_code like concat('%', #{cancelSiteCode}, '%')</if>
|
|
<if test="userSite != null and userSite != ''"> and user_site like concat('%', #{userSite}, '%')</if>
|
|
<if test="userSiteCode != null and userSiteCode != ''"> and user_site_code like concat('%', #{userSiteCode}, '%')</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="curStartNo != null and curStartNo != ''"> and cur_start_no like concat('%', #{curStartNo}, '%')</if>
|
|
<if test="hasBillCount != null and hasBillCount != ''"> and has_bill_count like concat('%', #{hasBillCount}, '%')</if>
|
|
<if test="blAllowAllocate != null and blAllowAllocate != ''"> and bl_allow_allocate like concat('%', #{blAllowAllocate}, '%')</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="selectEmisElectronicPagApplyById" parameterType="Long" resultMap="EmisElectronicPagApplyResult">
|
|
select id, apply_seq, apply_date, provide_type, apply_name, apply_man, apply_man_code, apply_site, apply_site_code, unit_money, apply_count, sum_money, bl_send, send_date, send_man, send_man_code, send_site, send_site_code, bl_cancel, cancel_man, cancel_man_code, cancel_date, cancel_site, cancel_site_code, user_site, user_site_code, start_no, end_no, cur_start_no, has_bill_count, bl_allow_allocate, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
|
from emis_electronic_pag_apply a
|
|
where a.id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertEmisElectronicPagApply" parameterType="EmisElectronicPagApply">
|
|
insert into emis_electronic_pag_apply
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="applySeq != null and applySeq != ''">apply_seq,</if>
|
|
<if test="applyDate != null">apply_date,</if>
|
|
<if test="provideType != null and provideType != ''">provide_type,</if>
|
|
<if test="applyName != null and applyName != ''">apply_name,</if>
|
|
<if test="applyMan != null and applyMan != ''">apply_man,</if>
|
|
<if test="applyManCode != null and applyManCode != ''">apply_man_code,</if>
|
|
<if test="applySite != null and applySite != ''">apply_site,</if>
|
|
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code,</if>
|
|
<if test="unitMoney != null and unitMoney != ''">unit_money,</if>
|
|
<if test="applyCount != null and applyCount != ''">apply_count,</if>
|
|
<if test="sumMoney != null and sumMoney != ''">sum_money,</if>
|
|
<if test="blSend != null and blSend != ''">bl_send,</if>
|
|
<if test="sendDate != null and sendDate != ''">send_date,</if>
|
|
<if test="sendMan != null and sendMan != ''">send_man,</if>
|
|
<if test="sendManCode != null and sendManCode != ''">send_man_code,</if>
|
|
<if test="sendSite != null and sendSite != ''">send_site,</if>
|
|
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code,</if>
|
|
<if test="blCancel != null and blCancel != ''">bl_cancel,</if>
|
|
<if test="cancelMan != null and cancelMan != ''">cancel_man,</if>
|
|
<if test="cancelManCode != null and cancelManCode != ''">cancel_man_code,</if>
|
|
<if test="cancelDate != null and cancelDate != ''">cancel_date,</if>
|
|
<if test="cancelSite != null and cancelSite != ''">cancel_site,</if>
|
|
<if test="cancelSiteCode != null and cancelSiteCode != ''">cancel_site_code,</if>
|
|
<if test="userSite != null and userSite != ''">user_site,</if>
|
|
<if test="userSiteCode != null and userSiteCode != ''">user_site_code,</if>
|
|
<if test="startNo != null and startNo != ''">start_no,</if>
|
|
<if test="endNo != null and endNo != ''">end_no,</if>
|
|
<if test="curStartNo != null and curStartNo != ''">cur_start_no,</if>
|
|
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count,</if>
|
|
<if test="blAllowAllocate != null and blAllowAllocate != ''">bl_allow_allocate,</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="applySeq != null and applySeq != ''">#{applySeq},</if>
|
|
<if test="applyDate != null">#{applyDate},</if>
|
|
<if test="provideType != null and provideType != ''">#{provideType},</if>
|
|
<if test="applyName != null and applyName != ''">#{applyName},</if>
|
|
<if test="applyMan != null and applyMan != ''">#{applyMan},</if>
|
|
<if test="applyManCode != null and applyManCode != ''">#{applyManCode},</if>
|
|
<if test="applySite != null and applySite != ''">#{applySite},</if>
|
|
<if test="applySiteCode != null and applySiteCode != ''">#{applySiteCode},</if>
|
|
<if test="unitMoney != null and unitMoney != ''">#{unitMoney},</if>
|
|
<if test="applyCount != null and applyCount != ''">#{applyCount},</if>
|
|
<if test="sumMoney != null and sumMoney != ''">#{sumMoney},</if>
|
|
<if test="blSend != null and blSend != ''">#{blSend},</if>
|
|
<if test="sendDate != null and sendDate != ''">#{sendDate},</if>
|
|
<if test="sendMan != null and sendMan != ''">#{sendMan},</if>
|
|
<if test="sendManCode != null and sendManCode != ''">#{sendManCode},</if>
|
|
<if test="sendSite != null and sendSite != ''">#{sendSite},</if>
|
|
<if test="sendSiteCode != null and sendSiteCode != ''">#{sendSiteCode},</if>
|
|
<if test="blCancel != null and blCancel != ''">#{blCancel},</if>
|
|
<if test="cancelMan != null and cancelMan != ''">#{cancelMan},</if>
|
|
<if test="cancelManCode != null and cancelManCode != ''">#{cancelManCode},</if>
|
|
<if test="cancelDate != null and cancelDate != ''">#{cancelDate},</if>
|
|
<if test="cancelSite != null and cancelSite != ''">#{cancelSite},</if>
|
|
<if test="cancelSiteCode != null and cancelSiteCode != ''">#{cancelSiteCode},</if>
|
|
<if test="userSite != null and userSite != ''">#{userSite},</if>
|
|
<if test="userSiteCode != null and userSiteCode != ''">#{userSiteCode},</if>
|
|
<if test="startNo != null and startNo != ''">#{startNo},</if>
|
|
<if test="endNo != null and endNo != ''">#{endNo},</if>
|
|
<if test="curStartNo != null and curStartNo != ''">#{curStartNo},</if>
|
|
<if test="hasBillCount != null and hasBillCount != ''">#{hasBillCount},</if>
|
|
<if test="blAllowAllocate != null and blAllowAllocate != ''">#{blAllowAllocate},</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="updateEmisElectronicPagApply" parameterType="EmisElectronicPagApply">
|
|
update emis_electronic_pag_apply
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="applySeq != null and applySeq != ''">apply_seq = #{applySeq},</if>
|
|
<if test="applyDate != null">apply_date = #{applyDate},</if>
|
|
<if test="provideType != null and provideType != ''">provide_type = #{provideType},</if>
|
|
<if test="applyName != null and applyName != ''">apply_name = #{applyName},</if>
|
|
<if test="applyMan != null and applyMan != ''">apply_man = #{applyMan},</if>
|
|
<if test="applyManCode != null and applyManCode != ''">apply_man_code = #{applyManCode},</if>
|
|
<if test="applySite != null and applySite != ''">apply_site = #{applySite},</if>
|
|
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code = #{applySiteCode},</if>
|
|
<if test="unitMoney != null and unitMoney != ''">unit_money = #{unitMoney},</if>
|
|
<if test="applyCount != null and applyCount != ''">apply_count = #{applyCount},</if>
|
|
<if test="sumMoney != null and sumMoney != ''">sum_money = #{sumMoney},</if>
|
|
<if test="blSend != null and blSend != ''">bl_send = #{blSend},</if>
|
|
<if test="sendDate != null and sendDate != ''">send_date = #{sendDate},</if>
|
|
<if test="sendMan != null and sendMan != ''">send_man = #{sendMan},</if>
|
|
<if test="sendManCode != null and sendManCode != ''">send_man_code = #{sendManCode},</if>
|
|
<if test="sendSite != null and sendSite != ''">send_site = #{sendSite},</if>
|
|
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code = #{sendSiteCode},</if>
|
|
<if test="blCancel != null and blCancel != ''">bl_cancel = #{blCancel},</if>
|
|
<if test="cancelMan != null and cancelMan != ''">cancel_man = #{cancelMan},</if>
|
|
<if test="cancelManCode != null and cancelManCode != ''">cancel_man_code = #{cancelManCode},</if>
|
|
<if test="cancelDate != null and cancelDate != ''">cancel_date = #{cancelDate},</if>
|
|
<if test="cancelSite != null and cancelSite != ''">cancel_site = #{cancelSite},</if>
|
|
<if test="cancelSiteCode != null and cancelSiteCode != ''">cancel_site_code = #{cancelSiteCode},</if>
|
|
<if test="userSite != null and userSite != ''">user_site = #{userSite},</if>
|
|
<if test="userSiteCode != null and userSiteCode != ''">user_site_code = #{userSiteCode},</if>
|
|
<if test="startNo != null and startNo != ''">start_no = #{startNo},</if>
|
|
<if test="endNo != null and endNo != ''">end_no = #{endNo},</if>
|
|
<if test="curStartNo != null and curStartNo != ''">cur_start_no = #{curStartNo},</if>
|
|
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count = #{hasBillCount},</if>
|
|
<if test="blAllowAllocate != null and blAllowAllocate != ''">bl_allow_allocate = #{blAllowAllocate},</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="deleteEmisElectronicPagApplyById" parameterType="Long">
|
|
delete from emis_electronic_pag_apply where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteEmisElectronicPagApplyByIds" parameterType="String">
|
|
delete from emis_electronic_pag_apply where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |