往来单位,现金流量项目查询

This commit is contained in:
hecan 2024-08-27 17:48:13 +08:00
parent 8edfdba5c1
commit 2527d6a844
1 changed files with 25 additions and 0 deletions

View File

@ -3,7 +3,13 @@ package com.hzya.frame.grpU8.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.grpU8.acctVouchInfo.entity.AcctVouchInfoEntity;
import com.hzya.frame.grpU8.acctVouchInfo.service.IAcctVouchInfoService;
import com.hzya.frame.grpU8.nxproof.glfzxzl.service.IGlFzxzlService;
import com.hzya.frame.grpU8.nxproof.glxjllxm.service.IGlXjllxmService;
import com.hzya.frame.grpU8.nxproof.glxmzl.service.ISenderGlXmzlService;
import com.hzya.frame.grpU8.nxproof.pubbmxx.service.ISenderPubbmxxService;
import com.hzya.frame.grpU8.nxproof.pubkszl.service.IPubkszlService;
import com.hzya.frame.grpU8.service.IGrpU8Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -13,6 +19,17 @@ public class GrpU8ServiceImpl implements IGrpU8Service {
@Resource
private IAcctVouchInfoService acctVouchInfoService;
@Autowired
private ISenderPubbmxxService senderPubbmxxService;
@Autowired
private IPubkszlService pubkszlService;
@Autowired
private IGlXjllxmService glXjllxmService;
@Autowired
private IGlFzxzlService glFzxzlService;
@Autowired
private ISenderGlXmzlService senderGlXmzlService;
@Override
public Object queryData(JSONObject object) {
JSONObject jsonObject = getData("jsonStr", object,JSONObject.class);
@ -25,23 +42,31 @@ public class GrpU8ServiceImpl implements IGrpU8Service {
Object returnObject = null;
switch (jsonObject.getString("queryType")){
case "1"://往来单位查询接口
returnObject = pubkszlService.queryEntityPage(object);
break;
case "2"://部门查询接口
returnObject = acctVouchInfoService.queryData(object);
break;
case "3"://固定辅助核算项查询接口
returnObject = glFzxzlService.queryEntityPage(object);
break;
case "4"://项目查询接口
returnObject = senderGlXmzlService.queryEntityPage(object);
break;
case "5"://功能科目查询接口
break;
case "6"://部门经济科目查询接口
//部门经济科目是辅助项资料类别为5得数据
if(jsonObject.getString("lbdm") !=null && jsonObject.getString("lbdm").equals("5")){
returnObject = glFzxzlService.queryEntityPage(object);
}
break;
case "7"://科目总账余额查询接口
break;
case "8"://科目辅助余额查询接口
break;
case "9"://现金流量项目查询接口
returnObject=glXjllxmService.queryEntityPage(object);
break;
case "10"://总账凭证查询接口 ml
break;