修改围栏信息更正修改时间

master
ZhiShuo_Lou 2023-11-22 20:10:46 +08:00
parent dafba11583
commit 48b31c244f
1 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName FenceServiceImpl
@ -50,7 +51,7 @@ public class FenceServiceImpl extends ServiceImpl<FenceMapper , Fence> implement
}
/**
*
*
* @param id
* @return
*/
@ -66,12 +67,13 @@ public class FenceServiceImpl extends ServiceImpl<FenceMapper , Fence> implement
}
/**
*
*
* @param entity
* @return
*/
@Override
public boolean updateById(Fence entity) {
entity.setUpdateTime(new Date());
boolean update = super.updateById(entity);
if (!update){
log.warn("编辑围栏[/-{}-/]未成功! 请求参数:{}",