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
61b81848
Commit
61b81848
authored
Apr 04, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
e971208d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
14 deletions
+27
-14
xgg-saas-merchant/app/base/controller/impl/tax/taxCtl.js
+11
-12
xgg-saas-merchant/app/base/service/impl/saas/orderSve.js
+13
-0
xgg-saas-merchant/app/base/service/impl/trade/tradeSve.js
+2
-1
xgg-saas-merchant/app/base/system.js
+1
-1
No files found.
xgg-saas-merchant/app/base/controller/impl/tax/taxCtl.js
View file @
61b81848
...
@@ -5,6 +5,7 @@ class TaxCtl extends CtlBase {
...
@@ -5,6 +5,7 @@ class TaxCtl extends CtlBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
taxSve
=
system
.
getObject
(
"service.tax.taxSve"
);
this
.
taxSve
=
system
.
getObject
(
"service.tax.taxSve"
);
this
.
orderSve
=
system
.
getObject
(
"service.saas.orderSve"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
}
}
...
@@ -55,18 +56,15 @@ class TaxCtl extends CtlBase {
...
@@ -55,18 +56,15 @@ class TaxCtl extends CtlBase {
}
}
}
}
// async businessmenPage(pobj, pobj2, req) {
async
businessmenPage
(
pobj
,
pobj2
,
req
)
{
// try {
try
{
// if (!pobj.id) {
let
res
=
await
this
.
orderSve
.
businessmenPage
(
pobj
);
// return system.getResult(null, `参数错误 ID 不能为空`);
return
res
;
// }
}
catch
(
error
)
{
// let res = await this.taxSve.businessmenPage(pobj);
console
.
log
(
error
);
// return res;
return
system
.
getResult
(
error
);
// } catch (error) {
}
// console.log(error);
}
// return system.getResult(error);
// }
// }
}
}
module
.
exports
=
TaxCtl
;
module
.
exports
=
TaxCtl
;
\ No newline at end of file
xgg-saas-merchant/app/base/service/impl/saas/orderSve.js
View file @
61b81848
...
@@ -39,6 +39,19 @@ class OrderService extends ServiceBase {
...
@@ -39,6 +39,19 @@ class OrderService extends ServiceBase {
return
rs
.
data
||
{};
return
rs
.
data
||
{};
}
}
// 交付信息 map by 信用代码
async
mapByCreditCodes
(
params
)
{
let
rs
=
await
this
.
callms
(
"order"
,
"saasOrderDeliverMapByCreditCodes"
,
params
);
if
(
!
rs
||
!
rs
.
data
)
{
return
{};
}
return
rs
.
data
;
}
async
businessmenPage
(
params
)
{
let
rs
=
await
this
.
callms
(
"order"
,
"saasOrderDeliverBusinessmenPage"
,
params
)
||
{};
return
rs
;
}
transOrderField
(
rows
)
{
transOrderField
(
rows
)
{
if
(
!
rows
||
rows
.
length
==
0
)
{
if
(
!
rows
||
rows
.
length
==
0
)
{
return
;
return
;
...
...
xgg-saas-merchant/app/base/service/impl/trade/tradeSve.js
View file @
61b81848
...
@@ -9,6 +9,7 @@ class TradeService extends ServiceBase {
...
@@ -9,6 +9,7 @@ class TradeService extends ServiceBase {
super
();
super
();
// this.businessmenSve = system.getObject("service.business.businessmenSve");
// this.businessmenSve = system.getObject("service.business.businessmenSve");
this
.
merchantSve
=
system
.
getObject
(
"service.saas.merchantSve"
);
this
.
merchantSve
=
system
.
getObject
(
"service.saas.merchantSve"
);
this
.
orderSve
=
system
.
getObject
(
"service.saas.orderSve"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
}
}
...
@@ -220,7 +221,7 @@ class TradeService extends ServiceBase {
...
@@ -220,7 +221,7 @@ class TradeService extends ServiceBase {
for
(
let
data
of
itemList
)
{
for
(
let
data
of
itemList
)
{
creditCodes
.
push
(
data
.
credit_code
);
creditCodes
.
push
(
data
.
credit_code
);
}
}
let
creditCodeMap
=
await
this
.
businessmenSve
.
mapByCreditCodes
({
creditCodes
:
creditCodes
,
attrs
:
"
credit_code"
});
let
creditCodeMap
=
await
this
.
orderSve
.
mapByCreditCodes
({
creditCodes
:
creditCodes
,
attrs
:
"sve_businessmen_
credit_code"
});
for
(
let
data
of
itemList
)
{
for
(
let
data
of
itemList
)
{
this
.
checkField
(
data
,
"acc_name"
,
{
name
:
"收款户名"
,
is_require
:
true
,
maxLen
:
64
});
this
.
checkField
(
data
,
"acc_name"
,
{
name
:
"收款户名"
,
is_require
:
true
,
maxLen
:
64
});
let
bm
=
creditCodeMap
[
data
.
credit_code
];
let
bm
=
creditCodeMap
[
data
.
credit_code
];
...
...
xgg-saas-merchant/app/base/system.js
View file @
61b81848
...
@@ -181,7 +181,7 @@ class System {
...
@@ -181,7 +181,7 @@ class System {
merchant
:
dev
+
":3101"
+
path
,
merchant
:
dev
+
":3101"
+
path
,
// 订单服务
// 订单服务
order
:
dev
+
":3103"
+
path
,
order
:
local
+
":3103"
+
path
,
// 发票服务
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
...
...
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