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
a20b5ebf
Commit
a20b5ebf
authored
Dec 03, 2021
by
季圣华
Browse files
解决库存预警报表查询的bug(计量单位改造导致)
parent
5cce9f12
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/DepotItemController.java
View file @
a20b5ebf
...
...
@@ -546,10 +546,10 @@ public class DepotItemController {
*/
public
String
getUName
(
String
materialUnit
,
String
uName
)
{
String
unitName
=
null
;
if
(
!
StringUtil
.
isEmpty
(
materialUnit
))
{
if
(
StringUtil
.
is
Not
Empty
(
materialUnit
))
{
unitName
=
materialUnit
;
}
else
if
(
!
StringUtil
.
isEmpty
(
uName
))
{
unitName
=
uName
.
substring
(
0
,
uName
.
indexOf
(
","
))
;
}
else
if
(
StringUtil
.
is
Not
Empty
(
uName
))
{
unitName
=
uName
;
}
return
unitName
;
}
...
...
jshERP-boot/src/main/resources/mapper_xml/DepotItemMapperEx.xml
View file @
a20b5ebf
...
...
@@ -425,7 +425,7 @@
<select
id=
"findStockWarningCount"
parameterType=
"com.jsh.erp.datasource.entities.DepotItemExample"
resultMap=
"ResultStockWarningCount"
>
select m.id MId, m.name MName, me.bar_code, m.mfrs MMfrs, m.model MModel, m.standard MStandard,m.color MColor,
m.other_field1 MOtherField1,m.other_field2 MOtherField2,m.other_field3 MOtherField3,d.name depotName,
m.unit MaterialUnit, u.
name
unit_name,mcs.current_number,
m.unit MaterialUnit, u.
basic_unit
unit_name,mcs.current_number,
ifnull(mis.low_safe_stock,0) low_safe_stock, ifnull(mis.high_safe_stock,0) high_safe_stock
from jsh_material m
left join jsh_material_extend me on me.material_id=m.id and ifnull(me.delete_Flag,'0') !='1'
...
...
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