资源简介

在空气质量管理系统 Maven+ssm+前后端分离
对应的介绍
https://www.cnblogs.com/jsccc520/p/11976748.html

资源截图

代码片段和文件信息

package monster._52cc.controller;
import java.util.HashMap;
import java.util.Map;

import monster._52cc.pojo.AirQualityIndex;
import monster._52cc.service.AirQualityIndexService;
import monster._52cc.service.DistrictService;
import monster._52cc.util.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: Kh75
 * @BelongsPackage: monster._52cc.controller
 * @Author: 金聖聰
 * @CreateTime: 2019-11-29 17:52
 * @Description: TODO
 */
@RestController
public class CenterControllerOfAir{
    @Autowired
    private AirQualityIndexService airQualityIndexService;
    @Autowired
    private DistrictService districtService;

    @RequestMapping(“/deleteByPrimaryKey.do“)
    public int deleteByPrimaryKey(Integer id) {
        return airQualityIndexService.deleteByPrimaryKey(id);
    }

    @RequestMapping(“/insert.do“)
    public int insert(AirQualityIndex airQualityIndex) {
        if(airQualityIndex.getDistrictId()==-1 || airQualityIndex.getMonitoringStation()==null || airQualityIndex.getMonitorTime()==null || airQualityIndex.getPm2_5()==null || airQualityIndex.getPm10()==null){
            return 0;
        }
        return airQualityIndexService.insert(airQualityIndex);
    }

    @RequestMapping(“/updateByPrimaryKey.do“)
    public int updateByPrimaryKey(AirQualityIndex airQualityIndex) {
        if(airQualityIndex.getDistrictId()==-1 || airQualityIndex.getMonitoringStation()==null || ““.equals(airQualityIndex.getMonitoringStation().trim()) || airQualityIndex.getMonitorTime()==null || airQualityIndex.getPm2_5()==null || airQualityIndex.getPm10()==null){
            return 0;
        }
        return airQualityIndexService.updateByPrimaryKey(airQualityIndex);
    }

    @RequestMapping(“/selectByPrimaryKey.do“)
    public Mapject> selectByPrimaryKey(PageUtils pageUtils) {
        Mapject> map = new HashMap<>(16);
        Listject>> airQualityIndexList = airQualityIndexService.selectByPrimaryKey(pageUtils);
        map.put(“airQualityIndexList“airQualityIndexList);
        map.put(“pageUtils“pageUtils);
        return map;
    }

    @RequestMapping(“/showAllDistrict.do“)
    public Listject>> showAllDistrict() {
        return districtService.showAllDistrict();
    }

    @RequestMapping(“/info.do“)
    public Mapject> info(PageUtils pageUtils) {
        Mapject> map = new HashMap<>(16);
        map.put(“airQualityIndex“airQualityIndexService.selectByPrimaryKey(pageUtils).get(0));
        map.put(“optionData“districtService.showAllDistrict());
        return map;
    }
}

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

     文件       4878  2019-11-29 16:55  air_quality\air_quality.iml

     文件       8511  2019-11-29 16:49  air_quality\pom.xml

     文件       2781  2019-11-30 11:47  air_quality\src\main\java\monster\_52cc\controller\CenterControllerOfAir.java

     文件       2105  2019-11-30 10:19  air_quality\src\main\java\monster\_52cc\mapper\AirQualityIndexMapper.java

     文件        257  2019-11-29 19:13  air_quality\src\main\java\monster\_52cc\mapper\DistrictMapper.java

     文件        777  2019-11-29 19:09  air_quality\src\main\java\monster\_52cc\pojo\AirQualityIndex.java

     文件        312  2019-11-29 17:06  air_quality\src\main\java\monster\_52cc\pojo\District.java

     文件        575  2019-11-29 17:50  air_quality\src\main\java\monster\_52cc\service\AirQualityIndexService.java

     文件        316  2019-11-29 17:44  air_quality\src\main\java\monster\_52cc\service\DistrictService.java

     文件       2651  2019-11-30 12:11  air_quality\src\main\java\monster\_52cc\service\impl\AirQualityIndexServiceImpl.java

     文件        731  2019-11-29 17:50  air_quality\src\main\java\monster\_52cc\service\impl\DistrictServiceImpl.java

     文件       2010  2019-12-03 14:17  air_quality\src\main\java\monster\_52cc\util\PageUtils.java

     文件       1326  2019-11-30 00:07  air_quality\src\main\webapp\add.html

     文件       1361  2019-11-30 10:48  air_quality\src\main\webapp\edit.html

     文件        577  2019-12-03 14:39  air_quality\src\main\webapp\js\add.js

     文件        131  2019-11-30 00:07  air_quality\src\main\webapp\js\backButton.js

     文件       2554  2019-12-03 14:37  air_quality\src\main\webapp\js\edit.js

     文件        641  2019-11-29 23:30  air_quality\src\main\webapp\js\initOptionSel.js

     文件      95931  2014-12-21 20:37  air_quality\src\main\webapp\js\jquery-1.11.2.min.js

     文件       4745  2019-11-30 09:54  air_quality\src\main\webapp\js\list.js

     文件       1105  2019-11-29 23:30  air_quality\src\main\webapp\list.html

     文件       2985  2019-12-03 14:13  air_quality\src\main\webapp\WEB-INF\springMVC-servlet.xml

     文件       1058  2019-11-29 16:53  air_quality\src\main\webapp\WEB-INF\web.xml

     文件       1326  2019-11-30 00:07  air_quality\target\air_quality\add.html

     文件       1361  2019-11-30 10:48  air_quality\target\air_quality\edit.html

     文件        577  2019-11-30 10:57  air_quality\target\air_quality\js\add.js

     文件        131  2019-11-30 00:07  air_quality\target\air_quality\js\backButton.js

     文件       2556  2019-11-30 11:13  air_quality\target\air_quality\js\edit.js

     文件        641  2019-11-29 23:30  air_quality\target\air_quality\js\initOptionSel.js

     文件      95931  2014-12-21 20:37  air_quality\target\air_quality\js\jquery-1.11.2.min.js

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

评论

共有 条评论