解决库存预警报表查询的bug(计量单位改造导致)
This commit is contained in:
@@ -546,10 +546,10 @@ public class DepotItemController {
|
|||||||
*/
|
*/
|
||||||
public String getUName(String materialUnit, String uName) {
|
public String getUName(String materialUnit, String uName) {
|
||||||
String unitName = null;
|
String unitName = null;
|
||||||
if(!StringUtil.isEmpty(materialUnit)) {
|
if(StringUtil.isNotEmpty(materialUnit)) {
|
||||||
unitName = materialUnit;
|
unitName = materialUnit;
|
||||||
} else if(!StringUtil.isEmpty(uName)) {
|
} else if(StringUtil.isNotEmpty(uName)) {
|
||||||
unitName = uName.substring(0,uName.indexOf(","));
|
unitName = uName;
|
||||||
}
|
}
|
||||||
return unitName;
|
return unitName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -425,7 +425,7 @@
|
|||||||
<select id="findStockWarningCount" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultStockWarningCount">
|
<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,
|
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.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
|
ifnull(mis.low_safe_stock,0) low_safe_stock, ifnull(mis.high_safe_stock,0) high_safe_stock
|
||||||
from jsh_material m
|
from jsh_material m
|
||||||
left join jsh_material_extend me on me.material_id=m.id and ifnull(me.delete_Flag,'0') !='1'
|
left join jsh_material_extend me on me.material_id=m.id and ifnull(me.delete_Flag,'0') !='1'
|
||||||
|
|||||||
Reference in New Issue
Block a user