From b1ece4dbc6232257aaa16beb629d934cd68732ea Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 7 Nov 2023 22:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=B4=AD=E6=B7=BB=E5=8A=A0=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=90=8D=E7=A7=B0=E7=AD=89=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/controller/purchase/PurApplyController.java | 8 ++++---- .../com/glxp/api/res/purchase/PurOrderDetailResponse.java | 6 ++++-- src/main/resources/application-dev.yml | 2 +- .../mybatis/mapper/purchase/PurApplyDetailDao.xml | 1 + 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/purchase/PurApplyController.java b/src/main/java/com/glxp/api/controller/purchase/PurApplyController.java index 006817d8..e7d38bb9 100644 --- a/src/main/java/com/glxp/api/controller/purchase/PurApplyController.java +++ b/src/main/java/com/glxp/api/controller/purchase/PurApplyController.java @@ -121,8 +121,8 @@ public class PurApplyController { if (purApplyRequest.getStatus() == null) { purApplyRequest.setStatus(11); //查询未审核和草稿状态 } - if(purApplyRequest.getIsUser() != null && purApplyRequest.getIsUser()){ - AuthAdmin authAdmin=customerService.getUserBean(); + if (purApplyRequest.getIsUser() != null && purApplyRequest.getIsUser()) { + AuthAdmin authAdmin = customerService.getUserBean(); purApplyRequest.setCreateUser(authAdmin.getId() + ""); //查询自己 } @@ -146,8 +146,8 @@ public class PurApplyController { if (purApplyRequest.getStatus() == null) { purApplyRequest.setStatus(10); //查询未审核和已审核状态 } - if(purApplyRequest.getIsInvCode()!=null && purApplyRequest.getIsInvCode()){ - AuthAdmin authAdmin=customerService.getUserBean(); + if (purApplyRequest.getIsInvCode() != null && purApplyRequest.getIsInvCode()) { + AuthAdmin authAdmin = customerService.getUserBean(); purApplyRequest.setTargetInvCode(authAdmin.getLocInvCode() + ""); //查询自己仓库 } List purApplyEntities = purApplyService.queryPageList(purApplyRequest); diff --git a/src/main/java/com/glxp/api/res/purchase/PurOrderDetailResponse.java b/src/main/java/com/glxp/api/res/purchase/PurOrderDetailResponse.java index faf3ae11..f84008d1 100644 --- a/src/main/java/com/glxp/api/res/purchase/PurOrderDetailResponse.java +++ b/src/main/java/com/glxp/api/res/purchase/PurOrderDetailResponse.java @@ -48,10 +48,12 @@ public class PurOrderDetailResponse { private int acceptCount; private String measname; private String supId; -//供应商 + //供应商 private String supName; -//采购单号 + //采购单号 private String billNo; private String nameCode; + + private String spmc; } diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index d3ec63ec..b2df4abe 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -4,7 +4,7 @@ server: spring: datasource: driver-class-name: com.p6spy.engine.spy.P6SpyDriver - jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_zyy?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true + jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_pt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true username: root password: 123456 hikari: diff --git a/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml b/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml index 74529845..e94bfd1b 100644 --- a/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml +++ b/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml @@ -27,6 +27,7 @@ basic_products.measname, basic_products.manufactory, basic_products.ylqxzcrbarmc, + basic_products.spmc, basic_corp.`name` supName FROM pur_apply_detail INNER JOIN basic_udirel ON pur_apply_detail.productId = basic_udirel.id