|
@@ -8,9 +8,9 @@
|
|
|
<!-- 保存积分赠送信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存积分赠送信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveIntegralGiftDetailInfo" parameterType="Map">
|
|
<insert id="saveIntegralGiftDetailInfo" parameterType="Map">
|
|
|
insert into integral_gift_detail(
|
|
insert into integral_gift_detail(
|
|
|
- config_name,create_user_id,quantity,config_id,detail_id,rule_name,tel,community_id,rule_id,user_name
|
|
|
|
|
|
|
+ config_name,create_user_id,quantity,detail_id,acct_id,user_name,acct_name,config_id,acct_detail_id,rule_name,tel,community_id,rule_id
|
|
|
) values (
|
|
) values (
|
|
|
- #{configName},#{createUserId},#{quantity},#{configId},#{detailId},#{ruleName},#{tel},#{communityId},#{ruleId},#{userName}
|
|
|
|
|
|
|
+ #{configName},#{createUserId},#{quantity},#{detailId},#{acctId},#{userName},#{acctName},#{configId},#{acctDetailId},#{ruleName},#{tel},#{communityId},#{ruleId}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -18,9 +18,10 @@
|
|
|
<!-- 查询积分赠送信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询积分赠送信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="getIntegralGiftDetailInfo" parameterType="Map" resultType="Map">
|
|
<select id="getIntegralGiftDetailInfo" parameterType="Map" resultType="Map">
|
|
|
select t.config_name,t.config_name configName,t.create_user_id,t.create_user_id
|
|
select t.config_name,t.config_name configName,t.create_user_id,t.create_user_id
|
|
|
- createUserId,t.quantity,t.config_id,t.config_id configId,t.detail_id,t.detail_id
|
|
|
|
|
- detailId,t.rule_name,t.rule_name ruleName,t.tel,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
|
|
|
|
|
- communityId,t.rule_id,t.rule_id ruleId,t.user_name,t.user_name userName,t.create_time createTime
|
|
|
|
|
|
|
+ createUserId,t.quantity,t.detail_id,t.detail_id detailId,t.acct_id,t.acct_id acctId,t.status_cd,t.status_cd
|
|
|
|
|
+ statusCd,t.user_name,t.user_name userName,t.acct_name,t.acct_name acctName,t.config_id,t.config_id
|
|
|
|
|
+ configId,t.acct_detail_id,t.acct_detail_id acctDetailId,t.rule_name,t.rule_name
|
|
|
|
|
+ ruleName,t.tel,t.community_id,t.community_id communityId,t.rule_id,t.rule_id ruleId,t.create_time createTime
|
|
|
from integral_gift_detail t
|
|
from integral_gift_detail t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="configName !=null and configName != ''">
|
|
<if test="configName !=null and configName != ''">
|
|
@@ -32,11 +33,26 @@
|
|
|
<if test="quantity !=null and quantity != ''">
|
|
<if test="quantity !=null and quantity != ''">
|
|
|
and t.quantity= #{quantity}
|
|
and t.quantity= #{quantity}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="detailId !=null and detailId != ''">
|
|
|
|
|
+ and t.detail_id= #{detailId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="acctId !=null and acctId != ''">
|
|
|
|
|
+ and t.acct_id= #{acctId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="statusCd !=null and statusCd != ''">
|
|
|
|
|
+ and t.status_cd= #{statusCd}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="userName !=null and userName != ''">
|
|
|
|
|
+ and t.user_name= #{userName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="acctName !=null and acctName != ''">
|
|
|
|
|
+ and t.acct_name= #{acctName}
|
|
|
|
|
+ </if>
|
|
|
<if test="configId !=null and configId != ''">
|
|
<if test="configId !=null and configId != ''">
|
|
|
and t.config_id= #{configId}
|
|
and t.config_id= #{configId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="detailId !=null and detailId != ''">
|
|
|
|
|
- and t.detail_id= #{detailId}
|
|
|
|
|
|
|
+ <if test="acctDetailId !=null and acctDetailId != ''">
|
|
|
|
|
+ and t.acct_detail_id= #{acctDetailId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
|
and t.rule_name= #{ruleName}
|
|
and t.rule_name= #{ruleName}
|
|
@@ -44,18 +60,12 @@
|
|
|
<if test="tel !=null and tel != ''">
|
|
<if test="tel !=null and tel != ''">
|
|
|
and t.tel= #{tel}
|
|
and t.tel= #{tel}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="statusCd !=null and statusCd != ''">
|
|
|
|
|
- and t.status_cd= #{statusCd}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
|
and t.rule_id= #{ruleId}
|
|
and t.rule_id= #{ruleId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="userName !=null and userName != ''">
|
|
|
|
|
- and t.user_name= #{userName}
|
|
|
|
|
- </if>
|
|
|
|
|
order by t.create_time desc
|
|
order by t.create_time desc
|
|
|
<if test="page != -1 and page != null ">
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|
|
limit #{page}, #{row}
|
|
@@ -79,9 +89,21 @@
|
|
|
<if test="quantity !=null and quantity != ''">
|
|
<if test="quantity !=null and quantity != ''">
|
|
|
, t.quantity= #{quantity}
|
|
, t.quantity= #{quantity}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="acctId !=null and acctId != ''">
|
|
|
|
|
+ , t.acct_id= #{acctId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="userName !=null and userName != ''">
|
|
|
|
|
+ , t.user_name= #{userName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="acctName !=null and acctName != ''">
|
|
|
|
|
+ , t.acct_name= #{acctName}
|
|
|
|
|
+ </if>
|
|
|
<if test="configId !=null and configId != ''">
|
|
<if test="configId !=null and configId != ''">
|
|
|
, t.config_id= #{configId}
|
|
, t.config_id= #{configId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="acctDetailId !=null and acctDetailId != ''">
|
|
|
|
|
+ , t.acct_detail_id= #{acctDetailId}
|
|
|
|
|
+ </if>
|
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
|
, t.rule_name= #{ruleName}
|
|
, t.rule_name= #{ruleName}
|
|
|
</if>
|
|
</if>
|
|
@@ -94,9 +116,6 @@
|
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
|
, t.rule_id= #{ruleId}
|
|
, t.rule_id= #{ruleId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="userName !=null and userName != ''">
|
|
|
|
|
- , t.user_name= #{userName}
|
|
|
|
|
- </if>
|
|
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="detailId !=null and detailId != ''">
|
|
<if test="detailId !=null and detailId != ''">
|
|
|
and t.detail_id= #{detailId}
|
|
and t.detail_id= #{detailId}
|
|
@@ -118,11 +137,26 @@
|
|
|
<if test="quantity !=null and quantity != ''">
|
|
<if test="quantity !=null and quantity != ''">
|
|
|
and t.quantity= #{quantity}
|
|
and t.quantity= #{quantity}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="detailId !=null and detailId != ''">
|
|
|
|
|
+ and t.detail_id= #{detailId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="acctId !=null and acctId != ''">
|
|
|
|
|
+ and t.acct_id= #{acctId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="statusCd !=null and statusCd != ''">
|
|
|
|
|
+ and t.status_cd= #{statusCd}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="userName !=null and userName != ''">
|
|
|
|
|
+ and t.user_name= #{userName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="acctName !=null and acctName != ''">
|
|
|
|
|
+ and t.acct_name= #{acctName}
|
|
|
|
|
+ </if>
|
|
|
<if test="configId !=null and configId != ''">
|
|
<if test="configId !=null and configId != ''">
|
|
|
and t.config_id= #{configId}
|
|
and t.config_id= #{configId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="detailId !=null and detailId != ''">
|
|
|
|
|
- and t.detail_id= #{detailId}
|
|
|
|
|
|
|
+ <if test="acctDetailId !=null and acctDetailId != ''">
|
|
|
|
|
+ and t.acct_detail_id= #{acctDetailId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
<if test="ruleName !=null and ruleName != ''">
|
|
|
and t.rule_name= #{ruleName}
|
|
and t.rule_name= #{ruleName}
|
|
@@ -130,18 +164,12 @@
|
|
|
<if test="tel !=null and tel != ''">
|
|
<if test="tel !=null and tel != ''">
|
|
|
and t.tel= #{tel}
|
|
and t.tel= #{tel}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="statusCd !=null and statusCd != ''">
|
|
|
|
|
- and t.status_cd= #{statusCd}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="communityId !=null and communityId != ''">
|
|
<if test="communityId !=null and communityId != ''">
|
|
|
and t.community_id= #{communityId}
|
|
and t.community_id= #{communityId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
<if test="ruleId !=null and ruleId != ''">
|
|
|
and t.rule_id= #{ruleId}
|
|
and t.rule_id= #{ruleId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="userName !=null and userName != ''">
|
|
|
|
|
- and t.user_name= #{userName}
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|