明树Git Lab

Commit effb255b authored by zfp1's avatar zfp1

update

parent 9defe849
...@@ -34,7 +34,8 @@ const ProjectTzzt = require("./model/jt/projectTzzt"); ...@@ -34,7 +34,8 @@ const ProjectTzzt = require("./model/jt/projectTzzt");
const ProjectXmtzze = require("./model/jt/projectXmtzze"); const ProjectXmtzze = require("./model/jt/projectXmtzze");
const ProjectLixiang = require("./model/jt/projectLixiang"); const ProjectLixiang = require("./model/jt/projectLixiang");
const ProjectExcelData = require("./model/jt/projectExcelData"); const ProjectExcelData = require("./model/jt/projectExcelData");
const ProjectZqrz = require('./model/jt/projectZqrz')
const ProjectSpyjjc = require('./model/jt/projectSpyjjc')
/** /**
* 业务表 * 业务表
...@@ -74,6 +75,8 @@ global.DB = { ...@@ -74,6 +75,8 @@ global.DB = {
FlowRecord, FlowRecord,
ProjectLixiang, ProjectLixiang,
ProjectExcelData, ProjectExcelData,
ProjectZqrz,
ProjectSpyjjc,
} }
......
...@@ -11,15 +11,18 @@ const ProjectJczt = sequelize.define('ProjectJczt', { ...@@ -11,15 +11,18 @@ const ProjectJczt = sequelize.define('ProjectJczt', {
autoIncrement: true autoIncrement: true
}, },
hylx: { type: DataTypes.STRING, allowNull: true, comment: "会议类型" }, hylx: { type: DataTypes.STRING, allowNull: true, comment: "会议类型" },
hylx: { type: DataTypes.STRING, allowNull: true, comment: "会议名称" }, hymc: { type: DataTypes.STRING, allowNull: true, comment: "会议名称" },
jcsj: { type: DataTypes.DATE, allowNull: true, comment: "决策时间" }, jcsj: { type: DataTypes.DATE, allowNull: true, comment: "决策时间" },
jcjl: { type: DataTypes.STRING, allowNull: true, comment: "决策结论" }, jcjl: { type: DataTypes.STRING, allowNull: true, comment: "决策结论" },
hyjy: { hyjy: {
type: DataTypes.INTEGER, references: { type: DataTypes.JSON, allowNull: true, comment: "会议纪要"
model: File,
key: 'id'
}, allowNull: true, comment: "hyjy"
}, },
// hyjy: {
// type: DataTypes.INTEGER, references: {
// model: File,
// key: 'id'
// }, allowNull: true, comment: "会议纪要"
// },
qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "其他说明" }, qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "其他说明" },
projectId: { projectId: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
...@@ -53,9 +56,9 @@ const ProjectJczt = sequelize.define('ProjectJczt', { ...@@ -53,9 +56,9 @@ const ProjectJczt = sequelize.define('ProjectJczt', {
// 同步模型到数据库(创建表) // 同步模型到数据库(创建表)
ProjectJczt.sync({ ProjectJczt.sync({
force: false, // force: false,
// force: true ,//会删除已存在表并重新创建 // force: true ,//会删除已存在表并重新创建
// alter: true alter: true
}) })
.then(() => { .then(() => {
console.log('ProjectJczt 表同步成功'); console.log('ProjectJczt 表同步成功');
......
const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
const sequelize = require('../index'); const sequelize = require('../index');
const moment = require('moment'); const moment = require('moment');
const File = require('../system/file');
//里程碑节点 //里程碑节点
const ProjectLcbjd = sequelize.define('ProjectLcbjd', { const ProjectLcbjd = sequelize.define('ProjectLcbjd', {
id: { id: {
......
...@@ -24,11 +24,14 @@ const ProjectSpyj = sequelize.define('ProjectSpyj', { ...@@ -24,11 +24,14 @@ const ProjectSpyj = sequelize.define('ProjectSpyj', {
}, },
zxhf: { type: DataTypes.TEXT, allowNull: true, comment: "执行回复" }, zxhf: { type: DataTypes.TEXT, allowNull: true, comment: "执行回复" },
zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" }, zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" },
// zxhffj: {
// type: DataTypes.INTEGER, references: {
// model: File,
// key: 'id'
// }, allowNull: true, comment: "执行回复附件"
// },
zxhffj: { zxhffj: {
type: DataTypes.INTEGER, references: { type: DataTypes.JSON, allowNull: true, comment: "执行回复附件"
model: File,
key: 'id'
}, allowNull: true, comment: "执行回复附件"
}, },
wlsqksm: { type: DataTypes.TEXT, allowNull: true, comment: "未落实情况说明" }, wlsqksm: { type: DataTypes.TEXT, allowNull: true, comment: "未落实情况说明" },
......
...@@ -24,11 +24,14 @@ const ProjectSpyjjc = sequelize.define('ProjectSpyjjc', { ...@@ -24,11 +24,14 @@ const ProjectSpyjjc = sequelize.define('ProjectSpyjjc', {
zxhf: { type: DataTypes.TEXT, allowNull: true, comment: "执行回复" }, zxhf: { type: DataTypes.TEXT, allowNull: true, comment: "执行回复" },
zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" }, zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" },
zxhffj: { zxhffj: {
type: DataTypes.INTEGER, references: { type: DataTypes.JSON, allowNull: true, comment: "执行回复附件"
model: File,
key: 'id'
}, allowNull: true, comment: "执行回复附件"
}, },
// zxhffj: {
// type: DataTypes.INTEGER, references: {
// model: File,
// key: 'id'
// }, allowNull: true, comment: "执行回复附件"
// },
wlsqksm: { type: DataTypes.TEXT, allowNull: true, comment: "未落实情况说明" }, wlsqksm: { type: DataTypes.TEXT, allowNull: true, comment: "未落实情况说明" },
projectId: { projectId: {
......
...@@ -14,10 +14,11 @@ const ProjectTzzt = sequelize.define('ProjectTzzt', { ...@@ -14,10 +14,11 @@ const ProjectTzzt = sequelize.define('ProjectTzzt', {
hymc: { type: DataTypes.STRING, allowNull: true, comment: "会议名称" }, hymc: { type: DataTypes.STRING, allowNull: true, comment: "会议名称" },
shsj: { type: DataTypes.DATE, allowNull: true, comment: "审核时间" }, shsj: { type: DataTypes.DATE, allowNull: true, comment: "审核时间" },
jl: { type: DataTypes.STRING, allowNull: true, comment: "结论" }, jl: { type: DataTypes.STRING, allowNull: true, comment: "结论" },
fj: {type: DataTypes.INTEGER, references: { fj: {type: DataTypes.JSON, allowNull: true, comment: "附件"},
model: File, // fj: {type: DataTypes.INTEGER, references: {
key: 'id' // model: File,
}, allowNull: true, comment: "附件"}, // key: 'id'
// }, allowNull: true, comment: "附件"},
qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "其他说明" }, qtsm: { type: DataTypes.TEXT, allowNull: true, comment: "其他说明" },
projectId: { projectId: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
......
...@@ -23,12 +23,13 @@ const ExcelRecord = sequelize.define('ExcelRecord', { ...@@ -23,12 +23,13 @@ const ExcelRecord = sequelize.define('ExcelRecord', {
comment: "1. 导入 2. 导出" comment: "1. 导入 2. 导出"
}, },
excelUrl: { excelUrl: {
type: DataTypes.INTEGER, type: DataTypes.STRING,
// type: DataTypes.INTEGER,
allowNull: true, allowNull: true,
references: { // references: {
model: DB.File, // 关联的表名 // model: DB.File, // 关联的表名
key: 'id' // 关联的字段 // key: 'id' // 关联的字段
}, // },
comment: "导出文件地址", comment: "导出文件地址",
}, },
modleName: { modleName: {
......
...@@ -78,7 +78,6 @@ async function setUserPosition(userId, positionIds, positions) { ...@@ -78,7 +78,6 @@ async function setUserPosition(userId, positionIds, positions) {
const element = positions[index]; const element = positions[index];
dbIds.push(element.id); dbIds.push(element.id);
if (!positionIds.includes(element.id)) { if (!positionIds.includes(element.id)) {
// 1. departIds里面没有 但是关系表里有的 需要删除
needDelIds.push(element.id); needDelIds.push(element.id);
} }
} }
......
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