Commit b4715d90 by 陶然

实现结算调用扫码支付功能

parent 34f99068
......@@ -11,6 +11,8 @@ namespace Com.Bocom.OpenApi
internal static string APIGW_URL_ADDRESS = "https://open.test.bankcomm.com:9443/uat";//"https://117.184.192.242:9443";
internal static string QR_CODE_APIGW_URL_ADDRESS = "https://open.test.bankcomm.com:9443";//"https://117.184.192.242:9443";
public const string TableNameReceiveCode = "BCOM_ReceiveCodes";
public const string TableNameWriteOffResultNotify = "BCOM_WriteOffResultNotifys";
public const string TableNameReceiveCodeDetail = "BCOM_ReceiveCodeDetails";
/// <summary>
/// APP_ID:通过内管查看详情,可获取对应的组织机构、接入方式、公钥等信息;APP管理中查看
......
......@@ -38,7 +38,7 @@ namespace Njzj.Bocoms.Openapis.Entities
public string shop_id { get; set; }
[ApiMember(Description = "商户交易编号")]
[Unique]
[Unique,IgnoreUpdate]
[StringLength(200)]
public string pay_mer_tran_no { get; set; }
......@@ -82,4 +82,34 @@ namespace Njzj.Bocoms.Openapis.Entities
public string tran_content { get; set; }
}
[Api(Description = "收款码明细")]
[Alias(Configs.TableNameReceiveCodeDetail)]
public class ReceiveCodeDetail : EntityWithMetadata
{
[DefaultEmptyGuid]
public Guid ReceiveCodeKvid { get; set; }
[ApiMember(Description = "商户交易编号")]
[StringLength(200)]
public string PayMerTranNo { get; set; }
[ApiMember(Description = "付款单位")]
[StringLength(500)]
public string PayerName { get; set; }
[IgnoreUpdate]
[DefaultEmptyGuid]
public Guid BizKvid { get; set; }
[ApiMember(Description = "业务流水号")]
[IgnoreUpdate]
[StringLength(200)]
public string BizId { get; set; }
[ApiMember(Description = "业务类型")]
[IgnoreUpdate]
[StringLength(100)]
public string BizType { get; set; }
}
}
......@@ -200,24 +200,17 @@ namespace Com.Bocom.OpenApi
var amount = settlements.Sum(o => o.Amount);
if (amount <= 0) return null;
var uniqueCode = Guid.NewGuid().ToString();//生成二维码的唯一性交易编号
var bizIds = settlements.ConvertAll(o => o.BizId).Join("、");
var remark = settlements.ConvertAll(o => o.BizId).Join("、");
if (bizIds.Length > 200) bizIds = bizIds.Substring(0, 200);//根据对接要求长度限制长度
if (remark.Length > 500) remark = remark.Substring(0, 500);//根据对接要求长度限制长度
var rtnTests = new MPNG210001ResponseV1();
rtnTests.rsp_body = new MPNG210001ResponseV1.RspBody();
rtnTests.SetBizState("S");
rtnTests.SetRspCode("1");
rtnTests.SetRspMsg("1");
rtnTests.rsp_body.display_code_text = "http://yunbanktest.bankcomm.com/tcipp/pmss/cipp.jsp?qrCode=https://qr.95516.com/03010000/kl6im4od20200804123754";
rtnTests.rsp_body.pay_mer_tran_no = uniqueCode;
return rtnTests;
var summary = $"{settlements[0].BizId}等共{settlements.Count}条结算进行扫码支付!";
var remark = settlements[0].PayerName;
//var rtnTests = new MPNG210001ResponseV1();
//rtnTests.rsp_body = new MPNG210001ResponseV1.RspBody();
//rtnTests.SetBizState("S");
//rtnTests.SetRspCode("1");
//rtnTests.SetRspMsg("1");
//rtnTests.rsp_body.display_code_text = "http://yunbanktest.bankcomm.com/tcipp/pmss/cipp.jsp?qrCode=https://qr.95516.com/03010000/kl6im4od20200804123754";
//rtnTests.rsp_body.pay_mer_tran_no = uniqueCode;
//return rtnTests;
DefaultBocomClient client = new DefaultBocomClient(Configs.QR_CODE_APP_ID, Configs.QR_CODE_MY_PRIVATE_KEY, Configs.QR_CODE_APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
......@@ -239,7 +232,7 @@ namespace Com.Bocom.OpenApi
bizContent.req_body.total_amount = amount.ToString();
bizContent.req_body.location = "ONLINE";
bizContent.req_body.currency = "CNY";
bizContent.req_body.tran_content = bizIds;
bizContent.req_body.tran_content = summary;
bizContent.req_body.mer_memo = remark;
request.SetBizContent(bizContent);
var response = client.Execute(request, uniqueCode.Replace("-", ""));
......@@ -248,6 +241,7 @@ namespace Com.Bocom.OpenApi
{
//-----------------------记录下这份收款码的数据的信息,如果这份订单取消了就要作废--------------------------------
var rtns = response as MPNG210001ResponseV1;
//rtns.rsp_body.display_code_text = $"http://yunbanktest.bankcomm.com/tcipp/pmss/cipp.jsp?qrCode={rtns.rsp_body.display_code_text}";
return rtns;
}
else
......@@ -256,31 +250,9 @@ namespace Com.Bocom.OpenApi
}
}
public static MPNG020702ResponseV1 GetReceiveCodeOrder(string payMerTranNo,List<Settlement> settlements)
public static MPNG020702ResponseV1 GetReceiveCodeOrder(string payMerTranNo)
{
payMerTranNo.ThrowIfNullOrEmpty("缺少订单号信息");
if (settlements.IsNullOrEmpty()) return null;
if (settlements.Exists(o => o.OffsetKvid != Guid.Empty || o.AmountPayment > 0)) throw new Exception("存在不符合生成收款码条件的结算");
var amount = settlements.Sum(o => o.Amount);
if (amount <= 0) return null;
var uniqueCode = Guid.NewGuid().ToString();//生成二维码的唯一性交易编号
var bizIds = settlements.ConvertAll(o => o.BizId).Join("、");
var remark = settlements.ConvertAll(o => o.BizId).Join("、");
if (bizIds.Length > 200) bizIds = bizIds.Substring(0, 200);//根据对接要求长度限制长度
if (remark.Length > 500) remark = remark.Substring(0, 500);//根据对接要求长度限制长度
var rtnTests = new MPNG020702ResponseV1();
rtnTests.SetBizState("S");
rtnTests.SetRspCode("1");
rtnTests.SetRspMsg("1");
rtnTests.rsp_body = new MPNG020702ResponseV1.RspBody();
rtnTests.rsp_body.mer_memo = remark;
rtnTests.rsp_body.total_amount = amount.ToString();
rtnTests.rsp_body.tran_content = bizIds;
return rtnTests;
DefaultBocomClient client = new DefaultBocomClient(Configs.QR_CODE_APP_ID, Configs.QR_CODE_MY_PRIVATE_KEY, Configs.QR_CODE_APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
......
......@@ -31,29 +31,58 @@ namespace Njzj.Bocoms.Openapis
var results = Extension.GenerateReceiveCode(settlements);
var payMerTranNo = results.rsp_body.pay_mer_tran_no;
var order = Extension.GetReceiveCodeOrder(payMerTranNo, settlements);
var order = Extension.GetReceiveCodeOrder(payMerTranNo);
order.pay_mer_tran_no = payMerTranNo;
order.display_code_text = results.rsp_body.display_code_text;
var connB = KiviiContext.GetOpenedDbConnection<ReceiveCode>();
var item = new ReceiveCode();
item.trans_code = results.rsp_head.trans_code;
item.response_code = results.rsp_head.response_code;
item.response_status= results.rsp_head.response_status;
item.response_time= results.rsp_head.response_time;
item.response_msg= results.rsp_head.response_msg;
item.shop_id = results.rsp_body.shop_id;
item.pay_mer_tran_no= payMerTranNo;
item.display_code_text = results.rsp_body.display_code_text;
var codeKvid = Guid.NewGuid();
var code = new ReceiveCode();
code.Kvid = codeKvid;
code.trans_code = results.rsp_head.trans_code;
code.response_code = results.rsp_head.response_code;
code.response_status = results.rsp_head.response_status;
code.response_time = results.rsp_head.response_time;
code.response_msg = results.rsp_head.response_msg;
code.shop_id = results.rsp_body.shop_id;
code.pay_mer_tran_no = payMerTranNo;
code.display_code_text = results.rsp_body.display_code_text;
item.tran_state = order.rsp_body.tran_state;
item.tran_state_code = order.rsp_body.tran_state_code;
item.tran_state_msg = order.rsp_body.tran_state_msg;
item.mer_memo= order.rsp_body.mer_memo;
item.total_amount= order.rsp_body.total_amount;
item.order_status= order.rsp_body.order_status;
item.tran_content= order.rsp_body.tran_content;
code.tran_state = order.rsp_body.tran_state;
code.tran_state_code = order.rsp_body.tran_state_code;
code.tran_state_msg = order.rsp_body.tran_state_msg;
code.mer_memo = order.rsp_body.mer_memo;
code.total_amount = order.rsp_body.total_amount;
code.order_status = order.rsp_body.order_status;
code.tran_content = order.rsp_body.tran_content;
List<ReceiveCodeDetail> codeDetails = new List<ReceiveCodeDetail>();
foreach (var item in settlements)
{
var detail = new ReceiveCodeDetail();
detail.PayMerTranNo = payMerTranNo;
detail.ReceiveCodeKvid = code.Kvid;
detail.PayerName = item.PayerName;
detail.BizId = item.BizId;
detail.BizType = item.BizType;
detail.BizKvid = item.Kvid;
codeDetails.Add(detail);
}
var trans = connB.OpenTransaction();
try
{
foreach (var item in codeDetails)
{
connB.Insert(item);
}
connB.Insert(code);
trans.Commit();
}
catch (Exception ex)
{
trans.Rollback();
throw ex;
}
if (View.IsNullOrEmpty())
{
......@@ -75,4 +104,50 @@ namespace Njzj.Bocoms.Openapis
}
}
}
public class ReceiveCodeCheckState : RestfulExecution<ReceiveCode>
{
public string PayMerTranNo { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
PayMerTranNo.ThrowIfNullOrEmpty("请传入订单号!");
var conn = KiviiContext.GetOpenedDbConnection<ReceiveCode>();
var existCode = conn.Single<ReceiveCode>(o => o.pay_mer_tran_no == PayMerTranNo);
if (existCode == null) throw new Exception("未找到此扫码订单");
var rtns = new RestfulExecutionResponse<ReceiveCode>();
rtns.Results = new List<ReceiveCode>();
if (existCode.tran_state != "PROCESS")
{
rtns.Results.Add(existCode);
return rtns;
}
var order = Extension.GetReceiveCodeOrder(PayMerTranNo);
if (order.rsp_body.tran_state != existCode.tran_state)
{
existCode.tran_state = order.rsp_body.tran_state;
existCode.AddOnlyProperties(o => o.tran_state);
existCode.tran_state_code = order.rsp_body.tran_state_code;
existCode.AddOnlyProperties(o => o.tran_state_code);
existCode.tran_state_msg = order.rsp_body.tran_state_msg;
existCode.AddOnlyProperties(o => o.tran_state_msg);
existCode.mer_memo = order.rsp_body.mer_memo;
existCode.AddOnlyProperties(o => o.mer_memo);
existCode.total_amount = order.rsp_body.total_amount;
existCode.AddOnlyProperties(o => o.total_amount);
existCode.order_status = order.rsp_body.order_status;
existCode.AddOnlyProperties(o => o.order_status);
existCode.tran_content = order.rsp_body.tran_content;
existCode.AddOnlyProperties(o => o.tran_content);
conn.UpdateOnly(existCode);
existCode.RemoveAllOnlyProperties();
rtns.Results.Add(existCode);
}
return rtns;
}
}
}
......@@ -16,24 +16,24 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pageableresponse_totalelements") private String pageableresponseTotalelements;
//private string pageableresponseTotalelements;
[Alias("pageableresponse_totalelements")]
public string pageableresponseTotalelements { get; set; }
//[Alias("pageableresponse_totalelements")]
public string pageableresponse_totalelements { get; set; }
/// <summary>
/// 总页数 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pageableresponse_totalpages") private String pageableresponseTotalpages;
//private string pageableresponseTotalpages;
[Alias("pageableresponse_totalpages")]
public string pageableresponseTotalpages { get; set; }
//[Alias("pageableresponse_totalpages")]
public string pageableresponse_totalpages { get; set; }
/// <summary>
/// "" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_record_list") private java.util.List<WriteOffRecord> writeOffRecordList;
//private IList<WriteOffRecord> writeOffRecordList;
[Alias("write_off_record_list")]
public List<WriteOffRecord> writeOffRecordList { get; set; }
//[Alias("write_off_record_list")]
public List<WriteOffRecord> write_off_record_list { get; set; }
public class WriteOffRecord
{
......@@ -42,24 +42,24 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_id") private String writeOffId;
//internal string writeOffId;
[Alias("write_off_id")]
public string writeOffId { get; set; }
//[Alias("write_off_id")]
public string write_off_id { get; set; }
/// <summary>
/// 核销订单号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_ode_no") private String writeOffOdeNo;
//internal string writeOffOdeNo;
[Alias("write_off_ode_no")]
public string writeOffOdeNo { get; set; }
//[Alias("write_off_ode_no")]
public string write_off_ode_no { get; set; }
/// <summary>
/// 核销订单流水编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_bill_jnl_id") private String writeOffBillJnlId;
//internal string writeOffBillJnlId;
[Alias("write_off_bill_jnl_id")]
public string writeOffBillJnlId { get; set; }
//[Alias("write_off_bill_jnl_id")]
public string write_off_bill_jnl_id { get; set; }
/// <summary>
/// 账单流水类型
......@@ -70,16 +70,16 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bill_jnl_typ") private String billJnlTyp;
//internal string billJnlTyp;
[Alias("bill_jnl_typ")]
public string billJnlTyp { get; set; }
//[Alias("bill_jnl_typ")]
public string bill_jnl_typ { get; set; }
/// <summary>
/// 核销金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_amt") private String writeOffAmt;
//internal string writeOffAmt;
[Alias("write_off_amt")]
public string writeOffAmt { get; set; }
//[Alias("write_off_amt")]
public string write_off_amt { get; set; }
/// <summary>
/// 核销状态
......@@ -89,8 +89,8 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_state") private String writeOffState;
//internal string writeOffState;
[Alias("write_off_state")]
public string writeOffState { get; set; }
//[Alias("write_off_state")]
public string write_off_state { get; set; }
/// <summary>
/// 核销方式
......@@ -102,32 +102,32 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_type") private String writeOffType;
//internal string writeOffType;
[Alias("write_off_type")]
public string writeOffType { get; set; }
//[Alias("write_off_type")]
public string write_off_type { get; set; }
/// <summary>
/// 核销日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_dte") private String writeOffDte;
//internal string writeOffDte;
[Alias("write_off_dte")]
public string writeOffDte { get; set; }
//[Alias("write_off_dte")]
public string write_off_dte { get; set; }
/// <summary>
/// 核销人员 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_staff") private String writeOffStaff;
//internal string writeOffStaff;
[Alias("write_off_staff")]
public string writeOffStaff { get; set; }
//[Alias("write_off_staff")]
public string write_off_staff { get; set; }
/// <summary>
/// 核销编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_no") private String writeOffNo;
//internal string writeOffNo;
[Alias("write_off_no")]
public string writeOffNo { get; set; }
//[Alias("write_off_no")]
public string write_off_no { get; set; }
/// <summary>
/// 核销种类
......@@ -137,24 +137,24 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_kind") private String writeOffKind;
//internal string writeOffKind;
[Alias("write_off_kind")]
public string writeOffKind { get; set; }
//[Alias("write_off_kind")]
public string write_off_kind { get; set; }
/// <summary>
/// 补录ID </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_addt_id") private String writeOffAddtId;
//internal string writeOffAddtId;
[Alias("write_off_addt_id")]
public string writeOffAddtId { get; set; }
//[Alias("write_off_addt_id")]
public string write_off_addt_id { get; set; }
/// <summary>
/// "" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_order_detail_list") private java.util.List<ContOrderDetail> contOrderDetailList;
//internal IList<ContOrderDetail> contOrderDetailList;
[Alias("cont_order_detail_list")]
public List<ContOrderDetail> contOrderDetailList { get; set; }
//[Alias("cont_order_detail_list")]
public List<ContOrderDetail> cont_order_detail_list { get; set; }
public class ContOrderDetail
{
......@@ -163,143 +163,143 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bill_id") private String billId;
//internal string billId;
[Alias("bill_id")]
public string billId { get; set; }
//[Alias("bill_id")]
public string bill_id { get; set; }
/// <summary>
/// 批次号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bat_id") private String batId;
//internal string batId;
[Alias("bat_id")]
public string batId { get; set; }
//[Alias("bat_id")]
public string bat_id { get; set; }
/// <summary>
/// 合同号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_id") private String contId;
//internal string contId;
[Alias("cont_id")]
public string contId { get; set; }
//[Alias("cont_id")]
public string cont_id { get; set; }
/// <summary>
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("org_id") private String orgId;
//internal string orgId;
[Alias("org_id")]
public string orgId { get; set; }
//[Alias("org_id")]
public string org_id { get; set; }
/// <summary>
/// 应付款人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_payer") private String oriPayer;
//internal string oriPayer;
[Alias("ori_payer")]
public string oriPayer { get; set; }
//[Alias("ori_payer")]
public string ori_payer { get; set; }
/// <summary>
/// 应付款人账号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_ac") private String oriAc;
//internal string oriAc;
[Alias("ori_ac")]
public string oriAc { get; set; }
//[Alias("ori_ac")]
public string ori_ac { get; set; }
/// <summary>
/// 应付款人地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_addr") private String oriAddr;
//internal string oriAddr;
[Alias("ori_addr")]
public string oriAddr { get; set; }
//[Alias("ori_addr")]
public string ori_addr { get; set; }
/// <summary>
/// 应付款人联系电话 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_tel_no") private String oriTelNo;
//internal string oriTelNo;
[Alias("ori_tel_no")]
public string oriTelNo { get; set; }
//[Alias("ori_tel_no")]
public string ori_tel_no { get; set; }
/// <summary>
/// 应付款人其他信息1 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info1") private String oriOtherInfo1;
//internal string oriOtherInfo1;
[Alias("ori_other_info1")]
public string oriOtherInfo1 { get; set; }
//[Alias("ori_other_info1")]
public string ori_other_info1 { get; set; }
/// <summary>
/// 应付款人其他信息2 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info2") private String oriOtherInfo2;
//internal string oriOtherInfo2;
[Alias("ori_other_info2")]
public string oriOtherInfo2 { get; set; }
//[Alias("ori_other_info2")]
public string ori_other_info2 { get; set; }
/// <summary>
/// 应付款人其他信息3 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info3") private String oriOtherInfo3;
//internal string oriOtherInfo3;
[Alias("ori_other_info3")]
public string oriOtherInfo3 { get; set; }
//[Alias("ori_other_info3")]
public string ori_other_info3 { get; set; }
/// <summary>
/// 费项名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_itm_nme") private String oriItmNme;
//internal string oriItmNme;
[Alias("ori_itm_nme")]
public string oriItmNme { get; set; }
//[Alias("ori_itm_nme")]
public string ori_itm_nme { get; set; }
/// <summary>
/// 费项类型 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_itm_type") private String oriItmType;
//internal string oriItmType;
[Alias("ori_itm_type")]
public string oriItmType { get; set; }
//[Alias("ori_itm_type")]
public string ori_itm_type { get; set; }
/// <summary>
/// 应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_amt") private String oriAmt;
//internal string oriAmt;
[Alias("ori_amt")]
public string oriAmt { get; set; }
//[Alias("ori_amt")]
public string ori_amt { get; set; }
/// <summary>
/// 减免金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_offset_amt") private String oriOffsetAmt;
//internal string oriOffsetAmt;
[Alias("ori_offset_amt")]
public string oriOffsetAmt { get; set; }
//[Alias("ori_offset_amt")]
public string ori_offset_amt { get; set; }
/// <summary>
/// 实际应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_act_amt") private String oriActAmt;
//internal string oriActAmt;
[Alias("ori_act_amt")]
public string oriActAmt { get; set; }
//[Alias("ori_act_amt")]
public string ori_act_amt { get; set; }
/// <summary>
/// 已付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("paid_amt") private String paidAmt;
//internal string paidAmt;
[Alias("paid_amt")]
public string paidAmt { get; set; }
//[Alias("paid_amt")]
public string paid_amt { get; set; }
/// <summary>
/// 附言码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("attach_code") private String attachCode;
[Alias("attach_code")]
public string attachCode { get; set; }
//[Alias("attach_code")]
public string attach_code { get; set; }
/// <summary>
/// 补录方式
......@@ -315,55 +315,55 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("addt_type") private String addtType;
//internal string addtType;
[Alias("addt_type")]
public string addtType { get; set; }
//[Alias("addt_type")]
public string addt_type { get; set; }
/// <summary>
/// 补录金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("addt_amt") private String addtAmt;
//internal string addtAmt;
[Alias("addt_amt")]
public string addtAmt { get; set; }
//[Alias("addt_amt")]
public string addt_amt { get; set; }
/// <summary>
/// 补录日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("addt_dat") private String addtDat;
//internal string addtDat;
[Alias("addt_dat")]
public string addtDat { get; set; }
//[Alias("addt_dat")]
public string addt_dat { get; set; }
/// <summary>
/// 补录人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("addt_staff") private String addtStaff;
//internal string addtStaff;
[Alias("addt_staff")]
public string addtStaff { get; set; }
//[Alias("addt_staff")]
public string addt_staff { get; set; }
/// <summary>
/// 创建日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cre_dte") private String creDte;
//internal string creDte;
[Alias("cre_dte")]
public string creDte { get; set; }
//[Alias("cre_dte")]
public string cre_dte { get; set; }
/// <summary>
/// 创建人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cre_usr") private String creUsr;
//internal string creUsr;
[Alias("cre_usr")]
public string creUsr { get; set; }
//[Alias("cre_usr")]
public string cre_usr { get; set; }
/// <summary>
/// 备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("remark") private String remark;
//internal string remark;
[Alias("remark")]
//[Alias("remark")]
public string remark { get; set; }
/// <summary>
......@@ -371,15 +371,15 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("offset_remark") private String offsetRemark;
//internal string offsetRemark;
[Alias("offset_remark")]
public string offsetRemark { get; set; }
//[Alias("offset_remark")]
public string offset_remark { get; set; }
/// <summary>
/// 部门名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("dept") private String dept;
//internal string dept;
[Alias("dept")]
//[Alias("dept")]
public string dept { get; set; }
/// <summary>
......@@ -390,8 +390,8 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_state") private String writeOffState;
//internal string writeOffState;
[Alias("write_off_state")]
public string writeOffState { get; set; }
//[Alias("write_off_state")]
public string write_off_state { get; set; }
/// <summary>
/// 核销方式
......@@ -403,40 +403,40 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_type") private String writeOffType;
//internal string writeOffType;
[Alias("write_off_type")]
public string writeOffType { get; set; }
//[Alias("write_off_type")]
public string write_off_type { get; set; }
/// <summary>
/// 核销日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_dte") private String writeOffDte;
//internal string writeOffDte;
[Alias("write_off_dte")]
public string writeOffDte { get; set; }
//[Alias("write_off_dte")]
public string write_off_dte { get; set; }
/// <summary>
/// 核销金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_amt") private String writeOffAmt;
//internal string writeOffAmt;
[Alias("write_off_amt")]
public string writeOffAmt { get; set; }
//[Alias("write_off_amt")]
public string write_off_amt { get; set; }
/// <summary>
/// 账期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("payment_period") private String paymentPeriod;
//internal string paymentPeriod;
[Alias("payment_period")]
public string paymentPeriod { get; set; }
//[Alias("payment_period")]
public string payment_period { get; set; }
/// <summary>
/// 核销提醒手机号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("phone_num") private String phoneNum;
//internal string phoneNum;
[Alias("phone_num")]
public string phoneNum { get; set; }
//[Alias("phone_num")]
public string phone_num { get; set; }
/// <summary>
/// 框架性协议类型
......@@ -446,8 +446,8 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("agreement_type") private String agreementType;
//internal string agreementType;
[Alias("agreement_type")]
public string agreementType { get; set; }
//[Alias("agreement_type")]
public string agreement_type { get; set; }
/// <summary>
/// 账单核销状态
......@@ -459,8 +459,8 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bill_wo_state") private String billWoState;
//internal string billWoState;
[Alias("bill_wo_state")]
public string billWoState { get; set; }
//[Alias("bill_wo_state")]
public string bill_wo_state { get; set; }
/// <summary>
/// 操作结果
......@@ -470,24 +470,24 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("opr_result") private String oprResult;
//internal string oprResult;
[Alias("opr_result")]
public string oprResult { get; set; }
//[Alias("opr_result")]
public string opr_result { get; set; }
/// <summary>
/// 失败原因 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("fail_reason") private String failReason;
//internal string failReason;
[Alias("fail_reason")]
public string failReason { get; set; }
//[Alias("fail_reason")]
public string fail_reason { get; set; }
} //* ""
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pay_detail_list") private java.util.List<PayDetail> payDetailList;
//internal IList<PayDetail> payDetailList;
[Alias("pay_detail_list")]
public List<PayDetail> payDetailList { get; set; }
//[Alias("pay_detail_list")]
public List<PayDetail> pay_detail_list { get; set; }
public class PayDetail
{
......@@ -496,107 +496,97 @@ namespace Com.Bocom.OpenApi
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cus_ac") private String cusAc;
//internal string cusAc;
[Alias("cus_ac")]
public string cusAc { get; set; }
//[Alias("cus_ac")]
public string cus_ac { get; set; }
/// <summary>
/// 账户名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ac_nme") private String acNme;
//internal string acNme;
[Alias("ac_nme")]
public string acNme { get; set; }
//[Alias("ac_nme")]
public string ac_nme { get; set; }
/// <summary>
/// 会计日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ac_dte") private String acDte;
//internal string acDte;
[Alias("ac_dte")]
public string acDte { get; set; }
//[Alias("ac_dte")]
public string ac_dte { get; set; }
/// <summary>
/// 交易时间 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("tr_time") private String trTime;
//internal string trTime;
[Alias("tr_time")]
public string trTime { get; set; }
//[Alias("tr_time")]
public string tr_time { get; set; }
/// <summary>
/// 交易码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("tr_code") private String trCode;
//internal string trCode;
[Alias("tr_code")]
public string trCode
{ get; set; }
//[Alias("tr_code")]
public string tr_code { get; set; }
/// <summary>
/// 交易金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("txn_amt") private String txnAmt;
//internal string txnAmt;
[Alias("txn_amt")]
public string txnAmt
{ get; set; }
//[Alias("txn_amt")]
public string txn_amt { get; set; }
/// <summary>
/// 币种 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ccy") private String ccy;
//internal string ccy;
[Alias("ccy")]
public string ccy
{ get; set; }
//[Alias("ccy")]
public string ccy { get; set; }
/// <summary>
/// 借贷标志 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("dc_flg") private String dcFlg;
//internal string dcFlg;
[Alias("dc_flg")]
public string dcFlg
{ get; set; }
//[Alias("dc_flg")]
public string dc_flg { get; set; }
/// <summary>
/// 对方户名 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("opp_ac_nme") private String oppAcNme;
//internal string oppAcNme;
[Alias("opp_ac_nme")]
public string oppAcNme
{ get; set; }
//[Alias("opp_ac_nme")]
public string opp_ac_nme { get; set; }
/// <summary>
/// 会计传票号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("vch_no") private String vchNo;
//internal string vchNo;
[Alias("vch_no")]
public string vchNo
{ get; set; }
//[Alias("vch_no")]
public string vch_no { get; set; }
/// <summary>
/// 业务摘要码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("rmk_cde") private String rmkCde;
//internal string rmkCde;
[Alias("rmk_cde")]
public string rmkCde
{ get; set; }
//[Alias("rmk_cde")]
public string rmk_cde { get; set; }
/// <summary>
/// 传票业务摘要区 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("vch_bus_rmk") private String vchBusRmk;
//internal string vchBusRmk;
[Alias("vch_bus_rmk")]
public string vchBusRmk
{ get; set; }
//[Alias("vch_bus_rmk")]
public string vch_bus_rmk { get; set; }
}
}
}
......@@ -608,7 +598,7 @@ namespace Com.Bocom.OpenApi
public string encrypt_key { get; set; }
}
[Alias("BCOM_WriteOffResultNotifys")]
[Alias(Configs.TableNameWriteOffResultNotify)]
public class WriteOffResultNotify:EntityWithMetadata
{
public string BillId { get; set; }
......
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