项目内层分为七层
我这里分为(beans,controller,dao,lib,service,test,util)这七层
仅展示(controller层)
(1)QiuChangController
import com.xszx.beans.Balance;
import com.xszx.beans.Ball;
import com.xszx.beans.JBall;
import com.xszx.beans.User;
import com.xszx.dao.UserDao;
import com.xszx.service.QiuChangService;
import com.xszx.service.impl.QiuChangServiceImpl;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
/**
* @author 亚麟
* @version 2019.3
* @data 11/7/2024 上午10:22
*/
public class QiuChangController {
QiuChangService qiuChangService=new QiuChangServiceImpl();
Scanner sc =new Scanner(System.in);
/**
* 用户界面
*/
public void userShow(User user){
System.out.println("===================================================================");
System.out.println("===[1]查看球场===[2]借用球场===[3]归还球场===[4]查看记录===[5]退出===");
System.out.println("===================================================================");
System.out.print(" 请选用您的操作编号: ");
int input=sc.nextInt();
switch (input){
case 1:
getBalllist(user);
userShow(user);
case 2:
userBall(user);
userShow(user);
case 4:
getJBalllist(
标签:输入输出,IDEA,System,beans,user,import,控制台,com,xszx
From: https://blog.csdn.net/weixin_65367734/article/details/140595768