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
93aece99
Commit
93aece99
authored
Jun 08, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改key
parent
45a18f0c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
NetsuiteLogDao.java
...ava/com/blt/other/module/netsuite/dao/NetsuiteLogDao.java
+2
-1
NetsuiteLogService.java
...blt/other/module/netsuite/service/NetsuiteLogService.java
+4
-1
NetsuiteLogServiceImpl.java
.../module/netsuite/service/impl/NetsuiteLogServiceImpl.java
+4
-2
application-prod.yml
cost-service/src/main/resources/application-prod.yml
+6
-6
No files found.
cost-service/src/main/java/com/blt/other/module/netsuite/dao/NetsuiteLogDao.java
View file @
93aece99
package
com
.
blt
.
other
.
module
.
netsuite
.
dao
;
package
com
.
blt
.
other
.
module
.
netsuite
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.blt.other.module.netsuite.dto.NetsuiteLogDto
;
import
com.blt.other.module.netsuite.dto.NetsuiteLogDto
;
import
com.blt.other.module.netsuite.model.NetsuiteLogDomain
;
import
com.blt.other.module.netsuite.model.NetsuiteLogDomain
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -17,7 +18,7 @@ import java.util.Map;
...
@@ -17,7 +18,7 @@ import java.util.Map;
*/
*/
@Mapper
@Mapper
@Repository
@Repository
public
interface
NetsuiteLogDao
{
public
interface
NetsuiteLogDao
extends
BaseMapper
<
NetsuiteLogDomain
>
{
/**
/**
* 更新或插入
* 更新或插入
...
...
cost-service/src/main/java/com/blt/other/module/netsuite/service/NetsuiteLogService.java
View file @
93aece99
package
com
.
blt
.
other
.
module
.
netsuite
.
service
;
package
com
.
blt
.
other
.
module
.
netsuite
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.blt.other.module.netsuite.model.NetsuiteLogDomain
;
/**
/**
* @Author: li.yanlin
* @Author: li.yanlin
* @Description:
* @Description:
* @Date: Created in 2021-04-28
* @Date: Created in 2021-04-28
* @Modified by:
* @Modified by:
*/
*/
public
interface
NetsuiteLogService
{
public
interface
NetsuiteLogService
extends
IService
<
NetsuiteLogDomain
>
{
void
publishToNetsuite
(
int
top
);
void
publishToNetsuite
(
int
top
);
}
}
cost-service/src/main/java/com/blt/other/module/netsuite/service/impl/NetsuiteLogServiceImpl.java
View file @
93aece99
...
@@ -3,6 +3,8 @@ package com.blt.other.module.netsuite.service.impl;
...
@@ -3,6 +3,8 @@ package com.blt.other.module.netsuite.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.bailuntec.common.ListUtil
;
import
com.bailuntec.common.ListUtil
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.blt.other.common.util.OAuth1Util
;
import
com.blt.other.common.util.OAuth1Util
;
import
com.blt.other.module.netsuite.dao.NetsuiteLogDao
;
import
com.blt.other.module.netsuite.dao.NetsuiteLogDao
;
import
com.blt.other.module.netsuite.dto.NetsuiteDataDto
;
import
com.blt.other.module.netsuite.dto.NetsuiteDataDto
;
...
@@ -32,7 +34,7 @@ import java.util.stream.Collectors;
...
@@ -32,7 +34,7 @@ import java.util.stream.Collectors;
*/
*/
@Service
@Service
@Slf4j
@Slf4j
public
class
NetsuiteLogServiceImpl
implements
NetsuiteLogService
{
public
class
NetsuiteLogServiceImpl
extends
ServiceImpl
<
NetsuiteLogDao
,
NetsuiteLogDomain
>
implements
NetsuiteLogService
{
@Resource
@Resource
private
NetsuiteLogDao
netsuiteLogDao
;
private
NetsuiteLogDao
netsuiteLogDao
;
...
@@ -44,7 +46,7 @@ public class NetsuiteLogServiceImpl implements NetsuiteLogService {
...
@@ -44,7 +46,7 @@ public class NetsuiteLogServiceImpl implements NetsuiteLogService {
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
=
78
;
Integer
script
=
29
;
List
<
NetsuiteLogDto
>
list
=
netsuiteLogDao
.
selectNonPublishTop
(
script
,
top
);
List
<
NetsuiteLogDto
>
list
=
netsuiteLogDao
.
selectNonPublishTop
(
script
,
top
);
if
(
ListUtil
.
isEmpty
(
list
)){
if
(
ListUtil
.
isEmpty
(
list
)){
return
;
return
;
...
...
cost-service/src/main/resources/application-prod.yml
View file @
93aece99
...
@@ -95,10 +95,10 @@ server:
...
@@ -95,10 +95,10 @@ server:
# NetSuite Api Base
# NetSuite Api Base
net-suite
:
net-suite
:
base-url
:
https://6916374
-sb1
.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=%s&deploy=1
base-url
:
https://6916374.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=%s&deploy=1
consumer-key
:
4e1786849ffd6cb866f2f22b43cce56793e446d56f1cf60fe45674aa0242464
6
consumer-key
:
250a79acd8e92f85b89cf5808384d1f608fe9a911779f4631b26070aa96661d
6
consumer-secret
:
d66b2d4c6d6a9bf59b7923e3d32535b1e3685babf4109581884230fdb00ec330
consumer-secret
:
28b85bd45e896d38c39a2e36c4094bdbdd6895001f773d62914f436bc17737b9
token
:
042c17360b2f3c831c9531365c8b98ef6aeeaf40ce4e7c46144ee70aad2e7667
token
:
e64196ffe3a77d749be20ef2e02b7e65e673f85845b49c86d6ed8df8b7bbe843
token-secret
:
d974ba497472b258a06175cc62a2edba6104f94c131afba38143e8c3a2f0e125
token-secret
:
595dda4f2ed594494240261d3abbc9341647e47ba793c747f5749a2d60e05fb9
realm
:
6916374
_SB1
realm
:
6916374
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