|
|
|
@ -5,10 +5,7 @@ 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.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.HashMap; |
|
|
|
@ -25,46 +22,46 @@ public class AdminAccountCloseController extends BaseController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 资金结算对账账单列表 |
|
|
|
* @param request |
|
|
|
* @param rejson post 发来的json |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@RequestMapping("/closeList") |
|
|
|
public JSONObject closeList(HttpServletRequest request){ |
|
|
|
|
|
|
|
public JSONObject closeList(@RequestBody String rejson){ |
|
|
|
JSONObject request = JSONObject.parseObject(rejson); |
|
|
|
Map qmap =new HashMap(); |
|
|
|
// 结算人
|
|
|
|
String userName=request.getParameter("user_name"); |
|
|
|
String userName=request.getString("user_name"); |
|
|
|
if(StringUtils.isNotBlank(userName)){ |
|
|
|
qmap.put("user_name",userName); |
|
|
|
} |
|
|
|
//结算账户
|
|
|
|
String closeAccount=request.getParameter("close_account"); |
|
|
|
String closeAccount=request.getString("close_account"); |
|
|
|
if(StringUtils.isNotBlank(closeAccount)){ |
|
|
|
qmap.put("close_account",closeAccount); |
|
|
|
} |
|
|
|
//银行卡号
|
|
|
|
String bankAccount= request.getParameter("bank_account"); |
|
|
|
String bankAccount= request.getString("bank_account"); |
|
|
|
if(StringUtils.isNotBlank(bankAccount)){ |
|
|
|
qmap.put("bank_account",bankAccount); |
|
|
|
} |
|
|
|
//状态
|
|
|
|
String status =request.getParameter("status"); |
|
|
|
String status =request.getString("status"); |
|
|
|
if(StringUtils.isNotBlank(status)){ |
|
|
|
qmap.put("status",status); |
|
|
|
} |
|
|
|
|
|
|
|
// 类型
|
|
|
|
String type = request.getParameter("type"); |
|
|
|
String type = request.getString("type"); |
|
|
|
if(StringUtils.isNotBlank(type)){ |
|
|
|
qmap.put("type",type); |
|
|
|
} |
|
|
|
|
|
|
|
//每页大小
|
|
|
|
String limit = request.getParameter("limit"); |
|
|
|
String limit = request.getString("limit"); |
|
|
|
int ilimit = StringUtils.isNotBlank(limit)?20:Integer.valueOf(limit); |
|
|
|
|
|
|
|
// 当前页码
|
|
|
|
String page = request.getParameter("page"); |
|
|
|
String page = request.getString("page"); |
|
|
|
int ipage = StringUtils.isNotBlank(page)?1:Integer.valueOf(page); |
|
|
|
|
|
|
|
//执行搜索查询
|
|
|
|
@ -88,7 +85,25 @@ public class AdminAccountCloseController extends BaseController { |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
public JSONObject ratioList(){ |
|
|
|
/** |
|
|
|
* 结算表 |
|
|
|
* @param rejson |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/ratioList") |
|
|
|
public JSONObject ratioList(@RequestBody String rejson){ |
|
|
|
JSONObject request =JSONObject.parseObject(rejson); |
|
|
|
String ruleName = request.getString("'rule_name'"); |
|
|
|
String userId=request.getString("user_id"); |
|
|
|
String status = request.getString("status"); |
|
|
|
String createtime = request.getString("createtime"); |
|
|
|
String page = request.getString("page"); |
|
|
|
int ipage = StringUtils.isNotBlank(page)?Integer.valueOf(page):1; |
|
|
|
|
|
|
|
String limit = request.getString("limit"); |
|
|
|
int ilimit =StringUtils.isNotBlank(limit)?Integer.valueOf(limit):10; |
|
|
|
//
|
|
|
|
accountCloseService.ratioList(ruleName,userId,status,createtime,ipage,ilimit); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
/** |
|
|
|
|