package org.fanli.facade.user.service.money;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import org.fanli.facade.user.dto.money.AlipayTransferResultInfo;
|
import org.fanli.facade.user.entity.money.extract.Extract;
|
import org.fanli.facade.user.exception.money.ExtractException;
|
|
import com.yeshi.fanli.base.entity.admin.AdminUser;
|
import com.yeshi.fanli.base.exception.NotExistObjectException;
|
import com.yeshi.fanli.base.exception.ObjectStateException;
|
|
public interface ExtractService {
|
|
public List<Extract> getExtractInfoByUid(long uid);
|
|
/**
|
* 提现申请
|
*
|
* @param extract
|
* @return 返回如果为null,则提现申请提交成功。如果为1�?,已超过当日提现次数或提现金额!如果�?,提现金额大于我的红包!
|
*/
|
public Integer addExtract(Extract extract);
|
|
public List<Extract> getExtractList(int i);
|
|
public int getCount();
|
|
/**
|
* 通过
|
*
|
* @param id
|
* @return
|
*/
|
public Integer passExtract(long id, AdminUser admin);
|
|
/**
|
* 拒绝
|
*
|
* @param id
|
* @param reason
|
* @throws ObjectStateException
|
* @throws NotExistObjectException
|
*/
|
public void rejectExtract(long id, String reason, long extractTime, AdminUser adminUser)
|
throws ObjectStateException, NotExistObjectException;
|
|
/**
|
*
|
* 方法说明: 根据提现记录id获取用户uid
|
*
|
* @author mawurui createTime 2018年3月14日 下午3:43:22
|
* @param id
|
* @return
|
*/
|
public Extract getExtractById(long id);
|
|
/**
|
* 用户提现校验
|
*
|
* @param uid
|
* @return
|
*/
|
public void checkExtract(String uid) throws ExtractException ;
|
|
public Extract selectByPrimaryKey(Long id);
|
|
/**
|
* 查询当前客服待处理
|
*
|
* @return
|
*/
|
public Extract getMyTaskInfo(Long adminId);
|
|
public List<Map<String, Object>> getFinishRecord(int pageIndex, int pageSize, String key, String startTime,
|
String endTime);
|
|
/*
|
* 更新提现记录
|
*/
|
public int updateByPrimaryKeySelective(Extract record);
|
|
public Extract getNewTaskInfo();
|
|
/**
|
* 处理提现结果
|
*
|
* @param info
|
*/
|
public void processExtractResult(AlipayTransferResultInfo info);
|
|
|
public void testExtractSuccess(Long id);
|
|
/**
|
* 统计今日提现
|
* @param uid
|
* @return
|
*/
|
public double countTodayMoney(Long uid);
|
|
}
|