积分专区的实现

This commit is contained in:
2025-02-17 14:15:26 +08:00
parent d781eaa358
commit 6da09d93fd
3 changed files with 52 additions and 13 deletions

View File

@@ -4,6 +4,8 @@ import com.buy507.mall.model.OmsOrder;
import com.buy507.mall.model.OmsOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface OmsOrderMapper {
long countByExample(OmsOrderExample example);
@@ -27,4 +29,6 @@ public interface OmsOrderMapper {
int updateByPrimaryKeySelective(OmsOrder record);
int updateByPrimaryKey(OmsOrder record);
}
int selectPointsAreaStatus(@Param("orderSn") String orderSn);}

View File

@@ -874,4 +874,14 @@
settlement_time = #{settlementTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectPointsAreaStatus" resultType="int">
<![CDATA[
SELECT p.points_area_status
FROM pms_product p
JOIN oms_order_item oi ON p.product_sn = oi.product_sn
JOIN oms_order o ON oi.order_sn = o.order_sn
WHERE o.order_sn = #{orderSn}
]]>
</select>
</mapper>