Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-cost
Commits
07e548c6
Commit
07e548c6
authored
Jun 21, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
99d0d36e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
NetsuiteLogDomain.java
...om/blt/other/module/netsuite/model/NetsuiteLogDomain.java
+1
-1
NetsuiteLogServiceImpl.java
.../module/netsuite/service/impl/NetsuiteLogServiceImpl.java
+2
-3
No files found.
cost-service/src/main/java/com/blt/other/module/netsuite/model/NetsuiteLogDomain.java
View file @
07e548c6
...
@@ -40,7 +40,7 @@ public class NetsuiteLogDomain implements Serializable {
...
@@ -40,7 +40,7 @@ public class NetsuiteLogDomain implements Serializable {
/**
/**
* netsuite 传输类型;78:费用单
* netsuite 传输类型;78:费用单
*/
*/
public
final
static
Integer
SCRIPT_FEE
=
78
;
public
final
static
Integer
SCRIPT_FEE
=
29
;
@TableId
(
type
=
IdType
.
AUTO
)
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
...
...
cost-service/src/main/java/com/blt/other/module/netsuite/service/impl/NetsuiteLogServiceImpl.java
View file @
07e548c6
...
@@ -46,8 +46,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
...
@@ -46,8 +46,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
public
void
publishToNetsuite
(
int
top
)
{
public
void
publishToNetsuite
(
int
top
)
{
//78:费用单
//78:费用单
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Integer
script
=
29
;
List
<
NetsuiteLogDto
>
list
=
netsuiteLogDao
.
selectNonPublishTop
(
NetsuiteLogDomain
.
SCRIPT_FEE
,
top
);
List
<
NetsuiteLogDto
>
list
=
netsuiteLogDao
.
selectNonPublishTop
(
script
,
top
);
if
(
ListUtil
.
isEmpty
(
list
)){
if
(
ListUtil
.
isEmpty
(
list
)){
return
;
return
;
}
}
...
@@ -62,7 +61,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
...
@@ -62,7 +61,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
netsuiteKey
.
getTokenSecret
(),
netsuiteKey
.
getTokenSecret
(),
netsuiteKey
.
getRealm
());
netsuiteKey
.
getRealm
());
try
{
try
{
String
response
=
OAuth1Util
.
executePost
(
String
.
format
(
netsuiteKey
.
getBaseUrl
(),
script
),
String
response
=
OAuth1Util
.
executePost
(
String
.
format
(
netsuiteKey
.
getBaseUrl
(),
NetsuiteLogDomain
.
SCRIPT_FEE
),
null
,
null
,
JSON
.
toJSONString
(
netsuiteDataDtoList
));
JSON
.
toJSONString
(
netsuiteDataDtoList
));
JSONObject
jobj
=
JSON
.
parseObject
(
response
);
JSONObject
jobj
=
JSON
.
parseObject
(
response
);
...
...
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