给商品库存增加图片的展示

This commit is contained in:
jishenghua
2025-06-15 16:01:14 +08:00
parent 715976be2d
commit 271026979d
3 changed files with 9 additions and 4 deletions

View File

@@ -389,6 +389,11 @@ public class DepotItemController {
} else {
item.put("thisAllPrice", thisSum.multiply(diEx.getPurchaseDecimal()));
}
item.put("imgName", diEx.getImgName());
if(fileUploadType == 2) {
item.put("imgSmall", "small");
item.put("imgLarge", "large");
}
dataArray.add(item);
}
}

View File

@@ -350,7 +350,7 @@
<select id="getInOutStock" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultByMaterial">
select m.id MId, me.bar_code, m.name MName, m.mfrs MMfrs, m.model MModel, m.standard MStandard, m.brand,
m.other_field1 MOtherField1,m.other_field2 MOtherField2,m.other_field3 MOtherField3,
m.other_field1 MOtherField1,m.other_field2 MOtherField2,m.other_field3 MOtherField3, m.img_name,
concat_ws('', m.unit, u.basic_unit) MaterialUnit, m.color MColor, m.unit_id, u.name unit_name,
ifnull(me.purchase_decimal,0) purchase_decimal, ifnull(mcs.current_unit_price,0) currentUnitPrice
from jsh_material m
@@ -377,7 +377,7 @@
</if>
and ifnull(m.delete_flag,'0') !='1'
group by m.id, me.bar_code, m.name, m.mfrs, m.model, m.standard, m.brand,
m.other_field1,m.other_field2,m.other_field3,m.unit, u.basic_unit, m.color, m.unit_id, u.name,
m.other_field1,m.other_field2,m.other_field3, m.img_name ,m.unit, u.basic_unit, m.color, m.unit_id, u.name,
me.purchase_decimal, mcs.current_unit_price
order by m.id desc
<if test="offset != null and rows != null">

View File

@@ -650,7 +650,7 @@
</select>
<select id="getListWithStock" resultMap="ResultMapListWithStock">
select m.id, m.name, m.standard, m.model, m.color, m.brand, m.mfrs, m.position,
select m.id, m.name, m.standard, m.model, m.color, m.brand, m.mfrs, m.position, m.img_name,
me.commodity_unit unitName, mc.name categoryName, me.bar_code mBarCode,
ifnull(me.purchase_decimal,0) purchaseDecimal,
ifnull(mcs.current_unit_price,0) currentUnitPrice,
@@ -688,7 +688,7 @@
or m.other_field2 like #{bindKey} or m.other_field3 like #{bindKey})
</if>
and ifnull(m.delete_flag,'0') !='1'
group by m.id, m.name, m.standard, m.model, m.color, m.brand, m.mfrs, m.position,
group by m.id, m.name, m.standard, m.model, m.color, m.brand, m.mfrs, m.position, m.img_name,
me.commodity_unit, mc.name, me.bar_code, ifnull(me.purchase_decimal,0), ifnull(mcs.current_unit_price,0)
<if test="zeroStock == 0">
having ifnull(sum(mcs.current_number),0)!=0