|
@@ -2,6 +2,7 @@ package com.flyer.foster.service.impl;
|
|
|
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.lang.intern.InternUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -118,6 +119,7 @@ public class GardenServiceImpl extends ServiceImpl<IGardenMapper, Garden> implem
|
|
|
}
|
|
|
return this.lambdaUpdate()
|
|
|
.set(Garden::getName, updateDTO.getName())
|
|
|
+ .set(updateDTO.getBirdseyeGardenId() != null, Garden::getBirdseyeGardenId, updateDTO.getBirdseyeGardenId())
|
|
|
.set(updateDTO.getUserId() != null, Garden::getUserId, updateDTO.getUserId())
|
|
|
.set(StrUtil.isNotBlank(updateDTO.getBaseMapUrl()), Garden::getBaseMapUrl, updateDTO.getBaseMapUrl())
|
|
|
.set(updateDTO.getStatus() != null, Garden::getStatus, updateDTO.getStatus())
|