|
|
@ -25,6 +25,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.jeecg.modules.demo.instrument.entity.Instrument; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.instrument.service.IInstrumentService; |
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
|
import org.jeecgframework.poi.excel.entity.ExportParams; |
|
|
|
import org.jeecgframework.poi.excel.entity.ExportParams; |
|
|
@ -55,6 +57,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
public class AppointmentRecordController extends JeecgController<AppointmentRecord, IAppointmentRecordService> { |
|
|
|
public class AppointmentRecordController extends JeecgController<AppointmentRecord, IAppointmentRecordService> { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private IAppointmentRecordService appointmentRecordService; |
|
|
|
private IAppointmentRecordService appointmentRecordService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IInstrumentService instrumentService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 分页列表查询 |
|
|
|
* 分页列表查询 |
|
|
@ -240,6 +244,9 @@ public class AppointmentRecordController extends JeecgController<AppointmentReco |
|
|
|
} |
|
|
|
} |
|
|
|
appointmentRecord.setStatus("3"); |
|
|
|
appointmentRecord.setStatus("3"); |
|
|
|
appointmentRecordService.updateById(appointmentRecord); |
|
|
|
appointmentRecordService.updateById(appointmentRecord); |
|
|
|
|
|
|
|
Instrument instrument = instrumentService.getById(appointmentRecord.getInstrumentId()); |
|
|
|
|
|
|
|
instrument.setServiceFrequency(instrument.getServiceFrequency()+1); |
|
|
|
|
|
|
|
instrumentService.updateById(instrument); |
|
|
|
return Result.OK("预约结束!"); |
|
|
|
return Result.OK("预约结束!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|