Commit 93aece99 by liyanlin

更改key

parent 45a18f0c
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> {
/** /**
* 更新或插入 * 更新或插入
......
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);
} }
...@@ -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;
......
...@@ -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: 4e1786849ffd6cb866f2f22b43cce56793e446d56f1cf60fe45674aa02424646 consumer-key: 250a79acd8e92f85b89cf5808384d1f608fe9a911779f4631b26070aa96661d6
consumer-secret: d66b2d4c6d6a9bf59b7923e3d32535b1e3685babf4109581884230fdb00ec330 consumer-secret: 28b85bd45e896d38c39a2e36c4094bdbdd6895001f773d62914f436bc17737b9
token: 042c17360b2f3c831c9531365c8b98ef6aeeaf40ce4e7c46144ee70aad2e7667 token: e64196ffe3a77d749be20ef2e02b7e65e673f85845b49c86d6ed8df8b7bbe843
token-secret: d974ba497472b258a06175cc62a2edba6104f94c131afba38143e8c3a2f0e125 token-secret: 595dda4f2ed594494240261d3abbc9341647e47ba793c747f5749a2d60e05fb9
realm: 6916374_SB1 realm: 6916374
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment