java110
2020-10-28 5775f5a6b8fb4c6e3a50fac239fc0dd8a3b82a10
优化代码
1个文件已修改
6 ■■■■■ 已修改文件
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/goods/ProductLabelServiceDaoImplMapper.xml
@@ -44,6 +44,9 @@
        <if test='hasProduct !=null and hasProduct == "N"'>
            and t.product_id is null
        </if>
        <if test='hasProduct !=null and hasProduct == "Y"'>
            and t.product_id is not null
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
@@ -100,6 +103,9 @@
        <if test='hasProduct !=null and hasProduct == "N"'>
            and t.product_id is null
        </if>
        <if test='hasProduct !=null and hasProduct == "Y"'>
            and t.product_id is not null
        </if>
    </select>