|
|
@@ -16,6 +16,7 @@
|
|
|
*/
|
|
|
package org.springblade.modules.guosen.bussinessuserwithdraw.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
@@ -36,6 +37,10 @@ import org.springblade.modules.guosen.bussinessuserwithdraw.wrapper.BussinessUse
|
|
|
import org.springblade.modules.guosen.bussinessuserwithdraw.service.IBussinessUserWithdrawService;
|
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
/**
|
|
|
* 控制器
|
|
|
*
|
|
|
@@ -68,7 +73,16 @@ public class BussinessUserWithdrawController extends BladeController {
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "分页", notes = "传入bussinessUserWithdraw")
|
|
|
public R<IPage<BussinessUserWithdrawVO>> list(BussinessUserWithdraw bussinessUserWithdraw, Query query) {
|
|
|
- IPage<BussinessUserWithdraw> pages = bussinessUserWithdrawService.page(Condition.getPage(query), Condition.getQueryWrapper(bussinessUserWithdraw));
|
|
|
+ Date createTime = bussinessUserWithdraw.getCreateTime();
|
|
|
+ String createTimeFormat = null;
|
|
|
+ if(createTime != null){
|
|
|
+ bussinessUserWithdraw.setCreateTime(null);
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ createTimeFormat = sdf.format(createTime);
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<BussinessUserWithdraw> lambda = Condition.getQueryWrapper(bussinessUserWithdraw).lambda();
|
|
|
+ lambda.like(createTime != null, BussinessUserWithdraw::getCreateTime, createTimeFormat);
|
|
|
+ IPage<BussinessUserWithdraw> pages = bussinessUserWithdrawService.page(Condition.getPage(query), lambda.orderByDesc(BussinessUserWithdraw::getCreateTime));
|
|
|
return R.data(BussinessUserWithdrawWrapper.build().pageVO(pages));
|
|
|
}
|
|
|
|
|
|
@@ -125,5 +139,16 @@ public class BussinessUserWithdrawController extends BladeController {
|
|
|
return R.status(bussinessUserWithdrawService.deleteLogic(Func.toLongList(ids)));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 提现统计
|
|
|
+ */
|
|
|
+ @GetMapping("/withdrawStat")
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperation(value = "提现统计", notes = "传入withdraw")
|
|
|
+ public R<BigDecimal> withdrawStat(BussinessUserWithdraw withdraw) {
|
|
|
+ BigDecimal bigDecimal = this.bussinessUserWithdrawService.withdrawStat(withdraw);
|
|
|
+ return R.data(bigDecimal);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|