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
80425617
Commit
80425617
authored
Aug 20, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分配
parent
f0480d90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
+6
-6
No files found.
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
View file @
80425617
...
...
@@ -131,12 +131,12 @@ class DeliverybillService extends ServiceBase {
let
{
numbers
,
nickName
,
userId
,
opCode
,
phone
,
type
}
=
pobj
;
switch
(
type
)
{
case
System
.
FLOWCODE
.
DELIVERY
:
let
d
atas
=
await
this
.
dao
.
findAll
({
let
bizD
atas
=
await
this
.
dao
.
findAll
({
delivery_code
:
{
$in
:
numbers
}
});
if
(
d
atas
.
length
!==
numbers
.
length
)
{
if
(
bizD
atas
.
length
!==
numbers
.
length
)
{
throw
new
Error
(
"请检查单号是否正确"
);
}
await
this
.
dao
.
updateByWhere
({
...
...
@@ -151,7 +151,7 @@ class DeliverybillService extends ServiceBase {
});
// 插入 流转 记录
let
logs
=
[];
for
(
let
val
of
d
atas
)
{
for
(
let
val
of
bizD
atas
)
{
logs
.
push
({
demand_code
:
val
.
delivery_code
,
operator
:
{
...
...
@@ -172,12 +172,12 @@ class DeliverybillService extends ServiceBase {
this
.
operationrecordDao
.
bulkCreate
(
logs
);
break
case
System
.
FLOWCODE
.
BIZ
:
let
datas
=
await
this
.
bizoptDao
.
findAll
({
let
d
elD
atas
=
await
this
.
bizoptDao
.
findAll
({
demand_code
:
{
$in
:
numbers
}
});
if
(
d
atas
.
length
!==
data
s
.
length
)
{
if
(
d
elDatas
.
length
!==
number
s
.
length
)
{
throw
new
Error
(
"请检查单号是否正确"
);
}
return
this
.
db
.
transaction
(
async
(
t
)
=>
{
...
...
@@ -208,7 +208,7 @@ class DeliverybillService extends ServiceBase {
},
t
);
// 插入 流转 记录
let
logs
=
[];
for
(
let
val
of
datas
)
{
for
(
let
val
of
d
elD
atas
)
{
logs
.
push
({
demand_code
:
val
.
demand_code
,
operator
:
{
...
...
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