1234567891011121314 |
- package strategyPattern.service.impl;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import strategyPattern.service.OrderStrategy;
- public class SeckillOrderStrategy implements OrderStrategy {
- private static final Logger log = LoggerFactory.getLogger(NormalOrderStrategy.class);
- @Override
- public void placeOrder(String userId, String productId) {
- log.info("秒杀下单成功,userId:{},productId:{}", userId, productId);
- }
- }
|