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
457f2b12
Commit
457f2b12
authored
Jan 02, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
bede1f2f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
12 deletions
+66
-12
jiaxiya/app/base/service/impl/transfer/tmjsonfileSve.js
+17
-6
jiaxiya/app/base/utils/aliApiClient.js
+0
-1
jiaxiya/app/config/settings.js
+2
-2
jiaxiya/app/front/vues/pages/tmjsonfileversion/tmjsonfileversion.js
+2
-1
jiaxiya/app/front/vues/pages/tradetransferdiliver/tradetransferdiliver.js
+0
-2
jiaxiya/package-lock.json
+45
-0
No files found.
jiaxiya/app/base/service/impl/transfer/tmjsonfileSve.js
View file @
457f2b12
...
...
@@ -13,7 +13,7 @@ class TmjsonfileService extends ServiceBase {
}
async
createjsonfile
()
{
var
sql
=
"select * from bi_trademarktransaction where
ncl_one_code is not null and ncl_one_code<>'' limit 1000
"
;
var
sql
=
"select * from bi_trademarktransaction where
id=175342
"
;
var
tminfos
=
await
this
.
connectionigirl
.
query
(
sql
);
var
sources
=
[];
if
(
tminfos
[
0
])
{
...
...
@@ -22,18 +22,23 @@ class TmjsonfileService extends ServiceBase {
var
strlist
=
null
;
if
(
tmg
)
{
strlist
=
tmg
.
replace
(
/"/g
,
""
).
replace
(
/
\[
/g
,
""
).
replace
(
/
\]
/g
,
""
).
split
(
","
);
if
(
!
strlist
)
{
strlist
.
shift
();
for
(
var
n
=
0
;
n
<
strlist
.
length
;
n
++
){
if
(
!
strlist
[
n
])
{
strlist
.
shift
();
}
}
}
var
des
=
tminfos
[
0
][
i
].
tm_ncl_third
.
replace
(
/
\[
/g
,
""
).
replace
(
/
\]
/g
,
""
).
replace
(
/
\'
/g
,
""
);
var
des
=
""
;
if
(
tminfos
[
0
][
i
].
tm_ncl_third
){
des
=
tminfos
[
0
][
i
].
tm_ncl_third
.
replace
(
/
\[
/g
,
""
).
replace
(
/
\]
/g
,
""
).
replace
(
/
\'
/g
,
""
);
}
var
source
=
{
beginTime
:
1574388139000
,
classificationCode
:
tminfos
[
0
][
i
].
ncl_one_code
,
description
:
des
,
endTime
:
1668089537981
,
label
:
"商标标签"
,
originalPrice
:
10
,
originalPrice
:
parseInt
(
tminfos
[
0
][
i
].
platform_quoted_price
)
,
ownerEnName
:
""
,
ownerName
:
tminfos
[
0
][
i
].
tm_applier
,
partnerCode
:
"gong_si_bao"
,
...
...
@@ -47,9 +52,15 @@ class TmjsonfileService extends ServiceBase {
}
sources
.
push
(
source
);
}
var
strdate
=
""
if
(
newdate
.
getHours
()
>
12
)
{
strdate
=
newdate
.
getFullYear
()
+
""
+
m
+
d
+
"_2.json"
;
}
else
{
strdate
=
newdate
.
getFullYear
()
+
""
+
m
+
d
+
"_1.json"
;
}
var
jsonstr
=
JSON
.
stringify
(
sources
,
null
,
"
\
t"
);
return
new
Promise
(
function
(
resv
,
rej
)
{
fs
.
writeFile
(
'/tmp/
20191125_2.json'
,
jsonstr
,
function
(
err
)
{
fs
.
writeFile
(
'/tmp/
'
+
strdate
,
jsonstr
,
function
(
err
)
{
if
(
err
)
{
console
.
error
(
err
);
}
...
...
jiaxiya/app/base/utils/aliApiClient.js
View file @
457f2b12
...
...
@@ -15,7 +15,6 @@ class AliApiClient {
var
self
=
this
;
var
action
=
obj
.
action
;
var
reqbody
=
obj
.
reqbody
;
return
self
.
client
.
request
(
action
,
reqbody
,
{
timeout
:
3000
,
// default 3000 ms
formatAction
:
true
,
// default true, format the action to Action
...
...
jiaxiya/app/config/settings.js
View file @
457f2b12
...
...
@@ -31,14 +31,14 @@ var settings = {
},
channelApiUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.
18.61
:4003"
;
return
"http://192.168.
48.209
:4003"
;
}
else
{
return
"http://zc-channel-service"
;
}
},
uploadfileossurl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.
18.15
:8080"
;
return
"http://192.168.
49.170
:8080"
;
}
else
{
return
"http://localhost:8080"
;
}
...
...
jiaxiya/app/front/vues/pages/tmjsonfileversion/tmjsonfileversion.js
View file @
457f2b12
...
...
@@ -40,11 +40,12 @@
},
addjson
:
function
()
{
if
(
this
.
f1
)
{
var
that
=
this
;
var
obj
=
{
id
:
this
.
rowid
,
jsonfile_url
:
this
.
f1
};
this
.
$root
.
postReq
(
"/web/transfer/tmjsonfileCtl/update"
,
obj
).
then
(
function
(
d
)
{
debugger
;
if
(
d
.
status
>
-
1
)
{
th
is
.
showUploadform
=
false
;
th
at
.
showUploadform
=
false
;
}
})
}
else
{
...
...
jiaxiya/app/front/vues/pages/tradetransferdiliver/tradetransferdiliver.js
View file @
457f2b12
...
...
@@ -46,8 +46,6 @@
}
},
onColFormater
(
row
,
column
,
cellvalue
,
index
){
return
cellvalue
;
},
handleSelectionChange
:
function
(
val
)
{
...
...
jiaxiya/package-lock.json
View file @
457f2b12
...
...
@@ -4,6 +4,33 @@
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
"@alicloud/pop-core"
:
{
"version"
:
"1.7.7"
,
"resolved"
:
"https://registry.npmjs.org/@alicloud/pop-core/-/pop-core-1.7.7.tgz"
,
"integrity"
:
"sha512-vrFXJyjc58LjpfjMyGSRxM0rkhEzJRXfwFFy3wzzS4Q8rTfosrnqZAW1G6gRoPUPjGBQxUpMBnHvMLfPRRAcCA=="
,
"requires"
:
{
"debug"
:
"^3.1.0"
,
"httpx"
:
"^2.1.2"
,
"json-bigint"
:
"^0.2.3"
,
"kitx"
:
"^1.2.1"
,
"xml2js"
:
"^0.4.17"
},
"dependencies"
:
{
"debug"
:
{
"version"
:
"3.2.6"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-3.2.6.tgz"
,
"integrity"
:
"sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ=="
,
"requires"
:
{
"ms"
:
"^2.1.1"
}
},
"ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"@types/geojson"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/@types/geojson/-/geojson-1.0.6.tgz"
,
...
...
@@ -501,6 +528,11 @@
"callsite"
:
"1.0.0"
}
},
"bignumber.js"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz"
,
"integrity"
:
"sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA=="
},
"blob"
:
{
"version"
:
"0.0.5"
,
"resolved"
:
"https://registry.npmjs.org/blob/-/blob-0.0.5.tgz"
,
...
...
@@ -3727,6 +3759,14 @@
"dev"
:
true
,
"optional"
:
true
},
"json-bigint"
:
{
"version"
:
"0.2.3"
,
"resolved"
:
"https://registry.npmjs.org/json-bigint/-/json-bigint-0.2.3.tgz"
,
"integrity"
:
"sha1-EY1/b/HThlnxn5TPc+ZKdaP5iKg="
,
"requires"
:
{
"bignumber.js"
:
"^4.0.0"
}
},
"json-schema"
:
{
"version"
:
"0.2.3"
,
"resolved"
:
"https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz"
,
...
...
@@ -3790,6 +3830,11 @@
"integrity"
:
"sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA=="
,
"dev"
:
true
},
"kitx"
:
{
"version"
:
"1.3.0"
,
"resolved"
:
"https://registry.npmjs.org/kitx/-/kitx-1.3.0.tgz"
,
"integrity"
:
"sha512-fhBqFlXd0GkKTB+8ayLfpzPUw+LHxZlPAukPNBD1Om7JMeInT+/PxCAf1yLagvD+VKoyWhXtJR68xQkX/a0wOQ=="
},
"lcid"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz"
,
...
...
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