chaoshimavcen.rar


北大青鸟 SSM 和maven总结的超市订单管理项目
资源截图
代码片段和文件信息
package com.liaojie.controller;

import com.alibaba.fastjson.JSONArray;
import com.liaojie.entity.Bill;
import com.liaojie.entity.Provider;
import com.liaojie.entity.Role;
import com.liaojie.entity.User;
import com.liaojie.service.bill.BillService;
import com.liaojie.service.provider.ProviderService;
import com.liaojie.tools.Constants;
import com.liaojie.tools.PageSupport;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Controller
@RequestMapping(“/bill“)
public class BillController {

    //定义这两个表的service好调用方法
    @Resource
    private BillService billService;

    @Resource
    private ProviderService providerService;

    /**
     * 显示所有订单表
     * @param model
     * @param queryProductName
     * @param queryProviderId
     * @param pageIndex
     * @return
     */
    @RequestMapping(value = “/list.html“)
    public String getUserList(Model model
                              @RequestParam(value = “queryProductName“ required = false) String queryProductName
                              @RequestParam(value = “queryProviderId“ required = false) String queryProviderId
                              @RequestParam(value = “pageIndex“ required = false) String pageIndex) {

        int _queryProviderId = 0;
        ListbillList=null;
        //设置页面容量
        int pageSize = Constants.pageSize;
        //当前页码
        int currentPageNo = 1;

        //判断传入进入来的值是否为空
        if (queryProductName==null){
         queryProductName=““;
        }
        //如果传进来的两个参数都为空则赋值并为queryProviderId转入int类型
        if (queryProviderId!=null && !queryProviderId.equals(““)){
            _queryProviderId=Integer.parseInt(queryProviderId);
        }

        if (pageIndex != null) {
            currentPageNo = Integer.valueOf(pageIndex);
        }

        //总数量(表)
        int totalCount =billService.getBIllCount(queryProductName_queryProviderId);

        //总页数
        PageSupport pages = new PageSupport();
        pages.setCurrentPageNo(currentPageNo);
        pages.setPageSize(pageSize);
        pages.setTotalCount(totalCount);
        int totalPageCount = pages.getTotalPageCount();

        //控制首页和尾页
        if (currentPageNo < 1) {
            currentPageNo = 1;
        } else if (currentPageNo > totalPageCount) {
            currentPageNo = totalPageCount;
        }

        billList=billService.getBillList(queryProductName_queryProviderIdcurrentPageNopageSize);
        model.addAttribute(“billList“ billList);
        List prov

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

     文件         42  2019-11-01 14:32  chaoshimavcen.gitCOMMIT_EDITMSG

     文件        305  2019-11-01 14:33  chaoshimavcen.gitconfig

     文件         73  2019-11-01 14:31  chaoshimavcen.gitdescription

     文件         23  2019-11-01 14:31  chaoshimavcen.gitHEAD

     文件        478  2019-11-01 14:31  chaoshimavcen.githooksapplypatch-msg.sample

     文件        896  2019-11-01 14:31  chaoshimavcen.githookscommit-msg.sample

     文件       3327  2019-11-01 14:31  chaoshimavcen.githooksfsmonitor-watchman.sample

     文件        189  2019-11-01 14:31  chaoshimavcen.githookspost-update.sample

     文件        424  2019-11-01 14:31  chaoshimavcen.githookspre-applypatch.sample

     文件       1638  2019-11-01 14:31  chaoshimavcen.githookspre-commit.sample

     文件       1348  2019-11-01 14:31  chaoshimavcen.githookspre-push.sample

     文件       4898  2019-11-01 14:31  chaoshimavcen.githookspre-rebase.sample

     文件        544  2019-11-01 14:31  chaoshimavcen.githookspre-receive.sample

     文件       1492  2019-11-01 14:31  chaoshimavcen.githooksprepare-commit-msg.sample

     文件       3610  2019-11-01 14:31  chaoshimavcen.githooksupdate.sample

     文件      36859  2019-11-02 08:34  chaoshimavcen.gitindex

     文件        240  2019-11-01 14:31  chaoshimavcen.gitinfoexclude

     文件        187  2019-11-01 14:32  chaoshimavcen.gitlogsHEAD

     文件        187  2019-11-01 14:32  chaoshimavcen.gitlogs
efsheadsmaster

     文件        142  2019-11-01 14:33  chaoshimavcen.gitlogs
efs
emotesoriginmaster

     文件        632  2019-11-01 14:31  chaoshimavcen.gitobjects4466fc3162341a6b8cb9a884d641fe5b40b5930

     文件       1366  2019-11-01 14:31  chaoshimavcen.gitobjects53205d8201a3a59fb9870c6a4743fc3efd305fa

     文件       2813  2019-11-01 14:31  chaoshimavcen.gitobjects7e1441a8777b97192b0dad7c37d779dcbf1bc8d

     文件        549  2019-11-01 14:31  chaoshimavcen.gitobjectsbf551f0658a1a04b63a72d1e78b11ebcbe220bc

     文件        498  2019-11-01 14:31  chaoshimavcen.gitobjectscc58fa5d5c5ee427ec51181870db5e05a2ef176

     文件        149  2019-11-01 14:32  chaoshimavcen.gitobjectseccb8f0fd7a168d71a035669e2730c8f9cb9702

     文件        330  2019-11-01 14:31  chaoshimavcen.gitobjectsf3d27ad1b6fde12849875dd8aafd10f06866259

     文件     369712  2019-11-01 14:31  chaoshimavcen.gitobjectsfd275e94660402f80f01505d28b90a23f7e0209

     文件     177959  2019-11-01 14:31  chaoshimavcen.gitobjects11d1992b2444bfd024a126a931075793a8977a8a

     文件      51680  2019-11-01 14:31  chaoshimavcen.gitobjects131f1924e043df8d10d65c8090508ea2193fd2cc

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)