本文解答了关于《畅捷通t+期初余额录入》相关内容,同时关于1、畅捷通t+期初余额录入,2、畅捷通新账套期初余额,3、畅捷通软件期初余额怎样修改,4、畅捷通期初余额不平衡,5、畅捷通年初余额怎么导入,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
畅捷通t+期初余额录入
public void initCheckChangjieByT() throws Exception{
FinanceCheck check=new FinanceCheck();
check.setCorpid(corpid);
check.setAccountBookId(accountbookid);
check.setFinancePeriod(period);//期间 默认为0
int count=financeCheckMapper.selectFinanceCheck(check);
if(count==0){
check.setFinancePeriod(0);//期间 默认为0
Map param=new HashMap();
param.put("corpid",corpid);
param.put("accountBookID",accountbookid);
param.put("financePeriod", "0");
param.put("SDK_VER","V7.0(jsoaV7.0_Build20191217_Rel)");
param.put("projectID","3018");
param.put("appID","3018");
param.put("source","jsyww201");
param.put("origin","20001");
param.put("token",token);
param.put("methodName","U8_Account_QC_Transfer");
String result=service.sendPost(url, param,token);
//String result=null;
if(service.checkResult(result)){
JSONObject resultJSON=JSONObject.fromObject(result);
JSONArray cw_qcsubject=resultJSON.getJSONArray("cw_qcsubject");
//System.out.println(cw_qcsubject);
List financeCheckList=JSONArray.toList(cw_qcsubject,FinanceCheckEntity.class);
//System.out.println(financeCheckList);
if(financeCheckList.size()>0){
List list=financeCheckService.convertFinanceCheckEntityList(corpid, accountbookid,0 ,financeCheckList);
for(FinanceCheck fincheck : list){
financeCheckMapper.insertFinanceCheck(fincheck);
financeCheckService.insertInAndOutStanding(corpid,accountbookid,0,fincheck.getAccountCode(), subjectPostingRuleMapper);
}
}
}
//调用接口
}else{
//int count=financeCheckMapper.selectFinanceCheck(check);
if(count>0){
financeCheckMapper.deleteFinanceCheck(check);
financeCheckService.deleteInAndOutstanding(corpid, accountbookid, 0);
Map param=new HashMap();
param.put("corpid",corpid);
param.put("accountBookID",accountbookid);
param.put("financePeriod", "0");
param.put("SDK_VER","V7.0(jsoaV7.0_Build20191217_Rel)");
param.put("projectID","3018");
param.put("appID","3018");
param.put("source","jsyww201");
param.put("origin","20001");
param.put("token",token);
param.put("methodName","U8_Account_QC_Transfer");
String result=service.sendPost(url, param,token);
//String result=null;
if(service.checkResult(result)){
JSONObject resultJSON=JSONObject.fromObject(result);
JSONArray cw_qcsubject=resultJSON.getJSONArray("cw_qcsubject");
//System.out.println(cw_qcsubject);
List financeCheckList=JSONArray.toList(cw_qcsubject,FinanceCheckEntity.class);
//System.out.println(financeCheckList);
if(financeCheckList.size()>0){
List list=financeCheckService.convertFinanceCheckEntityList(corpid, accountbookid,0 ,financeCheckList);
for(FinanceCheck fincheck : list){
financeCheckMapper.insertFinanceCheck(fincheck);
financeCheckService.insertInAndOutStanding(corpid,accountbookid,0,fincheck.getAccountCode(), subjectPostingRuleMapper);
}
}
}
//调用接口
}
}
}
}
总结:以上是编辑:【朱莉】整理及AI智能原创关于《畅捷通t+期初余额录入
》优质内容解答希望能帮助到您。