|
@@ -1,262 +1,279 @@
|
|
|
-<?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.ygj.yuemum.dao.distributionchannel.DcIntroducerExtractDao" >
|
|
|
-
|
|
|
- <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
- <result column="id" property="id" jdbcType="INTEGER" />
|
|
|
- <result column="wue_orderno" property="wue_orderno" jdbcType="VARCHAR" />
|
|
|
- <result column="wue_phone" property="wue_phone" jdbcType="VARCHAR" />
|
|
|
- <result column="wue_bank_card" property="wue_bank_card" jdbcType="VARCHAR" />
|
|
|
- <result column="wue_type" property="wue_type" jdbcType="INTEGER" />
|
|
|
- <result column="wue_applydate" property="wue_applydate" jdbcType="DATE" />
|
|
|
- <result column="wue_applysum" property="wue_applysum" jdbcType="DECIMAL" />
|
|
|
- <result column="wue_approverdate" property="wue_approverdate" jdbcType="DATE" />
|
|
|
- <result column="wue_approversum" property="wue_approversum" jdbcType="INTEGER" />
|
|
|
- <result column="wue_approveruser" property="wue_approveruser" jdbcType="INTEGER" />
|
|
|
- <result column="wue_paydate" property="wue_paydate" jdbcType="DATE" />
|
|
|
- <result column="wue_remarks" property="wue_remarks" jdbcType="VARCHAR" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <!--获取所有数据-->
|
|
|
- <select id="getDcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.String">
|
|
|
- select
|
|
|
- id,
|
|
|
- wue_orderno,
|
|
|
- wue_phone,
|
|
|
- wue_type,
|
|
|
- wue_bank_card,
|
|
|
- DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
- wue_applysum,
|
|
|
- DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
- wue_approversum,
|
|
|
- fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
- DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
- wue_remarks
|
|
|
- from dc_introducer_extract
|
|
|
- where wue_phone = #{phone,jdbcType=VARCHAR}
|
|
|
- order by wue_type asc ,id desc
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="queryOneDcIntroducerExtract" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.Integer">
|
|
|
- select
|
|
|
- id,
|
|
|
- wue_orderno,
|
|
|
- wue_phone,
|
|
|
- wue_bank_card,
|
|
|
- wue_type,
|
|
|
- DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
- wue_applysum,
|
|
|
- DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
- wue_approversum,
|
|
|
- fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
- DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
- wue_remarks
|
|
|
- from dc_introducer_extract
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- order by wue_type asc ,id desc
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- <select id="date_DcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.String">
|
|
|
- select
|
|
|
- id,
|
|
|
- wue_orderno,
|
|
|
- wue_phone,
|
|
|
- wue_bank_card,
|
|
|
- wue_type,
|
|
|
- DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
- wue_applysum,
|
|
|
- DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
- wue_approversum,
|
|
|
- fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
- DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
- wue_remarks
|
|
|
- from dc_introducer_extract
|
|
|
- where DATE_FORMAT(wue_applydate, '%Y-%m-%d') = #{applydate,jdbcType=VARCHAR}
|
|
|
- order by wue_type asc ,id desc
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="queryDcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract">
|
|
|
- select
|
|
|
- id,
|
|
|
- wue_orderno,
|
|
|
- wue_phone,
|
|
|
- wue_bank_card,
|
|
|
- wue_type,
|
|
|
- DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
- wue_applysum,
|
|
|
- DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
- wue_approversum,
|
|
|
- fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
- DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
- wue_remarks
|
|
|
- from dc_introducer_extract
|
|
|
- where 1=1
|
|
|
- <if test="id != null and id != ''">
|
|
|
- and id = #{id,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="wue_orderno != null and wue_orderno != ''">
|
|
|
- and wue_orderno = #{wue_orderno,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="wue_phone != null and wue_phone != ''">
|
|
|
- and wue_phone = #{wue_phone,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="wue_bank_card != null and wue_bank_card != ''">
|
|
|
- and wue_bank_card like "%"#{wue_bank_card,jdbcType=VARCHAR}"%"
|
|
|
- </if>
|
|
|
- <if test="wue_type != null and wue_type != ''">
|
|
|
- and wue_type = #{wue_type,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="wue_applydate != null and wue_applydate != ''">
|
|
|
- and DATE_FORMAT(wue_applydate, '%Y-%m-%d') = #{wue_applydate,jdbcType=DATE}
|
|
|
- </if>
|
|
|
- <if test="wue_applysum != null and wue_applysum != ''">
|
|
|
- and wue_applysum = #{wue_applysum,jdbcType=DECIMAL}
|
|
|
- </if>
|
|
|
- <if test="wue_approverdate != null and wue_approverdate != ''">
|
|
|
- and DATE_FORMAT(wue_approverdate, '%Y-%m-%d') = #{wue_approverdate,jdbcType=DATE}
|
|
|
- </if>
|
|
|
- <if test="wue_approversum != null and wue_approversum != ''">
|
|
|
- and wue_approversum = #{wue_approversum,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="wue_approveruser != null and wue_approveruser != ''">
|
|
|
- and wue_approveruser = #{wue_approveruser,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="wue_paydate != null and wue_paydate != ''">
|
|
|
- and DATE_FORMAT(wue_paydate, '%Y-%m-%d') = #{wue_paydate,jdbcType=DATE}
|
|
|
- </if>
|
|
|
- order by id desc
|
|
|
- </select>
|
|
|
-
|
|
|
- <update id="updateDcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
- update dc_introducer_extract
|
|
|
- <set >
|
|
|
- <if test="wue_phone != null" >
|
|
|
- wue_phone = #{wue_phone,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_orderno != null" >
|
|
|
- wue_phone = #{wue_orderno,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_bank_card != null" >
|
|
|
- wue_bank_card = #{wue_bank_card,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_type != null" >
|
|
|
- wue_type = #{wue_type,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_applydate != null" >
|
|
|
- wue_applydate = #{wue_applydate,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="wue_applysum != null" >
|
|
|
- wue_applysum = #{wue_applysum,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="wue_approverdate != null" >
|
|
|
- wue_approverdate = #{wue_approverdate,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="wue_approversum != null" >
|
|
|
- wue_approversum = #{wue_approversum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_approveruser != null" >
|
|
|
- wue_approveruser = #{wue_approveruser,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_remarks != null" >
|
|
|
- wue_remarks = #{wue_remarks,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_paydate != null" >
|
|
|
- wue_paydate = #{wue_paydate,jdbcType=DATE}
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
-
|
|
|
- <insert id="insertDcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
- insert into dc_introducer_extract
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="wue_phone != null" >
|
|
|
- wue_phone,
|
|
|
- </if>
|
|
|
- <if test="wue_bank_card != null" >
|
|
|
- wue_bank_card,
|
|
|
- </if>
|
|
|
- <if test="wue_orderno != null" >
|
|
|
- wue_orderno,
|
|
|
- </if>
|
|
|
- <if test="wue_type != null" >
|
|
|
- wue_type,
|
|
|
- </if>
|
|
|
- <if test="wue_applydate != null" >
|
|
|
- wue_applydate,
|
|
|
- </if>
|
|
|
- <if test="wue_applysum != null" >
|
|
|
- wue_applysum,
|
|
|
- </if>
|
|
|
- <if test="wue_approverdate != null" >
|
|
|
- wue_approverdate,
|
|
|
- </if>
|
|
|
- <if test="wue_approversum != null" >
|
|
|
- wue_approversum,
|
|
|
- </if>
|
|
|
- <if test="wue_approveruser != null" >
|
|
|
- wue_approveruser,
|
|
|
- </if>
|
|
|
- <if test="wue_remarks != null" >
|
|
|
- wue_remarks,
|
|
|
- </if>
|
|
|
- <if test="wue_paydate != null" >
|
|
|
- wue_paydate
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="wue_phone != null" >
|
|
|
- #{wue_phone,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_bank_card != null" >
|
|
|
- #{wue_bank_card,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_orderno != null" >
|
|
|
- #{wue_orderno,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wue_type != null" >
|
|
|
- #{wue_type,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_applydate != null" >
|
|
|
- #{wue_applydate,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="wue_applysum != null" >
|
|
|
- #{wue_applysum,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="wue_approverdate != null" >
|
|
|
- #{wue_approverdate,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="wue_approversum != null" >
|
|
|
- #{wue_approversum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_approveruser != null" >
|
|
|
- #{wue_approveruser,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_remarks != null" >
|
|
|
- #{wue_remarks,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="wue_paydate != null" >
|
|
|
- #{wue_paydate,jdbcType=DATE}
|
|
|
- </if>
|
|
|
-
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <select id="getAESeq" resultType="java.lang.Integer" >
|
|
|
- select
|
|
|
- count(1)
|
|
|
- from dc_introducer_extract
|
|
|
- where date_format(wue_applydate,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
|
|
|
- </select>
|
|
|
- <update id="updateIEByPhoneChange" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
- update dc_introducer_extract
|
|
|
- <set >
|
|
|
- <if test="wue_phone != null" >
|
|
|
- wue_phone = #{wue_phone,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where wue_phone = #{wue_phoneOld,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
-
|
|
|
-
|
|
|
+<?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.ygj.yuemum.dao.distributionchannel.DcIntroducerExtractDao" >
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
+ <result column="id" property="id" jdbcType="INTEGER" />
|
|
|
+ <result column="wue_orderno" property="wue_orderno" jdbcType="VARCHAR" />
|
|
|
+ <result column="wue_phone" property="wue_phone" jdbcType="VARCHAR" />
|
|
|
+ <result column="wue_account_name" property="wue_account_name" jdbcType="VARCHAR" />
|
|
|
+ <result column="wue_bank_card" property="wue_bank_card" jdbcType="VARCHAR" />
|
|
|
+ <result column="wue_type" property="wue_type" jdbcType="INTEGER" />
|
|
|
+ <result column="wue_applydate" property="wue_applydate" jdbcType="DATE" />
|
|
|
+ <result column="wue_applysum" property="wue_applysum" jdbcType="DECIMAL" />
|
|
|
+ <result column="wue_approverdate" property="wue_approverdate" jdbcType="DATE" />
|
|
|
+ <result column="wue_approversum" property="wue_approversum" jdbcType="INTEGER" />
|
|
|
+ <result column="wue_approveruser" property="wue_approveruser" jdbcType="INTEGER" />
|
|
|
+ <result column="wue_paydate" property="wue_paydate" jdbcType="DATE" />
|
|
|
+ <result column="wue_remarks" property="wue_remarks" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!--获取所有数据-->
|
|
|
+ <select id="getDcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.String">
|
|
|
+ select
|
|
|
+ id,
|
|
|
+ wue_orderno,
|
|
|
+ wue_phone,
|
|
|
+ wue_type,
|
|
|
+ wue_account_name,
|
|
|
+ wue_bank_card,
|
|
|
+ DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
+ wue_applysum,
|
|
|
+ DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
+ wue_approversum,
|
|
|
+ fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
+ DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
+ wue_remarks
|
|
|
+ from dc_introducer_extract
|
|
|
+ where wue_phone = #{phone,jdbcType=VARCHAR}
|
|
|
+ order by wue_type asc ,id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="queryOneDcIntroducerExtract" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ id,
|
|
|
+ wue_orderno,
|
|
|
+ wue_phone,
|
|
|
+ wue_account_name,
|
|
|
+ wue_bank_card,
|
|
|
+ wue_type,
|
|
|
+ DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
+ wue_applysum,
|
|
|
+ DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
+ wue_approversum,
|
|
|
+ fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
+ DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
+ wue_remarks
|
|
|
+ from dc_introducer_extract
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ order by wue_type asc ,id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="date_DcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="java.lang.String">
|
|
|
+ select
|
|
|
+ id,
|
|
|
+ wue_orderno,
|
|
|
+ wue_phone,
|
|
|
+ wue_account_name,
|
|
|
+ wue_bank_card,
|
|
|
+ wue_type,
|
|
|
+ DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
+ wue_applysum,
|
|
|
+ DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
+ wue_approversum,
|
|
|
+ fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
+ DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
+ wue_remarks
|
|
|
+ from dc_introducer_extract
|
|
|
+ where DATE_FORMAT(wue_applydate, '%Y-%m-%d') = #{applydate,jdbcType=VARCHAR}
|
|
|
+ order by wue_type asc ,id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="queryDcIntroducerExtracts" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract">
|
|
|
+ select
|
|
|
+ id,
|
|
|
+ wue_orderno,
|
|
|
+ wue_phone,
|
|
|
+ wue_account_name,
|
|
|
+ wue_bank_card,
|
|
|
+ wue_type,
|
|
|
+ DATE_FORMAT(wue_applydate, '%Y-%m-%d') wue_applydate,
|
|
|
+ wue_applysum,
|
|
|
+ DATE_FORMAT(wue_approverdate, '%Y-%m-%d') wue_approverdate,
|
|
|
+ wue_approversum,
|
|
|
+ fgetuser_name(wue_approveruser) wue_approveruser,
|
|
|
+ DATE_FORMAT(wue_paydate, '%Y-%m-%d') wue_paydate,
|
|
|
+ wue_remarks
|
|
|
+ from dc_introducer_extract
|
|
|
+ where 1=1
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and id = #{id,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="wue_orderno != null and wue_orderno != ''">
|
|
|
+ and wue_orderno = #{wue_orderno,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="wue_phone != null and wue_phone != ''">
|
|
|
+ and wue_phone = #{wue_phone,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="wue_account_name != null and wue_account_name != ''">
|
|
|
+ and wue_account_name like "%"#{wue_account_name,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+ <if test="wue_bank_card != null and wue_bank_card != ''">
|
|
|
+ and wue_bank_card like "%"#{wue_bank_card,jdbcType=VARCHAR}"%"
|
|
|
+ </if>
|
|
|
+ <if test="wue_type != null and wue_type != ''">
|
|
|
+ and wue_type = #{wue_type,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="wue_applydate != null and wue_applydate != ''">
|
|
|
+ and DATE_FORMAT(wue_applydate, '%Y-%m-%d') = #{wue_applydate,jdbcType=DATE}
|
|
|
+ </if>
|
|
|
+ <if test="wue_applysum != null and wue_applysum != ''">
|
|
|
+ and wue_applysum = #{wue_applysum,jdbcType=DECIMAL}
|
|
|
+ </if>
|
|
|
+ <if test="wue_approverdate != null and wue_approverdate != ''">
|
|
|
+ and DATE_FORMAT(wue_approverdate, '%Y-%m-%d') = #{wue_approverdate,jdbcType=DATE}
|
|
|
+ </if>
|
|
|
+ <if test="wue_approversum != null and wue_approversum != ''">
|
|
|
+ and wue_approversum = #{wue_approversum,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="wue_approveruser != null and wue_approveruser != ''">
|
|
|
+ and wue_approveruser = #{wue_approveruser,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="wue_paydate != null and wue_paydate != ''">
|
|
|
+ and DATE_FORMAT(wue_paydate, '%Y-%m-%d') = #{wue_paydate,jdbcType=DATE}
|
|
|
+ </if>
|
|
|
+ order by id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="updateDcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
+ update dc_introducer_extract
|
|
|
+ <set >
|
|
|
+ <if test="wue_phone != null" >
|
|
|
+ wue_phone = #{wue_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_orderno != null" >
|
|
|
+ wue_phone = #{wue_orderno,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_account_name != null" >
|
|
|
+ wue_account_name = #{wue_account_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_bank_card != null" >
|
|
|
+ wue_bank_card = #{wue_bank_card,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_type != null" >
|
|
|
+ wue_type = #{wue_type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_applydate != null" >
|
|
|
+ wue_applydate = #{wue_applydate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="wue_applysum != null" >
|
|
|
+ wue_applysum = #{wue_applysum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approverdate != null" >
|
|
|
+ wue_approverdate = #{wue_approverdate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approversum != null" >
|
|
|
+ wue_approversum = #{wue_approversum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approveruser != null" >
|
|
|
+ wue_approveruser = #{wue_approveruser,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_remarks != null" >
|
|
|
+ wue_remarks = #{wue_remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_paydate != null" >
|
|
|
+ wue_paydate = #{wue_paydate,jdbcType=DATE}
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <insert id="insertDcIntroducerExtract" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
+ insert into dc_introducer_extract
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="wue_phone != null" >
|
|
|
+ wue_phone,
|
|
|
+ </if>
|
|
|
+ <if test="wue_account_name != null" >
|
|
|
+ wue_account_name,
|
|
|
+ </if>
|
|
|
+ <if test="wue_bank_card != null" >
|
|
|
+ wue_bank_card,
|
|
|
+ </if>
|
|
|
+ <if test="wue_orderno != null" >
|
|
|
+ wue_orderno,
|
|
|
+ </if>
|
|
|
+ <if test="wue_type != null" >
|
|
|
+ wue_type,
|
|
|
+ </if>
|
|
|
+ <if test="wue_applydate != null" >
|
|
|
+ wue_applydate,
|
|
|
+ </if>
|
|
|
+ <if test="wue_applysum != null" >
|
|
|
+ wue_applysum,
|
|
|
+ </if>
|
|
|
+ <if test="wue_approverdate != null" >
|
|
|
+ wue_approverdate,
|
|
|
+ </if>
|
|
|
+ <if test="wue_approversum != null" >
|
|
|
+ wue_approversum,
|
|
|
+ </if>
|
|
|
+ <if test="wue_approveruser != null" >
|
|
|
+ wue_approveruser,
|
|
|
+ </if>
|
|
|
+ <if test="wue_remarks != null" >
|
|
|
+ wue_remarks,
|
|
|
+ </if>
|
|
|
+ <if test="wue_paydate != null" >
|
|
|
+ wue_paydate
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="wue_phone != null" >
|
|
|
+ #{wue_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_account_name != null" >
|
|
|
+ #{wue_account_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_bank_card != null" >
|
|
|
+ #{wue_bank_card,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_orderno != null" >
|
|
|
+ #{wue_orderno,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wue_type != null" >
|
|
|
+ #{wue_type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_applydate != null" >
|
|
|
+ #{wue_applydate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="wue_applysum != null" >
|
|
|
+ #{wue_applysum,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approverdate != null" >
|
|
|
+ #{wue_approverdate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approversum != null" >
|
|
|
+ #{wue_approversum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_approveruser != null" >
|
|
|
+ #{wue_approveruser,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_remarks != null" >
|
|
|
+ #{wue_remarks,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wue_paydate != null" >
|
|
|
+ #{wue_paydate,jdbcType=DATE}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="getAESeq" resultType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ count(1)
|
|
|
+ from dc_introducer_extract
|
|
|
+ where date_format(wue_applydate,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
|
|
|
+ </select>
|
|
|
+ <update id="updateIEByPhoneChange" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducerExtract" >
|
|
|
+ update dc_introducer_extract
|
|
|
+ <set >
|
|
|
+ <if test="wue_phone != null" >
|
|
|
+ wue_phone = #{wue_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where wue_phone = #{wue_phoneOld,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|