Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
6b9efa9b
Commit
6b9efa9b
authored
May 19, 2022
by
季圣华
Browse files
优化删除单据的接口,解决原单据状态不变的bug
parent
d85ccf3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
6b9efa9b
...
...
@@ -314,7 +314,7 @@ public class DepotHeadService {
BusinessConstants
.
SUB_TYPE_REPLAY
.
equals
(
depotHead
.
getSubType
())))
{
String
status
=
BusinessConstants
.
BILLS_STATUS_AUDIT
;
//查询除当前单据之外的关联单据列表
List
<
DepotHead
>
exceptCurrentList
=
getListByLinkNumberExceptCurrent
(
depotHead
.
getLinkNumber
(),
depotHead
.
getNumber
());
List
<
DepotHead
>
exceptCurrentList
=
getListByLinkNumberExceptCurrent
(
depotHead
.
getLinkNumber
(),
depotHead
.
getNumber
()
,
depotHead
.
getType
()
);
if
(
exceptCurrentList
!=
null
&&
exceptCurrentList
.
size
()>
0
)
{
status
=
BusinessConstants
.
BILLS_STATUS_SKIPING
;
}
...
...
@@ -691,9 +691,9 @@ public class DepotHeadService {
* @return
* @throws Exception
*/
public
List
<
DepotHead
>
getListByLinkNumberExceptCurrent
(
String
linkNumber
,
String
number
)
throws
Exception
{
public
List
<
DepotHead
>
getListByLinkNumberExceptCurrent
(
String
linkNumber
,
String
number
,
String
type
)
throws
Exception
{
DepotHeadExample
example
=
new
DepotHeadExample
();
example
.
createCriteria
().
andLinkNumberEqualTo
(
linkNumber
).
andNumberNotEqualTo
(
number
)
example
.
createCriteria
().
andLinkNumberEqualTo
(
linkNumber
).
andNumberNotEqualTo
(
number
)
.
andTypeEqualTo
(
type
)
.
andDeleteFlagNotEqualTo
(
BusinessConstants
.
DELETE_FLAG_DELETED
);
return
depotHeadMapper
.
selectByExample
(
example
);
}
...
...
Write
Preview
Supports
Markdown
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