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());