wuxw
2022-05-10 8f61316069a6ffffb0998ed3f498bd4e3acc77e4
service-acct/src/main/java/com/java110/acct/api/AccountWithdrawalApplyApi.java
@@ -40,9 +40,10 @@
        Assert.hasKeyAndValue(reqJson, "acctId", "请求报文中未包含acctId");
        Assert.hasKeyAndValue(reqJson, "amount", "请求报文中未包含amount");
        Assert.hasKeyAndValue(reqJson, "bankId", "请求报文中未包含bankId");
        AccountWithdrawalApplyPo accountWithdrawalApplyPo = BeanConvertUtil.covertBean(reqJson, AccountWithdrawalApplyPo.class);
        return saveAccountWithdrawalApplyBMOImpl.save(accountWithdrawalApplyPo,userId);
        return saveAccountWithdrawalApplyBMOImpl.save(accountWithdrawalApplyPo,userId,reqJson);
    }
    /**
@@ -55,8 +56,6 @@
    @RequestMapping(value = "/upAccountWithdrawalApply", method = RequestMethod.POST)
    public ResponseEntity<String> updateAccountWithdrawalApply(@RequestBody JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "acctId", "请求报文中未包含acctId");
        Assert.hasKeyAndValue(reqJson, "amount", "请求报文中未包含amount");
        Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state");
        Assert.hasKeyAndValue(reqJson, "applyId", "applyId不能为空");
@@ -96,13 +95,17 @@
    public ResponseEntity<String> queryAccountWithdrawalApply(@RequestParam(value = "page") int page,
                                                              @RequestParam(value = "row") int row,
                                                              @RequestParam(value = "applyUserName",required = false) String applyUserName,
                                                              @RequestParam(value = "bankCode",required = false) String bankCode,
                                                              @RequestParam(value = "applyUserTel",required = false) String applyUserTel,
                                                              @RequestParam(value = "objId",required = false) String objId,
                                                              @RequestParam(value = "state",required = false) String state) {
        AccountWithdrawalApplyDto accountWithdrawalApplyDto = new AccountWithdrawalApplyDto();
        accountWithdrawalApplyDto.setPage(page);
        accountWithdrawalApplyDto.setRow(row);
        accountWithdrawalApplyDto.setApplyUserName(applyUserName);
        accountWithdrawalApplyDto.setApplyUserTel(applyUserTel);
        accountWithdrawalApplyDto.setBankCode(bankCode);
        accountWithdrawalApplyDto.setObjId( objId );
        if(null == state || "".equals( state )){
            state = "";
        }
@@ -114,8 +117,8 @@
    @RequestMapping(value = "/listStateWithdrawalApplys", method = RequestMethod.GET)
    public ResponseEntity<String> listStateWithdrawalApplys(@RequestParam(value = "page") int page,
                                                              @RequestParam(value = "row") int row,
                                                              @RequestParam(value = "state",required = false) String [] state) {
        return getAccountWithdrawalApplyBMOImpl.listStateWithdrawalApplys( state, page,row);
                                                              @RequestParam(value = "state") String state) {
        String [] states = state.split( "," );
        return getAccountWithdrawalApplyBMOImpl.listStateWithdrawalApplys( states, page,row);
    }
}