停车车位信息优化输出

main
张梓瑞 5 months ago
parent cc086024c2
commit f5c2870a70

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

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

Loading…
Cancel
Save