• 大小: 14.9MB
    文件类型: .zip
    金币: 2
    下载: 4 次
    发布日期: 2023-08-06
  • 语言: 数据库
  • 标签: weixin  java  

资源简介

微信小程序开发仿智行火车票12306,含后台和数据库 采用ssm+mysql设计,能查询到火车票信息

资源截图

代码片段和文件信息

package com.control;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pojo.TrainTicket;
import com.service.TrainService;

@Controller
public class TrainControl {
@Resource(name = “trainService“)
private TrainService trainService;

@RequestMapping(“/trainTicket“)
@ResponseBody
public String TrainTicket(String id) {

System.out.println(id);
    TrainTicket orderTicket = trainService.findById(id);
    System.out.println(orderTicket);
    
    trainService.insert(orderTicket);
  

return “订单预购成功“;
}

@RequestMapping(“/trains“)
@ResponseBody
public List Train(TrainTicket trainTicket
String startStation String endStation HttpServletResponse response) {

System.out.println(trainTicket);
System.out.println(startStation + “:“ + endStation);
System.out.println(“连接数据库成功“);
List findTrain = trainService.findTrain(
startStation endStation);
System.out.println(findTrain);
for (TrainTicket trainTicket2 : findTrain) {
System.out.println(trainTicket2);
}
return findTrain;
}


@RequestMapping(“/orderTicket“)
@ResponseBody
public List orderTicket() {
  List orderTicket = trainService.findAll();
System.out.println(orderTicket);



return orderTicket;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-08-08 09:05  微信智行火车票\
     文件        1219  2019-08-08 09:05  微信智行火车票\orders.sql
     文件        5594  2019-08-08 09:05  微信智行火车票\train.sql
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\
     文件         834  2019-06-17 19:57  微信智行火车票\trainpro\.classpath
     文件        1041  2019-06-17 19:57  微信智行火车票\trainpro\.project
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\.settings\
     文件         503  2019-06-17 19:57  微信智行火车票\trainpro\.settings\.jsdtscope
     文件         364  2019-06-17 19:57  微信智行火车票\trainpro\.settings\org.eclipse.jdt.core.prefs
     文件         476  2019-06-17 19:57  微信智行火车票\trainpro\.settings\org.eclipse.wst.common.component
     文件         345  2019-06-17 19:57  微信智行火车票\trainpro\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-06-17 19:57  微信智行火车票\trainpro\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-06-17 19:57  微信智行火车票\trainpro\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\
     文件        3138  2019-06-19 08:18  微信智行火车票\trainpro\build\classes\bean.xml
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\com\
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\com\control\
     文件        2900  2019-06-23 08:36  微信智行火车票\trainpro\build\classes\com\control\TrainControl.class
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\com\dao\
     文件         628  2019-06-23 08:36  微信智行火车票\trainpro\build\classes\com\dao\TrainDao.class
     文件         811  2019-06-21 11:15  微信智行火车票\trainpro\build\classes\com\dao\TrainDao.xml
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\com\pojo\
     文件        3586  2019-06-23 08:36  微信智行火车票\trainpro\build\classes\com\pojo\TrainTicket.class
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\build\classes\com\service\
     文件        1339  2019-06-23 08:36  微信智行火车票\trainpro\build\classes\com\service\TrainService.class
     目录           0  2019-06-23 08:36  微信智行火车票\trainpro\build\classes\com\utils\
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\src\
     文件        3138  2019-06-19 08:18  微信智行火车票\trainpro\src\bean.xml
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\src\com\
     目录           0  2019-08-08 09:03  微信智行火车票\trainpro\src\com\control\
............此处省略218个文件信息

评论

共有 条评论