明树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
bc867b41
Commit
bc867b41
authored
Mar 12, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f87bf6c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
agrInputDetailController.js
controller/agrInputDetailController.js
+2
-2
agrInputRecordController.js
controller/agrInputRecordController.js
+1
-1
excelCron.js
cron/excelCron.js
+2
-2
No files found.
controller/agrInputDetailController.js
View file @
bc867b41
...
@@ -115,10 +115,10 @@ async function exportExcel(req, res, next) {
...
@@ -115,10 +115,10 @@ async function exportExcel(req, res, next) {
try
{
try
{
let
search
=
{
del
:
0
};
let
search
=
{
del
:
0
};
if
(
req
.
body
.
agrProName
)
{
if
(
req
.
body
.
agrProName
)
{
search
.
agrProN
ame
=
{
$regex
:
req
.
body
.
agrProName
};
search
.
n
ame
=
{
$regex
:
req
.
body
.
agrProName
};
}
}
if
(
req
.
body
.
name
)
{
if
(
req
.
body
.
name
)
{
search
.
agrProN
ame
=
{
$regex
:
req
.
body
.
name
};
search
.
n
ame
=
{
$regex
:
req
.
body
.
name
};
}
}
if
(
req
.
body
.
startTime
)
{
if
(
req
.
body
.
startTime
)
{
search
.
time
=
search
.
time
||
{};
search
.
time
=
search
.
time
||
{};
...
...
controller/agrInputRecordController.js
View file @
bc867b41
...
@@ -147,7 +147,7 @@ async function exportExcel(req, res, next) {
...
@@ -147,7 +147,7 @@ async function exportExcel(req, res, next) {
search
.
agrProName
=
{
$regex
:
req
.
body
.
agrProName
};
search
.
agrProName
=
{
$regex
:
req
.
body
.
agrProName
};
}
}
if
(
req
.
body
.
name
)
{
if
(
req
.
body
.
name
)
{
search
.
agrProN
ame
=
{
$regex
:
req
.
body
.
name
};
search
.
n
ame
=
{
$regex
:
req
.
body
.
name
};
}
}
if
(
req
.
body
.
startTime
)
{
if
(
req
.
body
.
startTime
)
{
search
.
time
=
search
.
time
||
{};
search
.
time
=
search
.
time
||
{};
...
...
cron/excelCron.js
View file @
bc867b41
...
@@ -22,7 +22,7 @@ const fs = require('fs');
...
@@ -22,7 +22,7 @@ const fs = require('fs');
// exportExcel()
// exportExcel()
async
function
exportExcel
()
{
async
function
exportExcel
()
{
let
info
=
await
DB
.
ExcelRecord
.
findOne
({
type
:
2
,
status
:
1
});
let
info
=
await
DB
.
ExcelRecord
.
findOne
({
type
:
2
,
status
:
1
,
del
:
0
});
console
.
log
(
info
);
console
.
log
(
info
);
if
(
info
&&
info
.
_id
&&
info
.
modleName
)
{
if
(
info
&&
info
.
_id
&&
info
.
modleName
)
{
let
workbook
=
new
ExcelJS
.
Workbook
();
let
workbook
=
new
ExcelJS
.
Workbook
();
...
@@ -38,7 +38,7 @@ async function exportExcel() {
...
@@ -38,7 +38,7 @@ async function exportExcel() {
}
}
}
}
}
}
console
.
log
(
columns
.
length
,
"-=-=-"
);
console
.
log
(
columns
.
length
,
"-=-=-"
,
name
);
if
(
columns
.
length
>
0
)
{
if
(
columns
.
length
>
0
)
{
// TODO: 可以优化根据count翻页 暂时
// TODO: 可以优化根据count翻页 暂时
worksheet
.
columns
=
columns
;
worksheet
.
columns
=
columns
;
...
...
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