java110
2020-10-12 0fe7faa4395a8f3e2dfcc41818de5fa715c57518
java110-db/src/main/resources/mapper/goods/ProductServiceDaoImplMapper.xml
@@ -20,9 +20,10 @@
        select t.product_id,t.product_id productId,t.unit_name,t.unit_name unitName,t.is_postage,t.is_postage
        isPostage,t.status_cd,t.status_cd statusCd,t.sort,t.store_id,t.store_id storeId,t.bar_code,t.bar_code
        barCode,t.postage,t.prod_name,t.prod_name prodName,t.state,t.keyword,t.prod_desc,t.prod_desc
        prodDesc,t.category_id,t.category_id categoryId,pc.category_name categoryName
        prodDesc,t.category_id,t.category_id categoryId,pc.category_name categoryName,td.name stateName
        from product t
        left join product_category pc on pc.category_id = t.category_id and pc.store_id = t.store_id and pc.status_cd = '0'
        left join t_dict td on t.state = td.status_cd and td.table_name= 'product' and td.table_columns = 'state'
        where 1 =1
        <if test="productId !=null and productId != ''">
            and t.product_id= #{productId}