| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.inventory.mapper.StockProductMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="inventory.domain.StockProduct"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inventory.pojo.StockProduct"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="productCategory" column="product_category" jdbcType="VARCHAR"/> |
| | | <result property="specModel" column="spec_model" jdbcType="VARCHAR"/> |
| | |
| | | from stock_product |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </select> |
| | | <select id="selectList" resultType="inventory.domain.StockProduct"> |
| | | <select id="selectList" resultType="com.ruoyi.inventory.pojo.StockProduct"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from stock_product |
| | |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </delete> |
| | | |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="inventory.domain.StockProduct" useGeneratedKeys="true"> |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.inventory.pojo.StockProduct" useGeneratedKeys="true"> |
| | | insert into stock_product |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | <if test="unit != null">#{unit,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="inventory.domain.StockProduct"> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.inventory.pojo.StockProduct"> |
| | | update stock_product |
| | | <set> |
| | | <if test="productCategory != null"> |