Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
951c229a
Commit
951c229a
authored
Nov 12, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin pannong
parent
83c6324a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
31 deletions
+38
-31
center-channel/app/base/api/impl/opreceive/service.js
+15
-12
center-channel/app/base/service/impl/common/signSve.js
+16
-13
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
+7
-6
No files found.
center-channel/app/base/api/impl/opreceive/service.js
View file @
951c229a
...
@@ -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
.
co
mpany
Name
)
{
if
(
!
pobj
.
companyInfo
.
co
rp
Name
)
{
return
system
.
getResult
(
null
,
"co
mpany
Name cannot be empty"
);
return
system
.
getResult
(
null
,
"co
rp
Name cannot be empty"
);
}
}
if
(
!
pobj
.
companyInfo
.
taxpayerType
)
{
if
(
!
pobj
.
companyInfo
.
taxpayerType
Enum
)
{
return
system
.
getResult
(
null
,
"taxpayerType cannot be empty"
);
return
system
.
getResult
(
null
,
"taxpayerType
Enum
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
.
companyFor
m
)
{
if
(
!
pobj
.
companyInfo
.
enterpriseFormEnu
m
)
{
return
system
.
getResult
(
null
,
"
companyFor
m cannot be empty"
);
return
system
.
getResult
(
null
,
"
enterpriseFormEnu
m 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
.
tax
payerNumber
)
{
if
(
!
pobj
.
companyInfo
.
tax
No
)
{
return
system
.
getResult
(
null
,
"tax
payerNumber
cannot be empty"
);
return
system
.
getResult
(
null
,
"tax
No
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
()
}
}
...
...
center-channel/app/base/service/impl/common/signSve.js
View file @
951c229a
...
@@ -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",
// "companyInfo":{
// "contactName":"范锋华",
// "companyName":"苏州磐荣信息科技有限公司",
// "timeUnit":"year",
// "taxpayerTypeEnum":"NORMAL_TAXPAYER",
// "quantity":1,
// "acctgSystemId":"10001",
// "companyInfo":{
// "enterpriseFormEnum":"1",
// "companyName":"苏州磐荣信息科技有限公司",
// "taxIndustryId":1,
// "taxpayerType":"NORMAL_TAXPAYER",
// "taxNo":"123456789",
// "acctgSystemId":"10001",
// "serviceTypeEnum":"ACCOUTING",
// "companyForm":"1",
// "taxClaimMethodEnum":"TAX_DECLARATION"
// "industry":1,
// },
// "taxpayerNumber":"123456789",
// "contactMobile":"18550295628",
// "companyArea":"北京"
// "contactName":"范锋华",
// "timeUnit":"year",
// "quantity":1
// }
// }
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
...
...
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
View file @
951c229a
...
@@ -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"
:{
"co
mpanyName"
:
pobj
.
actionBody
.
companyInfo
.
company
Name
,
"co
rpName"
:
pobj
.
actionBody
.
companyInfo
.
corp
Name
,
"taxpayerType
"
:
pobj
.
actionBody
.
companyInfo
.
taxpayerType
,
"taxpayerType
Enum"
:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment