明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
jt_backend
Commits
14b33e00
Commit
14b33e00
authored
Nov 26, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9d3370f2
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
235 additions
and
98 deletions
+235
-98
project.js
db/model/jt/project.js
+58
-23
projectCwpjzb.js
db/model/jt/projectCwpjzb.js
+39
-39
projectJczt.js
db/model/jt/projectJczt.js
+43
-0
projectLcbjd.js
db/model/jt/projectLcbjd.js
+59
-0
projectZqrz.js
db/model/jt/projectZqrz.js
+36
-36
No files found.
db/model/jt/project.js
View file @
14b33e00
This diff is collapsed.
Click to expand it.
db/model/jt/projectCwpjzb.js
View file @
14b33e00
//
const { DataTypes } = require('sequelize');
//
const sequelize = require('../index');
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//
//
财务评价指标----废弃
//
const projectCwpjzb = sequelize.define('projectCwpjzb', {
//
id: {
//
type: DataTypes.INTEGER,
//
primaryKey: true,
//
autoIncrement: true
//
},
//
name: {
//
type: DataTypes.STRING,
//
comment: "指标名称"
//
},
//
num: {
//
type: DataTypes.DECIMAL(20, 4),
//
comment: "数量"
//
},
//
unit: {
//
type: DataTypes.STRING,
//
comment: "单位"
//
},
//
projectId: {
//
type: DataTypes.INTEGER,
//
comment: "所属项目ID",
//
},
//
}, {
//
tableName: 'jt_project_cwpjzb', // 指定表名(如果与模型名不同)
//
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
//
});
// 财务评价指标----废弃
const
projectCwpjzb
=
sequelize
.
define
(
'projectCwpjzb'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
autoIncrement
:
true
},
name
:
{
type
:
DataTypes
.
STRING
,
comment
:
"指标名称"
},
num
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
comment
:
"数量"
},
unit
:
{
type
:
DataTypes
.
STRING
,
comment
:
"单位"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
},
},
{
tableName
:
'jt_project_cwpjzb'
,
// 指定表名(如果与模型名不同)
timestamps
:
true
,
// 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
//
//
同步模型到数据库(创建表)
//
projectCwpjzb.sync({
//
// force: false,
//
// force: true ,//会删除已存在表并重新创建
//
// alter: true
//
})
//
.then(() => {
//
console.log('projectCwpjzb 表同步成功');
//
});
// 同步模型到数据库(创建表)
projectCwpjzb
.
sync
({
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.
then
(()
=>
{
console
.
log
(
'projectCwpjzb 表同步成功'
);
});
// module.exports = projectCwpjzb;
\ No newline at end of file
module
.
exports
=
projectCwpjzb
;
\ No newline at end of file
db/model/jt/projectJczt.js
0 → 100644
View file @
14b33e00
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//决策主体审核情况
const
ProjectJczt
=
sequelize
.
define
(
'ProjectJczt'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
autoIncrement
:
true
},
hylx
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"会议类型"
},
hylx
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"会议名称"
},
jc
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"届次"
},
zkrq
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"召开日期"
},
jl
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"结论"
},
qtsm
:
{
type
:
DataTypes
.
TEXT
,
allowNull
:
true
,
comment
:
"决策结论"
},
qtsm
:
{
type
:
DataTypes
.
TEXT
,
allowNull
:
true
,
comment
:
"其他说明"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
},
del
:
{
type
:
DataTypes
.
INTEGER
,
defaultValue
:
0
,
comment
:
"0 正常 1 删除"
},
},
{
tableName
:
'jt_project_jczt'
,
// 指定表名(如果与模型名不同)
timestamps
:
true
,
// 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectJczt
.
sync
({
force
:
false
,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.
then
(()
=>
{
console
.
log
(
'ProjectJczt 表同步成功'
);
});
module
.
exports
=
ProjectJczt
;
\ No newline at end of file
db/model/jt/projectLcbjd.js
0 → 100644
View file @
14b33e00
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
const
File
=
require
(
'../system/file'
);
// yjlx: { type: DataTypes.STRING, allowNull: true, comment: "意见类型" },
// pfyj: { type: DataTypes.STRING, allowNull: true, comment: "批复意见" },
// pfyjsj: { type: DataTypes.DATE, allowNull: true, comment: "批复意见时间" },
// zxhf: { type: DataTypes.STRING, allowNull: true, comment: "执行回复" },
// zxhfsj: { type: DataTypes.DATE, allowNull: true, comment: "执行回复时间" },
// zxhffj: { type: DataTypes.STRING, allowNull: true, comment: "执行回复附件" },
// wlsqksm: { type: DataTypes.STRING, allowNull: true, comment: "未落实情况说明" },
// 审批意见
const
ProjectLcbjd
=
sequelize
.
define
(
'ProjectLcbjd'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
autoIncrement
:
true
},
lcbjdmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"里程碑节点名称"
},
jdwcms
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"节点完成描述"
},
yjwcsj
:
{
type
:
DataTypes
.
DATE
,
comment
:
"预计完成时间"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
},
del
:
{
type
:
DataTypes
.
INTEGER
,
defaultValue
:
0
,
comment
:
"0 正常 1 删除"
},
},
{
tableName
:
'jt_project_lcbjd'
,
// 指定表名(如果与模型名不同)
timestamps
:
true
,
// 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectLcbjd
.
sync
({
force
:
false
,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.
then
(()
=>
{
console
.
log
(
'ProjectLcbjd 表同步成功'
);
});
module
.
exports
=
ProjectLcbjd
;
\ No newline at end of file
db/model/jt/projectZqrz.js
View file @
14b33e00
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//
const { DataTypes } = require('sequelize');
//
const sequelize = require('../index');
// 债权融资
const
ProjectZqrz
=
sequelize
.
define
(
'ProjectZqrz'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
autoIncrement
:
true
},
wffzdzqrzjewy
:
{
type
:
DataTypes
.
DECIMAL
(
19
,
8
),
allowNull
:
true
,
comment
:
"我方负责的债权融资金额(万元)"
},
rzcbzq
:
{
type
:
DataTypes
.
DECIMAL
(
19
,
8
),
allowNull
:
true
,
comment
:
"融资成本债权"
},
qxzq
:
{
type
:
DataTypes
.
INTEGER
,
allowNull
:
true
,
comment
:
"期限债权"
},
yjldsjzq
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"预计落地时间债权"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
},
del
:
{
type
:
DataTypes
.
INTEGER
,
defaultValue
:
0
,
comment
:
"0 正常 1 删除"
},
},
{
tableName
:
'jt_project_zqrz'
,
// 指定表名(如果与模型名不同)
timestamps
:
true
,
// 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
//
//
债权融资
//
const ProjectZqrz = sequelize.define('ProjectZqrz', {
//
id: {
//
type: DataTypes.INTEGER,
//
primaryKey: true,
//
autoIncrement: true
//
},
//
wffzdzqrzjewy: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "我方负责的债权融资金额(万元)" },
//
rzcbzq: { type: DataTypes.DECIMAL(19, 8), allowNull: true, comment: "融资成本债权" },
//
qxzq: { type: DataTypes.INTEGER, allowNull: true, comment: "期限债权" },
//
yjldsjzq: { type: DataTypes.DATE, allowNull: true, comment: "预计落地时间债权" },
//
projectId: {
//
type: DataTypes.INTEGER,
//
comment: "所属项目ID",
//
},
//
del: {
//
type: DataTypes.INTEGER,
//
defaultValue: 0,
//
comment: "0 正常 1 删除"
//
},
//
}, {
//
tableName: 'jt_project_zqrz', // 指定表名(如果与模型名不同)
//
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
//
});
// 同步模型到数据库(创建表)
ProjectZqrz
.
sync
({
force
:
false
,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.
then
(()
=>
{
console
.
log
(
'ProjectZqrz 表同步成功'
);
});
//
//
同步模型到数据库(创建表)
//
ProjectZqrz.sync({
//
force: false,
//
// force: true ,//会删除已存在表并重新创建
//
// alter: true
//
})
//
.then(() => {
//
console.log('ProjectZqrz 表同步成功');
//
});
module
.
exports
=
ProjectZqrz
;
\ No newline at end of file
// module.exports = ProjectZqrz;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment