guoyuji
2024-10-12 acaf8ca38cd32bc474bb46b593db2a8d75b9bfdd
north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
@@ -64,6 +64,9 @@
            <if test="product.creator != null and product.creator != ''">
                and a.creator like concat('%',#{product.creator},'%')
            </if>
            <if test="product.state != null">
                and a.state = #{product.state}
            </if>
            <if test="product.createTime != null and product.createTime != ''">
                and date(a.create_time) like concat('%',#{product.createTime},'%')
            </if>
@@ -74,6 +77,14 @@
        ;
    </select>
    <select id="selectProduct">
        select * from sd.product where ${productName}=#{productNameValue}
    </select>
    <select id="selectProductId">
        select * from sd.product where ${productName}=#{productNameValue} and id != #{id}
    </select>
    <select id="getPageTotal" >
        select
            CEILING(count(a.id)/#{pageSize})