|
|
|
|
@ -7,6 +7,8 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
import com.cjy.reservation.utils.IDCardUtils; |
|
|
|
|
import com.cjy.reservationdata.domain.vo.SynchronousWriteOffDataVO; |
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser; |
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils; |
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
@ -50,22 +52,23 @@ public class AppointmentCenterDataController extends BaseController |
|
|
|
|
{ |
|
|
|
|
startPage(); |
|
|
|
|
appointmentCenterData.setOrganCode(getUserOrganCode()); |
|
|
|
|
List<AppointmentCenterData> list = appointmentCenterDataService.selectAppointmentCenterDataList(appointmentCenterData); |
|
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser(); |
|
|
|
|
List<AppointmentCenterData> list = appointmentCenterDataService.selectAppointmentCenterDataList(appointmentCenterData,user); |
|
|
|
|
return getDataTable(list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 导出预约记录列表 |
|
|
|
|
*/ |
|
|
|
|
@PreAuthorize("@ss.hasPermi('reservationdata:appointmentrecord:export')") |
|
|
|
|
@Log(title = "预约记录", businessType = BusinessType.EXPORT) |
|
|
|
|
@PostMapping("/export") |
|
|
|
|
public void export(HttpServletResponse response, AppointmentCenterData appointmentCenterData) |
|
|
|
|
{ |
|
|
|
|
List<AppointmentCenterData> list = appointmentCenterDataService.selectAppointmentCenterDataList(appointmentCenterData); |
|
|
|
|
ExcelUtil<AppointmentCenterData> util = new ExcelUtil<AppointmentCenterData>(AppointmentCenterData.class); |
|
|
|
|
util.exportExcel(response, list, "预约记录数据"); |
|
|
|
|
} |
|
|
|
|
// @PreAuthorize("@ss.hasPermi('reservationdata:appointmentrecord:export')")
|
|
|
|
|
// @Log(title = "预约记录", businessType = BusinessType.EXPORT)
|
|
|
|
|
// @PostMapping("/export")
|
|
|
|
|
// public void export(HttpServletResponse response, AppointmentCenterData appointmentCenterData)
|
|
|
|
|
// {
|
|
|
|
|
// List<AppointmentCenterData> list = appointmentCenterDataService.selectAppointmentCenterDataList(appointmentCenterData);
|
|
|
|
|
// ExcelUtil<AppointmentCenterData> util = new ExcelUtil<AppointmentCenterData>(AppointmentCenterData.class);
|
|
|
|
|
// util.exportExcel(response, list, "预约记录数据");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取预约记录详细信息 |
|
|
|
|
|