From 854c32855a20f85de627b7db3723399c26687160 Mon Sep 17 00:00:00 2001 From: yuan <1363654894@qq.com> Date: Mon, 12 Aug 2024 21:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E8=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 6 ++++++ .../src/main/resources/mapper/PurchaseOrderMapper.xml | 2 +- .../java/com/bwie/user/service/impl/UserServiceImpl.java | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/yuan-modules/yuan-purchaseorder/src/main/resources/mapper/PurchaseOrderMapper.xml b/yuan-modules/yuan-purchaseorder/src/main/resources/mapper/PurchaseOrderMapper.xml index 5893f81..22f6d49 100644 --- a/yuan-modules/yuan-purchaseorder/src/main/resources/mapper/PurchaseOrderMapper.xml +++ b/yuan-modules/yuan-purchaseorder/src/main/resources/mapper/PurchaseOrderMapper.xml @@ -2,7 +2,7 @@ - INSERT INTO `t_purchase_order` (`volume_code_id`, `userId`, `purchase_quantity`, `purchase_price`, `purchase_create_time`, `purchase_order_status`) + INSERT INTO `t_purchase_order` (`volume_code_id`, `user_id`, `purchase_quantity`, `purchase_price`, `purchase_create_time`, `purchase_order_status`) VALUES (#{volumeCodeId}, #{userId}, #{purchaseQuantity}, #{purchasePrice}, now(), 0); diff --git a/yuan-modules/yuan-user/src/main/java/com/bwie/user/service/impl/UserServiceImpl.java b/yuan-modules/yuan-user/src/main/java/com/bwie/user/service/impl/UserServiceImpl.java index f0e6343..3e394bb 100644 --- a/yuan-modules/yuan-user/src/main/java/com/bwie/user/service/impl/UserServiceImpl.java +++ b/yuan-modules/yuan-user/src/main/java/com/bwie/user/service/impl/UserServiceImpl.java @@ -39,7 +39,7 @@ public class UserServiceImpl implements UserService { */ @Override public void save(User user) { - if (user.getName().isEmpty()){ + if (user.getName() == null && user.getName() == ""){ String str = "VOLUME_CODE用户:"+new Random().nextInt(1000000); user.setName(str); }