• 大小: 18MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-26
  • 语言: 数据库
  • 标签:

资源简介

超市订单系统,使用spring+springMVC+mybaits+第三方缓存ehcache+aop环绕增加+pagehelper分页技术

资源截图

代码片段和文件信息

package cn.smbms.controller;

import java.util.List;
import java.util.UUID;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;

import cn.smbms.dao.BillMapper;
import cn.smbms.dao.ProviderMapper;
import cn.smbms.pojo.Bill;
import cn.smbms.pojo.Provider;
import cn.smbms.pojo.User;
import cn.smbms.tools.Constants;

@Controller
@RequestMapping(“/bill“)
public class BillController {
@Autowired(required = false)
private BillMapper billMapper;
@Autowired(required = false)
private ProviderMapper providerMapper;

@RequestMapping(value = “/bill.do“)
public String BillDo(
@RequestParam(value = “method“ required = false) String method
Model model
HttpSession session
@RequestParam(value = “queryProductName“ required = false) String queryProductName
@RequestParam(value = “queryProviderId“ required = false) String queryProviderId
@RequestParam(value = “queryIsPayment“ required = false) String queryIsPayment
@RequestParam(value = “billid“ required = false) String billid
@RequestParam(value = “billCode“ required = false) String billCode
@RequestParam(value = “productName“ required = false) String productName
@RequestParam(value = “productUnit“ required = false) String productUnit
@RequestParam(value = “productCount“ required = false) String productCount
@RequestParam(value = “totalPrice“ required = false) String totalPrice
@RequestParam(value = “providerId“ required = false) String providerId
@RequestParam(value = “isPayment“ required = false) String isPayment) {
object admin = session.getAttribute(Constants.USER_SESSION);
User login = (User) admin;
switch (method) {
case “query“:
List billList = null;
if (queryProductName == null && queryProviderId == null
&& queryIsPayment == null) {
billList = this.billMapper.getBillList();
} else {
billList = this.billMapper.getBillListByProNameOrProId(
queryProductName.trim() queryProviderId.trim()
queryIsPayment.trim());
model.addAttribute(“queryProductName“ queryProductName);
model.addAttribute(“queryProviderId“ queryProviderId);
model.addAttribute(“queryIsPayment“ queryIsPayment);
}
model.addAttribute(“billList“ billList);
List providerList = this.providerMapper.getProviderList();
model.addAttribute(“providerList“ providerList);
return “billlist“;
case “view“:
//System.out.println(“BillDo===========view“);
Bill bill = this.billMapper.getBillById(Integer.valueOf(billid));
//System.out.println(“BillDo===========view“ + bill);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1959  2018-05-12 08:59  北大青鸟Y2之超市订单系统\Mybatis11\.classpath

     文件       1258  2018-04-25 08:48  北大青鸟Y2之超市订单系统\Mybatis11\.project

     文件        503  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\.settings\.jsdtscope

     文件        566  2018-05-11 11:02  北大青鸟Y2之超市订单系统\Mybatis11\.settings\com.genuitec.eclipse.core.prefs

     文件        364  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\.settings\org.eclipse.jdt.core.prefs

     文件        550  2018-05-10 17:11  北大青鸟Y2之超市订单系统\Mybatis11\.settings\org.eclipse.wst.common.component

     文件        352  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件     610790  2018-05-01 21:02  北大青鸟Y2之超市订单系统\Mybatis11\lib\c3p0-0.9.1.2.jar

     文件      70604  2018-05-12 08:33  北大青鸟Y2之超市订单系统\Mybatis11\lib\commons-fileupload-1.3.3.jar

     文件     214788  2018-05-12 08:32  北大青鸟Y2之超市订单系统\Mybatis11\lib\commons-io-2.6.jar

     文件     279193  2018-05-12 08:59  北大青鸟Y2之超市订单系统\Mybatis11\lib\commons-lang-2.5.jar

     文件     385091  2018-05-12 08:56  北大青鸟Y2之超市订单系统\Mybatis11\lib\commons-lang3-3.2.1.jar

     文件    1347353  2018-04-29 07:36  北大青鸟Y2之超市订单系统\Mybatis11\lib\ehcache-core-2.6.8.jar

     文件    1130724  2018-05-03 10:44  北大青鸟Y2之超市订单系统\Mybatis11\lib\hibernate-validator-6.0.9.Final.jar

     文件      66469  2018-05-03 10:44  北大青鸟Y2之超市订单系统\Mybatis11\lib\jboss-logging-3.3.2.Final.jar

     文件     321537  2018-05-01 20:51  北大青鸟Y2之超市订单系统\Mybatis11\lib\jsqlparser-0.9.5.jar

     文件     581295  2018-05-01 21:19  北大青鸟Y2之超市订单系统\Mybatis11\lib\mchange-commons-java-0.2.3.4.jar

     文件      11088  2018-04-29 07:36  北大青鸟Y2之超市订单系统\Mybatis11\lib\mybatis-ehcache-1.0.3.jar

     文件      63436  2018-05-01 20:51  北大青鸟Y2之超市订单系统\Mybatis11\lib\pagehelper-5.0.0-rc.jar

     文件      25496  2018-04-29 07:36  北大青鸟Y2之超市订单系统\Mybatis11\lib\slf4j-api-1.6.1.jar

     文件       9752  2018-04-29 07:36  北大青鸟Y2之超市订单系统\Mybatis11\lib\slf4j-log4j12-1.6.2.jar

     文件      93107  2018-05-03 10:44  北大青鸟Y2之超市订单系统\Mybatis11\lib\validation-api-2.0.1.Final.jar

     文件       1138  2018-04-25 08:47  北大青鸟Y2之超市订单系统\Mybatis11\resources\applicationContext-jdbc.xml

     文件       3845  2018-05-11 15:30  北大青鸟Y2之超市订单系统\Mybatis11\resources\applicationContext.xml

     文件      14062  2018-05-02 17:06  北大青鸟Y2之超市订单系统\Mybatis11\resources\cn\smbms\dao\AddressMapper.xml

     文件      18244  2018-05-10 15:30  北大青鸟Y2之超市订单系统\Mybatis11\resources\cn\smbms\dao\BillMapper.xml

     文件      15033  2018-05-10 09:02  北大青鸟Y2之超市订单系统\Mybatis11\resources\cn\smbms\dao\ProviderMapper.xml

     文件      13113  2018-05-02 17:06  北大青鸟Y2之超市订单系统\Mybatis11\resources\cn\smbms\dao\RoleMapper.xml

............此处省略334个文件信息

评论

共有 条评论

相关资源