This commit is contained in:
shuo.wang
2025-04-12 14:57:01 +08:00
parent 2eeba3e844
commit e2d6c93f83

View File

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