BerthController.java 947 Bytes
package com.bsth.controller.berth;

import com.bsth.controller.BaseController;
import com.bsth.entity.berth.RegionBerth;
import com.bsth.service.berth.BerthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by panzhao on 2017/8/22.
 */
@RestController
@RequestMapping("/berth")
public class BerthController extends BaseController<RegionBerth, Integer> {

    @Autowired
    BerthService berthService;

/*    @RequestMapping(value = "real_change", method = RequestMethod.POST)
    public Map<String, Object> realChange(@RequestParam String s,@RequestParam String d){
        return null;//berthService.realChange(s, d);
    }*/

    @RequestMapping("max_order_no")
    public String maxOrderNo() {
        String rs = berthService.maxOrderNo();
        return rs==null?"0":rs;
    }
}