Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-service-hmhj
Commits
1d59a215
Commit
1d59a215
authored
Jul 21, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
委托复制问题修改;
parent
7de04c42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+2
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
1d59a215
...
@@ -1043,6 +1043,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -1043,6 +1043,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
cloneEntrust
(
Long
[]
ids
,
Account
account
)
{
public
boolean
cloneEntrust
(
Long
[]
ids
,
Account
account
)
{
RestAssert
.
fail
(
null
==
ids
||
ids
.
length
==
0
,
"请选择要复制的委托记录"
);
RestAssert
.
fail
(
null
==
ids
||
ids
.
length
==
0
,
"请选择要复制的委托记录"
);
List
<
Entrust
>
entrustList
=
getBatchIds
(
Arrays
.
asList
(
ids
));
List
<
Entrust
>
entrustList
=
getBatchIds
(
Arrays
.
asList
(
ids
));
...
@@ -1075,6 +1076,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -1075,6 +1076,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
}
}
//生成样品编号,可能存在为空的情况
//生成样品编号,可能存在为空的情况
initSampleCode
(
sample
);
initSampleCode
(
sample
);
sample
.
setId
(
null
);
sample
.
setId
(
IdWorker
.
getId
());
sample
.
setId
(
IdWorker
.
getId
());
sample
.
setEntrustId
(
entrust
.
getId
()).
setOrderBy
(
sampleIndex
);
sample
.
setEntrustId
(
entrust
.
getId
()).
setOrderBy
(
sampleIndex
);
sample
.
setStatus
(
EntrustSampleStatusEnum
.
DRAFT
).
setProgress
(
EntrustSampleStatusEnum
.
DRAFT
);
sample
.
setStatus
(
EntrustSampleStatusEnum
.
DRAFT
).
setProgress
(
EntrustSampleStatusEnum
.
DRAFT
);
...
...
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