| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?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.FsDfAccountMapper">
- <resultMap type="FsDfAccount" id="FsDfAccountResult">
- <result property="id" column="id" />
- <result property="dfAppKey" column="df_app_key" />
- <result property="dfAppsecret" column="df_appsecret" />
- <result property="loginAccount" column="login_account" />
- <result property="callBackUrl" column="call_back_url" />
- <result property="monthlyCard" column="monthly_card" />
- <result property="expressProductCode" column="express_product_code" />
- <result property="senderName" column="sender_name" />
- <result property="senderPhone" column="sender_phone" />
- <result property="cityIds" column="city_ids" />
- <result property="senderProvince" column="sender_province" />
- <result property="senderCity" column="sender_city" />
- <result property="senderDistrict" column="sender_district" />
- <result property="senderAddress" column="sender_address" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- </resultMap>
- <sql id="selectFsDfAccountVo">
- select id, df_app_key, df_appsecret, login_account, call_back_url, monthly_card, express_product_code, sender_name, sender_phone, city_ids,sender_province, sender_city, sender_district, sender_address, create_time, update_time from fs_df_account
- </sql>
- <select id="selectFsDfAccountList" parameterType="FsDfAccount" resultMap="FsDfAccountResult">
- <include refid="selectFsDfAccountVo"/>
- <where>
- <if test="dfAppKey != null and dfAppKey != ''"> and df_app_key = #{dfAppKey}</if>
- <if test="dfAppsecret != null and dfAppsecret != ''"> and df_appsecret = #{dfAppsecret}</if>
- <if test="loginAccount != null and loginAccount != ''"> and login_account = #{loginAccount}</if>
- <if test="callBackUrl != null and callBackUrl != ''"> and call_back_url = #{callBackUrl}</if>
- <if test="monthlyCard != null and monthlyCard != ''"> and monthly_card = #{monthlyCard}</if>
- <if test="expressProductCode != null and expressProductCode != ''"> and express_product_code = #{expressProductCode}</if>
- <if test="senderName != null and senderName != ''"> and sender_name like concat('%', #{senderName}, '%')</if>
- <if test="senderPhone != null and senderPhone != ''"> and sender_phone = #{senderPhone}</if>
- <if test="cityIds != null and cityIds != ''"> and city_ids = #{cityIds}</if>
- <if test="senderProvince != null and senderProvince != ''"> and sender_province = #{senderProvince}</if>
- <if test="senderCity != null and senderCity != ''"> and sender_city = #{senderCity}</if>
- <if test="senderDistrict != null and senderDistrict != ''"> and sender_district = #{senderDistrict}</if>
- <if test="senderAddress != null and senderAddress != ''"> and sender_address = #{senderAddress}</if>
- </where>
- </select>
- <select id="selectFsDfAccountById" parameterType="Long" resultMap="FsDfAccountResult">
- <include refid="selectFsDfAccountVo"/>
- where id = #{id}
- </select>
- <select id="selectFsDfAccountByAccount" resultType="com.fs.his.domain.FsDfAccount">
- <include refid="selectFsDfAccountVo"/>
- where login_account like #{loginAccount}
- </select>
- <insert id="insertFsDfAccount" parameterType="FsDfAccount" useGeneratedKeys="true" keyProperty="id">
- insert into fs_df_account
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="dfAppKey != null and dfAppKey != ''">df_app_key,</if>
- <if test="dfAppsecret != null and dfAppsecret != ''">df_appsecret,</if>
- <if test="loginAccount != null and loginAccount != ''">login_account,</if>
- <if test="callBackUrl != null and callBackUrl != ''">call_back_url,</if>
- <if test="monthlyCard != null and monthlyCard != ''">monthly_card,</if>
- <if test="expressProductCode != null and expressProductCode != ''">express_product_code,</if>
- <if test="senderName != null and senderName != ''">sender_name,</if>
- <if test="senderPhone != null and senderPhone != ''">sender_phone,</if>
- <if test="cityIds != null and cityIds != ''">city_ids,</if>
- <if test="senderProvince != null and senderProvince != ''">sender_province,</if>
- <if test="senderCity != null and senderCity != ''">sender_city,</if>
- <if test="senderDistrict != null and senderDistrict != ''">sender_district,</if>
- <if test="senderAddress != null and senderAddress != ''">sender_address,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateTime != null">update_time,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="dfAppKey != null and dfAppKey != ''">#{dfAppKey},</if>
- <if test="dfAppsecret != null and dfAppsecret != ''">#{dfAppsecret},</if>
- <if test="loginAccount != null and loginAccount != ''">#{loginAccount},</if>
- <if test="callBackUrl != null and callBackUrl != ''">#{callBackUrl},</if>
- <if test="monthlyCard != null and monthlyCard != ''">#{monthlyCard},</if>
- <if test="expressProductCode != null and expressProductCode != ''">#{expressProductCode},</if>
- <if test="senderName != null and senderName != ''">#{senderName},</if>
- <if test="senderPhone != null and senderPhone != ''">#{senderPhone},</if>
- <if test="cityIds != null and cityIds != ''">#{cityIds},</if>
- <if test="senderProvince != null and senderProvince != ''">#{senderProvince},</if>
- <if test="senderCity != null and senderCity != ''">#{senderCity},</if>
- <if test="senderDistrict != null and senderDistrict != ''">#{senderDistrict},</if>
- <if test="senderAddress != null and senderAddress != ''">#{senderAddress},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateTime != null">#{updateTime},</if>
- </trim>
- </insert>
- <update id="updateFsDfAccount" parameterType="FsDfAccount">
- update fs_df_account
- <trim prefix="SET" suffixOverrides=",">
- <if test="dfAppKey != null and dfAppKey != ''">df_app_key = #{dfAppKey},</if>
- <if test="dfAppsecret != null and dfAppsecret != ''">df_appsecret = #{dfAppsecret},</if>
- <if test="loginAccount != null and loginAccount != ''">login_account = #{loginAccount},</if>
- <if test="callBackUrl != null and callBackUrl != ''">call_back_url = #{callBackUrl},</if>
- <if test="monthlyCard != null and monthlyCard != ''">monthly_card = #{monthlyCard},</if>
- <if test="expressProductCode != null and expressProductCode != ''">express_product_code = #{expressProductCode},</if>
- <if test="senderName != null and senderName != ''">sender_name = #{senderName},</if>
- <if test="senderPhone != null and senderPhone != ''">sender_phone = #{senderPhone},</if>
- <if test="cityIds != null">city_ids = #{cityIds},</if>
- <if test="senderProvince != null and senderProvince != ''">sender_province = #{senderProvince},</if>
- <if test="senderCity != null and senderCity != ''">sender_city = #{senderCity},</if>
- <if test="senderDistrict != null and senderDistrict != ''">sender_district = #{senderDistrict},</if>
- <if test="senderAddress != null and senderAddress != ''">sender_address = #{senderAddress},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteFsDfAccountById" parameterType="Long">
- delete from fs_df_account where id = #{id}
- </delete>
- <delete id="deleteFsDfAccountByIds" parameterType="String">
- delete from fs_df_account where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|