huminmin
8 小时以前 be8b9b73d290ad5c23fe7141295588d8e693026c
src/main/resources/mapper/stock/StockOutRecordMapper.xml
@@ -27,8 +27,12 @@
        FROM stock_out_record as sor
        LEFT JOIN product_model as pm on sor.product_model_id = pm.id
        LEFT JOIN product as p on pm.product_id = p.id
        LEFT JOIN product p2 ON p.parent_id = p2.id
        LEFT JOIN sys_user as u on sor.create_user = u.user_id
        <where>
            <if test="1=1">
                (p2.product_name != '半成品' OR p2.product_name IS NULL)
            </if>
            <if test="params.timeStr != null and params.timeStr != ''">
                and sor.create_time like concat('%',#{params.timeStr},'%')
            </if>