Commit 07e548c6 by liyanlin

fix

parent 99d0d36e
......@@ -40,7 +40,7 @@ public class NetsuiteLogDomain implements Serializable {
/**
* netsuite 传输类型;78:费用单
*/
public final static Integer SCRIPT_FEE = 78;
public final static Integer SCRIPT_FEE = 29;
@TableId(type = IdType.AUTO)
private Integer id;
......
......@@ -46,8 +46,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
public void publishToNetsuite(int top) {
//78:费用单
Map<String,Object> resultMap = new HashMap<>();
Integer script = 29;
List<NetsuiteLogDto> list = netsuiteLogDao.selectNonPublishTop(script,top);
List<NetsuiteLogDto> list = netsuiteLogDao.selectNonPublishTop(NetsuiteLogDomain.SCRIPT_FEE,top);
if(ListUtil.isEmpty(list)){
return;
}
......@@ -62,7 +61,7 @@ public class NetsuiteLogServiceImpl extends ServiceImpl<NetsuiteLogDao,NetsuiteL
netsuiteKey.getTokenSecret(),
netsuiteKey.getRealm());
try {
String response = OAuth1Util.executePost(String.format(netsuiteKey.getBaseUrl(),script),
String response = OAuth1Util.executePost(String.format(netsuiteKey.getBaseUrl(),NetsuiteLogDomain.SCRIPT_FEE),
null,
JSON.toJSONString(netsuiteDataDtoList));
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