Explorar el Código

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
chengwang hace 1 año
padre
commit
fa258f8198
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar