明树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
41621b09
Commit
41621b09
authored
Dec 10, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
74edf28a
Pipeline
#104439
passed with stage
in 3 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
18 deletions
+21
-18
projectBjtj.js
db/model/jt/projectBjtj.js
+6
-6
projectCwpjzb.js
db/model/jt/projectCwpjzb.js
+3
-3
projectGdxx.js
db/model/jt/projectGdxx.js
+3
-3
projectJsgm.js
db/model/jt/projectJsgm.js
+1
-1
projectTjjh_del.js
db/model/jt/projectTjjh_del.js
+1
-1
projectXmtzze.js
db/model/jt/projectXmtzze.js
+1
-1
projectModule.js
module/projectModule.js
+6
-3
No files found.
db/model/jt/projectBjtj.js
View file @
41621b09
...
...
@@ -14,7 +14,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"业务类型"
},
dwgczjSz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"单位工程造价数值"
},
dwgczjDw
:
{
...
...
@@ -22,7 +22,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"单位工程造价单位"
},
xsfwnlSz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"销售服务能力数值"
},
xsfwnlDw
:
{
...
...
@@ -30,7 +30,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"销售服务能力单位"
},
njfhlSz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"年均负荷率数值"
},
njfhlDw
:
{
...
...
@@ -38,7 +38,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"年均负荷率单位"
},
dwscfwzcbSz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"单位生产服务总成本数值"
},
dwscfwzcbDw
:
{
...
...
@@ -46,7 +46,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"单位生产服务总成本单位"
},
dwsjSz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"单位售价(含税)数值"
},
dwsjDw
:
{
...
...
@@ -58,7 +58,7 @@ const projectBjtj = sequelize.define('projectBjtj', {
comment
:
"盈亏平衡点类型"
,
},
ykphdsz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"盈亏平衡点数值"
},
ykphddw
:
{
...
...
db/model/jt/projectCwpjzb.js
View file @
41621b09
...
...
@@ -13,15 +13,15 @@ const projectCwpjzb = sequelize.define('projectCwpjzb', {
comment
:
"指标名称"
},
tzpgjdjzz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"投资评估阶段基准值"
},
tzpgjdpfz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"投资评估阶段批复值"
},
num
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"数量"
},
unit
:
{
...
...
db/model/jt/projectGdxx.js
View file @
41621b09
...
...
@@ -21,15 +21,15 @@ const ProjectGdxx = sequelize.define('ProjectGdxx', {
comment
:
"持股比例(%)"
},
cze
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"出资额(万元)"
},
yjzczb
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"应缴注册资本(万元)"
},
ycxmzbj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"应出项目资本金(万元)"
},
hzfqk
:
{
...
...
db/model/jt/projectJsgm.js
View file @
41621b09
...
...
@@ -13,7 +13,7 @@ const ProjectJsgm = sequelize.define('ProjectJsgm', {
comment
:
"指标名称"
},
num
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"数量"
},
unit
:
{
...
...
db/model/jt/projectTjjh_del.js
View file @
41621b09
...
...
@@ -11,7 +11,7 @@ const ProjectTjjh = sequelize.define('ProjectTjjh', {
},
xh
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"序号"
},
sjx
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"数据项"
},
hj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
allowNull
:
true
,
comment
:
"数据项"
},
hj
:
{
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
allowNull
:
true
,
comment
:
"数据项"
},
sz
:
{
type
:
DataTypes
.
JSON
,
allowNull
:
true
,
comment
:
"数值"
},
rawNum
:
{
type
:
DataTypes
.
INTEGER
},
//行数
projectId
:
{
...
...
db/model/jt/projectXmtzze.js
View file @
41621b09
...
...
@@ -26,7 +26,7 @@ const ProjectXmtzze = sequelize.define('ProjectXmtzze', {
defaultValue
:
"万元"
},
rmbjj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
4
),
type
:
DataTypes
.
DECIMAL
(
19
,
2
),
comment
:
"人民币计价"
},
parentXh
:
{
...
...
module/projectModule.js
View file @
41621b09
...
...
@@ -34,10 +34,9 @@ async function handleProjectData(ret, queryAttrs) {
const
element
=
ret
.
rows
[
index
];
// console.log(element);
for
(
const
key
in
element
)
{
console
.
log
(
rawAttributes
[
key
].
zjType
,
element
[
key
],
"======="
,
!
_
.
isNumber
(
element
[
key
]))
//
console.log(rawAttributes[key].zjType, element[key],"=======", !_.isNumber(element[key]))
if
((
_
.
isNumber
(
element
[
key
]))
&&
rawAttributes
[
key
].
zjType
)
{
if
(
rawAttributes
[
key
].
zjType
==
"danxuan"
)
{
console
.
log
(
rawAttributes
[
key
].
zjType
,
element
[
key
],
"===111===="
)
resouInfoIds
.
push
(
element
[
key
]);
}
...
...
@@ -54,7 +53,7 @@ async function handleProjectData(ret, queryAttrs) {
for
(
let
index
=
0
;
index
<
ret
.
rows
.
length
;
index
++
)
{
const
element
=
ret
.
rows
[
index
];
for
(
const
key
in
element
)
{
console
.
log
(
element
,
element
[
key
],
rawAttributes
[
key
].
zjType
);
//
console.log(element, element[key], rawAttributes[key].zjType);
if
(
_
.
isNumber
(
element
[
key
])
&&
rawAttributes
[
key
].
zjType
)
{
if
(
rawAttributes
[
key
].
zjType
==
"danxuan"
)
{
console
.
log
(
resMap
[
String
(
element
[
key
])],
String
(
element
[
key
]),
"========================="
)
...
...
@@ -66,6 +65,10 @@ async function handleProjectData(ret, queryAttrs) {
}
}
}
// // console.log(rawAttributes[key].type.key)
// if(rawAttributes[key].type.key == 'DECIMAL') {
// element[key] = parseFloat(element[key]);
// }
}
newRet
.
push
(
element
);
...
...
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