发票批量导入

This commit is contained in:
xiangerlin 2025-07-03 18:42:46 +08:00
parent a4833d5cfc
commit da159a25ee
1 changed files with 8 additions and 0 deletions

View File

@ -70,13 +70,21 @@ public class CInvoiceImportPluginServiceImpl implements ICInvoiceImportPluginSer
@Override
public String importInvoice(JSONObject requestJson) throws Exception {
//可能是定时任务也可能是事件触发
//如果是触发的方式从jsonStr里取
JSONObject jsonStrObj = requestJson.getJSONObject("jsonStr");
//1 查OA主表
String dataSourceCode = requestJson.getString("sourceCode");
if (StrUtil.isEmpty(dataSourceCode)) {
dataSourceCode = requestJson.getString("apiDataSourceCode");
}
String id = requestJson.getString("id");//主表id 测试的时候用
if (StrUtil.isEmpty(id)){
if (null != jsonStrObj){
id = jsonStrObj.getString("id");
}
}
String start_date_start = requestJson.getString("start_date_start");
String start_date_end = requestJson.getString("start_date_end");
CInvoiceImportHEntity importHEntity = new CInvoiceImportHEntity();