| | |
| | | <result column="points_price" property="pointsPrice" jdbcType="DECIMAL"/> |
| | | <result column="currency_price" property="currencyPrice" jdbcType="DECIMAL"/> |
| | | <result column="is_active" property="isActive" jdbcType="BOOLEAN"/> |
| | | <result column="product_id" property="productId" jdbcType="BIGINT"/> |
| | | <result column="product_id" property="productId" jdbcType="VARCHAR"/> |
| | | <result column="product_name" property="productName" jdbcType="VARCHAR"/> |
| | | <result column="provider_id" property="providerId" jdbcType="BIGINT"/> |
| | | <result column="provider_id" property="providerId" jdbcType="VARCHAR"/> |
| | | <result column="provider_name" property="providerName" jdbcType="VARCHAR"/> |
| | | <result column="description" property="description" jdbcType="VARCHAR"/> |
| | | <result column="created_at" property="createdAt" jdbcType="TIMESTAMP"/> |
| | |
| | | <select id="selectProductPricingPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM product_pricing |
| | | FROM tb_product_pricing |
| | | WHERE deleted = 0 |
| | | <if test="productId != null"> |
| | | AND product_id = #{productId} |
| | |
| | | <select id="selectByProductId" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM product_pricing |
| | | FROM tb_product_pricing |
| | | WHERE deleted = 0 AND product_id = #{productId} |
| | | ORDER BY created_at DESC |
| | | </select> |
| | |
| | | <select id="selectByCondition" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM product_pricing |
| | | FROM tb_product_pricing |
| | | WHERE deleted = 0 |
| | | <if test="suiteName != null and suiteName != ''"> |
| | | AND suite_name LIKE CONCAT('%', #{suiteName}, '%') |