类图
2019-10-21 11:38:56 69 举报
java类图
作者其他创作
大纲/内容
Staff
- staffId:int- username:String- password:String- name:String- salary:int- phoneNum:String- work:String- username:String- password:String- userId:int;
+ getStaffrId():int+ setStaffId(int staffId):void+ getName():String+ setName(String name):void+ getSalary():int+ setSalary(int salary):void+ getPhoneNum():String+ setPhoneNum(String phoneNum):void+ getWork():String+ setWork(String work):void+ getUsername():String+ setUsername(String username):void+ getPassword():String+ setPassword(String password):void+ getUserId():int+ setUserId(int userId):void
UserMapper
+ save(User user):int+ update(User user):int+ delete(int id):void+ findById(int id):User+ findAll():List+ login(User user):User+ checkUsername(String username):String+ checkPassword(String password):Object+ addStaff(User user):void
roomController
- roomService:RoomService
Order
- orderId:int- checkinDate:String- checkoutDate:String- price:int- personNum:int- linkmanName:String- phoneNum:String- status:String- roomType:String- roomNum:String- person1Name:String- person1IdNum:String- person2Name:String- person2IdNum:String- inDate:Date- outDate:Date
+ getOrderId():int+ setOrderId(int orderId):void+ getCheckinDate():String+ setCheckinDate(String checkinDate):void+ getCheckoutDate():String+ setCheckoutDate(String checkoutDate):void+ getPrice():int+ setPrice(int price):void+ getPersonNum():int+ setPersonNum(int personNum):void+ getLinkmanName():String+ setLinkmanName(String linkmanName):void+ getPhoneNun():String+ setPhoneNum(String phoneNum):void+ getStatus():String+ setStatus(String status):void+ getRoomType():String+ setRoomType(String roomType):void+ getRoomNum():String+ setRoomNum(String roomNum):void+ getPerson1Name():String+ setPerson1Name(String person1Name):void+ getPerson1IdNum():String+ setPerson1IdNum(String person1IdNum):void+ getPerson2Name():String+ setPerson2Name(String person2Name):void+ getPerson2IdNum():String+ setPerson2IdNum(String person2IdNum):void+ getInDate():Date+ setInDate(Date inDate):void+ getOutDate():Date+ setOutDate(Date outDate):void
OrderMapper
OrderService
userController
- userService:UserService
+ getUser(Integer id):User
OrderServiceImpl
- orderDao:OrderMapper
RoomServiceImpl
- roomDao:RoomMapper
orderController
- orderService:OrderService
UserService
User
- id:int- username:String- password:String- role:String
+ getId():int+ setId(int id):void+ getUsername():String+ setUsername(String username):void+ getPassword():String+ setPassword(String password):void+ getRole():String+ setRole(String role):void
UserServiceImpl
- userDao:UserMapper
Room
- roomId:int- roomNum:String- roomType:String- price:int- floor:int- photoPath:String
+ getRoomId():int+ setRoomId(int roomId):int+ getRoomNum():String+ setRoomNum(String roomNum):void+ getRoomType():String+ setRoomType(String roomType):void+ getPrice():int+ setPrice(int price ):void+ getFloor():int+ setFloor(int floor):void+ getPhotoPath():String+ setPhotoPath(String photoPath):void
StaffMapper
+ findStaffById(int id):Staff+ findStaffByName(String staffName):List+ findStaffByWork(String work):List+ findStaffBySalary(int s):List+ findStaffByPhoneNum(String staffPhoneNum):List+ findAll():List+ delete(int id):void+ getUserId(int id):int+ modifyStaffInfo(Staff staff):voide+ addStaff(Staff staff):void
RoomMapper
signController
StaffServiceImpl
- staffDao:StaffMapper
+ findStaffById(int id):Staff+ findStaffByName(String staffName):List+ findStaffByWork(String work):List+ findStaffBySalary(int s):List+ findStaffByPhoneNum(String staffPhoneNum):List+ findAll():List+ delete(int id):void+ getUserId(int id):int+ modifyStaffInfo(Staff staff):void+ addStaff(Staff staff):void
RoomService
StaffController
- staffService:StaffService- userService:UserService
Manager
- managerId:int- username:String- password:String- name:String- salary:int- phoneNum:String- username:String- password:String- userId:int;
+ getManagerId():int+ setManagerId(int managerId):void+ getName():String+ setName(String name):void+ getSalary():int+ setSalary(int salary):void+ getPhoneNum():String+ setPhoneNum(String phoneNum):void+ getUsername():String+ setUsername(String username):void+ getPassword():String+ setPassword(String password):void+ getUserId():int+ setUserId(int userId):void
StaffService
收藏
0 条评论
下一页