明树Git Lab

Commit ce22feb2 authored by zfp1's avatar zfp1

update

parent e541bf62
...@@ -145,6 +145,7 @@ module.exports = { ...@@ -145,6 +145,7 @@ module.exports = {
deleteResource, deleteResource,
listResource, listResource,
createResourceInfo, createResourceInfo,
updateResourceInfo, updateResourceInfo,
deleteResourceInfo, deleteResourceInfo,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
const sequelize = require('../index'); const sequelize = require('../index');
// 建设规模 // 核心边界条件
const projectBjtj = sequelize.define('projectBjtj', { const projectBjtj = sequelize.define('projectBjtj', {
// 定义字段
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
......
const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
const sequelize = require('../index'); const sequelize = require('../index');
// 建设规模 // 财务评价指标
const projectCwpjzb = sequelize.define('projectCwpjzb', { const projectCwpjzb = sequelize.define('projectCwpjzb', {
// 定义字段
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
......
...@@ -9,11 +9,11 @@ const projectGdxx = sequelize.define('projectGdxx', { ...@@ -9,11 +9,11 @@ const projectGdxx = sequelize.define('projectGdxx', {
primaryKey: true, primaryKey: true,
autoIncrement: true autoIncrement: true
}, },
type: { gdlx: {
type: DataTypes.STRING, type: DataTypes.STRING,
comment: "股东类型" comment: "股东类型"
}, },
name: { gdmc: {
type: DataTypes.STRING, type: DataTypes.STRING,
comment: "股东名称" comment: "股东名称"
}, },
......
...@@ -3,7 +3,6 @@ const sequelize = require('../index'); ...@@ -3,7 +3,6 @@ const sequelize = require('../index');
// 建设规模 // 建设规模
const projectJsgm = sequelize.define('projectJsgm', { const projectJsgm = sequelize.define('projectJsgm', {
// 定义字段
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
......
const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
const sequelize = require('../index'); const sequelize = require('../index');
const ProjectStage = sequelize.define('ProjectStage', { // 审批意见
// 定义字段 const projectSpyj = sequelize.define('projectSpyj', {
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
autoIncrement: true autoIncrement: true
}, },
lx: {
type: DataTypes.STRING,
comment: "指标名称"
},
pfyj: {
type: DataTypes.TEXT,
comment: "批复意见"
},
pfyjsj: {
type: DataTypes.DATE,
comment: "批复意见时间"
},
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
del: { del: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
defaultValue: 0, defaultValue: 0,
comment: "0 正常 1 删除" comment: "0 正常 1 删除"
}, },
}, { }, {
tableName: 'system_project', // 指定表名(如果与模型名不同) tableName: 'jt_project_spyj', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置) timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
}); });
// 同步模型到数据库(创建表) // 同步模型到数据库(创建表)
ProjectStage.sync({ projectSpyj.sync({
// force: false, // force: false,
// force: true ,//会删除已存在表并重新创建 // force: true ,//会删除已存在表并重新创建
// alter: true // alter: true
}) })
.then(() => { .then(() => {
console.log('ProjectStage 表同步成功'); console.log('projectSpyj 表同步成功');
}); });
module.exports = ProjectStage; module.exports = projectSpyj;
\ No newline at end of file \ No newline at end of file
const { DataTypes } = require('sequelize'); const { DataTypes } = require('sequelize');
const sequelize = require('../index'); const sequelize = require('../index');
// 建设规模 // 项目总投资总额(全口径)
const projectXmtzze = sequelize.define('projectXmtzze', { const projectXmtzze = sequelize.define('projectXmtzze', {
// 定义字段
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
...@@ -11,7 +10,7 @@ const projectXmtzze = sequelize.define('projectXmtzze', { ...@@ -11,7 +10,7 @@ const projectXmtzze = sequelize.define('projectXmtzze', {
}, },
xh: { xh: {
type: DataTypes.STRING, type: DataTypes.STRING,
comment: "" comment: "序号"
}, },
zb: { zb: {
type: DataTypes.STRING, type: DataTypes.STRING,
......
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