From 26103c72e1ebd8ec39d4f70808f524a9e3c6689e Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 14 七月 2025 10:27:52 +0800 Subject: [PATCH] 新增离职的人员选项使用下拉框(查询改员工最新的入职信息) --- src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java b/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java index a31835b..a6e9f20 100644 --- a/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java +++ b/src/main/java/com/ruoyi/sales/service/impl/SalesLedgerServiceImpl.java @@ -103,6 +103,7 @@ // 2. 鏌ヨ瀛愯〃 LambdaQueryWrapper<SalesLedgerProduct> productWrapper = new LambdaQueryWrapper<>(); productWrapper.eq(SalesLedgerProduct::getSalesLedgerId, salesLedger.getId()); + productWrapper.eq(SalesLedgerProduct::getType, 1); List<SalesLedgerProduct> products = salesLedgerProductMapper.selectList(productWrapper); for (SalesLedgerProduct product : products) { product.setOriginalNoInvoiceNum(product.getNoInvoiceNum()); @@ -110,7 +111,7 @@ product.setTempnoInvoiceAmount(product.getNoInvoiceAmount()); product.setTempNoInvoiceNum(product.getNoInvoiceNum()); product.setRegister(SecurityUtils.getLoginUser().getUser().getNickName()); - product.setRegisterDate(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); + product.setRegisterDate(LocalDateTime.now()); } // 3.鏌ヨ涓婁紶鏂囦欢 -- Gitblit v1.9.3