危化品全生命周期管理后端
“djh”
2025-10-16 65ca50935315a89e219b7c974caf95dc28895ffc
hazmat-system/src/main/resources/mapper/system/HzProductEntryRecordMapper.xml
@@ -70,6 +70,12 @@
            <if test="companyId != null">
                AND a.company_id =#{companyId}
            </if>
            <if test="params.warehouseId !=null">
                and a.warehouse_id =#{params.warehouseId}
            </if>
            <if test="params.cupboardId !=null">
                and a.cupboard_id = #{params.cupboardId}
            </if>
        </where>
        order by a.id desc
    </select>
@@ -77,4 +83,7 @@
    <select id="selectLastEntryRecord" resultType="com.gkhy.hazmat.system.domain.HzProductEntryRecord">
        select * from hz_product_entry_record where company_id=#{companyId} and code_prex=#{codePrex} order by id desc limit 1
    </select>
    <select id="selectLastEndCodeEntryRecord" resultType="com.gkhy.hazmat.system.domain.HzProductEntryRecord">
        select * from hz_product_entry_record where company_id=#{companyId} and code_prex=#{codePrex} order by end_code desc limit 1
    </select>
</mapper>