| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?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.fs.his.mapper.FsUserExtractMapper">
-
- <resultMap type="FsUserExtract" id="FsUserExtractResult">
- <result property="extractId" column="extract_id" />
- <result property="userId" column="user_id" />
- <result property="extractType" column="extract_type" />
- <result property="userName" column="user_name" />
- <result property="phone" column="phone" />
- <result property="bankNo" column="bank_no" />
- <result property="bankName" column="bank_name" />
- <result property="bankSubName" column="bank_sub_name" />
- <result property="alipayName" column="alipay_name" />
- <result property="alipayAccount" column="alipay_account" />
- <result property="wechat" column="wechat" />
- <result property="extractPrice" column="extract_price" />
- <result property="balance" column="balance" />
- <result property="failMsg" column="fail_msg" />
- <result property="failTime" column="fail_time" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- <result property="status" column="status" />
- <result property="remark" column="remark" />
- <result property="isDel" column="is_del" />
- </resultMap>
- <sql id="selectFsUserExtractVo">
- select extract_id, user_id, extract_type, user_name, phone, bank_no, bank_name, bank_sub_name, alipay_name, alipay_account, wechat, extract_price, balance, fail_msg, fail_time, create_time, update_time, status, remark, is_del from fs_user_extract
- </sql>
- <select id="selectFsUserExtractList" parameterType="FsUserExtract" resultMap="FsUserExtractResult">
- <include refid="selectFsUserExtractVo"/>
- <where>
- <if test="userId != null and userId != ''"> and user_id = #{userId}</if>
- <if test="extractType != null and extractType != ''"> and extract_type = #{extractType}</if>
- <if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
- <if test="phone != null and phone != ''"> and phone = #{phone}</if>
- <if test="bankNo != null and bankNo != ''"> and bank_no = #{bankNo}</if>
- <if test="bankName != null and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if>
- <if test="bankSubName != null and bankSubName != ''"> and bank_sub_name like concat('%', #{bankSubName}, '%')</if>
- <if test="alipayName != null and alipayName != ''"> and alipay_name like concat('%', #{alipayName}, '%')</if>
- <if test="alipayAccount != null and alipayAccount != ''"> and alipay_account = #{alipayAccount}</if>
- <if test="wechat != null and wechat != ''"> and wechat = #{wechat}</if>
- <if test="extractPrice != null "> and extract_price = #{extractPrice}</if>
- <if test="balance != null "> and balance = #{balance}</if>
- <if test="failMsg != null and failMsg != ''"> and fail_msg = #{failMsg}</if>
- <if test="failTime != null "> and fail_time = #{failTime}</if>
- <if test="status != null "> and status = #{status}</if>
- <if test="isDel != null "> and is_del = #{isDel}</if>
- </where>
- </select>
-
- <select id="selectFsUserExtractByExtractId" parameterType="String" resultMap="FsUserExtractResult">
- <include refid="selectFsUserExtractVo"/>
- where extract_id = #{extractId}
- </select>
-
- <insert id="insertFsUserExtract" parameterType="FsUserExtract" useGeneratedKeys="true" keyProperty="extractId">
- insert into fs_user_extract
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="userId != null">user_id,</if>
- <if test="extractType != null">extract_type,</if>
- <if test="userName != null">user_name,</if>
- <if test="phone != null">phone,</if>
- <if test="bankNo != null">bank_no,</if>
- <if test="bankName != null">bank_name,</if>
- <if test="bankSubName != null">bank_sub_name,</if>
- <if test="alipayName != null">alipay_name,</if>
- <if test="alipayAccount != null">alipay_account,</if>
- <if test="wechat != null">wechat,</if>
- <if test="extractPrice != null">extract_price,</if>
- <if test="balance != null">balance,</if>
- <if test="failMsg != null">fail_msg,</if>
- <if test="failTime != null">fail_time,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="status != null">status,</if>
- <if test="remark != null">remark,</if>
- <if test="isDel != null">is_del,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="userId != null">#{userId},</if>
- <if test="extractType != null">#{extractType},</if>
- <if test="userName != null">#{userName},</if>
- <if test="phone != null">#{phone},</if>
- <if test="bankNo != null">#{bankNo},</if>
- <if test="bankName != null">#{bankName},</if>
- <if test="bankSubName != null">#{bankSubName},</if>
- <if test="alipayName != null">#{alipayName},</if>
- <if test="alipayAccount != null">#{alipayAccount},</if>
- <if test="wechat != null">#{wechat},</if>
- <if test="extractPrice != null">#{extractPrice},</if>
- <if test="balance != null">#{balance},</if>
- <if test="failMsg != null">#{failMsg},</if>
- <if test="failTime != null">#{failTime},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="status != null">#{status},</if>
- <if test="remark != null">#{remark},</if>
- <if test="isDel != null">#{isDel},</if>
- </trim>
- </insert>
- <update id="updateFsUserExtract" parameterType="FsUserExtract">
- update fs_user_extract
- <trim prefix="SET" suffixOverrides=",">
- <if test="userId != null">user_id = #{userId},</if>
- <if test="extractType != null">extract_type = #{extractType},</if>
- <if test="userName != null">user_name = #{userName},</if>
- <if test="phone != null">phone = #{phone},</if>
- <if test="bankNo != null">bank_no = #{bankNo},</if>
- <if test="bankName != null">bank_name = #{bankName},</if>
- <if test="bankSubName != null">bank_sub_name = #{bankSubName},</if>
- <if test="alipayName != null">alipay_name = #{alipayName},</if>
- <if test="alipayAccount != null">alipay_account = #{alipayAccount},</if>
- <if test="wechat != null">wechat = #{wechat},</if>
- <if test="extractPrice != null">extract_price = #{extractPrice},</if>
- <if test="balance != null">balance = #{balance},</if>
- <if test="failMsg != null">fail_msg = #{failMsg},</if>
- <if test="failTime != null">fail_time = #{failTime},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="status != null">status = #{status},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="isDel != null">is_del = #{isDel},</if>
- </trim>
- where extract_id = #{extractId}
- </update>
- <delete id="deleteFsUserExtractByExtractId" parameterType="String">
- delete from fs_user_extract where extract_id = #{extractId}
- </delete>
- <delete id="deleteFsUserExtractByExtractIds" parameterType="String">
- delete from fs_user_extract where extract_id in
- <foreach item="extractId" collection="array" open="(" separator="," close=")">
- #{extractId}
- </foreach>
- </delete>
- </mapper>
|