@@ -0,0 +1,1289 @@
+package selling.sunshine.controller;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.validation.BindingResult;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0Aimport org.springframework.web.servlet.ModelAndView;%0Aimport selling.sunshine.form.TimeRangeForm;%0Aimport selling.sunshine.utils.ResponseCode;%0Aimport selling.sunshine.utils.ResultData;%0A%0Aimport javax.validation.Valid;%0A%0A/**%0A * Created by sunshine on 7/13/16.%0A */%0A@RequestMapping(%22/deliver%22)%0A@RestController%0Apublic class DeliverController %7B%0A    private Logger logger = LoggerFactory.getLogger(DeliverController.class);%0A%0A    @RequestMapping(method = RequestMethod.GET, value = %22/overview%22)%0A    public ModelAndView deliver() %7B%0A        ModelAndView view = new ModelAndView();%0A%0A        return view;%0A    %7D%0A%0A    @RequestMapping(method = RequestMethod.POST, value = %22/overview%22)%0A    public ResultData deliver(@Valid TimeRangeForm form, BindingResult result) %7B%0A        ResultData data = new ResultData();%0A        if (result.hasErrors()) %7B%0A            data.setResponseCode(ResponseCode.RESPONSE_ERROR);%0A            return data;%0A        %7D%0A        return data;%0A    %7D%0A%7D%0A

add deliver controller