修改围栏信息更正修改时间
parent
dafba11583
commit
48b31c244f
|
@ -14,6 +14,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName FenceServiceImpl
|
* @ClassName FenceServiceImpl
|
||||||
|
@ -50,7 +51,7 @@ public class FenceServiceImpl extends ServiceImpl<FenceMapper , Fence> implement
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据围栏编号编辑围栏信息
|
* 根据围栏编号删除围栏
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -66,12 +67,13 @@ public class FenceServiceImpl extends ServiceImpl<FenceMapper , Fence> implement
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据围栏编号删除围栏
|
* 根据围栏编号编辑围栏信息
|
||||||
* @param entity
|
* @param entity
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean updateById(Fence entity) {
|
public boolean updateById(Fence entity) {
|
||||||
|
entity.setUpdateTime(new Date());
|
||||||
boolean update = super.updateById(entity);
|
boolean update = super.updateById(entity);
|
||||||
if (!update){
|
if (!update){
|
||||||
log.warn("编辑围栏[/-{}-/]未成功! 请求参数:{}",
|
log.warn("编辑围栏[/-{}-/]未成功! 请求参数:{}",
|
||||||
|
|
Loading…
Reference in New Issue