Commit 78659b91 authored by 赵啸非's avatar 赵啸非

添加打包配置文件

parent 90b9b9a8
...@@ -5,6 +5,8 @@ import java.util.ArrayList; ...@@ -5,6 +5,8 @@ import java.util.ArrayList;
import com.mortals.xhx.module.dept.model.vo.DeptVo; import com.mortals.xhx.module.dept.model.vo.DeptVo;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data; import lombok.Data;
import org.springframework.util.ObjectUtils;
import java.io.Serializable; import java.io.Serializable;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -36,7 +38,9 @@ public class DeptTreeSelect implements Serializable { ...@@ -36,7 +38,9 @@ public class DeptTreeSelect implements Serializable {
public DeptTreeSelect(DeptEntity entity) { public DeptTreeSelect(DeptEntity entity) {
this.id = entity.getId(); this.id = entity.getId();
this.label = entity.getDeptName(); this.label = entity.getDeptName();
if(!ObjectUtils.isEmpty(entity.getChildren())){
this.children = entity.getChildren().stream().map(DeptTreeSelect::new).collect(Collectors.toList()); this.children = entity.getChildren().stream().map(DeptTreeSelect::new).collect(Collectors.toList());
} }
}
} }
\ No newline at end of file
...@@ -76,7 +76,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity ...@@ -76,7 +76,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
if(!ObjectUtils.isEmpty(deptEntity)){ if(!ObjectUtils.isEmpty(deptEntity)){
deptEntity.setDeptStatus(DeptStatusEnum.启用.getValue()); deptEntity.setDeptStatus(DeptStatusEnum.启用.getValue());
deptEntity.setUpdateTime(new Date()); deptEntity.setUpdateTime(new Date());
deptEntity.setUpdateUser(context.getUser().getLoginName()); deptEntity.setUpdateUser(context==null?"admin":context.getUser().getLoginName());
DeptEntity condition = new DeptEntity(); DeptEntity condition = new DeptEntity();
condition.setId(deptEntity.getId()); condition.setId(deptEntity.getId());
this.updateBatch(deptEntity, condition, context); this.updateBatch(deptEntity, condition, context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment