| | |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="stationCode" column="station_code" /> |
| | | <result property="flag" column="flag" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectBsBatchInfoVo"> |
| | | select id, material_code, material_name, batch, change_time, remarks, create_time, create_user, update_time, update_user from bs_batch_info |
| | | select station_code, flag, id, material_code, material_name, batch, change_time, remarks, create_time, create_user, update_time, update_user from bs_batch_info |
| | | </sql> |
| | | |
| | | <select id="selectBsBatchInfoList" parameterType="BsBatchInfo" resultMap="BsBatchInfoResult"> |
| | |
| | | <if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if> |
| | | <if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if> |
| | | <if test="batch != null and batch != ''"> and batch = #{batch}</if> |
| | | <if test="flag != null and flag != ''"> and flag = #{flag}</if> |
| | | <if test="stationCode != null and stationCode != ''"> and station_code = #{stationCode}</if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | </trim> |
| | | <if test="stationCode != null">station_code,</if> |
| | | <if test="flag != null">flag,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="materialCode != null">#{materialCode},</if> |
| | |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | <if test="stationCode != null">#{stationCode},</if> |
| | | <if test="flag != null">#{flag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | <if test="stationCode != null">station_code = #{stationCode},</if> |
| | | <if test="flag != null">flag = #{flag},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |