Commit 07e548c6 by liyanlin

fix

parent 99d0d36e
...@@ -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;
......
...@@ -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);
......
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