java110
2020-10-28 a537856c633356338a4c508a1ae2806e69a63a8f
优化代码
1个文件已修改
1 ■■■■ 已修改文件
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml
@@ -21,6 +21,7 @@
        p.unit_name unitName,p.is_postage isPostage,p.sort,p.bar_code barCode,p.postage,p.prod_name prodName,
        p.state,p.keyword,p.prod_desc prodDesc,p.category_id categoryId,pc.category_name categoryName,td.name stateName,
        t.create_time createTime
        from product p
        left join product_category pc on pc.category_id = p.category_id and pc.store_id = p.store_id and pc.status_cd = '0'
        left join t_dict td on p.state = td.status_cd and td.table_name= 'product' and td.table_columns = 'state'
        left join product_label t on t.product_id = p.product_id and t.store_id = p.store_id and t.status_cd = '0'