Commit 951c229a by linboxuan

lin pannong

parent 83c6324a
...@@ -76,26 +76,29 @@ class edi extends APIBase { ...@@ -76,26 +76,29 @@ class edi extends APIBase {
if(!pobj.companyInfo) { if(!pobj.companyInfo) {
return system.getResult(null, "companyInfo cannot be empty"); return system.getResult(null, "companyInfo cannot be empty");
} }
if(!pobj.companyInfo.companyName) { if(!pobj.companyInfo.corpName) {
return system.getResult(null, "companyName cannot be empty"); return system.getResult(null, "corpName cannot be empty");
} }
if(!pobj.companyInfo.taxpayerType) { if(!pobj.companyInfo.taxpayerTypeEnum) {
return system.getResult(null, "taxpayerType cannot be empty"); return system.getResult(null, "taxpayerTypeEnum cannot be empty");
} }
if(!pobj.companyInfo.acctgSystemId) { if(!pobj.companyInfo.acctgSystemId) {
return system.getResult(null, "acctgSystemId cannot be empty"); return system.getResult(null, "acctgSystemId cannot be empty");
} }
if(!pobj.companyInfo.companyForm) { if(!pobj.companyInfo.enterpriseFormEnum) {
return system.getResult(null, "companyForm cannot be empty"); return system.getResult(null, "enterpriseFormEnum cannot be empty");
} }
if(!pobj.companyInfo.industry) { if(!pobj.companyInfo.taxIndustryId) {
return system.getResult(null, "industry cannot be empty"); return system.getResult(null, "taxIndustryId cannot be empty");
} }
if(!pobj.companyInfo.taxpayerNumber) { if(!pobj.companyInfo.taxNo) {
return system.getResult(null, "taxpayerNumber cannot be empty"); return system.getResult(null, "taxNo cannot be empty");
} }
if(!pobj.companyInfo.companyArea) { if(!pobj.companyInfo.serviceTypeEnum) {
return system.getResult(null, "companyArea cannot be empty"); return system.getResult(null, "serviceTypeEnum cannot be empty");
}
if(!pobj.companyInfo.taxClaimMethodEnum) {
return system.getResult(null, "taxClaimMethodEnum cannot be empty");
} }
return system.getResultSuccess() return system.getResultSuccess()
} }
......
...@@ -134,20 +134,23 @@ module.exports = SignService; ...@@ -134,20 +134,23 @@ module.exports = SignService;
// "status":"16" // "status":"16"
// } // }
// var obj = { // var obj = {
// "bizId":"OD2020110629779500", // "bizId":"OD2020110629779501",
// "contactMobile":"18550295628",
// "contactName":"范锋华",
// "timeUnit":"year",
// "quantity":1,
// "companyInfo":{ // "companyInfo":{
// "companyName":"苏州磐荣信息科技有限公司", // "companyName":"苏州磐荣信息科技有限公司",
// "taxpayerType":"NORMAL_TAXPAYER", // "taxpayerTypeEnum":"NORMAL_TAXPAYER",
// "acctgSystemId":"10001", // "acctgSystemId":"10001",
// "companyForm":"1", // "enterpriseFormEnum":"1",
// "industry":1, // "taxIndustryId":1,
// "taxpayerNumber":"123456789", // "taxNo":"123456789",
// "companyArea":"北京" // "serviceTypeEnum":"ACCOUTING",
// "taxClaimMethodEnum":"TAX_DECLARATION"
// },
// "contactMobile":"18550295628",
// "contactName":"范锋华",
// "timeUnit":"year",
// "quantity":1
// } // }
// } // }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{ // task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!"); // console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
......
...@@ -89,13 +89,14 @@ class utils360Sve extends AppServiceBase { ...@@ -89,13 +89,14 @@ class utils360Sve extends AppServiceBase {
"timeUnit":pobj.actionBody.timeUnit, "timeUnit":pobj.actionBody.timeUnit,
"quantity":pobj.actionBody.quantity, "quantity":pobj.actionBody.quantity,
"companyInfo":{ "companyInfo":{
"companyName":pobj.actionBody.companyInfo.companyName, "corpName":pobj.actionBody.companyInfo.corpName,
"taxpayerType":pobj.actionBody.companyInfo.taxpayerType, "taxpayerTypeEnum":pobj.actionBody.companyInfo.taxpayerTypeEnum,
"acctgSystemId":pobj.actionBody.companyInfo.acctgSystemId, "acctgSystemId":pobj.actionBody.companyInfo.acctgSystemId,
"companyForm":pobj.actionBody.companyInfo.companyForm, "enterpriseFormEnum":pobj.actionBody.companyInfo.enterpriseFormEnum,
"industry":pobj.actionBody.companyInfo.industry, "taxIndustryId":pobj.actionBody.companyInfo.taxIndustryId,
"taxpayerNumber":pobj.actionBody.companyInfo.taxpayerNumber, "taxNo":pobj.actionBody.companyInfo.taxNo,
"companyArea":pobj.actionBody.companyInfo.companyArea "serviceTypeEnum":pobj.actionBody.companyInfo.serviceTypeEnum,
"taxClaimMethodEnum":pobj.actionBody.companyInfo.taxClaimMethodEnum
} }
}, },
appInfo: pobj.appInfo appInfo: pobj.appInfo
......
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