Compare commits

..

No commits in common. "b096ce21a2ef2e3b4b7114e06dff210dfcb1005f" and "04a5eae117dc96112b76daf6e9640b71b253dd2b" have entirely different histories.

7 changed files with 16 additions and 50 deletions

View File

@ -31,6 +31,4 @@ public class ProjectChildDO {
private Timestamp createdAt;
private Timestamp completeTime;
private Timestamp updatedAt;
private String status;
private Timestamp deadLine;
}

View File

@ -17,8 +17,6 @@ public class ProjectModuleDO {
private String description;
private String name;
private Integer isDelete;
private String status;
private Timestamp deadLine;
private Timestamp createdAt;
private Timestamp updatedAt;
private Timestamp completeTime;

View File

@ -2,17 +2,13 @@ package com.jsl.oa.model.vodata;
import lombok.Data;
import java.util.List;
@Data
public class PermissionContentVO {
// 主键
private Long id;
// 权限名称
private String name;
private String code;
private Short type;
private List<PermissionContentVO> children;
// 权限描述
private String description;
}

View File

@ -1,24 +0,0 @@
package com.jsl.oa.model.vodata;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;
import java.sql.Timestamp;
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectChildGetVO {
private Long id;
private String principalName;
private Long projectId;
private Integer workLoad;
private Integer cycle;
private String name;
private String description;
private Integer isDelete;
private String status;
private Timestamp deadLine;
}

View File

@ -15,17 +15,19 @@ import java.sql.Timestamp;
public class ProjectWorkAndNameVO {
private Long id;
private Long pid;
private String childSystemName;
private Long projectChildId;
private Long projectId;
private Long principalId;
private String principalUser;
private Integer cycle;
private Integer workLoad;
private Integer type;
private String name;
private String description;
private Integer isDelete;
private String status;
private Timestamp deadLine;
private Integer isFinish;
private boolean status;
private Timestamp beginTime;
private Timestamp completeTime;
}

View File

@ -6,7 +6,6 @@ import com.jsl.oa.dao.UserDAO;
import com.jsl.oa.mapper.ModuleMapper;
import com.jsl.oa.model.dodata.ProjectChildDO;
import com.jsl.oa.model.dodata.ProjectModuleDO;
import com.jsl.oa.model.vodata.ProjectChildGetVO;
import com.jsl.oa.model.vodata.ProjectWorkAndNameVO;
import com.jsl.oa.services.ModuleService;
import com.jsl.oa.utils.BaseResponse;
@ -43,15 +42,9 @@ public class ModuleServiceImpl implements ModuleService {
log.info("不是负责人");
is = 0;
}
List<ProjectChildDO> projectWorkDOList = moduleMapper.getByProjectId(projectId, userId, is);
List<ProjectChildGetVO> projectWorkAndNameVOS = new ArrayList<>();
for (ProjectChildDO projectWorkDO : projectWorkDOList) {
ProjectChildGetVO projectWorkAndNameVO = new ProjectChildGetVO();
Processing.copyProperties(projectWorkDO, projectWorkAndNameVO);
projectWorkAndNameVO.setPrincipalName(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername());
projectWorkAndNameVOS.add(projectWorkAndNameVO);
}
return ResultUtil.success(projectWorkAndNameVOS);
return ResultUtil.success(projectWorkDOList);
}
@Override

View File

@ -2,7 +2,7 @@ create table oa_project_child
(
id bigint unsigned auto_increment comment '项目id'
primary key,
project_id bigint unsigned null comment '主要项目id',
project_id bigint unsigned not null comment '主要项目id',
name varchar(100) not null comment '项目名称',
principal_id bigint unsigned not null comment '项目负责人',
description json null comment '项目描述(技术选择,描述)',
@ -13,8 +13,11 @@ create table oa_project_child
created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间',
updated_at timestamp null comment '更新时间',
is_delete tinyint(1) default 0 not null comment '项目是否删除',
dead_line timestamp not null comment '子系统的截止时间',
status varchar(8) default 'progress' not null comment '系统状态draft: 草稿progress: 进行pause: 暂停abnormal: 异常complete: 完成)',
constraint oa_project_child_oa_user_id_fk
foreign key (principal_id) references oa_user (id)
on update cascade
)
comment '项目表';
comment '项目表';