| | |
| | | <result property="saleNum" column="sale_num"/> |
| | | <result property="categoryId" column="category_id"/> |
| | | <result property="hisPacBm" column="his_pac_bm"/> |
| | | <result property="pym" column="pym"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjPackageVo"> |
| | |
| | | counter_price, |
| | | sale_num, |
| | | category_id, |
| | | his_pac_bm |
| | | his_pac_bm, |
| | | pym |
| | | from tj_package |
| | | </sql> |
| | | |
| | |
| | | <if test="retailPrice != null">retail_price,</if> |
| | | <if test="counterPrice != null">counter_price,</if> |
| | | <if test="saleNum != null">sale_num,</if> |
| | | <if test="pym != null">pym,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="retailPrice != null">#{retail_price},</if> |
| | | <if test="counterPrice != null">#{counter_price},</if> |
| | | <if test="saleNum != null">#{sale_num},</if> |
| | | <if test="pym != null">#{pym},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="retailPrice != null">retail_price=#{retailPrice},</if> |
| | | <if test="counterPrice != null">counter_price=#{counterPrice},</if> |
| | | <if test="saleNum != null">sale_num=#{saleNum},</if> |
| | | <if test="pym != null">pym=#{pym},</if> |
| | | </trim> |
| | | where pac_id = #{pacId} |
| | | </update> |