admin
2021-09-24 1e9d66afda722a8ace7c5a21c9c0bfa0f14989c4
fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderRepairHistoryServiceImpl.java
@@ -1,28 +1,29 @@
package com.yeshi.fanli.service.impl.order;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.order.OrderRepairHistoryMapper;
import com.yeshi.fanli.entity.order.OrderRepairHistory;
import com.yeshi.fanli.service.inter.order.OrderRepairHistoryService;
@Service
public class OrderRepairHistoryServiceImpl implements OrderRepairHistoryService {
   @Resource
   private OrderRepairHistoryMapper orderRepairHistoryMapper;
   @Override
   public void addOrderRepairHistory(OrderRepairHistory history) {
      if (history.getCreateTime() == null)
         history.setCreateTime(new Date());
      orderRepairHistoryMapper.insertSelective(history);
   }
}
package com.yeshi.fanli.service.impl.order;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.order.OrderRepairHistoryMapper;
import com.yeshi.fanli.entity.order.OrderRepairHistory;
import com.yeshi.fanli.service.inter.order.OrderRepairHistoryService;
@Service
public class OrderRepairHistoryServiceImpl implements OrderRepairHistoryService {
   @Resource
   private OrderRepairHistoryMapper orderRepairHistoryMapper;
   @Override
   public void addOrderRepairHistory(OrderRepairHistory history) {
      if (history.getCreateTime() == null)
         history.setCreateTime(new Date());
      orderRepairHistoryMapper.insertSelective(history);
   }
}