积分专区的实现
This commit is contained in:
@@ -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);}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user