From bff5348d98088bbdd7d34c8bd7edd3eef5fbfea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=8E?= Date: Mon, 12 May 2025 16:01:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(uapbd):=20=E6=94=AF=E6=8C=81=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF=E5=B9=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=85=B6=E4=BB=96=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 queryPsndoc 方法用于查询人员信息 - 添加 queryMaterial、queryBom 和 queryMaterialClass 方法的实现 - 在主查询方法中增加对 queryPsndoc 的支持 - 移除未使用的 queryMaterial 方法声明 --- .../public/nccloud/api/uapbd/QuerySync.java | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/uapbd/src/public/nccloud/api/uapbd/QuerySync.java b/uapbd/src/public/nccloud/api/uapbd/QuerySync.java index 5b3f686..8d308ce 100644 --- a/uapbd/src/public/nccloud/api/uapbd/QuerySync.java +++ b/uapbd/src/public/nccloud/api/uapbd/QuerySync.java @@ -81,6 +81,7 @@ public class QuerySync extends AbstractNCCRestResource { case "queryDept" -> queryDept(ufinterface); case "queryCustomer" -> queryCustomer(ufinterface); case "querySupplier" -> querySupplier(ufinterface); + case "queryPsndoc" -> queryPsndoc(ufinterface); default -> ResultMessageUtil.exceptionToJSON(new Exception("ֵ֧IJѯ: " + type)); }; } catch (Exception e) { @@ -100,12 +101,6 @@ public class QuerySync extends AbstractNCCRestResource { return baseQuery(apiUfinterface, "V_UAPBD_QUERYSYNC_DEPT", "pk_defdoc"); } - /** - * ѯϢ - */ - private JSONString queryMaterial(ApiUfinterface apiUfinterface) { - return null; - } private JSONString queryStordoc(ApiUfinterface apiUfinterface) throws DAOException { return baseQuery(apiUfinterface, "V_UAPBD_QUERYSYNC_STORDOC", "pk_stordoc"); @@ -115,4 +110,32 @@ public class QuerySync extends AbstractNCCRestResource { return baseQuery(ufinterface, "V_UAPBD_QUERYSYNC_SUPPLIER", "pk_supplier"); } + /** + * ѯϢ + */ + private JSONString queryMaterial(ApiUfinterface ufinterface) throws DAOException { + return baseQuery(ufinterface, "V_UAPBD_QUERYSYNC_MATERIAL", "pk_material"); + } + + /** + * ѯBOMάϢ + */ + private JSONString queryBom(ApiUfinterface ufinterface) throws DAOException { + return baseQuery(ufinterface, "V_UAPBD_QUERYSYNC_BOM", "cpickmid"); + } + + /** + * ѯϷ + */ + private JSONString queryMaterialClass(ApiUfinterface ufinterface) throws DAOException { + return baseQuery(ufinterface, "V_UAPBD_QUERYSYNC_MATERIALCLASS", "pk_marbasclass"); + } + + /** + * ѯԱϢ + */ + private JSONString queryPsndoc(ApiUfinterface ufinterface) throws DAOException { + return baseQuery(ufinterface, "V_UAPBD_QUERYSYNC_PSNDOC", "pk_psndoc"); + } + } \ No newline at end of file