zss
2023-08-17 35091697a5421218d31e7e2d2c58b6a5385cc663
inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -5,8 +5,8 @@
        select id,
        name,
        specifications,
        code,
        check_state,
        quality_traceability,
        check_result,
        user_name,
        DATE_FORMAT(create_time, '%Y-%m-%d') '入库日期',
        note
@@ -14,7 +14,7 @@
        <where>
            and state=1
            <if test="name!=null and name!=''">
                and name LIKE  CONCAT('%',#{name},'%')
                and name LIKE CONCAT('%',#{name},'%')
            </if>
            <if test="specifications!=null and specifications!=''">
                and specifications LIKE CONCAT('%',#{specifications},'%')
@@ -22,12 +22,13 @@
            <if test="time!=null and time!=''">
                and create_time=#{time}
            </if>
            <if test="type!=null and type!=''">
            <if test="type!=null ">
                and type=#{type}
            </if>
            <if test="checkState!=null and checkState!=''">
                and check_state=#{checkState}
            <if test="result!=null ">
                and check_result=#{result}
            </if>
            order by id desc
        </where>
    </select>
</mapper>