123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <?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.idea.oa.apply.mapper.ApplyPaymentSettleMapper">
- <resultMap id="BaseResultMap" type="com.idea.oa.apply.model.ApplyPaymentSettle">
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="flow_num" jdbcType="VARCHAR" property="flowNum" />
- <result column="title" jdbcType="VARCHAR" property="title" />
- <result column="is_no_contract" jdbcType="INTEGER" property="isNoContract" />
- <result column="payer_name" jdbcType="VARCHAR" property="payerName" />
- <result column="payee_name" jdbcType="VARCHAR" property="payeeName" />
- <result column="money_purpose" jdbcType="VARCHAR" property="moneyPurpose" />
- <result column="contract_price" jdbcType="DECIMAL" property="contractPrice" />
- <result column="pay_remark" jdbcType="VARCHAR" property="payRemark" />
- <result column="have_pay_money" jdbcType="DECIMAL" property="havePayMoney" />
- <result column="apply_pay_money" jdbcType="DECIMAL" property="applyPayMoney" />
- <result column="apply_pay_money_uppercase" jdbcType="VARCHAR" property="applyPayMoneyUppercase" />
- <result column="file_data_ids" jdbcType="VARCHAR" property="fileDataIds" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="created_by_dept" jdbcType="VARCHAR" property="createdByDept" />
- <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
- <result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- id, flow_num, title, is_no_contract, payer_name, payee_name, money_purpose, contract_price,
- pay_remark, have_pay_money, apply_pay_money, apply_pay_money_uppercase, file_data_ids,
- status, created_by_dept, created_by, created_at, updated_by, updated_at, remark
- </sql>
- <select id="selectByExample" parameterType="com.idea.oa.apply.model.ApplyPaymentSettleExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from apply_payment_settle
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from apply_payment_settle
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from apply_payment_settle
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.idea.oa.apply.model.ApplyPaymentSettleExample">
- delete from apply_payment_settle
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.idea.oa.apply.model.ApplyPaymentSettle">
- insert into apply_payment_settle (id, flow_num, title,
- is_no_contract, payer_name, payee_name,
- money_purpose, contract_price, pay_remark,
- have_pay_money, apply_pay_money, apply_pay_money_uppercase,
- file_data_ids, status, created_by_dept,
- created_by, created_at, updated_by,
- updated_at, remark)
- values (#{id,jdbcType=VARCHAR}, #{flowNum,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
- #{isNoContract,jdbcType=INTEGER}, #{payerName,jdbcType=VARCHAR}, #{payeeName,jdbcType=VARCHAR},
- #{moneyPurpose,jdbcType=VARCHAR}, #{contractPrice,jdbcType=DECIMAL}, #{payRemark,jdbcType=VARCHAR},
- #{havePayMoney,jdbcType=DECIMAL}, #{applyPayMoney,jdbcType=DECIMAL}, #{applyPayMoneyUppercase,jdbcType=VARCHAR},
- #{fileDataIds,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createdByDept,jdbcType=VARCHAR},
- #{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=VARCHAR},
- #{updatedAt,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.idea.oa.apply.model.ApplyPaymentSettle">
- insert into apply_payment_settle
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="flowNum != null">
- flow_num,
- </if>
- <if test="title != null">
- title,
- </if>
- <if test="isNoContract != null">
- is_no_contract,
- </if>
- <if test="payerName != null">
- payer_name,
- </if>
- <if test="payeeName != null">
- payee_name,
- </if>
- <if test="moneyPurpose != null">
- money_purpose,
- </if>
- <if test="contractPrice != null">
- contract_price,
- </if>
- <if test="payRemark != null">
- pay_remark,
- </if>
- <if test="havePayMoney != null">
- have_pay_money,
- </if>
- <if test="applyPayMoney != null">
- apply_pay_money,
- </if>
- <if test="applyPayMoneyUppercase != null">
- apply_pay_money_uppercase,
- </if>
- <if test="fileDataIds != null">
- file_data_ids,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="createdByDept != null">
- created_by_dept,
- </if>
- <if test="createdBy != null">
- created_by,
- </if>
- <if test="createdAt != null">
- created_at,
- </if>
- <if test="updatedBy != null">
- updated_by,
- </if>
- <if test="updatedAt != null">
- updated_at,
- </if>
- <if test="remark != null">
- remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="flowNum != null">
- #{flowNum,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- #{title,jdbcType=VARCHAR},
- </if>
- <if test="isNoContract != null">
- #{isNoContract,jdbcType=INTEGER},
- </if>
- <if test="payerName != null">
- #{payerName,jdbcType=VARCHAR},
- </if>
- <if test="payeeName != null">
- #{payeeName,jdbcType=VARCHAR},
- </if>
- <if test="moneyPurpose != null">
- #{moneyPurpose,jdbcType=VARCHAR},
- </if>
- <if test="contractPrice != null">
- #{contractPrice,jdbcType=DECIMAL},
- </if>
- <if test="payRemark != null">
- #{payRemark,jdbcType=VARCHAR},
- </if>
- <if test="havePayMoney != null">
- #{havePayMoney,jdbcType=DECIMAL},
- </if>
- <if test="applyPayMoney != null">
- #{applyPayMoney,jdbcType=DECIMAL},
- </if>
- <if test="applyPayMoneyUppercase != null">
- #{applyPayMoneyUppercase,jdbcType=VARCHAR},
- </if>
- <if test="fileDataIds != null">
- #{fileDataIds,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createdByDept != null">
- #{createdByDept,jdbcType=VARCHAR},
- </if>
- <if test="createdBy != null">
- #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdAt != null">
- #{createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedAt != null">
- #{updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.idea.oa.apply.model.ApplyPaymentSettleExample" resultType="java.lang.Long">
- select count(*) from apply_payment_settle
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update apply_payment_settle
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.flowNum != null">
- flow_num = #{record.flowNum,jdbcType=VARCHAR},
- </if>
- <if test="record.title != null">
- title = #{record.title,jdbcType=VARCHAR},
- </if>
- <if test="record.isNoContract != null">
- is_no_contract = #{record.isNoContract,jdbcType=INTEGER},
- </if>
- <if test="record.payerName != null">
- payer_name = #{record.payerName,jdbcType=VARCHAR},
- </if>
- <if test="record.payeeName != null">
- payee_name = #{record.payeeName,jdbcType=VARCHAR},
- </if>
- <if test="record.moneyPurpose != null">
- money_purpose = #{record.moneyPurpose,jdbcType=VARCHAR},
- </if>
- <if test="record.contractPrice != null">
- contract_price = #{record.contractPrice,jdbcType=DECIMAL},
- </if>
- <if test="record.payRemark != null">
- pay_remark = #{record.payRemark,jdbcType=VARCHAR},
- </if>
- <if test="record.havePayMoney != null">
- have_pay_money = #{record.havePayMoney,jdbcType=DECIMAL},
- </if>
- <if test="record.applyPayMoney != null">
- apply_pay_money = #{record.applyPayMoney,jdbcType=DECIMAL},
- </if>
- <if test="record.applyPayMoneyUppercase != null">
- apply_pay_money_uppercase = #{record.applyPayMoneyUppercase,jdbcType=VARCHAR},
- </if>
- <if test="record.fileDataIds != null">
- file_data_ids = #{record.fileDataIds,jdbcType=VARCHAR},
- </if>
- <if test="record.status != null">
- status = #{record.status,jdbcType=INTEGER},
- </if>
- <if test="record.createdByDept != null">
- created_by_dept = #{record.createdByDept,jdbcType=VARCHAR},
- </if>
- <if test="record.createdBy != null">
- created_by = #{record.createdBy,jdbcType=VARCHAR},
- </if>
- <if test="record.createdAt != null">
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="record.updatedBy != null">
- updated_by = #{record.updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="record.updatedAt != null">
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="record.remark != null">
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update apply_payment_settle
- set id = #{record.id,jdbcType=VARCHAR},
- flow_num = #{record.flowNum,jdbcType=VARCHAR},
- title = #{record.title,jdbcType=VARCHAR},
- is_no_contract = #{record.isNoContract,jdbcType=INTEGER},
- payer_name = #{record.payerName,jdbcType=VARCHAR},
- payee_name = #{record.payeeName,jdbcType=VARCHAR},
- money_purpose = #{record.moneyPurpose,jdbcType=VARCHAR},
- contract_price = #{record.contractPrice,jdbcType=DECIMAL},
- pay_remark = #{record.payRemark,jdbcType=VARCHAR},
- have_pay_money = #{record.havePayMoney,jdbcType=DECIMAL},
- apply_pay_money = #{record.applyPayMoney,jdbcType=DECIMAL},
- apply_pay_money_uppercase = #{record.applyPayMoneyUppercase,jdbcType=VARCHAR},
- file_data_ids = #{record.fileDataIds,jdbcType=VARCHAR},
- status = #{record.status,jdbcType=INTEGER},
- created_by_dept = #{record.createdByDept,jdbcType=VARCHAR},
- created_by = #{record.createdBy,jdbcType=VARCHAR},
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
- updated_by = #{record.updatedBy,jdbcType=VARCHAR},
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
- remark = #{record.remark,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.idea.oa.apply.model.ApplyPaymentSettle">
- update apply_payment_settle
- <set>
- <if test="flowNum != null">
- flow_num = #{flowNum,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- title = #{title,jdbcType=VARCHAR},
- </if>
- <if test="isNoContract != null">
- is_no_contract = #{isNoContract,jdbcType=INTEGER},
- </if>
- <if test="payerName != null">
- payer_name = #{payerName,jdbcType=VARCHAR},
- </if>
- <if test="payeeName != null">
- payee_name = #{payeeName,jdbcType=VARCHAR},
- </if>
- <if test="moneyPurpose != null">
- money_purpose = #{moneyPurpose,jdbcType=VARCHAR},
- </if>
- <if test="contractPrice != null">
- contract_price = #{contractPrice,jdbcType=DECIMAL},
- </if>
- <if test="payRemark != null">
- pay_remark = #{payRemark,jdbcType=VARCHAR},
- </if>
- <if test="havePayMoney != null">
- have_pay_money = #{havePayMoney,jdbcType=DECIMAL},
- </if>
- <if test="applyPayMoney != null">
- apply_pay_money = #{applyPayMoney,jdbcType=DECIMAL},
- </if>
- <if test="applyPayMoneyUppercase != null">
- apply_pay_money_uppercase = #{applyPayMoneyUppercase,jdbcType=VARCHAR},
- </if>
- <if test="fileDataIds != null">
- file_data_ids = #{fileDataIds,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="createdByDept != null">
- created_by_dept = #{createdByDept,jdbcType=VARCHAR},
- </if>
- <if test="createdBy != null">
- created_by = #{createdBy,jdbcType=VARCHAR},
- </if>
- <if test="createdAt != null">
- created_at = #{createdAt,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedBy != null">
- updated_by = #{updatedBy,jdbcType=VARCHAR},
- </if>
- <if test="updatedAt != null">
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.idea.oa.apply.model.ApplyPaymentSettle">
- update apply_payment_settle
- set flow_num = #{flowNum,jdbcType=VARCHAR},
- title = #{title,jdbcType=VARCHAR},
- is_no_contract = #{isNoContract,jdbcType=INTEGER},
- payer_name = #{payerName,jdbcType=VARCHAR},
- payee_name = #{payeeName,jdbcType=VARCHAR},
- money_purpose = #{moneyPurpose,jdbcType=VARCHAR},
- contract_price = #{contractPrice,jdbcType=DECIMAL},
- pay_remark = #{payRemark,jdbcType=VARCHAR},
- have_pay_money = #{havePayMoney,jdbcType=DECIMAL},
- apply_pay_money = #{applyPayMoney,jdbcType=DECIMAL},
- apply_pay_money_uppercase = #{applyPayMoneyUppercase,jdbcType=VARCHAR},
- file_data_ids = #{fileDataIds,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- created_by_dept = #{createdByDept,jdbcType=VARCHAR},
- created_by = #{createdBy,jdbcType=VARCHAR},
- created_at = #{createdAt,jdbcType=TIMESTAMP},
- updated_by = #{updatedBy,jdbcType=VARCHAR},
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
- remark = #{remark,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|