| | |
| | | import com.by4cloud.platformx.business.mapper.*; |
| | | import com.by4cloud.platformx.business.service.BankStatementService; |
| | | import com.by4cloud.platformx.business.service.PaymentConfirmService; |
| | | import com.by4cloud.platformx.business.vo.CustInfoVo; |
| | | import com.by4cloud.platformx.business.vo.ReceiveBipVo; |
| | | import com.by4cloud.platformx.business.vo.ReceiveItemVo; |
| | | import com.by4cloud.platformx.business.vo.StatementContractVo; |
| | |
| | | pushCollectionSgb(statement, updateDTO.getContractCollectionList()); |
| | | } |
| | | |
| | | // //判断是否内部单位 |
| | | // CustInfoVo custInfoVo = bipViewMapper.selectBaseInfoByCustName(statement.getPayBankAccName()); |
| | | // if (ObjUtil.isNull(custInfoVo)){ |
| | | // return R.ok(); |
| | | // } |
| | | // //bip推送 |
| | | // if (bipFlag&&custInfoVo.getCustCode().equals("01")) { |
| | | // return pushSaveCollection(statement, updateDTO.getContractCollectionList()); |
| | | // } |
| | | // log.info("内部往来收款单,客户名称:{},客户类型:{},不用保存收款单",custInfoVo.getCustName(),custInfoVo.getCustclass()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | |
| | | // HttpResponse resp = HttpUtil.createPost(sgbErp + "/apilink/arclose/create?corpsecret=12345678&appserver=appserver1&accountid=888&tradeid=" |
| | | // + IdUtil.fastUUID()) |
| | | // .header("Content-Type","application/x-www-form-urlencoded") |
| | | // .body(URLEncodeUtil.encode(request.toJSONString(), StandardCharsets.UTF_8)) |
| | | // .form("",request.toJSONString()) |
| | | // .timeout(30000) |
| | | // // 指定编码格式 |
| | | // .charset(StandardCharsets.UTF_8) |
| | |
| | | item.setBipParam(updateDTO.getBipParam()); |
| | | bankStatementItemMapper.updateById(item); |
| | | BankStatement statement = baseMapper.selectById(item.getStatetId()); |
| | | |
| | | //判断是否内部单位 |
| | | CustInfoVo custInfoVo = bipViewMapper.selectBaseInfoByCustName(statement.getPayBankAccName()); |
| | | if (ObjUtil.isNotNull(custInfoVo) && custInfoVo.getCustCode().equals("01")) { |
| | | log.info("内部往来收款单,客户名称:{},客户类型:{},不用保存收款单", custInfoVo.getCustName(), custInfoVo.getCustclass()); |
| | | return R.failed("内部往来收款单,不用推送BIP"); |
| | | } |
| | | |
| | | return pushSaveCollection(statement, item); |
| | | } |
| | | } |