停车车位信息优化输出

main
张梓瑞 5 months ago
parent cc086024c2
commit f5c2870a70

@ -1,16 +1,19 @@
package com.ssm.controller; package com.ssm.controller;
import com.ssm.entity.TingchequyuModel;
import com.ssm.entity.TingchexinxiModel; import com.ssm.entity.TingchexinxiModel;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
@RequestMapping("tingchexinxi") @RequestMapping("tingchexinxi")
public class TingchexinxiController { public class TingchexinxiController {
@RequestMapping("add") @RequestMapping("add")
public String test(TingchexinxiModel tingchexinxi) { public ModelAndView test(TingchexinxiModel tingchexinxi){
System.out.println("停车信息" + tingchexinxi.toString()); ModelAndView mv=new ModelAndView("showTingchexinxi");
return "showTingchexinxi"; mv.addObject("tingchexinxiInfo", tingchexinxi);
return mv;
} }
} }

@ -14,5 +14,13 @@
success success
<br> <br>
停车信息已在控制台输出! 停车信息已在控制台输出!
<br>
停车ID${tingchexinxiInfo.parkingId}
<br>
车牌号:${tingchexinxiInfo.licensePlate}
<br>
进入时间:${tingchexinxiInfo.entryTime}
<br>
离开时间:${tingchexinxiInfo.exitTime}
</body> </body>
</html> </html>

Loading…
Cancel
Save