明树Git Lab

Commit 8029d326 authored by zfp1's avatar zfp1

update

parent 71fee394
Pipeline #104450 passed with stage
in 3 seconds
......@@ -125,70 +125,70 @@ async function getProjectInfo({ id }) {
where: { id: id },
// raw: true,
include: [
{
model: DB.ProjectBjtj,
as: 'projectBjtjs',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectCwpjzb,
as: 'projectCwpjzbs',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectFxgl,
as: 'projectFxgls',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectGdxx,
as: 'projectGdxxs',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectJczt,
as: 'projectJczts',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectJsgm,
as: 'projectJsgms',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectLcbjd,
as: 'projectLcbjds',
},
{
model: DB.ProjectSpyj,
as: 'projectSpyjs',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectTzzjll,
as: 'projectTzzjlls',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectTzzt,
as: 'projectTzzts',
// where: { del: 0 },
// attributes: [],
},
{
model: DB.ProjectXmtzze,
as: 'projectXmtzzes',
// where: { del: 0 },
// attributes: [],
},
// {
// model: DB.ProjectBjtj,
// as: 'projectBjtjs',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectCwpjzb,
// as: 'projectCwpjzbs',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectFxgl,
// as: 'projectFxgls',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectGdxx,
// as: 'projectGdxxs',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectJczt,
// as: 'projectJczts',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectJsgm,
// as: 'projectJsgms',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectLcbjd,
// as: 'projectLcbjds',
// },
// {
// model: DB.ProjectSpyj,
// as: 'projectSpyjs',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectTzzjll,
// as: 'projectTzzjlls',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectTzzt,
// as: 'projectTzzts',
// // where: { del: 0 },
// // attributes: [],
// },
// {
// model: DB.ProjectXmtzze,
// as: 'projectXmtzzes',
// // where: { del: 0 },
// // attributes: [],
// },
{
model: DB.File,
as: 'files',
......@@ -203,6 +203,18 @@ async function getProjectInfo({ id }) {
return {};
}
project = project.toJSON();
project.projectBjtjs = await DB.ProjectBjtj.findAll({where:{projectId: id}, raw: true});
project.projectCwpjzbs = await DB.ProjectCwpjzb.findAll({where:{projectId: id}, raw: true});
project.projectFxgls = await DB.ProjectFxgl.findAll({where:{projectId: id}, raw: true});
project.projectGdxxs = await DB.ProjectGdxx.findAll({where:{projectId: id}, raw: true});
project.projectJczts = await DB.ProjectJczt.findAll({where:{projectId: id}, raw: true});
project.projectJsgms = await DB.ProjectJsgm.findAll({where:{projectId: id}, raw: true});
project.projectLcbjds = await DB.ProjectLcbjd.findAll({where:{projectId: id}, raw: true});
project.projectSpyjs = await DB.ProjectSpyj.findAll({where:{projectId: id}, raw: true});
project.projectTzzjlls = await DB.ProjectTzzjll.findAll({where:{projectId: id}, raw: true});
project.projectTzzts = await DB.ProjectTzzt.findAll({where:{projectId: id}, raw: true});
project.projectXmtzzes = await DB.ProjectXmtzze.findAll({where:{projectId: id}, raw: true});
// let files = await DB.ProjectXmtzze.findAll({projectId: id});
project.projectXmtzzes = utils.buildTree2(project.projectXmtzzes, 'xh', 'parentXh');
//处理文件 还原成项目各个字段拥有的文件
......
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