| | |
| | | <mapper namespace="com.thhy.materials.modules.biz.mixingstationstorage.mapper.MinXingPlantMapper"> |
| | | |
| | | <insert id="insert" > |
| | | insert into t_material_stock_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="type != null"> |
| | | type, |
| | | </if> |
| | | <if test="opType != null"> |
| | | op_Type, |
| | | </if> |
| | | <if test="materialName != null"> |
| | | material_name, |
| | | </if> |
| | | <if test="materialValue != null"> |
| | | material_value, |
| | | </if> |
| | | <if test="beforeStock != null"> |
| | | before_stock, |
| | | </if> |
| | | <if test="afterStock != null"> |
| | | after_stock, |
| | | </if> |
| | | <if test="remark != null"> |
| | | remark, |
| | | </if> |
| | | <if test="pipeId != null"> |
| | | pipe_id, |
| | | </if> |
| | | <if test="pipeNum != null"> |
| | | pipe_num, |
| | | </if> |
| | | <if test="createDate != null"> |
| | | create_date, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | supplier_name, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id}, |
| | | </if> |
| | | <if test="type != null"> |
| | | #{type}, |
| | | </if> |
| | | <if test=" != null"> |
| | | #{opType}, |
| | | </if> |
| | | <if test="materialName != null"> |
| | | #{materialName}, |
| | | </if> |
| | | <if test="materialValue != null"> |
| | | #{materialValue}, |
| | | </if> |
| | | <if test="beforeStock != null"> |
| | | #{beforeStock}, |
| | | </if> |
| | | <if test="afterStock != null"> |
| | | #{afterStock}, |
| | | </if> |
| | | <if test="remark != null"> |
| | | #{remark}, |
| | | </if> |
| | | <if test="pipeId != null"> |
| | | #{pipeId}, |
| | | </if> |
| | | <if test="pipeNum != null"> |
| | | #{pipeNum}, |
| | | </if> |
| | | <if test="createDate != null"> |
| | | #{createDate}, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | #{supplierName}, |
| | | </if> |
| | | </trim> |
| | | insert into t_material_stock_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="createDate != null"> |
| | | create_date, |
| | | </if> |
| | | <if test="type != null"> |
| | | type, |
| | | </if> |
| | | <if test="opType != null"> |
| | | op_type, |
| | | </if> |
| | | <if test="dictId != null"> |
| | | material_name, |
| | | </if> |
| | | <if test="materialValue != null"> |
| | | material_value, |
| | | </if> |
| | | <if test="beforeStock != null"> |
| | | before_stock, |
| | | </if> |
| | | <if test="afterStock != null"> |
| | | after_stock, |
| | | </if> |
| | | <if test="companyId != null"> |
| | | company_id, |
| | | </if> |
| | | <if test="remark != null"> |
| | | remark, |
| | | </if> |
| | | <if test="createUser != null"> |
| | | create_user, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | supplier_name, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id}, |
| | | </if> |
| | | <if test="createDate != null"> |
| | | #{createDate}, |
| | | </if> |
| | | <if test="type != null"> |
| | | #{type}, |
| | | </if> |
| | | <if test="opType != null"> |
| | | #{opType}, |
| | | </if> |
| | | <if test="dictId != null"> |
| | | #{dictId}, |
| | | </if> |
| | | <if test="materialValue != null"> |
| | | #{materialValue}, |
| | | </if> |
| | | <if test="beforeStock != null"> |
| | | #{beforeStock}, |
| | | </if> |
| | | <if test="afterStock != null"> |
| | | #{afterStock}, |
| | | </if> |
| | | <if test="companyId != null"> |
| | | #{companyId}, |
| | | </if> |
| | | <if test="remark != null"> |
| | | #{remark}, |
| | | </if> |
| | | <if test="createUser != null"> |
| | | #{createUser}, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | #{supplierName}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <select id="selectAllList" parameterType="com.thhy.materials.modules.biz.mixingstationstorage.dto.MinXingPlantDto" resultType="com.thhy.materials.modules.biz.mixingstationstorage.entity.MinXingPlantVo"> |
| | |
| | | <if test="createUser != null"> |
| | | create_user, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | supplier_name, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | |
| | | <if test="createUser != null"> |
| | | #{createUser}, |
| | | </if> |
| | | <if test="supplierName != null"> |
| | | #{supplierName}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <select id="selectInventoryRecordList" parameterType="com.thhy.materials.modules.biz.mixingstationstorage.dto.TMaterialStockRecordDto" resultType="com.thhy.materials.modules.biz.mixingstationstorage.entity.TMaterialStockRecordVo"> |