|
|
|
@ -3,12 +3,14 @@ package cn.chjyj.szwh.controller.admin; |
|
|
|
import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.AccountCloseService; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -19,6 +21,58 @@ import java.util.Map; |
|
|
|
public class AdminAccountCloseController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private AccountCloseService accountCloseService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 资金结算对账账单列表 |
|
|
|
* @param request |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/closeList") |
|
|
|
public JSONObject closeList(HttpServletRequest request){ |
|
|
|
|
|
|
|
Map qmap =new HashMap(); |
|
|
|
// 结算人
|
|
|
|
String userName=request.getParameter("user_name"); |
|
|
|
if(StringUtils.isNotBlank(userName)){ |
|
|
|
qmap.put("user_name",userName); |
|
|
|
} |
|
|
|
//结算账户
|
|
|
|
String closeAccount=request.getParameter("close_account"); |
|
|
|
if(StringUtils.isNotBlank(closeAccount)){ |
|
|
|
qmap.put("close_account",closeAccount); |
|
|
|
} |
|
|
|
//银行卡号
|
|
|
|
String bankAccount= request.getParameter("bank_account"); |
|
|
|
if(StringUtils.isNotBlank(bankAccount)){ |
|
|
|
qmap.put("bank_account",bankAccount); |
|
|
|
} |
|
|
|
//状态
|
|
|
|
String status =request.getParameter("status"); |
|
|
|
if(StringUtils.isNotBlank(status)){ |
|
|
|
qmap.put("status",status); |
|
|
|
} |
|
|
|
|
|
|
|
// 类型
|
|
|
|
String type = request.getParameter("type"); |
|
|
|
if(StringUtils.isNotBlank(type)){ |
|
|
|
qmap.put("type",type); |
|
|
|
} |
|
|
|
|
|
|
|
//每页大小
|
|
|
|
String limit = request.getParameter("limit"); |
|
|
|
int ilimit = StringUtils.isNotBlank(limit)?20:Integer.valueOf(limit); |
|
|
|
|
|
|
|
// 当前页码
|
|
|
|
String page = request.getParameter("page"); |
|
|
|
int ipage = StringUtils.isNotBlank(page)?1:Integer.valueOf(page); |
|
|
|
|
|
|
|
//执行搜索查询
|
|
|
|
Map rmap =accountCloseService.closeList(qmap,ilimit,ipage); |
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("data",rmap); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
/** |
|
|
|
* 获取支付方式 |
|
|
|
* @return |
|
|
|
|