초기 커밋.
This commit is contained in:
38
ssgrestserver/request/최초개발/새상품수량.cs
Normal file
38
ssgrestserver/request/최초개발/새상품수량.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ssgrestserver
|
||||
{
|
||||
class 새상품수량 : ARequestObject, INeedKeyRequest
|
||||
{
|
||||
string mRequestURL = "goods/soldQty.do?";
|
||||
|
||||
public void setNeedKeys()
|
||||
{
|
||||
mNeedKeyList.Add("방송일");
|
||||
mNeedKeyList.Add("조회시작일");
|
||||
mNeedKeyList.Add("PGM코드");
|
||||
mNeedKeyList.Add("보낸사람");
|
||||
}
|
||||
|
||||
protected override string startUpdateWork()
|
||||
{
|
||||
|
||||
string req = mRequestURL + "bDate=" + mRequestParameterKVPairList["조회시작일"];
|
||||
req += "&broadDate=" + mRequestParameterKVPairList["방송일"];
|
||||
req += "&pgmCode=" + mRequestParameterKVPairList["PGM코드"];
|
||||
|
||||
JObject receiveData = JObject.Parse(httpRequest(req));
|
||||
|
||||
receiveData.Add("조회시간", DateTime.Now.ToString());
|
||||
receiveData.Add("보낸사람", mRequestParameterKVPairList["보낸사람"]);
|
||||
|
||||
return receiveData.ToString(Newtonsoft.Json.Formatting.None);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user