Commit aca90b51 by rongkailun

【修改】商品管理列表数据添加分类字段

parent 53b9c048
......@@ -182,4 +182,6 @@ public class ProductEntity implements Serializable {
*/
private String auditor;
private String categoryName;
}
......@@ -48,7 +48,7 @@
</resultMap>
<select id="selectProductList" resultMap="productMap" parameterType="java.util.Map">
select a.* from product a left join Pcategory b on a.categoryid=b.categoryid where levels>0
select a.*,b.category as categoryName from product a left join Pcategory b on a.categoryid=b.categoryid where levels>0
<if test="params.keyword !='' and params.keyword !=null">
and a.prename like concat('%',#{params.keyword},'%')
</if>
......
Markdown is supported
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