|
@@ -31,6 +31,8 @@ import nc.jdbc.framework.processor.BeanListProcessor;
|
|
|
import nc.log.NcLog;
|
|
|
import nc.ui.pub.beans.MessageDialog;
|
|
|
import nc.vo.bd.defdoc.DefdocVO;
|
|
|
+import nc.vo.pu.m25.entity.InvoiceItemVO;
|
|
|
+import nc.vo.pu.m25.entity.InvoiceVO;
|
|
|
import nc.vo.pub.BusinessException;
|
|
|
import nc.bs.framework.common.NCLocator;
|
|
|
import nc.bs.pub.filesystem.IFileSystemService;
|
|
@@ -655,5 +657,34 @@ public class ThOcrServiceImpl implements IThOcrService{
|
|
|
}
|
|
|
return fileNames;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void UpdateInvoiceStatus(String status, InvoiceVO[] vos) {
|
|
|
+ for (InvoiceVO invoiceVO : vos) {
|
|
|
+ //审批结果Y代表通过 N代表不通过 R代表驳回
|
|
|
+ InvoiceItemVO[] arrInvoiceItemVO = (InvoiceItemVO[]) invoiceVO.getChildren(InvoiceItemVO.class);
|
|
|
+ List<String> listVbdef20 = new ArrayList<String>();
|
|
|
+ for (InvoiceItemVO invoiceItemVO : arrInvoiceItemVO) {
|
|
|
+ String[] arrVbdef20 = invoiceItemVO.getVbdef20().split(",");
|
|
|
+ for(String Vbdef20 : arrVbdef20) {
|
|
|
+ listVbdef20.add(Vbdef20);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ String[] fids = (String[]) listVbdef20.toArray();
|
|
|
+ JSONObject bodyJson = new JSONObject();
|
|
|
+ //发票云团队id
|
|
|
+ bodyJson.put("cid", "766941083040768000");
|
|
|
+ //userId报销人id(OA)
|
|
|
+ bodyJson.put("userId", "1");
|
|
|
+ //userId报销人id(OA)
|
|
|
+ bodyJson.put("flag", "3");
|
|
|
+ //发票云发票ID数组
|
|
|
+ bodyJson.put("fids", fids);
|
|
|
+ String str = null;
|
|
|
+ str.toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|