|
@@ -373,6 +373,13 @@ public class OwnCreditController extends BaseController {
|
|
|
//接收企业
|
|
|
String zfiSupplierId = CommonUtil.objToString(map.get("zfiSupplierId"));
|
|
|
inf.setZfiSupplierId(zfiSupplierId);
|
|
|
+ if(ticketList.size() > 0){
|
|
|
+ //获取应收企业编号
|
|
|
+ String zbiPayeeId = ticketList.get(0).get("zbiPayeeId");
|
|
|
+ if(!zfiSupplierId.equals(zbiPayeeId)){
|
|
|
+ throw new Exception("请选择应收企业为接收方的应付账款");
|
|
|
+ }
|
|
|
+ }
|
|
|
//选择
|
|
|
if(ticketList.size() > 1){
|
|
|
//获取第一个应收企业
|
|
@@ -696,6 +703,13 @@ public class OwnCreditController extends BaseController {
|
|
|
//核心企业授信额度
|
|
|
String zfiCoreQuotaId = CommonUtil.objToString(map.get("zfiCoreQuotaId"));
|
|
|
inf.setZfiCoreQuotaId(zfiCoreQuotaId);
|
|
|
+ if(ticketList.size() > 0){
|
|
|
+ //获取应收企业编号
|
|
|
+ String zbiPayeeId = ticketList.get(0).get("zbiPayeeId");
|
|
|
+ if(!zfiSupplierId.equals(zbiPayeeId)){
|
|
|
+ throw new Exception("请选择应收企业为接收方的应付账款");
|
|
|
+ }
|
|
|
+ }
|
|
|
//选择
|
|
|
if(ticketList.size() > 1){
|
|
|
//获取第一个应收企业
|
|
@@ -824,6 +838,7 @@ public class OwnCreditController extends BaseController {
|
|
|
@GetMapping("/getAccountsPay")
|
|
|
public AjaxResult getAccountsPay(@RequestParam(required=false) String zbiName,
|
|
|
@RequestParam(required=false) String receiveName,
|
|
|
+ @RequestParam(required=false) String zbiPayeeId,
|
|
|
QueryRequest request) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
|
|
|
//获取当前企业的编号
|
|
|
LoginUser userInfo = tokenService.getLoginUser();
|
|
@@ -858,6 +873,8 @@ public class OwnCreditController extends BaseController {
|
|
|
map.put("zbiName",zbiName);
|
|
|
//应收企业
|
|
|
map.put("receiveName",receiveName);
|
|
|
+ //应收企业编号
|
|
|
+ map.put("zbiPayeeId",zbiPayeeId);
|
|
|
IPage<Map> payList = ownCreditService.getAccountsPay(map,request);
|
|
|
return AjaxResult.success(payList);
|
|
|
}
|