zss
2023-09-20 608fa275864c7cb4353e5e030e4a1304e56529ac
inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -5,10 +5,10 @@
        select id,
        name,
        specifications,
        code,
        check_state,
        quality_traceability,
        user_name,
        DATE_FORMAT(create_time, '%Y-%m-%d') '入库日期',
        check_result,
        note
        from mom_ocean.repertory
        <where>
@@ -22,19 +22,10 @@
            <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>
            order by id desc
        </where>
    </select>
    <!--查询库存三个字段给添加销售单-->
    <select id="getSale" resultType="java.util.Map">
        select id, name, specifications, unit
        from mom_ocean.repertory
        where state = 1
    </select>
</mapper>