update 查询开启自动提现运营商列表

This commit is contained in:
Guoqs
2025-03-13 13:43:30 +08:00
parent 10730b3086
commit e9d9fe419f
5 changed files with 32 additions and 5 deletions

View File

@@ -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();
}

View File

@@ -192,4 +192,10 @@ public interface PileMerchantInfoService {
MerchantWithdrawalTypeVO queryWithdrawalType(QueryMerchantInfoDTO dto);
int updateWithdrawalType(MerchantWithdrawalTypeVO dto);
/**
* 查询设置自动提现的运营商列表
* @return
*/
List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList();
}

View File

@@ -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;
}
}

View File

@@ -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>

View File

@@ -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;