| | |
| | | <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> |
| | |
| | | <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> |