target/classes/com/phms/controller/user/UserApplyController.java
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.phms.controller.user;
import com.phms.pojo.Appointment;
import com.phms.pojo.User;
import com.phms.service.AppointmentService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Date;
/**
* 用户预约
*/
@Controller("UserApplyController")
@RequestMapping("/user/apply")
public class UserApplyController {
@Autowired
private AppointmentService appointmentService;
private final Logger logger = LoggerFactory.getLogger(this.getClass());
/**
* 医生管理预约页面
* user/applyListDoctor.html
*/
@RequestMapping("/applyListDoctor")
public String applyListDoctor(Long petId, Model model) {
if (petId!=null){
model.addAttribute("petId", petId);
}
return "user/applyListDoctor";
}
/**
* 普通用户预约页面
* user/applyList.html
*/
@RequestMapping("/applyList")
public String applyList(Long petId, Model model) {
if (petId!=null){
model.addAttribute("petId", petId);
}
return "user/applyList";
}
/**
* 普通用户返回查询数据渲染表格
*/
@RequestMapping("/getAllByLimit")
@ResponseBody
public Object getAllByLimit(Appointment appointment) {
Subject subject = SecurityUtils.getSubject();
后面还有 92 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
