①在对应的Service里写方法名(前面注释写下面方法的用途)
②在Implement里实现上诉方法,具体实现:
@Override public BigDecimal returnTotalMoneyByTableId(int tableId) throws SSException { //定义并初始化返回总金额 BigDecimal totalMoney = new BigDecimal(0); //定义一个TableOrderCache对象(里面有个属性,包含所有菜品名) TableOrderCache tableOrderCache = new TableOrderCache()