明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_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
letian_backend
Commits
e05f1657
Commit
e05f1657
authored
Jan 08, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f5f2cf07
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
productDeepController.js
controller/productDeepController.js
+1
-1
productDirPlantController.js
controller/productDirPlantController.js
+1
-1
productPreController.js
controller/productPreController.js
+1
-1
productTracController.js
controller/productTracController.js
+14
-1
productltController.js
controller/productltController.js
+1
-1
No files found.
controller/productDeepController.js
View file @
e05f1657
...
...
@@ -77,7 +77,7 @@ async function getSccjMap() {
let
list
=
await
DB
.
Sccj
.
find
({
del
:
0
});
let
namemap
=
{};
list
.
map
(
o
=>
{
namemap
[
o
.
key
]
=
o
.
name
});
return
map
;
return
name
map
;
}
module
.
exports
=
{
...
...
controller/productDirPlantController.js
View file @
e05f1657
...
...
@@ -114,7 +114,7 @@ async function getSccjMap() {
let
list
=
await
DB
.
Sccj
.
find
({
del
:
0
});
let
namemap
=
{};
list
.
map
(
o
=>
{
namemap
[
o
.
key
]
=
o
.
name
});
return
map
;
return
name
map
;
}
module
.
exports
=
{
...
...
controller/productPreController.js
View file @
e05f1657
...
...
@@ -76,7 +76,7 @@ async function getSccjMap() {
let
list
=
await
DB
.
Sccj
.
find
({
del
:
0
});
let
namemap
=
{};
list
.
map
(
o
=>
{
namemap
[
o
.
key
]
=
o
.
name
});
return
map
;
return
name
map
;
}
module
.
exports
=
{
createPrePlant
,
...
...
controller/productTracController.js
View file @
e05f1657
...
...
@@ -203,6 +203,19 @@ async function getsuyuanBase(req, res, next) {
}
source
.
manufactureDate
=
traccode
.
manufactureDate
||
source
.
manufactureDate
;
source
.
batchNumber
=
traccode
.
batchNumber
||
source
.
batchNumber
;
let
namemap
=
await
getSccjMap
();
source
.
workshop
=
namemap
(
source
.
workshop
);
source
.
agrPlantBase
=
namemap
(
source
.
agrPlantBase
);
traccode
.
agrPlantBase
=
namemap
(
traccode
.
agrPlantBase
);
traccode
.
agrPlantBase
=
namemap
(
traccode
.
agrPlantBase
);
if
(
traccode
.
rawMatCul
&&
traccode
.
rawMatCul
.
proAdr
)
{
traccode
.
rawMatCul
.
proAdr
=
namemap
(
traccode
.
rawMatCul
.
proAdr
)
}
if
(
traccode
.
proProcess
&&
traccode
.
proProcess
.
proAdr
)
{
traccode
.
proProcess
.
proAdr
=
namemap
(
traccode
.
proProcess
.
proAdr
)
}
traccode
.
source
=
source
;
res
.
sendData
(
traccode
);
}
catch
(
error
)
{
...
...
@@ -295,7 +308,7 @@ async function getSccjMap() {
let
list
=
await
DB
.
Sccj
.
find
({
del
:
0
});
let
namemap
=
{};
list
.
map
(
o
=>
{
namemap
[
o
.
key
]
=
o
.
name
});
return
map
;
return
name
map
;
}
module
.
exports
=
{
...
...
controller/productltController.js
View file @
e05f1657
...
...
@@ -112,7 +112,7 @@ async function getSccjMap() {
let
list
=
await
DB
.
Sccj
.
find
({
del
:
0
});
let
namemap
=
{};
list
.
map
(
o
=>
{
namemap
[
o
.
key
]
=
o
.
name
});
return
map
;
return
name
map
;
}
module
.
exports
=
{
createlt
,
...
...
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