提交 f76190a3 作者: xiaowang

个人提现列表

上级 3564968f
...@@ -35,6 +35,13 @@ public class WithdrawalController extends BaseController { ...@@ -35,6 +35,13 @@ public class WithdrawalController extends BaseController {
return withdrawalService.apply(applyWithdrawalVO, this.getUserLoginInfoFromRedis(request).getUserAccountId()); return withdrawalService.apply(applyWithdrawalVO, this.getUserLoginInfoFromRedis(request).getUserAccountId());
} }
// @ApiOperation(value = "个人提现明细列表-V1")
// @ApiResponses({@ApiResponse(code = 200, message = "OK", response = UserBillingDetailVO.class)})
// @PostMapping("withdrawalList")
// public ResultBody<UserBillingDetailVO> withdrawalList(HttpServletRequest request, @RequestBody WalletFlowQO walletFlowQO) {
// return withdrawalService.withdrawalList(this.getUserLoginInfoFromRedis(request).getUserAccountId(), walletFlowQO);
// }
@ApiOperation(value = "个人提现明细列表") @ApiOperation(value = "个人提现明细列表")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = UserBillingDetailVO.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = UserBillingDetailVO.class)})
@PostMapping("withdrawalList") @PostMapping("withdrawalList")
......
...@@ -34,7 +34,7 @@ public interface PayWalletDao { ...@@ -34,7 +34,7 @@ public interface PayWalletDao {
void insertWithdrawalLog(WithdrawalLogDO withdrawalLogDO); void insertWithdrawalLog(WithdrawalLogDO withdrawalLogDO);
List<WithdrawalLogDO> getWithdrawalListByUserAccountId(WalletFlowQO param); List<XzWithdrawalApplyDO> getWithdrawalListByUserAccountId(WalletFlowQO param);
XzWithdrawalApplyDO getWithdrawalApplyByIdOrOuterTradeNo(@Param(value = "id") Integer id, @Param(value = "outerTradeNo") String outerTradeNo); XzWithdrawalApplyDO getWithdrawalApplyByIdOrOuterTradeNo(@Param(value = "id") Integer id, @Param(value = "outerTradeNo") String outerTradeNo);
......
...@@ -137,9 +137,9 @@ public class WithdrawalServiceImpl implements WithdrawalService { ...@@ -137,9 +137,9 @@ public class WithdrawalServiceImpl implements WithdrawalService {
} }
Integer pageNo = param.getPageNo(); Integer pageNo = param.getPageNo();
param.buildCurrentPage(); param.buildCurrentPage();
List<WithdrawalLogDO> withdrawalLogList = payWalletDao.getWithdrawalListByUserAccountId(param); List<XzWithdrawalApplyDO> withdrawalLogList = payWalletDao.getWithdrawalListByUserAccountId(param);
return ResultBody.success(PageResult.buildPage(pageNo, param.getPageSize(), count, withdrawalLogList.stream() return ResultBody.success(PageResult.buildPage(pageNo, param.getPageSize(), count, withdrawalLogList.stream()
.map(WithdrawalLogDO::buildUserBillingDetailVO).collect(Collectors.toList()))); .map(XzWithdrawalApplyDO::buildUserBillingDetailVO).collect(Collectors.toList())));
} }
......
...@@ -195,23 +195,45 @@ ...@@ -195,23 +195,45 @@
WHERE pl.id = #{id} WHERE pl.id = #{id}
</select> </select>
<select id="getWithdrawalListByUserAccountId" <select id="getWithdrawalListByUserAccountId"
resultType="com.mmc.iuav.user.entity.wallet.WithdrawalLogDO"> resultType="com.mmc.iuav.user.entity.XzWithdrawalApplyDO">
select id, select id,
apply_status,
user_account_id, user_account_id,
xz_withdrawal_apply_id, bank_name,
pay_no, bank_remo,
pay_method, emp_num,
pay_time, emp_name,
salary_freeze, emp_phone,
license_id,
license_type,
`month`,
notify_url,
outer_trade_no,
pay_account,
pay_amount,
position_name,
remarks,
settle_type,
tax_fund_id,
wechat_app_id,
trade_status,
trade_time,
front_log_no,
trade_fail_code,
trade_result,
submit_status,
error_code,
error_message,
charge_amount,
create_time create_time
from withdrawal_log from xz_withdrawal_apply
<where> <where>
user_account_id = #{userAccountId} user_account_id = #{userAccountId}
<if test="startTime != null and startTime != '' "> <if test="startTime != null and startTime != '' ">
and pc.pay_time &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d %H:%i:%s') and create_time &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d %H:%i:%s')
</if> </if>
<if test="endTime != null and endTime != '' "> <if test="endTime != null and endTime != '' ">
and pc.pay_time &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s') and create_time &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s')
</if> </if>
</where> </where>
order by create_time DESC order by create_time DESC
...@@ -273,15 +295,15 @@ ...@@ -273,15 +295,15 @@
</select> </select>
<select id="countPayWithdrawalLog" resultType="java.lang.Integer"> <select id="countPayWithdrawalLog" resultType="java.lang.Integer">
select count(*) select count(*)
from withdrawal_log from xz_withdrawal_apply
<where> <where>
user_account_id = #{userAccountId} user_account_id = #{userAccountId}
<if test="startTime != null and startTime != '' "> <if test="startTime != null and startTime != '' ">
and pay_time &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d and create_time &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d
%H:%i:%s') %H:%i:%s')
</if> </if>
<if test="endTime != null and endTime != '' "> <if test="endTime != null and endTime != '' ">
and pay_time &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d and create_time &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d
%H:%i:%s') %H:%i:%s')
</if> </if>
</where> </where>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论