Commit 80e0790b authored by 季圣华's avatar 季圣华
Browse files

优化商品列表

parent 6bcc25e1
...@@ -120,9 +120,6 @@ public class MaterialService { ...@@ -120,9 +120,6 @@ public class MaterialService {
idList = getListByParentId(Long.parseLong(categoryId)); idList = getListByParentId(Long.parseLong(categoryId));
} }
list= materialMapperEx.selectByConditionMaterial(barCode, name, standard, model, idList, mpList, offset, rows); list= materialMapperEx.selectByConditionMaterial(barCode, name, standard, model, idList, mpList, offset, rows);
}catch(Exception e){
JshException.readFail(logger, e);
}
if (null != list) { if (null != list) {
for (MaterialVo4Unit m : list) { for (MaterialVo4Unit m : list) {
//扩展信息 //扩展信息
...@@ -146,6 +143,9 @@ public class MaterialService { ...@@ -146,6 +143,9 @@ public class MaterialService {
resList.add(m); resList.add(m);
} }
} }
}catch(Exception e){
JshException.readFail(logger, e);
}
return resList; return resList;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<result column="commodity_decimal" jdbcType="VARCHAR" property="commodityDecimal" /> <result column="commodity_decimal" jdbcType="VARCHAR" property="commodityDecimal" />
<result column="wholesale_decimal" jdbcType="VARCHAR" property="wholesaleDecimal" /> <result column="wholesale_decimal" jdbcType="VARCHAR" property="wholesaleDecimal" />
<result column="low_decimal" jdbcType="VARCHAR" property="lowDecimal" /> <result column="low_decimal" jdbcType="VARCHAR" property="lowDecimal" />
<result column="sku" jdbcType="VARCHAR" property="sku" />
</resultMap> </resultMap>
<resultMap extends="com.jsh.erp.datasource.mappers.MaterialMapper.BaseResultMap" id="ResultMapListWithStock" type="com.jsh.erp.datasource.entities.MaterialVo4Unit"> <resultMap extends="com.jsh.erp.datasource.mappers.MaterialMapper.BaseResultMap" id="ResultMapListWithStock" type="com.jsh.erp.datasource.entities.MaterialVo4Unit">
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
<select id="selectByConditionMaterial" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultMapList"> <select id="selectByConditionMaterial" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultMapList">
select m.*,u.name unitName, mc.name categoryName, me.bar_code, select m.*,u.name unitName, mc.name categoryName, me.bar_code,
me.purchase_decimal, me.commodity_decimal, me.wholesale_decimal,me.low_decimal me.purchase_decimal, me.commodity_decimal, me.wholesale_decimal,me.low_decimal,me.sku
FROM jsh_material m FROM jsh_material m
left JOIN jsh_material_extend me on m.id = me.material_id and ifnull(me.delete_Flag,'0') !='1' left JOIN jsh_material_extend me on m.id = me.material_id and ifnull(me.delete_Flag,'0') !='1'
left JOIN jsh_unit u on m.unit_id = u.id and ifnull(u.delete_Flag,'0') !='1' left JOIN jsh_unit u on m.unit_id = u.id and ifnull(u.delete_Flag,'0') !='1'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment