mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 查询开启自动提现运营商列表
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
|
||||
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
|
||||
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PileMerchantInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
@@ -162,4 +161,10 @@ public interface PileMerchantInfoMapper {
|
||||
* @return
|
||||
*/
|
||||
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询自动提现的运营商信息
|
||||
* @return
|
||||
*/
|
||||
List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList();
|
||||
}
|
||||
|
||||
@@ -192,4 +192,10 @@ public interface PileMerchantInfoService {
|
||||
MerchantWithdrawalTypeVO queryWithdrawalType(QueryMerchantInfoDTO dto);
|
||||
|
||||
int updateWithdrawalType(MerchantWithdrawalTypeVO dto);
|
||||
|
||||
/**
|
||||
* 查询设置自动提现的运营商列表
|
||||
* @return
|
||||
*/
|
||||
List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList();
|
||||
}
|
||||
|
||||
@@ -670,4 +670,10 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
|
||||
return pileMerchantInfoMapper.updateByPrimaryKeySelective(merchantInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList() {
|
||||
List<PileMerchantInfo> list = pileMerchantInfoMapper.selectAutoWithdrawalMerchantInfoList();
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1246,4 +1246,13 @@
|
||||
AND t1.id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="selectAutoWithdrawalMerchantInfoList" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from
|
||||
pile_merchant_info
|
||||
where del_flag = '0'
|
||||
and status = '1'
|
||||
and withdrawal_type = '2'
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -255,7 +255,8 @@ public class JsowellTask {
|
||||
*/
|
||||
public void automaticPayouts() {
|
||||
// TODO 查询开启自动提现运营商列表
|
||||
List<PileMerchantInfo> pileMerchantInfos = pileMerchantInfoService.selectPileMerchantInfoList(null);
|
||||
// List<PileMerchantInfo> pileMerchantInfos = pileMerchantInfoService.selectPileMerchantInfoList(null);
|
||||
List<PileMerchantInfo> pileMerchantInfos = pileMerchantInfoService.selectAutoWithdrawalMerchantInfoList();
|
||||
if (CollectionUtils.isEmpty(pileMerchantInfos)) {
|
||||
log.info("定时任务,自动提现, 未查询到运营商列表,直接返回");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user