Commit c8c0399b by yao.xiao

修改佣金发放状态

parent 2bd7f88c
package com.yd.dal.entity.agms.fortune;
import com.yd.util.CommonUtil;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author xxy
*/
public class CustomerFortuneStatisticalInfo {
private Long customerId;
private String mobileNo;
private String customerName;
private String customerIdNo;
private Long customerIdTypeId;
private String customerBirthdate;
private Integer customerGender;
/**
* 历史累积财富
*/
private BigDecimal accumulatedFortune;
/**
* 剩余总财富
*/
private BigDecimal totalFortune;
/**
* 可提现财富
*/
private BigDecimal cashableFortune;
/**
* 暂不可提现财富
*/
private BigDecimal uncashableFortune;
/**
* 已提现财富
*/
private BigDecimal drawnFortune;
/**
* 已退保财富
*/
private BigDecimal cancelledFortune;
/**
* 提现中
*/
private BigDecimal processing;
/**
* 今年已提现金额
*/
private BigDecimal yearDrawnFortune;
/**
* 净资产
*/
private BigDecimal netAssets;
/**
* 获取
*
* @return customerId
*/
public Long getCustomerId() {
return this.customerId;
}
/**
* 设置
*
* @param customerId
*/
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
/**
* 获取
*
* @return mobileNo
*/
public String getMobileNo() {
return this.mobileNo;
}
/**
* 设置
*
* @param mobileNo
*/
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
/**
* 获取
*
* @return customerName
*/
public String getCustomerName() {
return this.customerName;
}
/**
* 设置
*
* @param customerName
*/
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
/**
* 获取
*
* @return customerIdNo
*/
public String getCustomerIdNo() {
return this.customerIdNo;
}
/**
* 设置
*
* @param customerIdNo
*/
public void setCustomerIdNo(String customerIdNo) {
this.customerIdNo = customerIdNo;
}
/**
* 获取
*
* @return customerIdTypeId
*/
public Long getCustomerIdTypeId() {
return this.customerIdTypeId;
}
/**
* 设置
*
* @param customerIdTypeId
*/
public void setCustomerIdTypeId(Long customerIdTypeId) {
this.customerIdTypeId = customerIdTypeId;
}
/**
* 获取
*
* @return customerBirthdate
*/
public String getCustomerBirthdate() {
return this.customerBirthdate;
}
/**
* 设置
*
* @param customerBirthdate
*/
public void setCustomerBirthdate(String customerBirthdate) {
this.customerBirthdate = customerBirthdate;
}
/**
* 获取
*
* @return customerGender
*/
public Integer getCustomerGender() {
return this.customerGender;
}
/**
* 设置
*
* @param customerGender
*/
public void setCustomerGender(Integer customerGender) {
this.customerGender = customerGender;
}
/**
* 获取 历史累积财富
*
* @return accumulatedFortune 历史累积财富
*/
public BigDecimal getAccumulatedFortune() {
return CommonUtil.isNullOrZero(this.accumulatedFortune)? BigDecimal.ZERO: this.accumulatedFortune;
}
/**
* 设置 历史累积财富
*
* @param accumulatedFortune 历史累积财富
*/
public void setAccumulatedFortune(BigDecimal accumulatedFortune) {
this.accumulatedFortune = accumulatedFortune;
}
/**
* 获取 剩余总财富
*
* @return totalFortune 剩余总财富
*/
public BigDecimal getTotalFortune() {
return CommonUtil.isNullOrZero(this.totalFortune)? BigDecimal.ZERO: this.totalFortune;
}
/**
* 设置 剩余总财富
*
* @param totalFortune 剩余总财富
*/
public void setTotalFortune(BigDecimal totalFortune) {
this.totalFortune = totalFortune;
}
/**
* 获取 可提现财富
*
* @return cashableFortune 可提现财富
*/
public BigDecimal getCashableFortune() {
return CommonUtil.isNullOrZero(this.cashableFortune)? BigDecimal.ZERO: this.cashableFortune;
}
/**
* 设置 可提现财富
*
* @param cashableFortune 可提现财富
*/
public void setCashableFortune(BigDecimal cashableFortune) {
this.cashableFortune = cashableFortune;
}
/**
* 获取 暂不可提现财富
*
* @return uncashableFortune 暂不可提现财富
*/
public BigDecimal getUncashableFortune() {
return CommonUtil.isNullOrZero(this.uncashableFortune)? BigDecimal.ZERO: this.uncashableFortune;
}
/**
* 设置 暂不可提现财富
*
* @param uncashableFortune 暂不可提现财富
*/
public void setUncashableFortune(BigDecimal uncashableFortune) {
this.uncashableFortune = uncashableFortune;
}
/**
* 获取 已提现财富
*
* @return drawnFortune 已提现财富
*/
public BigDecimal getDrawnFortune() {
return CommonUtil.isNullOrZero(this.drawnFortune)? BigDecimal.ZERO: this.drawnFortune;
}
/**
* 设置 已提现财富
*
* @param drawnFortune 已提现财富
*/
public void setDrawnFortune(BigDecimal drawnFortune) {
this.drawnFortune = drawnFortune;
}
/**
* 获取 已退保财富
*
* @return cancelledFortune 已退保财富
*/
public BigDecimal getCancelledFortune() {
return CommonUtil.isNullOrZero(this.cancelledFortune)? BigDecimal.ZERO: this.cancelledFortune;
}
/**
* 设置 已退保财富
*
* @param cancelledFortune 已退保财富
*/
public void setCancelledFortune(BigDecimal cancelledFortune) {
this.cancelledFortune = cancelledFortune;
}
/**
* 获取 提现中
*
* @return processing 提现中
*/
public BigDecimal getProcessing() {
return CommonUtil.isNullOrZero(this.processing)? BigDecimal.ZERO: this.processing;
}
/**
* 设置 提现中
*
* @param processing 提现中
*/
public void setProcessing(BigDecimal processing) {
this.processing = processing;
}
/**
* 获取 今年已提现金额
*
* @return yearDrawnFortune 今年已提现金额
*/
public BigDecimal getYearDrawnFortune() {
return CommonUtil.isNullOrZero(this.yearDrawnFortune)? BigDecimal.ZERO: this.yearDrawnFortune;
}
/**
* 设置 今年已提现金额
*
* @param yearDrawnFortune 今年已提现金额
*/
public void setYearDrawnFortune(BigDecimal yearDrawnFortune) {
this.yearDrawnFortune = yearDrawnFortune;
}
/**
* 获取 净资产
*
* @return netAssets 净资产
*/
public BigDecimal getNetAssets() {
return CommonUtil.isNullOrZero(this.netAssets)? BigDecimal.ZERO: this.netAssets;
}
/**
* 设置 净资产
*
* @param netAssets 净资产
*/
public void setNetAssets(BigDecimal netAssets) {
this.netAssets = netAssets;
}
}
package com.yd.dal.entity.meta;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
* 个人所得税预扣率表(居民个人工资、薪金所得预扣预缴适用)
* @author xxy
*/
@Data
public class MdIncometaxRate implements Serializable {
/**
* serial id
*/
private Long id;
/**
* 级数
*/
private Integer taxLevel;
/**
* 累计预扣预缴应纳税所得额 from
*/
private BigDecimal taxableFrom;
/**
* 累计预扣预缴应纳税所得额 to
*/
private BigDecimal taxableTo;
/**
* 预扣率(%)
*/
private Integer taxRate;
/**
* 速算扣除数
*/
private BigDecimal estDeductable;
/**
* 建置日
*/
private Date createdAt;
/**
* 建置者
*/
private Long createdBy;
/**
* 更新日
*/
private Date updatedAt;
/**
* 更新者
*/
private Long updatedBy;
}
\ No newline at end of file
package com.yd.dal.mapper.agms;
import com.yd.dal.entity.agms.fortune.CustomerFortuneStatisticalInfo;
import java.util.List;
/**
* @author xxy
*/
public interface AgmsFortuneMapper {
/**
* 通过customerid查询财富基本信息(历史累积财富 已退保财富 已提现财富 等)
* @param customerIdList customerIds
* @return 财富基本信息(历史累积财富 已退保财富 已提现财富 等)
*/
List<CustomerFortuneStatisticalInfo> findFortuneStatisticalByCustomers(List<Long> customerIdList);
}
......@@ -26,4 +26,6 @@ public interface AclCustomerFortuneMapper {
List<AclCustomerFortuneStatistics> findBySubordinateSystemStatistics(@Param("subordinateSystemId") Long subordinateSystemId, @Param("time") Integer time);
List<AclCustomerFortune> findByIds(Long[] fortuneIds);
List<AclCustomerFortune> findByWithdrawIds(List<Long> withdrawUpdateIds);
}
\ No newline at end of file
......@@ -22,4 +22,6 @@ public interface AclCustomerFortunePayMapper {
int updateBatchSelective(List<AclCustomerFortunePay> list);
int batchInsert(@Param("list") List<AclCustomerFortunePay> list);
List<AclCustomerFortunePay> findByWithdrawIds(List<Long> withdrawIds);
}
\ No newline at end of file
......@@ -27,4 +27,8 @@ public interface AclCustomerFortuneWithdrawMapper {
int batchInsert(@Param("list") List<AclCustomerFortuneWithdraw> list);
List<Map<String, Object>> findFinalWithdrawNoPayByCustomerIds(List<Long> customerIdList);
List<AclCustomerFortuneWithdraw> findByIds(List<Long> withdrawUpdateIds);
List<Map<String, Object>> findFinalWithdrawPayByCustomerIds(List<Long> customerIdList);
}
\ No newline at end of file
package com.yd.dal.mapper.meta;
import com.yd.dal.entity.meta.MdIncometaxRate;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MdIncometaxRateMapper {
int deleteByPrimaryKey(Long id);
int insert(MdIncometaxRate record);
int insertSelective(MdIncometaxRate record);
MdIncometaxRate selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(MdIncometaxRate record);
int updateByPrimaryKey(MdIncometaxRate record);
int updateBatch(List<MdIncometaxRate> list);
int updateBatchSelective(List<MdIncometaxRate> list);
int batchInsert(@Param("list") List<MdIncometaxRate> list);
List<MdIncometaxRate> findAll();
}
\ No newline at end of file
package com.yd.dal.service.agms;
import com.yd.dal.entity.agms.fortune.CustomerFortuneStatisticalInfo;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author xxy
*/
public interface AgmsFortuneDALService {
/**
* 通过customerid查询财富基本信息(历史累积财富 已退保财富 已提现财富 等)
* @param customerIds customerIds
* @return 财富基本信息(历史累积财富 已退保财富 已提现财富 等)
*/
Map<Long,CustomerFortuneStatisticalInfo> findFortuneStatisticalByCustomers(Set<Long> customerIds);
}
package com.yd.dal.service.agms.impl;
import com.yd.dal.entity.agms.fortune.CustomerFortuneStatisticalInfo;
import com.yd.dal.mapper.agms.AgmsFortuneMapper;
import com.yd.dal.service.agms.AgmsFortuneDALService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.*;
/**
* @author xxy
*/
@Service("agmsFortuneDALService")
public class AgmsFortuneDALServiceImpl implements AgmsFortuneDALService {
@Autowired
private AgmsFortuneMapper agmsFortuneMapper;
@Override
public Map<Long,CustomerFortuneStatisticalInfo> findFortuneStatisticalByCustomers(Set<Long> customerIds) {
List<Long> customerIdList = new ArrayList<>(customerIds);
List<CustomerFortuneStatisticalInfo> statisticalInfoList = agmsFortuneMapper.findFortuneStatisticalByCustomers(customerIdList);
Map<Long,CustomerFortuneStatisticalInfo> customerFortuneStatisticalMap = new HashMap<>(statisticalInfoList.size());
for (CustomerFortuneStatisticalInfo statisticalInfo: statisticalInfoList){
//可提现金额 历史累积财富-已提现财富-已退保财富-暂不可提现财富-申请中
BigDecimal cashableFortune = statisticalInfo.getAccumulatedFortune()
.subtract(statisticalInfo.getUncashableFortune())
.subtract(statisticalInfo.getDrawnFortune())
.subtract(statisticalInfo.getCancelledFortune())
.subtract(statisticalInfo.getProcessing());
statisticalInfo.setCashableFortune(cashableFortune);
//计算剩余总财富 历史累积财富-已提现财富-已退保财富
BigDecimal totalFortune = statisticalInfo.getAccumulatedFortune()
.subtract(statisticalInfo.getDrawnFortune())
.subtract(statisticalInfo.getCancelledFortune());
statisticalInfo.setTotalFortune(totalFortune);
//净资产 历史累积财富-已提现财富
BigDecimal netAssets = statisticalInfo.getAccumulatedFortune()
.subtract(statisticalInfo.getCancelledFortune());
statisticalInfo.setNetAssets(netAssets);
customerFortuneStatisticalMap.put(statisticalInfo.getCustomerId(),statisticalInfo);
}
return customerFortuneStatisticalMap;
}
}
......@@ -16,4 +16,6 @@ public interface AclCustomerFortuneDALService {
List<AclCustomerFortune> findByIds(Long[] fortuneIds);
void updateBatch(List<AclCustomerFortune> fortuneUpdates);
List<AclCustomerFortune> findByWithdrawIds(List<Long> withdrawUpdateIds);
}
package com.yd.dal.service.customer;
import com.yd.dal.entity.customer.AclCustomerFortunePay;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author xxy
*/
public interface AclCustomerFortunePayDALService {
/**
* 通过withdrawId批量查询
* @param withdrawIds withdrawIds
* @return List<AclCustomerFortunePay>
*/
List<AclCustomerFortunePay> findByWithdrawIds(List<Long> withdrawIds);
/**
* 批量更新
* @param pays pays
*/
void updateAll(List<AclCustomerFortunePay> pays);
Long save(AclCustomerFortunePay pay);
}
......@@ -3,6 +3,7 @@ package com.yd.dal.service.customer;
import com.yd.dal.entity.customer.AclCustomerFortuneWithdraw;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.Set;
......@@ -17,4 +18,26 @@ public interface AclCustomerFortuneWithdrawDALService {
* @return map customerId withdrawId
*/
Map<Long, Long> findFinalWithdrawNoPayByCustomerIds(Set<Long> customerIds);
/**
* 通过id批量查询
* @param withdrawUpdateIds ids
* @return AclCustomerFortuneWithdraw
*/
List<AclCustomerFortuneWithdraw> findByIds(List<Long> withdrawUpdateIds);
/**
* 批量更新
* @param withdraws withdraws
*/
void updateAll(List<AclCustomerFortuneWithdraw> withdraws);
/**
* 查询这些customerId最后一笔已完成的提现记录
* @param customerIds 客户id
* @return map customerId withdrawId
*/
Map<Long, Long> findFinalWithdrawPayByCustomerIds(Set<Long> customerIds);
Long save(AclCustomerFortuneWithdraw withdraw);
}
......@@ -29,4 +29,9 @@ public class AclCustomerFortuneDALServiceImpl implements AclCustomerFortuneDALSe
aclCustomerFortuneMapper.updateBatch(fortuneUpdates);
}
}
@Override
public List<AclCustomerFortune> findByWithdrawIds(List<Long> withdrawUpdateIds) {
return aclCustomerFortuneMapper.findByWithdrawIds(withdrawUpdateIds);
}
}
package com.yd.dal.service.customer.impl;
import com.yd.dal.entity.customer.AclCustomerFortunePay;
import com.yd.dal.mapper.customer.AclCustomerFortunePayMapper;
import com.yd.dal.service.customer.AclCustomerFortunePayDALService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author xxy
*/
@Service("aclCustomerFortunePayDALService")
public class AclCustomerFortunePayDALServiceImpl implements AclCustomerFortunePayDALService {
@Autowired
private AclCustomerFortunePayMapper customerFortunePayMapper;
@Override
public List<AclCustomerFortunePay> findByWithdrawIds(List<Long> withdrawIds) {
return customerFortunePayMapper.findByWithdrawIds(withdrawIds);
}
@Override
public void updateAll(List<AclCustomerFortunePay> pays) {
customerFortunePayMapper.updateBatch(pays);
}
@Override
public Long save(AclCustomerFortunePay pay) {
return (long)customerFortunePayMapper.insert(pay);
}
}
package com.yd.dal.service.customer.impl;
import com.yd.dal.entity.customer.AclCustomerFortuneWithdraw;
import com.yd.dal.mapper.customer.AclCustomerFortuneWithdrawMapper;
import com.yd.dal.service.customer.AclCustomerFortuneWithdrawDALService;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -20,6 +21,32 @@ public class AclCustomerFortuneWithdrawDALServiceImpl implements AclCustomerFort
public Map<Long, Long> findFinalWithdrawNoPayByCustomerIds(Set<Long> customerIds) {
List<Long> customerIdList = new ArrayList<>(customerIds);
List<Map<String,Object>> customerWithdrawList = customerFortuneWithdrawMapper.findFinalWithdrawNoPayByCustomerIds(customerIdList);
return changeCustomerWithdrawMap(customerWithdrawList);
}
@Override
public List<AclCustomerFortuneWithdraw> findByIds(List<Long> withdrawUpdateIds) {
return customerFortuneWithdrawMapper.findByIds(withdrawUpdateIds);
}
@Override
public void updateAll(List<AclCustomerFortuneWithdraw> withdraws) {
customerFortuneWithdrawMapper.updateBatch(withdraws);
}
@Override
public Map<Long, Long> findFinalWithdrawPayByCustomerIds(Set<Long> customerIds) {
List<Long> customerIdList = new ArrayList<>(customerIds);
List<Map<String,Object>> customerWithdrawList = customerFortuneWithdrawMapper.findFinalWithdrawPayByCustomerIds(customerIdList);
return changeCustomerWithdrawMap(customerWithdrawList);
}
@Override
public Long save(AclCustomerFortuneWithdraw withdraw) {
return (long) customerFortuneWithdrawMapper.insert(withdraw);
}
private Map<Long, Long> changeCustomerWithdrawMap(List<Map<String, Object>> customerWithdrawList) {
Map<Long, Long> customerWithdrawMap = new HashMap<>(16);
for (Map<String, Object> customerWithdraw : customerWithdrawList) {
Long customerId = (Long) customerWithdraw.get("customerId");
......@@ -29,6 +56,6 @@ public class AclCustomerFortuneWithdrawDALServiceImpl implements AclCustomerFort
Long withdrawId = Long.valueOf(withdrawList.get(withdrawList.size()-1));
customerWithdrawMap.put(customerId,withdrawId);
}
return customerWithdrawMap;
return customerWithdrawMap;
}
}
package com.yd.dal.service.meta;
import com.yd.dal.entity.meta.MdIncometaxRate;
import java.util.List;
/**
* @author xxy
*/
public interface MdIncometaxRateDALService {
/**
* 查询所有
* @return 所有
*/
List<MdIncometaxRate> findAll();
}
package com.yd.dal.service.meta.impl;
import com.yd.dal.entity.meta.MdIncometaxRate;
import com.yd.dal.mapper.meta.MdIncometaxRateMapper;
import com.yd.dal.service.meta.MdIncometaxRateDALService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author xxy
*/
@Service("mdIncometaxRateDALService")
public class MdIncometaxRateDALServiceImpl implements MdIncometaxRateDALService {
@Autowired
private MdIncometaxRateMapper incometaxRateMapper;
@Override
public List<MdIncometaxRate> findAll() {
return incometaxRateMapper.findAll();
}
}
package com.yd.rmi.cache;
import com.yd.dal.entity.meta.MdCode;
import com.yd.dal.entity.meta.MdIncometaxRate;
import com.yd.dal.entity.meta.MdMkCampaign;
import com.yd.dal.service.meta.MdCodeDALService;
import com.yd.dal.service.meta.MdIncometaxRateDALService;
import com.yd.dal.service.meta.MdMkCampaignDALService;
import com.yd.rmi.ali.ossinterf.service.AliOssInterfService;
import com.yd.util.CommonUtil;
......@@ -220,4 +222,20 @@ public class SystemConfigService implements CommandLineRunner{
}
return configValue;
}
@Autowired
private MdIncometaxRateDALService mdIncometaxRateDALService;
@SuppressWarnings("unchecked")
public List<MdIncometaxRate> findIncometax(){
List<MdIncometaxRate> incometaxRates = new ArrayList<>();
Element element = systemConfigCache.get("MdIncometaxRate");
if(element != null && element.getObjectValue() != null){
incometaxRates = (List<MdIncometaxRate>)element.getObjectValue();
}else{
incometaxRates = mdIncometaxRateDALService.findAll();
element = new Element("MdIncometaxRate",incometaxRates);
systemConfigCache.put(element);
}
return incometaxRates;
}
}
<?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.yd.dal.mapper.agms.AgmsFortuneMapper">
<select id="findFortuneStatisticalByCustomers" parameterType="list" resultType="com.yd.dal.entity.agms.fortune.CustomerFortuneStatisticalInfo">
select
s.customer_id customerId,
s.accumulated_fortune accumulatedFortune,
s.cancelled_fortune cancelledFortune,
s.drawn_fortune drawnFortune,
(SELECT sum(w.withdraw_amount) from ag_acl_customer_fortune_withdraw w where w.customer_id = s.customer_id and w.is_paid = 0 and lottery_draws_id is NULL) processing,
(SELECT sum(w.withdraw_amount) from ag_acl_customer_fortune_withdraw w where w.customer_id = s.customer_id and w.is_paid = 1 and YEAR(w.paid_date ) = YEAR(NOW( )) and w.lottery_draws_id is null) yearDrawnFortune,
(SELECT sum(f.referral_amount) from ag_acl_customer_fortune f LEFT JOIN ag_po_order o on o.id = f.order_id where o.`status` = 3 and f.customer_id = s.customer_id and f.withdrawable_date > now() and f.withdrawed_id is null) uncashableFortune,
c.name customerName,
c.mobile_no mobileNo,
c.id_no customerIdNo,
c.id_type_id customerIdTypeId,
c.birth_date customerBirthdate,
c.gender customerGender
from ag_acl_customer_fortune_statistic s
left join ag_acl_customer c on c.id=s.customer_id
where s.customer_id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -849,4 +849,14 @@
#{item}
</foreach>
</select>
<select id="findByWithdrawIds" parameterType="list" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer_fortune
where withdrawed_id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -681,4 +681,15 @@
#{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
<select id="findByWithdrawIds" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from ag_acl_customer_fortune_pay
where withdraw_id in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -550,4 +550,26 @@
and is_paid != 1
group by customer_id
</select>
<select id="findByIds" parameterType="list" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer_fortune_withdraw
where id in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</select>
<select id="findFinalWithdrawPayByCustomerIds" resultType="java.util.Map">
select customer_id customerId,
group_concat(id order by id) withdrawIds
from ag_acl_customer_fortune_withdraw
where customer_id in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
and is_paid = 1
group by customer_id
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment