明树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
ce22feb2
Commit
ce22feb2
authored
Nov 19, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e541bf62
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
822 additions
and
776 deletions
+822
-776
resourceController.js
controller/resourceController.js
+1
-0
project.js
db/model/jt/project.js
+766
-766
projectBjtj.js
db/model/jt/projectBjtj.js
+1
-2
projectCwpjzb.js
db/model/jt/projectCwpjzb.js
+1
-2
projectGdxx.js
db/model/jt/projectGdxx.js
+2
-2
projectJsgm.js
db/model/jt/projectJsgm.js
+0
-1
projectSpyj.js
db/model/jt/projectSpyj.js
+49
-0
projectXmtzze.js
db/model/jt/projectXmtzze.js
+2
-3
No files found.
controller/resourceController.js
View file @
ce22feb2
...
...
@@ -145,6 +145,7 @@ module.exports = {
deleteResource
,
listResource
,
createResourceInfo
,
updateResourceInfo
,
deleteResourceInfo
,
...
...
db/model/jt/project.js
View file @
ce22feb2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
db/model/jt/projectBjtj.js
View file @
ce22feb2
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//
建设规模
//
核心边界条件
const
projectBjtj
=
sequelize
.
define
(
'projectBjtj'
,
{
// 定义字段
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
...
...
db/model/jt/projectCwpjzb.js
View file @
ce22feb2
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//
建设规模
//
财务评价指标
const
projectCwpjzb
=
sequelize
.
define
(
'projectCwpjzb'
,
{
// 定义字段
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
...
...
db/model/jt/projectGdxx.js
View file @
ce22feb2
...
...
@@ -9,11 +9,11 @@ const projectGdxx = sequelize.define('projectGdxx', {
primaryKey
:
true
,
autoIncrement
:
true
},
type
:
{
gdlx
:
{
type
:
DataTypes
.
STRING
,
comment
:
"股东类型"
},
name
:
{
gdmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"股东名称"
},
...
...
db/model/jt/projectJsgm.js
View file @
ce22feb2
...
...
@@ -3,7 +3,6 @@ const sequelize = require('../index');
// 建设规模
const
projectJsgm
=
sequelize
.
define
(
'projectJsgm'
,
{
// 定义字段
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
...
...
db/model/jt/projectS
tage
.js
→
db/model/jt/projectS
pyj
.js
View file @
ce22feb2
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
const
ProjectStage
=
sequelize
.
define
(
'ProjectStage'
,
{
// 定义字段
// 审批意见
const
projectSpyj
=
sequelize
.
define
(
'projectSpyj'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
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
:
{
type
:
DataTypes
.
INTEGER
,
defaultValue
:
0
,
comment
:
"0 正常 1 删除"
},
},
{
tableName
:
'
system_project
'
,
// 指定表名(如果与模型名不同)
tableName
:
'
jt_project_spyj
'
,
// 指定表名(如果与模型名不同)
timestamps
:
true
,
// 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectStage
.
sync
({
projectSpyj
.
sync
({
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.
then
(()
=>
{
console
.
log
(
'
ProjectStage
表同步成功'
);
console
.
log
(
'
projectSpyj
表同步成功'
);
});
module
.
exports
=
ProjectStage
;
\ No newline at end of file
module
.
exports
=
projectSpyj
;
\ No newline at end of file
db/model/jt/projectXmtzze.js
View file @
ce22feb2
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
//
建设规模
//
项目总投资总额(全口径)
const
projectXmtzze
=
sequelize
.
define
(
'projectXmtzze'
,
{
// 定义字段
id
:
{
type
:
DataTypes
.
INTEGER
,
primaryKey
:
true
,
...
...
@@ -11,7 +10,7 @@ const projectXmtzze = sequelize.define('projectXmtzze', {
},
xh
:
{
type
:
DataTypes
.
STRING
,
comment
:
""
comment
:
"
序号
"
},
zb
:
{
type
:
DataTypes
.
STRING
,
...
...
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