| | |
| | | <result property="updateTime" column="update_time"></result> |
| | | <result property="supplierName" column="supplierName"></result> |
| | | <result property="productHome" column="product_home"></result> |
| | | <result property="productHomeName" column="productHomeName"></result> |
| | | <result property="productHomeName" column="productHomeName"></result> |
| | | <result property="productSn" column="product_sn"/> |
| | | </association> |
| | | </resultMap> |
| | | |
| | |
| | | <if test="reagentName != null and reagentName != ''"> |
| | | and sr.name like concat('%',#{reagentName},'%') |
| | | </if> |
| | | <if test="warehouseId != null and warehouseId != ''"> |
| | | and oa.warehouseId=#{warehouseId} |
| | | </if> |
| | | <if test="warehouseId != null and warehouseId != ''"> |
| | | and oa.warehouseId=#{warehouseId} |
| | | </if> |
| | | <if test="productSn != null and productSn != ''"> |
| | | and sr.product_sn like concat('%',#{productSn},'%') |
| | | </if> |
| | | </sql> |
| | | |
| | | <sql id="queryColumns"> |
| | |
| | | insert into ope_warehouse_reserve(id, reagent_id, article_number, reserve, valid_flag, update_time,warehouseId) |
| | | values (#{id}, #{reagentId}, #{articleNumber}, #{reserve}, 1, now(),#{warehouseId}) |
| | | </insert> |
| | | <insert id="insertOpeWarehouseReserve2" parameterType="com.nanometer.smartlab.entity.OpeWarehouseReserve"> |
| | | insert into ope_warehouse_reserve(id, reagent_id, article_number, reserve, valid_flag, update_time,warehouseId,apply_code,order_code) |
| | | values (#{id}, #{reagentId}, #{articleNumber}, #{reserve}, 1, now(),#{warehouseId},#{applyCode},#{orderCode}) |
| | | </insert> |
| | | |
| | | <update id="updateOpeWarehouseReserve" parameterType="com.nanometer.smartlab.entity.OpeWarehouseReserve"> |
| | | update ope_warehouse_reserve set reagent_id=#{reagentId},warehouseId=#{warehouseId}, article_number=#{articleNumber}, reserve=#{reserve}, update_time=now() |