Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
8b99c61e
Commit
8b99c61e
authored
Sep 09, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parent
c15f5b7c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
1 deletions
+49
-1
zhiquanquan/app/base/controller/impl/trademark/uploadCtl.js
+22
-0
zhiquanquan/app/base/db/impl/trademark/uploadDao.js
+8
-0
zhiquanquan/app/base/db/models/trademark/upload.js
+5
-1
zhiquanquan/app/base/service/impl/trademark/uploadSve.js
+14
-0
No files found.
zhiquanquan/app/base/controller/impl/trademark/uploadCtl.js
0 → 100644
View file @
8b99c61e
let
system
=
require
(
"../../../system"
)
const
http
=
require
(
"http"
)
const
querystring
=
require
(
'querystring'
);
let
settings
=
require
(
"../../../../config/settings"
);
const
CtlBase
=
require
(
"../../ctl.base"
);
const
logCtl
=
system
.
getObject
(
"web.common.oplogCtl"
);
const
tmtransactionPath
=
"/api/action/tmQuery/springBoard"
;
const
tmurl
=
settings
.
channelApiUrl
()
+
tmtransactionPath
;
//标源检索
class
uploadCtl
extends
CtlBase
{
constructor
()
{
super
(
"trademark"
,
CtlBase
.
getServiceName
(
uploadCtl
));
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
}
async
findAndCountAll
(
p
,
q
,
req
)
{
}
}
module
.
exports
=
uploadCtl
;
zhiquanquan/app/base/db/impl/trademark/uploadDao.js
0 → 100644
View file @
8b99c61e
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
class
UploadDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
UploadDao
));
}
}
module
.
exports
=
UploadDao
;
zhiquanquan/app/base/db/models/trademark/
excel
.js
→
zhiquanquan/app/base/db/models/trademark/
upload
.js
View file @
8b99c61e
...
...
@@ -2,8 +2,12 @@ const system = require("../../../system");
const
settings
=
require
(
"../../../../config/settings"
);
const
appconfig
=
system
.
getSysConfig
();
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"
excel
"
,
{
return
db
.
define
(
"
upload
"
,
{
status
:
DataTypes
.
INTEGER
,
total
:
DataTypes
.
INTEGER
,
success
:
DataTypes
.
INTEGER
,
fail
:
DataTypes
.
INTEGER
,
duplicate
:
DataTypes
.
INTEGER
,
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
...
...
zhiquanquan/app/base/service/impl/trademark/uploadSve.js
0 → 100644
View file @
8b99c61e
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
);
var
settings
=
require
(
"../../../../config/settings"
);
var
RPCClient
=
require
(
'@alicloud/pop-core'
).
RPCClient
;
var
OSS
=
require
(
'ali-oss'
);
const
crypto
=
require
(
'crypto'
);
var
moment
=
require
(
"moment"
);
class
UploadService
extends
ServiceBase
{
constructor
()
{
super
(
"trademark"
,
ServiceBase
.
getDaoName
(
UploadService
));
}
}
module
.
exports
=
UploadService
;
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