From e2d6c93f834df234e45763d1064601aabfe46ec4 Mon Sep 17 00:00:00 2001 From: "shuo.wang" Date: Sat, 12 Apr 2025 14:57:01 +0800 Subject: [PATCH] fix --- .../store/service/impl/BuildInformationServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/BuildInformationServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/BuildInformationServiceImpl.java index 67ff13067..78020a62e 100644 --- a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/BuildInformationServiceImpl.java +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/BuildInformationServiceImpl.java @@ -141,7 +141,12 @@ public class BuildInformationServiceImpl implements BuildInformationService { BuildInformationDO informationDO = buildInformationDAO.selectOneByShopId(request.getShopId()); BuildInformationDO buildInformationDO = request.toDO(); OrderSysInfoDO orderSysInfoDO = getOrderSysInfoDO(request); - orderSysInfoDAO.updateByShopId(orderSysInfoDO); + OrderSysInfoDO orderSysInfoDO1 = orderSysInfoDAO.selectByShopId(request.getShopId()); + if (Objects.nonNull(orderSysInfoDO1)){ + orderSysInfoDAO.updateByShopId(orderSysInfoDO); + }else{ + orderSysInfoDAO.insertSelective(orderSysInfoDO); + } if (Objects.isNull(informationDO)) { buildInformationDO.setCreateTime(new Date()); buildInformationDO.setUpdateTime(new Date());