| | |
| | | <result property="saleNum" column="sale_num"/> |
| | | <result property="categoryId" column="category_id"/> |
| | | <result property="hisPacBm" column="his_pac_bm"/> |
| | | <result property="pym" column="pym"/> |
| | | <result property="tjCategory" column="tj_category"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjPackageVo"> |
| | |
| | | deleted, |
| | | pac_status, |
| | | price, |
| | | limits, |
| | | new_price, |
| | | category_id, |
| | | keywords, |
| | | is_on_sale, |
| | |
| | | counter_price, |
| | | sale_num, |
| | | category_id, |
| | | his_pac_bm |
| | | his_pac_bm, |
| | | pym, |
| | | tj_category |
| | | from tj_package |
| | | </sql> |
| | | |
| | |
| | | <if test="pacName != null and pacName != ''">and pac_name like concat('%', #{pacName}, '%')</if> |
| | | <if test="pacRemark != null and pacRemark != ''">and pac_remark like concat('%', #{pacRemark}, '%')</if> |
| | | <if test="categoryId != null and categoryId != ''">and category_id = #{categoryId}</if> |
| | | <if test="tjCategory != null and tjCategory != ''">and tj_category = #{tjCategory}</if> |
| | | and deleted =0 |
| | | </where> |
| | | </select> |
| | |
| | | <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> |
| | | <if test="tjCategory != null">tj_category,</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> |
| | | <if test="tjCategory != null">#{tjCategory},</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> |
| | | <if test="tjCategory != null">tj_category=#{tjCategory},</if> |
| | | </trim> |
| | | where pac_id = #{pacId} |
| | | </update> |