New file |
| | |
| | | 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);
|
| | | }
|
| | | |
| | | |
| | |
|
| | | }
|