瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
chengwang 1 年之前
父節點
當前提交
fa258f8198
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/structure/StructureServiceImpl.java

+ 4
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/structure/StructureServiceImpl.java 查看文件

@@ -171,15 +171,19 @@ public class StructureServiceImpl extends BaseServiceImpl<StructureMapper, Struc
if(StringUtils.isEmpty(entity.getRoadId()) && StringUtils.isEmpty(entity.getSectionId())){
return JsonResult.error("公路和路段为空");
}
//获取租户id
String tenantId = CurrentUserUtil.getTenantId();
//查询用户信息
if(StringUtils.isEmpty(entity.getId())){
//新增
entity.setCreateTime(DateUtils.now());
entity.setCreateUser(userId);
entity.setTenantId(tenantId);
}else {
//更新
entity.setUpdateTime(DateUtils.now());
entity.setUpdateUser(userId);
entity.setTenantId(tenantId);
}
super.edit(entity);


Loading…
取消
儲存