| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | mapper.insert(deviceSpareLog); |
| | | } |
| | | |
| | | public void add(Integer deviceSpareId, Integer operationType, String operationDetail, Date createTime) { |
| | | DeviceSpareLog deviceSpareLog = new DeviceSpareLog(deviceSpareId, operationType, operationDetail, createTime); |
| | | mapper.insert(deviceSpareLog); |
| | | } |
| | | |
| | | public Response<List<DeviceSpareLog>> getList(int deviceSpareId) { |
| | | QueryWrapper<DeviceSpareLog> query = Wrappers.query(); |
| | | query.eq("device_spare_id",deviceSpareId); |