新店装修阶段2.0+修改查询运营列表PSOT
This commit is contained in:
@@ -1,310 +1,318 @@
|
||||
<?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.cool.store.mapper.LinePayMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.LinePayDO">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
||||
<result column="line_id" jdbcType="BIGINT" property="lineId" />
|
||||
<result column="pay_status" jdbcType="TINYINT" property="payStatus" />
|
||||
<result column="pay_type" jdbcType="TINYINT" property="payType" />
|
||||
<result column="pay_user_name" jdbcType="VARCHAR" property="payUserName" />
|
||||
<result column="pay_account" jdbcType="VARCHAR" property="payAccount" />
|
||||
<result column="bank_code" jdbcType="VARCHAR" property="bankCode" />
|
||||
<result column="bank_name" jdbcType="VARCHAR" property="bankName" />
|
||||
<result column="branch_bank_code" jdbcType="VARCHAR" property="branchBankCode" />
|
||||
<result column="branch_bank_name" jdbcType="VARCHAR" property="branchBankName" />
|
||||
<result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
|
||||
<result column="pay_pic" jdbcType="VARCHAR" property="payPic" />
|
||||
<result column="promise_pic" jdbcType="VARCHAR" property="promisePic" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
<result column="pay_business_type" jdbcType="TINYINT" property="payBusinessType" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, partner_id, line_id, pay_status, pay_type, pay_user_name, pay_account, bank_code,
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.LinePayDO">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="partner_id" jdbcType="VARCHAR" property="partnerId"/>
|
||||
<result column="line_id" jdbcType="BIGINT" property="lineId"/>
|
||||
<result column="pay_status" jdbcType="TINYINT" property="payStatus"/>
|
||||
<result column="pay_type" jdbcType="TINYINT" property="payType"/>
|
||||
<result column="pay_user_name" jdbcType="VARCHAR" property="payUserName"/>
|
||||
<result column="pay_account" jdbcType="VARCHAR" property="payAccount"/>
|
||||
<result column="bank_code" jdbcType="VARCHAR" property="bankCode"/>
|
||||
<result column="bank_name" jdbcType="VARCHAR" property="bankName"/>
|
||||
<result column="branch_bank_code" jdbcType="VARCHAR" property="branchBankCode"/>
|
||||
<result column="branch_bank_name" jdbcType="VARCHAR" property="branchBankName"/>
|
||||
<result column="pay_time" jdbcType="TIMESTAMP" property="payTime"/>
|
||||
<result column="pay_pic" jdbcType="VARCHAR" property="payPic"/>
|
||||
<result column="promise_pic" jdbcType="VARCHAR" property="promisePic"/>
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="create_user_id" jdbcType="VARCHAR" property="createUserId"/>
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId"/>
|
||||
<result column="deleted" jdbcType="BIT" property="deleted"/>
|
||||
<result column="pay_business_type" jdbcType="TINYINT" property="payBusinessType"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
, partner_id, line_id, pay_status, pay_type, pay_user_name, pay_account, bank_code,
|
||||
bank_name, branch_bank_code, branch_bank_name, pay_time, pay_pic, promise_pic, create_time,
|
||||
update_time, create_user_id, update_user_id, deleted,pay_business_type
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into xfsg_line_pay
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="partnerId != null">
|
||||
partner_id,
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
line_id,
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
pay_status,
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
pay_type,
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
pay_user_name,
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
pay_account,
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
bank_code,
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
bank_name,
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
branch_bank_code,
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name,
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
pay_time,
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
pay_pic,
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
promise_pic,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
create_user_id,
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id,
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="partnerId != null">
|
||||
#{partnerId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
#{lineId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
#{payStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
#{payType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
#{payUserName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
#{payAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
#{bankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
#{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
#{branchBankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
#{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
#{payTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
#{payPic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
#{promisePic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
#{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
#{updateUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
#{deleted,jdbcType=BIT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
update xfsg_line_pay
|
||||
<set>
|
||||
<if test="partnerId != null">
|
||||
partner_id = #{partnerId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
line_id = #{lineId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
pay_status = #{payStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
pay_type = #{payType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
pay_user_name = #{payUserName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
pay_account = #{payAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
bank_code = #{bankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
bank_name = #{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
branch_bank_code = #{branchBankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name = #{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
pay_pic = #{payPic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
promise_pic = #{promisePic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
create_user_id = #{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id = #{updateUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted = #{deleted,jdbcType=BIT},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPidAndLid">
|
||||
update xfsg_line_pay
|
||||
set audit_id = #{auditId}
|
||||
where line_id = #{lineId}
|
||||
and partner_id = #{partnerId}
|
||||
</update>
|
||||
<sql id="dynamicQuery">
|
||||
<trim prefix="WHERE" prefixOverrides="AND | OR">
|
||||
<if test="null != id">
|
||||
and t.id = #{id,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="null != partnerId">
|
||||
and t.partner_id = #{partnerId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != lineId">
|
||||
and t.line_id = #{lineId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="null != payStatus">
|
||||
and t.pay_status = #{payStatus,jdbcType=TINYINT}
|
||||
</if>
|
||||
<if test="null != payType">
|
||||
and t.pay_type = #{payType,jdbcType=TINYINT}
|
||||
</if>
|
||||
<if test="null != payUserName">
|
||||
and t.pay_user_name = #{payUserName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != payAccount">
|
||||
and t.pay_account = #{payAccount,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != bankCode">
|
||||
and t.bank_code = #{bankCode,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != bankName">
|
||||
and t.bank_name = #{bankName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != branchBankCode">
|
||||
and t.branch_bank_code = #{branchBankCode,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != branchBankName">
|
||||
and t.branch_bank_name = #{branchBankName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != payTime">
|
||||
and t.pay_time = #{payTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != payPic">
|
||||
and t.pay_pic = #{payPic,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != promisePic">
|
||||
and t.promise_pic = #{promisePic,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != createTime">
|
||||
and t.create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != updateTime">
|
||||
and t.update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != createUserId">
|
||||
and t.create_user_id = #{createUserId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != updateUserId">
|
||||
and t.update_user_id = #{updateUserId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != deleted">
|
||||
and t.deleted = #{deleted,jdbcType=BIT}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into xfsg_line_pay
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="partnerId != null">
|
||||
partner_id,
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
line_id,
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
pay_status,
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
pay_type,
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
pay_user_name,
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
pay_account,
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
bank_code,
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
bank_name,
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
branch_bank_code,
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name,
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
pay_time,
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
pay_pic,
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
promise_pic,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
create_user_id,
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id,
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
<if test="payBusinessType !=null">
|
||||
pay_business_type
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="partnerId != null">
|
||||
#{partnerId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
#{lineId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
#{payStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
#{payType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
#{payUserName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
#{payAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
#{bankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
#{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
#{branchBankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
#{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
#{payTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
#{payPic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
#{promisePic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
#{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
#{updateUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
#{deleted,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="payBusinessType !=null">
|
||||
#{payBusinessType,jdbcType=TINYINT}
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
update xfsg_line_pay
|
||||
<set>
|
||||
<if test="partnerId != null">
|
||||
partner_id = #{partnerId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lineId != null">
|
||||
line_id = #{lineId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="payStatus != null">
|
||||
pay_status = #{payStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payType != null">
|
||||
pay_type = #{payType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="payUserName != null">
|
||||
pay_user_name = #{payUserName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payAccount != null">
|
||||
pay_account = #{payAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankCode != null">
|
||||
bank_code = #{bankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankName != null">
|
||||
bank_name = #{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankCode != null">
|
||||
branch_bank_code = #{branchBankCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="branchBankName != null">
|
||||
branch_bank_name = #{branchBankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="payTime != null">
|
||||
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="payPic != null">
|
||||
pay_pic = #{payPic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="promisePic != null">
|
||||
promise_pic = #{promisePic,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
create_user_id = #{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateUserId != null">
|
||||
update_user_id = #{updateUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted = #{deleted,jdbcType=BIT},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPidAndLid">
|
||||
update xfsg_line_pay
|
||||
set audit_id = #{auditId}
|
||||
where line_id = #{lineId}
|
||||
and partner_id = #{partnerId}
|
||||
</update>
|
||||
<sql id="dynamicQuery">
|
||||
<trim prefix="WHERE" prefixOverrides="AND | OR">
|
||||
<if test="null != id">
|
||||
and t.id = #{id,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="null != partnerId">
|
||||
and t.partner_id = #{partnerId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != lineId">
|
||||
and t.line_id = #{lineId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="null != payStatus">
|
||||
and t.pay_status = #{payStatus,jdbcType=TINYINT}
|
||||
</if>
|
||||
<if test="null != payType">
|
||||
and t.pay_type = #{payType,jdbcType=TINYINT}
|
||||
</if>
|
||||
<if test="null != payUserName">
|
||||
and t.pay_user_name = #{payUserName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != payAccount">
|
||||
and t.pay_account = #{payAccount,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != bankCode">
|
||||
and t.bank_code = #{bankCode,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != bankName">
|
||||
and t.bank_name = #{bankName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != branchBankCode">
|
||||
and t.branch_bank_code = #{branchBankCode,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != branchBankName">
|
||||
and t.branch_bank_name = #{branchBankName,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != payTime">
|
||||
and t.pay_time = #{payTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != payPic">
|
||||
and t.pay_pic = #{payPic,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != promisePic">
|
||||
and t.promise_pic = #{promisePic,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != createTime">
|
||||
and t.create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != updateTime">
|
||||
and t.update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
</if>
|
||||
<if test="null != createUserId">
|
||||
and t.create_user_id = #{createUserId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != updateUserId">
|
||||
and t.update_user_id = #{updateUserId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="null != deleted">
|
||||
and t.deleted = #{deleted,jdbcType=BIT}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="getLinePayByLineId" resultMap="BaseResultMap">
|
||||
select *
|
||||
from xfsg_line_pay
|
||||
where line_id = #{lineId}
|
||||
and deleted = '0'
|
||||
</select>
|
||||
<select id="getLinePayByLineId" resultMap="BaseResultMap">
|
||||
select *
|
||||
from xfsg_line_pay
|
||||
where line_id = #{lineId}
|
||||
and deleted = '0'
|
||||
</select>
|
||||
|
||||
<select id="getLinePayByLineIdAndPayType" resultMap="BaseResultMap">
|
||||
select *
|
||||
from xfsg_line_pay
|
||||
where line_id = #{lineId}
|
||||
and deleted = '0'
|
||||
and pay_business_type = #{payBusinessType}
|
||||
</select>
|
||||
<select id="getLinePayByLineIdAndPayType" resultMap="BaseResultMap">
|
||||
select *
|
||||
from xfsg_line_pay
|
||||
where line_id = #{lineId}
|
||||
and deleted = '0'
|
||||
and pay_business_type = #{payBusinessType}
|
||||
</select>
|
||||
|
||||
<select id="getLinePayByLineIds" resultMap="BaseResultMap">
|
||||
select * from xfsg_line_pay where deleted = 0
|
||||
<if test="lineIds !=null and lineIds.size>0">
|
||||
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
|
||||
#{lineId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="getLinePayByLineIds" resultMap="BaseResultMap">
|
||||
select * from xfsg_line_pay where deleted = 0
|
||||
<if test="lineIds !=null and lineIds.size>0">
|
||||
<foreach collection="lineIds" item="lineId" open="and line_id in (" close=")" separator=",">
|
||||
#{lineId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -47,7 +47,7 @@
|
||||
<select id="getOpenPlanShopListByCondition"
|
||||
resultType="com.cool.store.dto.openPreparation.OpenPlanShopInfoDTO">
|
||||
select si.id as shopId, si.region_id AS regionId,si.line_id as lineId, si.shop_name as shopName,
|
||||
si.shop_code as shopCode, si.shop_manager_user_id as shopManagerUserId,li.investment_manager AS investmentManagerId,
|
||||
si.store_num as storeNum, si.shop_manager_user_id as shopManagerUserId,li.investment_manager AS investmentManagerId,
|
||||
li.username as partnerName, li.mobile as mobile ,
|
||||
op.submission_time AS submissionTime , op.result_type AS resultType
|
||||
from xfsg_opening_operation_plan op
|
||||
|
||||
@@ -79,13 +79,13 @@
|
||||
where shop_stage = 2
|
||||
and deleted = 0
|
||||
</select>
|
||||
<select id="queryShopCodeListByid" resultType="com.cool.store.dto.openPreparation.OpenPlanShopInfoDTO">
|
||||
select id as shopId,shop_code as shopCode
|
||||
<select id="queryStoreNumeListByid" resultType="com.cool.store.dto.openPreparation.OpenPlanShopInfoDTO">
|
||||
select id as shopId,store_num as storeNum
|
||||
from xfsg_shop_info
|
||||
where 1=1
|
||||
<if test="shopIdList != null and shopIdList.size >0">
|
||||
and id in
|
||||
<foreach collection="shopIdList" separator="," open="(" close=")" item="shopId">
|
||||
<foreach collection="shopIdList" separator="," open="(" close=")" item="shopId">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</if>
|
||||
@@ -149,11 +149,11 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="getRegionIdByShopCode" resultType="java.lang.Long">
|
||||
<select id="getRegionIdByid" resultType="java.lang.Long">
|
||||
select r.parent_id
|
||||
from xfsg_shop_info xsi
|
||||
join region_${enterpriseId} r on r.id = xsi.region_id
|
||||
where xsi.shop_code = #{shopCode}
|
||||
where xsi.id = #{shopId}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user