Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
d3d32bd2
Commit
d3d32bd2
authored
Jun 21, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库的预警设置获取不到service
parent
8514b7b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
StockAmountWarnCalculate.java
.../xyst/dinas/sales/processor/StockAmountWarnCalculate.java
+5
-0
No files found.
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/processor/StockAmountWarnCalculate.java
View file @
d3d32bd2
...
...
@@ -2,6 +2,7 @@ package com.xyst.dinas.sales.processor;
import
java.util.UUID
;
import
com.beecode.amino.core.Amino
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.beecode.bcp.type.KObject
;
...
...
@@ -36,7 +37,11 @@ public class StockAmountWarnCalculate implements IWarningCalculator{
UUID
stationId
=
warnSetting
.
getBillId
();
String
dinasTypeName
=
warnSetting
.
getTarget
();
if
(
min
==
null
||
min
.
trim
().
length
()==
0
)
return
false
;
if
(
stationService
==
null
){
stationService
=
Amino
.
getApplicationContext
().
getBean
(
StationService
.
class
);
}
KObject
station
=
stationService
.
getById
(
stationId
);
if
(
stockAmount
<
Double
.
valueOf
(
min
))
{
warnMessage
=
station
.
getString
(
"stationName"
)
+
"的"
+
dinasTypeName
+
"库存不足"
+
min
+
"吨,请注意。"
;
return
true
;
...
...
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