|
|
@@ -27,6 +27,7 @@ import com.sqx.modules.message.entity.MessageInfo;
|
|
|
import com.sqx.modules.pay.dao.CashOutDao;
|
|
|
import com.sqx.modules.pay.entity.CashOut;
|
|
|
import com.sqx.modules.pay.service.CashOutService;
|
|
|
+import com.sqx.modules.pay.vo.CashOutVO;
|
|
|
import com.sqx.modules.sys.dao.SysUserDao;
|
|
|
import com.sqx.modules.utils.AmountCalUtils;
|
|
|
import com.sqx.modules.utils.excel.ExcelData;
|
|
|
@@ -94,30 +95,34 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|
|
|
|
|
@Override
|
|
|
public PageUtils selectCashOutList(Map<String, Object> params) {
|
|
|
- String zhifubaoName = (String) params.get("zhifubaoName");
|
|
|
- String zhifubao = (String) params.get("zhifubao");
|
|
|
- String userId = String.valueOf(params.get("userId"));
|
|
|
- String type = String.valueOf(params.get("type"));
|
|
|
- String state = String.valueOf(params.get("state"));
|
|
|
- String phone = String.valueOf(params.get("phone"));
|
|
|
- String classify = String.valueOf(params.get("classify"));
|
|
|
- String startTime = String.valueOf(params.get("startTime"));
|
|
|
- String endTime = String.valueOf(params.get("endTime"));
|
|
|
- IPage<CashOut> page = this.page(
|
|
|
- new Query<CashOut>().getPage(params),
|
|
|
- new QueryWrapper<CashOut>()
|
|
|
- .eq(StringUtils.isNotBlank(zhifubaoName) && !"null".equals(zhifubaoName), "zhifubao_name", zhifubaoName)
|
|
|
- .eq(StringUtils.isNotBlank(zhifubao) && !"null".equals(zhifubao), "zhifubao", zhifubao)
|
|
|
- .eq(StringUtils.isNotBlank(userId) && !"null".equals(userId), "user_id", userId)
|
|
|
- .eq(StringUtils.isNotBlank(type) && !"null".equals(type), "type", type)
|
|
|
- .eq(StringUtils.isNotBlank(state) && !"null".equals(state), "state", state)
|
|
|
- .like(StringUtils.isNotBlank(phone) && !"null".equals(phone), "phone", phone)
|
|
|
- .eq(StringUtils.isNotBlank(classify) && !"null".equals(classify) && "1".equals(classify), "classify", classify)
|
|
|
- .in(StringUtils.isNotBlank(classify) && !"null".equals(classify) && "2".equals(classify), "classify", "2","3","4")
|
|
|
- .ge(StringUtils.isNotBlank(startTime) && !"null".equals(startTime),"create_at",startTime)
|
|
|
- .le(StringUtils.isNotBlank(endTime) && !"null".equals(endTime),"create_at",endTime)
|
|
|
- .orderByDesc("id")
|
|
|
- );
|
|
|
+ // String zhifubaoName = (String) params.get("zhifubaoName");
|
|
|
+ // String zhifubao = (String) params.get("zhifubao");
|
|
|
+ // String userId = String.valueOf(params.get("userId"));
|
|
|
+ // String type = String.valueOf(params.get("type"));
|
|
|
+ // String state = String.valueOf(params.get("state"));
|
|
|
+ // String phone = String.valueOf(params.get("phone"));
|
|
|
+ // String classify = String.valueOf(params.get("classify"));
|
|
|
+ // String startTime = String.valueOf(params.get("startTime"));
|
|
|
+ // String endTime = String.valueOf(params.get("endTime"));
|
|
|
+
|
|
|
+ IPage<CashOut> pageParam = new Query<CashOut>().getPage(params);
|
|
|
+ IPage<CashOutVO> page = this.baseMapper.selectCashOutList(pageParam, params);
|
|
|
+
|
|
|
+ // IPage<CashOut> page = this.page(
|
|
|
+ // new Query<CashOut>().getPage(params),
|
|
|
+ // new QueryWrapper<CashOut>()
|
|
|
+ // .eq(StringUtils.isNotBlank(zhifubaoName) && !"null".equals(zhifubaoName), "zhifubao_name", zhifubaoName)
|
|
|
+ // .eq(StringUtils.isNotBlank(zhifubao) && !"null".equals(zhifubao), "zhifubao", zhifubao)
|
|
|
+ // .eq(StringUtils.isNotBlank(userId) && !"null".equals(userId), "user_id", userId)
|
|
|
+ // .eq(StringUtils.isNotBlank(type) && !"null".equals(type), "type", type)
|
|
|
+ // .eq(StringUtils.isNotBlank(state) && !"null".equals(state), "state", state)
|
|
|
+ // .like(StringUtils.isNotBlank(phone) && !"null".equals(phone), "phone", phone)
|
|
|
+ // .eq(StringUtils.isNotBlank(classify) && !"null".equals(classify) && "1".equals(classify), "classify", classify)
|
|
|
+ // .in(StringUtils.isNotBlank(classify) && !"null".equals(classify) && "2".equals(classify), "classify", "2","3","4")
|
|
|
+ // .ge(StringUtils.isNotBlank(startTime) && !"null".equals(startTime),"create_at",startTime)
|
|
|
+ // .le(StringUtils.isNotBlank(endTime) && !"null".equals(endTime),"create_at",endTime)
|
|
|
+ // .orderByDesc("id")
|
|
|
+ // );
|
|
|
return new PageUtils(page);
|
|
|
}
|
|
|
|
|
|
@@ -597,4 +602,10 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|
|
return Result.success("保证金已退回到您的钱包");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Double selectCashOutTotal(Map<String, Object> params) {
|
|
|
+ IPage<CashOut> page = new Query<CashOut>().getPage(params);
|
|
|
+ return this.baseMapper.selectCashOutTotal(page, params);
|
|
|
+ }
|
|
|
+
|
|
|
}
|