基础模块、计算结果配置
This commit is contained in:
parent
d5bb75d7df
commit
425a9ccca8
|
@ -99,7 +99,7 @@ public class ShiroConfig {
|
|||
filterChainDefinitionMap.put("/sys/checkAuth", "anon"); //授权接口排除
|
||||
|
||||
|
||||
filterChainDefinitionMap.put("/**/*", "anon");
|
||||
// filterChainDefinitionMap.put("/**/*", "anon");
|
||||
filterChainDefinitionMap.put("/", "anon");
|
||||
filterChainDefinitionMap.put("/doc.html", "anon");
|
||||
filterChainDefinitionMap.put("/**/*.js", "anon");
|
||||
|
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.entity.BizCityAim;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.service.IBizCityAimService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 城市目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="城市目标表")
|
||||
@RestController
|
||||
@RequestMapping("/bizCityAim/bizCityAim")
|
||||
@Slf4j
|
||||
public class BizCityAimController extends JeecgController<BizCityAim, IBizCityAimService> {
|
||||
@Autowired
|
||||
private IBizCityAimService bizCityAimService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizCityAim
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "城市目标表-分页列表查询")
|
||||
@ApiOperation(value="城市目标表-分页列表查询", notes="城市目标表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizCityAim>> queryPageList(BizCityAim bizCityAim,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizCityAim> queryWrapper = QueryGenerator.initQueryWrapper(bizCityAim, req.getParameterMap());
|
||||
Page<BizCityAim> page = new Page<BizCityAim>(pageNo, pageSize);
|
||||
IPage<BizCityAim> pageList = bizCityAimService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizCityAim
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "城市目标表-添加")
|
||||
@ApiOperation(value="城市目标表-添加", notes="城市目标表-添加")
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizCityAim bizCityAim) {
|
||||
bizCityAimService.save(bizCityAim);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizCityAim
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "城市目标表-编辑")
|
||||
@ApiOperation(value="城市目标表-编辑", notes="城市目标表-编辑")
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizCityAim bizCityAim) {
|
||||
bizCityAimService.updateById(bizCityAim);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "城市目标表-通过id删除")
|
||||
@ApiOperation(value="城市目标表-通过id删除", notes="城市目标表-通过id删除")
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizCityAimService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "城市目标表-批量删除")
|
||||
@ApiOperation(value="城市目标表-批量删除", notes="城市目标表-批量删除")
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizCityAimService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "城市目标表-通过id查询")
|
||||
@ApiOperation(value="城市目标表-通过id查询", notes="城市目标表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizCityAim> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizCityAim bizCityAim = bizCityAimService.getById(id);
|
||||
if(bizCityAim==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizCityAim);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizCityAim
|
||||
*/
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizCityAim bizCityAim) {
|
||||
return super.exportXls(request, bizCityAim, BizCityAim.class, "城市目标表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizCityAim:biz_city_aim:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizCityAim.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 城市目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_city_aim")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_city_aim对象", description="城市目标表")
|
||||
public class BizCityAim implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**城市名称*/
|
||||
@Excel(name = "城市名称", width = 15)
|
||||
@ApiModelProperty(value = "城市名称")
|
||||
private String cityName;
|
||||
/**行政区*/
|
||||
@Excel(name = "行政区", width = 15)
|
||||
@ApiModelProperty(value = "行政区")
|
||||
private String district;
|
||||
/**经度*/
|
||||
@Excel(name = "经度", width = 15)
|
||||
@ApiModelProperty(value = "经度")
|
||||
private Double cityLon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double cityLat;
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.entity.BizCityAim;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 城市目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizCityAimMapper extends BaseMapper<BizCityAim> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.mapper.BizCityAimMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.entity.BizCityAim;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 城市目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizCityAimService extends IService<BizCityAim> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.entity.BizCityAim;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.mapper.BizCityAimMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizCityAim.service.IBizCityAimService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 城市目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizCityAimServiceImpl extends ServiceImpl<BizCityAimMapper, BizCityAim> implements IBizCityAimService {
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.entity.BizFacilityAim;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.service.IBizFacilityAimService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 设施目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="设施目标表")
|
||||
@RestController
|
||||
@RequestMapping("/bizFacilityAim/bizFacilityAim")
|
||||
@Slf4j
|
||||
public class BizFacilityAimController extends JeecgController<BizFacilityAim, IBizFacilityAimService> {
|
||||
@Autowired
|
||||
private IBizFacilityAimService bizFacilityAimService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizFacilityAim
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "设施目标表-分页列表查询")
|
||||
@ApiOperation(value="设施目标表-分页列表查询", notes="设施目标表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizFacilityAim>> queryPageList(BizFacilityAim bizFacilityAim,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizFacilityAim> queryWrapper = QueryGenerator.initQueryWrapper(bizFacilityAim, req.getParameterMap());
|
||||
Page<BizFacilityAim> page = new Page<BizFacilityAim>(pageNo, pageSize);
|
||||
IPage<BizFacilityAim> pageList = bizFacilityAimService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizFacilityAim
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "设施目标表-添加")
|
||||
@ApiOperation(value="设施目标表-添加", notes="设施目标表-添加")
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizFacilityAim bizFacilityAim) {
|
||||
bizFacilityAimService.save(bizFacilityAim);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizFacilityAim
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "设施目标表-编辑")
|
||||
@ApiOperation(value="设施目标表-编辑", notes="设施目标表-编辑")
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizFacilityAim bizFacilityAim) {
|
||||
bizFacilityAimService.updateById(bizFacilityAim);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "设施目标表-通过id删除")
|
||||
@ApiOperation(value="设施目标表-通过id删除", notes="设施目标表-通过id删除")
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizFacilityAimService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "设施目标表-批量删除")
|
||||
@ApiOperation(value="设施目标表-批量删除", notes="设施目标表-批量删除")
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizFacilityAimService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "设施目标表-通过id查询")
|
||||
@ApiOperation(value="设施目标表-通过id查询", notes="设施目标表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizFacilityAim> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizFacilityAim bizFacilityAim = bizFacilityAimService.getById(id);
|
||||
if(bizFacilityAim==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizFacilityAim);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizFacilityAim
|
||||
*/
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizFacilityAim bizFacilityAim) {
|
||||
return super.exportXls(request, bizFacilityAim, BizFacilityAim.class, "设施目标表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizFacilityAim:biz_facility_aim:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizFacilityAim.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 设施目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_facility_aim")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_facility_aim对象", description="设施目标表")
|
||||
public class BizFacilityAim implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**设施名称*/
|
||||
@Excel(name = "设施名称", width = 15)
|
||||
@ApiModelProperty(value = "设施名称")
|
||||
private String facilityName;
|
||||
/**设施类型*/
|
||||
@Excel(name = "设施类型", width = 15)
|
||||
@ApiModelProperty(value = "设施类型")
|
||||
private String facilityType;
|
||||
/**设施地区*/
|
||||
@Excel(name = "设施地区", width = 15)
|
||||
@ApiModelProperty(value = "设施地区")
|
||||
private String facilityArea;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double facilityLon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double facilityLat;
|
||||
/**海拔*/
|
||||
@Excel(name = "海拔", width = 15)
|
||||
@ApiModelProperty(value = "海拔")
|
||||
private Double elevation;
|
||||
/**功率*/
|
||||
@Excel(name = "功率", width = 15)
|
||||
@ApiModelProperty(value = "功率")
|
||||
private Double power;
|
||||
/**运行状态*/
|
||||
@Excel(name = "运行状态", width = 15)
|
||||
@ApiModelProperty(value = "运行状态")
|
||||
private Integer runState;
|
||||
/**建造时间*/
|
||||
@Excel(name = "建造时间", width = 15)
|
||||
@ApiModelProperty(value = "建造时间")
|
||||
private String constructTime;
|
||||
/**建造机构*/
|
||||
@Excel(name = "建造机构", width = 15)
|
||||
@ApiModelProperty(value = "建造机构")
|
||||
private String constructUnit;
|
||||
/**运管机构*/
|
||||
@Excel(name = "运管机构", width = 15)
|
||||
@ApiModelProperty(value = "运管机构")
|
||||
private String operatingUnit;
|
||||
/**描述*/
|
||||
@Excel(name = "描述", width = 15)
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String description;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.entity.BizFacilityAim;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 设施目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizFacilityAimMapper extends BaseMapper<BizFacilityAim> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.mapper.BizFacilityAimMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.entity.BizFacilityAim;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 设施目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizFacilityAimService extends IService<BizFacilityAim> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.entity.BizFacilityAim;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.mapper.BizFacilityAimMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizAim.bizFacilityAim.service.IBizFacilityAimService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 设施目标表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizFacilityAimServiceImpl extends ServiceImpl<BizFacilityAimMapper, BizFacilityAim> implements IBizFacilityAimService {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.jeecg.modules.project.bizEngineering.controller;
|
||||
package org.jeecg.modules.project.baseConfig.bizEngineering.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import io.swagger.annotations.Api;
|
||||
|
@ -8,11 +8,8 @@ import org.apache.shiro.SecurityUtils;
|
|||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.common.util.RemoteExecuteCommand;
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.bizEngineering.service.IBizEngineeringService;
|
||||
import org.jeecg.modules.project.bizWrf.entity.BizWrf;
|
||||
import org.jeecg.modules.project.bizWrf.service.IBizWrfService;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.service.IBizEngineeringService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
|
@ -1,4 +1,4 @@
|
|||
package org.jeecg.modules.project.bizEngineering.entity;
|
||||
package org.jeecg.modules.project.baseConfig.bizEngineering.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
@ -1,8 +1,8 @@
|
|||
package org.jeecg.modules.project.bizEngineering.mapper;
|
||||
package org.jeecg.modules.project.baseConfig.bizEngineering.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.entity.BizEngineering;
|
||||
|
||||
/**
|
||||
* @Description: wrf
|
|
@ -1,7 +1,7 @@
|
|||
package org.jeecg.modules.project.bizEngineering.service;
|
||||
package org.jeecg.modules.project.baseConfig.bizEngineering.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.entity.BizEngineering;
|
||||
|
||||
public interface IBizEngineeringService extends IService<BizEngineering> {
|
||||
BizEngineering getBizEngineeringByState();
|
|
@ -1,13 +1,12 @@
|
|||
package org.jeecg.modules.project.bizEngineering.service.impl;
|
||||
package org.jeecg.modules.project.baseConfig.bizEngineering.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.bizEngineering.mapper.BizEngineeringMapper;
|
||||
import org.jeecg.modules.project.bizEngineering.service.IBizEngineeringService;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.mapper.BizEngineeringMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.service.IBizEngineeringService;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizNuclide.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.entity.BizNuclide;
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.service.IBizNuclideService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 核素模块
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="核素模块")
|
||||
@RestController
|
||||
@RequestMapping("/bizNuclide/bizNuclide")
|
||||
@Slf4j
|
||||
public class BizNuclideController extends JeecgController<BizNuclide, IBizNuclideService> {
|
||||
@Autowired
|
||||
private IBizNuclideService bizNuclideService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizNuclide
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核素模块-分页列表查询")
|
||||
@ApiOperation(value="核素模块-分页列表查询", notes="核素模块-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizNuclide>> queryPageList(BizNuclide bizNuclide,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizNuclide> queryWrapper = QueryGenerator.initQueryWrapper(bizNuclide, req.getParameterMap());
|
||||
Page<BizNuclide> page = new Page<BizNuclide>(pageNo, pageSize);
|
||||
IPage<BizNuclide> pageList = bizNuclideService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizNuclide
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核素模块-添加")
|
||||
@ApiOperation(value="核素模块-添加", notes="核素模块-添加")
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizNuclide bizNuclide) {
|
||||
bizNuclideService.save(bizNuclide);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizNuclide
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核素模块-编辑")
|
||||
@ApiOperation(value="核素模块-编辑", notes="核素模块-编辑")
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizNuclide bizNuclide) {
|
||||
bizNuclideService.updateById(bizNuclide);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核素模块-通过id删除")
|
||||
@ApiOperation(value="核素模块-通过id删除", notes="核素模块-通过id删除")
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizNuclideService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核素模块-批量删除")
|
||||
@ApiOperation(value="核素模块-批量删除", notes="核素模块-批量删除")
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizNuclideService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核素模块-通过id查询")
|
||||
@ApiOperation(value="核素模块-通过id查询", notes="核素模块-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizNuclide> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizNuclide bizNuclide = bizNuclideService.getById(id);
|
||||
if(bizNuclide==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizNuclide);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizNuclide
|
||||
*/
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizNuclide bizNuclide) {
|
||||
return super.exportXls(request, bizNuclide, BizNuclide.class, "核素模块");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizNuclide:biz_nuclide:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizNuclide.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizNuclide.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 核素模块
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_nuclide")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_nuclide对象", description="核素模块")
|
||||
public class BizNuclide implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**核素名称*/
|
||||
@Excel(name = "核素名称", width = 15)
|
||||
@ApiModelProperty(value = "核素名称")
|
||||
private String nuclideName;
|
||||
/**Conc.[mBq/m^3]*/
|
||||
@Excel(name = "Conc.[mBq/m^3]", width = 15)
|
||||
@ApiModelProperty(value = "Conc.[mBq/m^3]")
|
||||
private Double conc;
|
||||
/**Uncertainty*/
|
||||
@Excel(name = "Uncertainty", width = 15)
|
||||
@ApiModelProperty(value = "Uncertainty")
|
||||
private Double uncertainty;
|
||||
/**MDC[mBq/m^3]*/
|
||||
@Excel(name = "MDC[mBq/m^3]", width = 15)
|
||||
@ApiModelProperty(value = "MDC[mBq/m^3]")
|
||||
private Double mdc;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizNuclide.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.entity.BizNuclide;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 核素模块
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizNuclideMapper extends BaseMapper<BizNuclide> {
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.bizOpenfoam.mapper.BizOpenfoamMapper">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.bizNuclide.mapper.BizNuclideMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizNuclide.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.entity.BizNuclide;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 核素模块
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizNuclideService extends IService<BizNuclide> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizNuclide.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.entity.BizNuclide;
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.mapper.BizNuclideMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizNuclide.service.IBizNuclideService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 核素模块
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizNuclideServiceImpl extends ServiceImpl<BizNuclideMapper, BizNuclide> implements IBizNuclideService {
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.entity.BizTopographyInfo;
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.service.IBizTopographyInfoService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 地形信息管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="地形信息管理表")
|
||||
@RestController
|
||||
@RequestMapping("/bizTopographyInfo/bizTopographyInfo")
|
||||
@Slf4j
|
||||
public class BizTopographyInfoController extends JeecgController<BizTopographyInfo, IBizTopographyInfoService> {
|
||||
@Autowired
|
||||
private IBizTopographyInfoService bizTopographyInfoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizTopographyInfo
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "地形信息管理表-分页列表查询")
|
||||
@ApiOperation(value="地形信息管理表-分页列表查询", notes="地形信息管理表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizTopographyInfo>> queryPageList(BizTopographyInfo bizTopographyInfo,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizTopographyInfo> queryWrapper = QueryGenerator.initQueryWrapper(bizTopographyInfo, req.getParameterMap());
|
||||
Page<BizTopographyInfo> page = new Page<BizTopographyInfo>(pageNo, pageSize);
|
||||
IPage<BizTopographyInfo> pageList = bizTopographyInfoService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizTopographyInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "地形信息管理表-添加")
|
||||
@ApiOperation(value="地形信息管理表-添加", notes="地形信息管理表-添加")
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizTopographyInfo bizTopographyInfo) {
|
||||
bizTopographyInfoService.save(bizTopographyInfo);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizTopographyInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "地形信息管理表-编辑")
|
||||
@ApiOperation(value="地形信息管理表-编辑", notes="地形信息管理表-编辑")
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizTopographyInfo bizTopographyInfo) {
|
||||
bizTopographyInfoService.updateById(bizTopographyInfo);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "地形信息管理表-通过id删除")
|
||||
@ApiOperation(value="地形信息管理表-通过id删除", notes="地形信息管理表-通过id删除")
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizTopographyInfoService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "地形信息管理表-批量删除")
|
||||
@ApiOperation(value="地形信息管理表-批量删除", notes="地形信息管理表-批量删除")
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizTopographyInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "地形信息管理表-通过id查询")
|
||||
@ApiOperation(value="地形信息管理表-通过id查询", notes="地形信息管理表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizTopographyInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizTopographyInfo bizTopographyInfo = bizTopographyInfoService.getById(id);
|
||||
if(bizTopographyInfo==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizTopographyInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizTopographyInfo
|
||||
*/
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizTopographyInfo bizTopographyInfo) {
|
||||
return super.exportXls(request, bizTopographyInfo, BizTopographyInfo.class, "地形信息管理表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizTopographyInfo:biz_topography_info:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizTopographyInfo.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 地形信息管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_topography_info")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_topography_info对象", description="地形信息管理表")
|
||||
public class BizTopographyInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**地形名称*/
|
||||
@Excel(name = "地形名称", width = 15)
|
||||
@ApiModelProperty(value = "地形名称")
|
||||
private String topographyName;
|
||||
/**地形文件路径*/
|
||||
@Excel(name = "地形文件路径", width = 15)
|
||||
@ApiModelProperty(value = "地形文件路径")
|
||||
private String topographyPath;
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.entity.BizTopographyInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 地形信息管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizTopographyInfoMapper extends BaseMapper<BizTopographyInfo> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.mapper.BizTopographyInfoMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.entity.BizTopographyInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 地形信息管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizTopographyInfoService extends IService<BizTopographyInfo> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.entity.BizTopographyInfo;
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.mapper.BizTopographyInfoMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizTopography.bizTopographyInfo.service.IBizTopographyInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 地形信息管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizTopographyInfoServiceImpl extends ServiceImpl<BizTopographyInfoMapper, BizTopographyInfo> implements IBizTopographyInfoService {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.jeecg.modules.project.bizUploadFile.controller;
|
||||
package org.jeecg.modules.project.baseConfig.bizUploadFile.controller;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
@ -7,23 +7,13 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.modules.project.bizUploadFile.entity.BizUploadFile;
|
||||
import org.jeecg.modules.project.bizUploadFile.service.BizUploadFileService;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.entity.BizUploadFile;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.service.BizUploadFileService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.ProtocolException;
|
||||
import java.net.URL;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
|
@ -1,10 +1,9 @@
|
|||
package org.jeecg.modules.project.bizUploadFile.entity;
|
||||
package org.jeecg.modules.project.baseConfig.bizUploadFile.entity;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
|
@ -0,0 +1,7 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizUploadFile.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.entity.BizUploadFile;
|
||||
|
||||
public interface BizUploadFileMapper extends BaseMapper<BizUploadFile> {
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
package org.jeecg.modules.project.bizUploadFile.service;
|
||||
package org.jeecg.modules.project.baseConfig.bizUploadFile.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.jeecg.modules.project.bizUploadFile.entity.BizUploadFile;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.entity.BizUploadFile;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
|
@ -1,11 +1,11 @@
|
|||
package org.jeecg.modules.project.bizUploadFile.service.impl;
|
||||
package org.jeecg.modules.project.baseConfig.bizUploadFile.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.jeecg.modules.project.bizUploadFile.entity.BizUploadFile;
|
||||
import org.jeecg.modules.project.bizUploadFile.mapper.BizUploadFileMapper;
|
||||
import org.jeecg.modules.project.bizUploadFile.service.BizUploadFileService;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.entity.BizUploadFile;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.mapper.BizUploadFileMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizUploadFile.service.BizUploadFileService;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizWeapon.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.entity.BizWeapon;
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.service.IBizWeaponService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: WQ类型数据管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="WQ类型数据管理表")
|
||||
@RestController
|
||||
@RequestMapping("/bizWeapon/bizWeapon")
|
||||
@Slf4j
|
||||
public class BizWeaponController extends JeecgController<BizWeapon, IBizWeaponService> {
|
||||
@Autowired
|
||||
private IBizWeaponService bizWeaponService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizWeapon
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "WQ类型数据管理表-分页列表查询")
|
||||
@ApiOperation(value="WQ类型数据管理表-分页列表查询", notes="WQ类型数据管理表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizWeapon>> queryPageList(BizWeapon bizWeapon,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizWeapon> queryWrapper = QueryGenerator.initQueryWrapper(bizWeapon, req.getParameterMap());
|
||||
Page<BizWeapon> page = new Page<BizWeapon>(pageNo, pageSize);
|
||||
IPage<BizWeapon> pageList = bizWeaponService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizWeapon
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "WQ类型数据管理表-添加")
|
||||
@ApiOperation(value="WQ类型数据管理表-添加", notes="WQ类型数据管理表-添加")
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizWeapon bizWeapon) {
|
||||
bizWeaponService.save(bizWeapon);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizWeapon
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "WQ类型数据管理表-编辑")
|
||||
@ApiOperation(value="WQ类型数据管理表-编辑", notes="WQ类型数据管理表-编辑")
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizWeapon bizWeapon) {
|
||||
bizWeaponService.updateById(bizWeapon);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "WQ类型数据管理表-通过id删除")
|
||||
@ApiOperation(value="WQ类型数据管理表-通过id删除", notes="WQ类型数据管理表-通过id删除")
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizWeaponService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "WQ类型数据管理表-批量删除")
|
||||
@ApiOperation(value="WQ类型数据管理表-批量删除", notes="WQ类型数据管理表-批量删除")
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizWeaponService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "WQ类型数据管理表-通过id查询")
|
||||
@ApiOperation(value="WQ类型数据管理表-通过id查询", notes="WQ类型数据管理表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizWeapon> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizWeapon bizWeapon = bizWeaponService.getById(id);
|
||||
if(bizWeapon==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizWeapon);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizWeapon
|
||||
*/
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizWeapon bizWeapon) {
|
||||
return super.exportXls(request, bizWeapon, BizWeapon.class, "WQ类型数据管理表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizWeapon:biz_weapon:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizWeapon.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizWeapon.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: WQ类型数据管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_weapon")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_weapon对象", description="WQ类型数据管理表")
|
||||
public class BizWeapon implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**WQ名称*/
|
||||
@Excel(name = "WQ名称", width = 15)
|
||||
@ApiModelProperty(value = "WQ名称")
|
||||
private String weaponName;
|
||||
/**裂变材料*/
|
||||
@Excel(name = "裂变材料", width = 15)
|
||||
@ApiModelProperty(value = "裂变材料")
|
||||
private String fission;
|
||||
/**分凝温度*/
|
||||
@Excel(name = "分凝温度", width = 15)
|
||||
@ApiModelProperty(value = "分凝温度")
|
||||
private Integer condensationT;
|
||||
/**分凝时间*/
|
||||
@Excel(name = "分凝时间", width = 15)
|
||||
@ApiModelProperty(value = "分凝时间")
|
||||
private Integer condensationTime;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizWeapon.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.entity.BizWeapon;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: WQ类型数据管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizWeaponMapper extends BaseMapper<BizWeapon> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizWeapon.mapper.BizWeaponMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizWeapon.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.entity.BizWeapon;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: WQ类型数据管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizWeaponService extends IService<BizWeapon> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.bizWeapon.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.entity.BizWeapon;
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.mapper.BizWeaponMapper;
|
||||
import org.jeecg.modules.project.baseConfig.bizWeapon.service.IBizWeaponService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: WQ类型数据管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizWeaponServiceImpl extends ServiceImpl<BizWeaponMapper, BizWeapon> implements IBizWeaponService {
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.entity.BizEquipmentMotor;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.service.IBizEquipmentMotorService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 机动装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="机动装备表")
|
||||
@RestController
|
||||
@RequestMapping("/bizEquipmentMotor/bizEquipmentMotor")
|
||||
@Slf4j
|
||||
public class BizEquipmentMotorController extends JeecgController<BizEquipmentMotor, IBizEquipmentMotorService> {
|
||||
@Autowired
|
||||
private IBizEquipmentMotorService bizEquipmentMotorService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizEquipmentMotor
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "机动装备表-分页列表查询")
|
||||
@ApiOperation(value="机动装备表-分页列表查询", notes="机动装备表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizEquipmentMotor>> queryPageList(BizEquipmentMotor bizEquipmentMotor,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizEquipmentMotor> queryWrapper = QueryGenerator.initQueryWrapper(bizEquipmentMotor, req.getParameterMap());
|
||||
Page<BizEquipmentMotor> page = new Page<BizEquipmentMotor>(pageNo, pageSize);
|
||||
IPage<BizEquipmentMotor> pageList = bizEquipmentMotorService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizEquipmentMotor
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "机动装备表-添加")
|
||||
@ApiOperation(value="机动装备表-添加", notes="机动装备表-添加")
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizEquipmentMotor bizEquipmentMotor) {
|
||||
bizEquipmentMotorService.save(bizEquipmentMotor);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizEquipmentMotor
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "机动装备表-编辑")
|
||||
@ApiOperation(value="机动装备表-编辑", notes="机动装备表-编辑")
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizEquipmentMotor bizEquipmentMotor) {
|
||||
bizEquipmentMotorService.updateById(bizEquipmentMotor);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "机动装备表-通过id删除")
|
||||
@ApiOperation(value="机动装备表-通过id删除", notes="机动装备表-通过id删除")
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizEquipmentMotorService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "机动装备表-批量删除")
|
||||
@ApiOperation(value="机动装备表-批量删除", notes="机动装备表-批量删除")
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizEquipmentMotorService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "机动装备表-通过id查询")
|
||||
@ApiOperation(value="机动装备表-通过id查询", notes="机动装备表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizEquipmentMotor> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizEquipmentMotor bizEquipmentMotor = bizEquipmentMotorService.getById(id);
|
||||
if(bizEquipmentMotor==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizEquipmentMotor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizEquipmentMotor
|
||||
*/
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizEquipmentMotor bizEquipmentMotor) {
|
||||
return super.exportXls(request, bizEquipmentMotor, BizEquipmentMotor.class, "机动装备表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizEquipmentMotor:biz_equipment_motor:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizEquipmentMotor.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 机动装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_equipment_motor")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_equipment_motor对象", description="机动装备表")
|
||||
public class BizEquipmentMotor implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**机动装备名称*/
|
||||
@Excel(name = "机动装备名称", width = 15)
|
||||
@ApiModelProperty(value = "机动装备名称")
|
||||
private String motorName;
|
||||
/**机动装备类型*/
|
||||
@Excel(name = "机动装备类型", width = 15)
|
||||
@ApiModelProperty(value = "机动装备类型")
|
||||
private Integer motorType;
|
||||
/**速度*/
|
||||
@Excel(name = "速度", width = 15)
|
||||
@ApiModelProperty(value = "速度")
|
||||
private Double speed;
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.entity.BizEquipmentMotor;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 机动装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizEquipmentMotorMapper extends BaseMapper<BizEquipmentMotor> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.mapper.BizEquipmentMotorMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.entity.BizEquipmentMotor;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 机动装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizEquipmentMotorService extends IService<BizEquipmentMotor> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.entity.BizEquipmentMotor;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.mapper.BizEquipmentMotorMapper;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentMotor.service.IBizEquipmentMotorService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 机动装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizEquipmentMotorServiceImpl extends ServiceImpl<BizEquipmentMotorMapper, BizEquipmentMotor> implements IBizEquipmentMotorService {
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.entity.BizEquipmentProtection;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.service.IBizEquipmentProtectionService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 防护装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="防护装备表")
|
||||
@RestController
|
||||
@RequestMapping("/bizEquipmentProtection/bizEquipmentProtection")
|
||||
@Slf4j
|
||||
public class BizEquipmentProtectionController extends JeecgController<BizEquipmentProtection, IBizEquipmentProtectionService> {
|
||||
@Autowired
|
||||
private IBizEquipmentProtectionService bizEquipmentProtectionService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizEquipmentProtection
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "防护装备表-分页列表查询")
|
||||
@ApiOperation(value="防护装备表-分页列表查询", notes="防护装备表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizEquipmentProtection>> queryPageList(BizEquipmentProtection bizEquipmentProtection,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizEquipmentProtection> queryWrapper = QueryGenerator.initQueryWrapper(bizEquipmentProtection, req.getParameterMap());
|
||||
Page<BizEquipmentProtection> page = new Page<BizEquipmentProtection>(pageNo, pageSize);
|
||||
IPage<BizEquipmentProtection> pageList = bizEquipmentProtectionService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizEquipmentProtection
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "防护装备表-添加")
|
||||
@ApiOperation(value="防护装备表-添加", notes="防护装备表-添加")
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizEquipmentProtection bizEquipmentProtection) {
|
||||
bizEquipmentProtectionService.save(bizEquipmentProtection);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizEquipmentProtection
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "防护装备表-编辑")
|
||||
@ApiOperation(value="防护装备表-编辑", notes="防护装备表-编辑")
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizEquipmentProtection bizEquipmentProtection) {
|
||||
bizEquipmentProtectionService.updateById(bizEquipmentProtection);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "防护装备表-通过id删除")
|
||||
@ApiOperation(value="防护装备表-通过id删除", notes="防护装备表-通过id删除")
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizEquipmentProtectionService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "防护装备表-批量删除")
|
||||
@ApiOperation(value="防护装备表-批量删除", notes="防护装备表-批量删除")
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizEquipmentProtectionService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "防护装备表-通过id查询")
|
||||
@ApiOperation(value="防护装备表-通过id查询", notes="防护装备表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizEquipmentProtection> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizEquipmentProtection bizEquipmentProtection = bizEquipmentProtectionService.getById(id);
|
||||
if(bizEquipmentProtection==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizEquipmentProtection);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizEquipmentProtection
|
||||
*/
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizEquipmentProtection bizEquipmentProtection) {
|
||||
return super.exportXls(request, bizEquipmentProtection, BizEquipmentProtection.class, "防护装备表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizEquipmentProtection:biz_equipment_protection:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizEquipmentProtection.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 防护装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_equipment_protection")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_equipment_protection对象", description="防护装备表")
|
||||
public class BizEquipmentProtection implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**防护装备名称*/
|
||||
@Excel(name = "防护装备名称", width = 15)
|
||||
@ApiModelProperty(value = "防护装备名称")
|
||||
private String protectionName;
|
||||
/**防护等级*/
|
||||
@Excel(name = "防护等级", width = 15)
|
||||
@ApiModelProperty(value = "防护等级")
|
||||
private Integer protectionLevel;
|
||||
/**辐射屏蔽率*/
|
||||
@Excel(name = "辐射屏蔽率", width = 15)
|
||||
@ApiModelProperty(value = "辐射屏蔽率")
|
||||
private Double protectionRate;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.entity.BizEquipmentProtection;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 防护装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizEquipmentProtectionMapper extends BaseMapper<BizEquipmentProtection> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.mapper.BizEquipmentProtectionMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.entity.BizEquipmentProtection;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 防护装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizEquipmentProtectionService extends IService<BizEquipmentProtection> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.entity.BizEquipmentProtection;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.mapper.BizEquipmentProtectionMapper;
|
||||
import org.jeecg.modules.project.baseConfig.equipment.bizEquipmentProtection.service.IBizEquipmentProtectionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 防护装备表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizEquipmentProtectionServiceImpl extends ServiceImpl<BizEquipmentProtectionMapper, BizEquipmentProtection> implements IBizEquipmentProtectionService {
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.entity.BizWeatherForecast;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.service.IBizWeatherForecastService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 气象预报表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="气象预报表")
|
||||
@RestController
|
||||
@RequestMapping("/bizWeatherForecast/bizWeatherForecast")
|
||||
@Slf4j
|
||||
public class BizWeatherForecastController extends JeecgController<BizWeatherForecast, IBizWeatherForecastService> {
|
||||
@Autowired
|
||||
private IBizWeatherForecastService bizWeatherForecastService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizWeatherForecast
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "气象预报表-分页列表查询")
|
||||
@ApiOperation(value="气象预报表-分页列表查询", notes="气象预报表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizWeatherForecast>> queryPageList(BizWeatherForecast bizWeatherForecast,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizWeatherForecast> queryWrapper = QueryGenerator.initQueryWrapper(bizWeatherForecast, req.getParameterMap());
|
||||
Page<BizWeatherForecast> page = new Page<BizWeatherForecast>(pageNo, pageSize);
|
||||
IPage<BizWeatherForecast> pageList = bizWeatherForecastService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizWeatherForecast
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "气象预报表-添加")
|
||||
@ApiOperation(value="气象预报表-添加", notes="气象预报表-添加")
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizWeatherForecast bizWeatherForecast) {
|
||||
bizWeatherForecastService.save(bizWeatherForecast);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizWeatherForecast
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "气象预报表-编辑")
|
||||
@ApiOperation(value="气象预报表-编辑", notes="气象预报表-编辑")
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizWeatherForecast bizWeatherForecast) {
|
||||
bizWeatherForecastService.updateById(bizWeatherForecast);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "气象预报表-通过id删除")
|
||||
@ApiOperation(value="气象预报表-通过id删除", notes="气象预报表-通过id删除")
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizWeatherForecastService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "气象预报表-批量删除")
|
||||
@ApiOperation(value="气象预报表-批量删除", notes="气象预报表-批量删除")
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizWeatherForecastService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "气象预报表-通过id查询")
|
||||
@ApiOperation(value="气象预报表-通过id查询", notes="气象预报表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizWeatherForecast> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizWeatherForecast bizWeatherForecast = bizWeatherForecastService.getById(id);
|
||||
if(bizWeatherForecast==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizWeatherForecast);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizWeatherForecast
|
||||
*/
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizWeatherForecast bizWeatherForecast) {
|
||||
return super.exportXls(request, bizWeatherForecast, BizWeatherForecast.class, "气象预报表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizWeatherForecast:biz_weather_forecast:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizWeatherForecast.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 气象预报表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_weather_forecast")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_weather_forecast对象", description="气象预报表")
|
||||
public class BizWeatherForecast implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**预报名称*/
|
||||
@Excel(name = "预报名称", width = 15)
|
||||
@ApiModelProperty(value = "预报名称")
|
||||
private String forecastName;
|
||||
/**采集时间*/
|
||||
@Excel(name = "采集时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "采集时间")
|
||||
private Date gatherTime;
|
||||
/**预报文件路径*/
|
||||
@Excel(name = "预报文件路径", width = 15)
|
||||
@ApiModelProperty(value = "预报文件路径")
|
||||
private String forecastPath;
|
||||
/**预报类别*/
|
||||
@Excel(name = "预报类别", width = 15)
|
||||
@ApiModelProperty(value = "预报类别")
|
||||
private Integer forecastType;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.entity.BizWeatherForecast;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 气象预报表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizWeatherForecastMapper extends BaseMapper<BizWeatherForecast> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.mapper.BizWeatherForecastMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.entity.BizWeatherForecast;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 气象预报表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizWeatherForecastService extends IService<BizWeatherForecast> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.entity.BizWeatherForecast;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.mapper.BizWeatherForecastMapper;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherForecast.service.IBizWeatherForecastService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 气象预报表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-19
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizWeatherForecastServiceImpl extends ServiceImpl<BizWeatherForecastMapper, BizWeatherForecast> implements IBizWeatherForecastService {
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.entity.BizWeatherHistory;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.service.IBizWeatherHistoryService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 历史气象表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="历史气象表")
|
||||
@RestController
|
||||
@RequestMapping("/bizWeatherHistory/bizWeatherHistory")
|
||||
@Slf4j
|
||||
public class BizWeatherHistoryController extends JeecgController<BizWeatherHistory, IBizWeatherHistoryService> {
|
||||
@Autowired
|
||||
private IBizWeatherHistoryService bizWeatherHistoryService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizWeatherHistory
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "历史气象表-分页列表查询")
|
||||
@ApiOperation(value="历史气象表-分页列表查询", notes="历史气象表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizWeatherHistory>> queryPageList(BizWeatherHistory bizWeatherHistory,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizWeatherHistory> queryWrapper = QueryGenerator.initQueryWrapper(bizWeatherHistory, req.getParameterMap());
|
||||
Page<BizWeatherHistory> page = new Page<BizWeatherHistory>(pageNo, pageSize);
|
||||
IPage<BizWeatherHistory> pageList = bizWeatherHistoryService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizWeatherHistory
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "历史气象表-添加")
|
||||
@ApiOperation(value="历史气象表-添加", notes="历史气象表-添加")
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizWeatherHistory bizWeatherHistory) {
|
||||
bizWeatherHistoryService.save(bizWeatherHistory);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizWeatherHistory
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "历史气象表-编辑")
|
||||
@ApiOperation(value="历史气象表-编辑", notes="历史气象表-编辑")
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizWeatherHistory bizWeatherHistory) {
|
||||
bizWeatherHistoryService.updateById(bizWeatherHistory);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "历史气象表-通过id删除")
|
||||
@ApiOperation(value="历史气象表-通过id删除", notes="历史气象表-通过id删除")
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizWeatherHistoryService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "历史气象表-批量删除")
|
||||
@ApiOperation(value="历史气象表-批量删除", notes="历史气象表-批量删除")
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizWeatherHistoryService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "历史气象表-通过id查询")
|
||||
@ApiOperation(value="历史气象表-通过id查询", notes="历史气象表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizWeatherHistory> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizWeatherHistory bizWeatherHistory = bizWeatherHistoryService.getById(id);
|
||||
if(bizWeatherHistory==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizWeatherHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizWeatherHistory
|
||||
*/
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizWeatherHistory bizWeatherHistory) {
|
||||
return super.exportXls(request, bizWeatherHistory, BizWeatherHistory.class, "历史气象表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizWeatherHistory:biz_weather_history:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizWeatherHistory.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 历史气象表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_weather_history")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_weather_history对象", description="历史气象表")
|
||||
public class BizWeatherHistory implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**气象名称*/
|
||||
@Excel(name = "气象名称", width = 15)
|
||||
@ApiModelProperty(value = "气象名称")
|
||||
private String weatherName;
|
||||
/**气象类别*/
|
||||
@Excel(name = "气象类别", width = 15)
|
||||
@ApiModelProperty(value = "气象类别")
|
||||
private Integer weatherType;
|
||||
/**气象时间*/
|
||||
@Excel(name = "气象时间", width = 15, format = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "气象时间")
|
||||
private Date weatherTime;
|
||||
/**文件路径*/
|
||||
@Excel(name = "文件路径", width = 15)
|
||||
@ApiModelProperty(value = "文件路径")
|
||||
private String filePath;
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.mapper;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.entity.BizWeatherHistory;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 历史气象表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizWeatherHistoryMapper extends BaseMapper<BizWeatherHistory> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.mapper.BizWeatherHistoryMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.service;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.entity.BizWeatherHistory;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 历史气象表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizWeatherHistoryService extends IService<BizWeatherHistory> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.entity.BizWeatherHistory;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.mapper.BizWeatherHistoryMapper;
|
||||
import org.jeecg.modules.project.baseConfig.weather.bizWeatherHistory.service.IBizWeatherHistoryService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 历史气象表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizWeatherHistoryServiceImpl extends ServiceImpl<BizWeatherHistoryMapper, BizWeatherHistory> implements IBizWeatherHistoryService {
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
package org.jeecg.modules.project.bizUploadFile.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.jeecg.modules.project.bizUploadFile.entity.BizUploadFile;
|
||||
|
||||
public interface BizUploadFileMapper extends BaseMapper<BizUploadFile> {
|
||||
}
|
|
@ -1,27 +1,15 @@
|
|||
package org.jeecg.modules.project.bizCmaq.controller;
|
||||
package org.jeecg.modules.project.calculateConfig.bizCmaq.controller;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.jcraft.jsch.SftpException;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.RemoteExecuteCommand;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.bizCmaq.service.IBizCmaqService;
|
||||
import static java.nio.file.Files.readAllBytes;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.service.IBizCmaqService;
|
||||
|
||||
import static java.nio.file.Paths.get;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
@ -29,35 +17,15 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.bizEngineering.service.IBizEngineeringService;
|
||||
import org.jeecg.modules.project.bizOpenfoam.entity.BizOpenfoam;
|
||||
import org.jeecg.modules.project.bizWrf.entity.BizWrf;
|
||||
import org.jeecg.modules.project.bizWrf.service.IBizWrfService;
|
||||
import org.jeecg.modules.project.util.CmdUtil;
|
||||
import org.jeecg.modules.project.util.SFTPUtil;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.modules.project.calculateConfig.bizWrf.entity.BizWrf;
|
||||
import org.jeecg.modules.project.calculateConfig.bizWrf.service.IBizWrfService;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import ucar.ma2.Array;
|
||||
import ucar.ma2.Index;
|
||||
import ucar.nc2.NetcdfFile;
|
||||
import ucar.nc2.Variable;
|
||||
import ucar.nc2.dataset.NetcdfDataset;
|
||||
|
||||
/**
|
||||
* @Description: CMAQ
|
||||
|
@ -243,6 +211,22 @@ public class BizCmaqController extends JeecgController<BizCmaq, IBizCmaqService>
|
|||
return Result.OK(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过temType查询模板
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "cmaq-通过temType查询模板")
|
||||
@ApiOperation(value="cmaq-通过temType查询模板", notes="cmaq-通过temType查询模板")
|
||||
@GetMapping(value = "/getCmaqTem")
|
||||
public Result<BizCmaq> getCmaqTem() {
|
||||
BizCmaq bizCmaq = bizCmaqService.getOne(new LambdaQueryWrapper<BizCmaq>().eq(BizCmaq::getTemType,0));
|
||||
if(bizCmaq==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizCmaq);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
|
@ -1,18 +1,15 @@
|
|||
package org.jeecg.modules.project.bizCmaq.entity;
|
||||
package org.jeecg.modules.project.calculateConfig.bizCmaq.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
@ -206,4 +203,7 @@ public class BizCmaq implements Serializable {
|
|||
@Excel(name = "engineeringId", width = 15)
|
||||
@ApiModelProperty(value = "engineeringId")
|
||||
private String engineeringId;
|
||||
@Excel(name = "temType", width = 15)
|
||||
@ApiModelProperty(value = "temType")
|
||||
private int temType;
|
||||
}
|
|
@ -1,9 +1,6 @@
|
|||
package org.jeecg.modules.project.bizCmaq.mapper;
|
||||
package org.jeecg.modules.project.calculateConfig.bizCmaq.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.entity.BizCmaq;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.bizCmaq.mapper.BizCmaqMapper">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizCmaq.mapper.BizCmaqMapper">
|
||||
|
||||
</mapper>
|
|
@ -1,11 +1,8 @@
|
|||
package org.jeecg.modules.project.bizCmaq.service;
|
||||
package org.jeecg.modules.project.calculateConfig.bizCmaq.service;
|
||||
|
||||
import com.jcraft.jsch.SftpException;
|
||||
import org.jeecg.modules.project.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.entity.BizCmaq;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.ParseException;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package org.jeecg.modules.project.bizCmaq.service.impl;
|
||||
package org.jeecg.modules.project.calculateConfig.bizCmaq.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
|
@ -6,19 +6,18 @@ import cn.hutool.core.io.FileUtil;
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.jcraft.jsch.SftpException;
|
||||
import org.jeecg.common.util.RemoteExecuteCommand;
|
||||
import org.jeecg.modules.project.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.bizCmaq.mapper.BizCmaqMapper;
|
||||
import org.jeecg.modules.project.bizCmaq.service.IBizCmaqService;
|
||||
import org.jeecg.modules.project.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.bizEngineering.service.IBizEngineeringService;
|
||||
import org.jeecg.modules.project.bizOpenfoam.entity.BizOpenfoam;
|
||||
import org.jeecg.modules.project.bizOpenfoam.service.IBizOpenfoamService;
|
||||
import org.jeecg.modules.project.bizWrf.service.IBizWrfService;
|
||||
import org.jeecg.modules.project.util.CmdUtil;
|
||||
import org.jeecg.modules.project.util.SFTPUtil;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.entity.BizCmaq;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.mapper.BizCmaqMapper;
|
||||
import org.jeecg.modules.project.calculateConfig.bizCmaq.service.IBizCmaqService;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.entity.BizEngineering;
|
||||
import org.jeecg.modules.project.baseConfig.bizEngineering.service.IBizEngineeringService;
|
||||
import org.jeecg.modules.project.calculateConfig.bizOpenfoam.entity.BizOpenfoam;
|
||||
import org.jeecg.modules.project.calculateConfig.bizOpenfoam.service.IBizOpenfoamService;
|
||||
import org.jeecg.modules.project.calculateConfig.bizWrf.service.IBizWrfService;
|
||||
import org.jeecg.modules.util.SFTPUtil;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.jeecg.modules.project.bizWrf.entity.BizWrf;
|
||||
import org.jeecg.modules.project.bizWrf.mapper.BizWrfMapper;
|
||||
import org.jeecg.modules.project.calculateConfig.bizWrf.entity.BizWrf;
|
||||
import org.jeecg.modules.project.calculateConfig.bizWrf.mapper.BizWrfMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -276,13 +275,13 @@ public class BizCmaqServiceImpl extends ServiceImpl<BizCmaqMapper, BizCmaq> impl
|
|||
BizCmaq bizCmaq = this.baseMapper.selectOne(new LambdaQueryWrapper<BizCmaq>().eq(BizCmaq::getEngineeringId,bizEngineering.getId()));
|
||||
if(bizCmaq != null) {
|
||||
|
||||
NetcdfFile griddot2d = NetcdfDataset.open("C:\\Users\\13673\\Desktop\\某源\\Nuclear\\file\\wrfout_d01_2016-07-01_00_00_00");
|
||||
NetcdfFile ncfile = NetcdfDataset.open("C:\\Users\\13673\\Desktop\\某源\\Nuclear\\file\\CCTM_ACONC_v532_2016_12SE1_20160701.nc");
|
||||
// String ncName = "CCTM_ACONC_v532_2016_12SE1_" + sdf.format(sdf.parse(bizCmaq.getStartDate())).replace("-", "") + ".nc";
|
||||
// NetcdfFile ncfile = NetcdfDataset.open(localFilePrefix + ncName);
|
||||
// BizWrf bizWrf = bizWrfService.getOne(new LambdaQueryWrapper<BizWrf>().eq(BizWrf::getEngineeringId, bizEngineering.getId()));
|
||||
// String ncNameWrf = "wrfout_d01_" + bizWrf.getStartTime();
|
||||
// NetcdfFile griddot2d = NetcdfDataset.open(localFilePrefix + ncNameWrf);
|
||||
// NetcdfFile griddot2d = NetcdfDataset.open("C:\\Users\\13673\\Desktop\\某源\\Nuclear\\file\\wrfout_d01_2016-07-01_00_00_00");
|
||||
// NetcdfFile ncfile = NetcdfDataset.open("C:\\Users\\13673\\Desktop\\某源\\Nuclear\\file\\CCTM_ACONC_v532_2016_12SE1_20160701.nc");
|
||||
String ncName = "CCTM_ACONC_v532_2016_12SE1_" + sdf.format(sdf.parse(bizCmaq.getStartDate())).replace("-", "") + ".nc";
|
||||
NetcdfFile ncfile = NetcdfDataset.open(localFilePrefix + ncName);
|
||||
BizWrf bizWrf = bizWrfService.getOne(new LambdaQueryWrapper<BizWrf>().eq(BizWrf::getEngineeringId, bizEngineering.getId()));
|
||||
String ncNameWrf = "wrfout_d01_" + bizWrf.getStartTime();
|
||||
NetcdfFile griddot2d = NetcdfDataset.open(localFilePrefix + ncNameWrf);
|
||||
List<List<List<Double>>> coAllList = getNCByName(ncfile, "CO", layer);
|
||||
List<List<List<Double>>> no2AllList = getNCByName(ncfile, "NO2", layer);
|
||||
List<List<List<Double>>> no3AllList = getNCByName(ncfile, "NO3", layer);
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigChemistry.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.entity.BizConfigChemistry;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.service.IBizConfigChemistryService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 化爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="化爆配置表")
|
||||
@RestController
|
||||
@RequestMapping("/bizConfigChemistry/bizConfigChemistry")
|
||||
@Slf4j
|
||||
public class BizConfigChemistryController extends JeecgController<BizConfigChemistry, IBizConfigChemistryService> {
|
||||
@Autowired
|
||||
private IBizConfigChemistryService bizConfigChemistryService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizConfigChemistry
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "化爆配置表-分页列表查询")
|
||||
@ApiOperation(value="化爆配置表-分页列表查询", notes="化爆配置表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizConfigChemistry>> queryPageList(BizConfigChemistry bizConfigChemistry,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizConfigChemistry> queryWrapper = QueryGenerator.initQueryWrapper(bizConfigChemistry, req.getParameterMap());
|
||||
Page<BizConfigChemistry> page = new Page<BizConfigChemistry>(pageNo, pageSize);
|
||||
IPage<BizConfigChemistry> pageList = bizConfigChemistryService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizConfigChemistry
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "化爆配置表-添加")
|
||||
@ApiOperation(value="化爆配置表-添加", notes="化爆配置表-添加")
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizConfigChemistry bizConfigChemistry) {
|
||||
bizConfigChemistryService.save(bizConfigChemistry);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizConfigChemistry
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "化爆配置表-编辑")
|
||||
@ApiOperation(value="化爆配置表-编辑", notes="化爆配置表-编辑")
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizConfigChemistry bizConfigChemistry) {
|
||||
bizConfigChemistryService.updateById(bizConfigChemistry);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "化爆配置表-通过id删除")
|
||||
@ApiOperation(value="化爆配置表-通过id删除", notes="化爆配置表-通过id删除")
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizConfigChemistryService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "化爆配置表-批量删除")
|
||||
@ApiOperation(value="化爆配置表-批量删除", notes="化爆配置表-批量删除")
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizConfigChemistryService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "化爆配置表-通过id查询")
|
||||
@ApiOperation(value="化爆配置表-通过id查询", notes="化爆配置表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizConfigChemistry> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizConfigChemistry bizConfigChemistry = bizConfigChemistryService.getById(id);
|
||||
if(bizConfigChemistry==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizConfigChemistry);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizConfigChemistry
|
||||
*/
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizConfigChemistry bizConfigChemistry) {
|
||||
return super.exportXls(request, bizConfigChemistry, BizConfigChemistry.class, "化爆配置表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizConfigChemistry:biz_config_chemistry:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizConfigChemistry.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigChemistry.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 化爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_config_chemistry")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_config_chemistry对象", description="化爆配置表")
|
||||
public class BizConfigChemistry implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**工程ID*/
|
||||
@Excel(name = "工程ID", width = 15)
|
||||
@ApiModelProperty(value = "工程ID")
|
||||
private String engineeringId;
|
||||
/**经度*/
|
||||
@Excel(name = "经度", width = 15)
|
||||
@ApiModelProperty(value = "经度")
|
||||
private Double lon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double lat;
|
||||
/**事件时间*/
|
||||
@Excel(name = "事件时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
private Date eventTime;
|
||||
/**武器ID*/
|
||||
@Excel(name = "武器ID", width = 15)
|
||||
@ApiModelProperty(value = "武器ID")
|
||||
private String weaponId;
|
||||
/**高度*/
|
||||
@Excel(name = "高度", width = 15)
|
||||
@ApiModelProperty(value = "高度")
|
||||
private Double height;
|
||||
/**DL*/
|
||||
@Excel(name = "DL", width = 15)
|
||||
@ApiModelProperty(value = "DL")
|
||||
private Double dl;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigChemistry.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.entity.BizConfigChemistry;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 化爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizConfigChemistryMapper extends BaseMapper<BizConfigChemistry> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizConfigChemistry.mapper.BizConfigChemistryMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigChemistry.service;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.entity.BizConfigChemistry;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 化爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizConfigChemistryService extends IService<BizConfigChemistry> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigChemistry.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.entity.BizConfigChemistry;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.mapper.BizConfigChemistryMapper;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigChemistry.service.IBizConfigChemistryService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 化爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizConfigChemistryServiceImpl extends ServiceImpl<BizConfigChemistryMapper, BizConfigChemistry> implements IBizConfigChemistryService {
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigFacility.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.entity.BizConfigFacility;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.service.IBizConfigFacilityService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 核设施配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="核设施配置表")
|
||||
@RestController
|
||||
@RequestMapping("/bizConfigFacility/bizConfigFacility")
|
||||
@Slf4j
|
||||
public class BizConfigFacilityController extends JeecgController<BizConfigFacility, IBizConfigFacilityService> {
|
||||
@Autowired
|
||||
private IBizConfigFacilityService bizConfigFacilityService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizConfigFacility
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核设施配置表-分页列表查询")
|
||||
@ApiOperation(value="核设施配置表-分页列表查询", notes="核设施配置表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizConfigFacility>> queryPageList(BizConfigFacility bizConfigFacility,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizConfigFacility> queryWrapper = QueryGenerator.initQueryWrapper(bizConfigFacility, req.getParameterMap());
|
||||
Page<BizConfigFacility> page = new Page<BizConfigFacility>(pageNo, pageSize);
|
||||
IPage<BizConfigFacility> pageList = bizConfigFacilityService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizConfigFacility
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核设施配置表-添加")
|
||||
@ApiOperation(value="核设施配置表-添加", notes="核设施配置表-添加")
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizConfigFacility bizConfigFacility) {
|
||||
bizConfigFacilityService.save(bizConfigFacility);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizConfigFacility
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核设施配置表-编辑")
|
||||
@ApiOperation(value="核设施配置表-编辑", notes="核设施配置表-编辑")
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizConfigFacility bizConfigFacility) {
|
||||
bizConfigFacilityService.updateById(bizConfigFacility);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核设施配置表-通过id删除")
|
||||
@ApiOperation(value="核设施配置表-通过id删除", notes="核设施配置表-通过id删除")
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizConfigFacilityService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核设施配置表-批量删除")
|
||||
@ApiOperation(value="核设施配置表-批量删除", notes="核设施配置表-批量删除")
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizConfigFacilityService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核设施配置表-通过id查询")
|
||||
@ApiOperation(value="核设施配置表-通过id查询", notes="核设施配置表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizConfigFacility> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizConfigFacility bizConfigFacility = bizConfigFacilityService.getById(id);
|
||||
if(bizConfigFacility==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizConfigFacility);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizConfigFacility
|
||||
*/
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizConfigFacility bizConfigFacility) {
|
||||
return super.exportXls(request, bizConfigFacility, BizConfigFacility.class, "核设施配置表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizConfigFacility:biz_config_facility:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizConfigFacility.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigFacility.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 核设施配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_config_facility")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_config_facility对象", description="核设施配置表")
|
||||
public class BizConfigFacility implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**工程ID*/
|
||||
@Excel(name = "工程ID", width = 15)
|
||||
@ApiModelProperty(value = "工程ID")
|
||||
private String engineeringId;
|
||||
/**经度*/
|
||||
@Excel(name = "经度", width = 15)
|
||||
@ApiModelProperty(value = "经度")
|
||||
private Double lon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double lat;
|
||||
/**事件时间*/
|
||||
@Excel(name = "事件时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
private Date eventTime;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigFacility.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.entity.BizConfigFacility;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 核设施配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizConfigFacilityMapper extends BaseMapper<BizConfigFacility> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizConfigFacility.mapper.BizConfigFacilityMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigFacility.service;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.entity.BizConfigFacility;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 核设施配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizConfigFacilityService extends IService<BizConfigFacility> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigFacility.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.entity.BizConfigFacility;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.mapper.BizConfigFacilityMapper;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigFacility.service.IBizConfigFacilityService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 核设施配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizConfigFacilityServiceImpl extends ServiceImpl<BizConfigFacilityMapper, BizConfigFacility> implements IBizConfigFacilityService {
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigLeak.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.entity.BizConfigLeak;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.service.IBizConfigLeakService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 泄露配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="泄露配置表")
|
||||
@RestController
|
||||
@RequestMapping("/bizConfigLeak/bizConfigLeak")
|
||||
@Slf4j
|
||||
public class BizConfigLeakController extends JeecgController<BizConfigLeak, IBizConfigLeakService> {
|
||||
@Autowired
|
||||
private IBizConfigLeakService bizConfigLeakService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizConfigLeak
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "泄露配置表-分页列表查询")
|
||||
@ApiOperation(value="泄露配置表-分页列表查询", notes="泄露配置表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizConfigLeak>> queryPageList(BizConfigLeak bizConfigLeak,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizConfigLeak> queryWrapper = QueryGenerator.initQueryWrapper(bizConfigLeak, req.getParameterMap());
|
||||
Page<BizConfigLeak> page = new Page<BizConfigLeak>(pageNo, pageSize);
|
||||
IPage<BizConfigLeak> pageList = bizConfigLeakService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizConfigLeak
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "泄露配置表-添加")
|
||||
@ApiOperation(value="泄露配置表-添加", notes="泄露配置表-添加")
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizConfigLeak bizConfigLeak) {
|
||||
bizConfigLeakService.save(bizConfigLeak);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizConfigLeak
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "泄露配置表-编辑")
|
||||
@ApiOperation(value="泄露配置表-编辑", notes="泄露配置表-编辑")
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizConfigLeak bizConfigLeak) {
|
||||
bizConfigLeakService.updateById(bizConfigLeak);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "泄露配置表-通过id删除")
|
||||
@ApiOperation(value="泄露配置表-通过id删除", notes="泄露配置表-通过id删除")
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizConfigLeakService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "泄露配置表-批量删除")
|
||||
@ApiOperation(value="泄露配置表-批量删除", notes="泄露配置表-批量删除")
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizConfigLeakService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "泄露配置表-通过id查询")
|
||||
@ApiOperation(value="泄露配置表-通过id查询", notes="泄露配置表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizConfigLeak> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizConfigLeak bizConfigLeak = bizConfigLeakService.getById(id);
|
||||
if(bizConfigLeak==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizConfigLeak);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizConfigLeak
|
||||
*/
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizConfigLeak bizConfigLeak) {
|
||||
return super.exportXls(request, bizConfigLeak, BizConfigLeak.class, "泄露配置表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizConfigLeak:biz_config_leak:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizConfigLeak.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigLeak.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 泄露配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_config_leak")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_config_leak对象", description="泄露配置表")
|
||||
public class BizConfigLeak implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**工程ID*/
|
||||
@Excel(name = "工程ID", width = 15)
|
||||
@ApiModelProperty(value = "工程ID")
|
||||
private String engineeringId;
|
||||
/**经度*/
|
||||
@Excel(name = "经度", width = 15)
|
||||
@ApiModelProperty(value = "经度")
|
||||
private Double lon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double lat;
|
||||
/**事件时间*/
|
||||
@Excel(name = "事件时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
private Date eventTime;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigLeak.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.entity.BizConfigLeak;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 泄露配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizConfigLeakMapper extends BaseMapper<BizConfigLeak> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizConfigLeak.mapper.BizConfigLeakMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigLeak.service;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.entity.BizConfigLeak;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 泄露配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizConfigLeakService extends IService<BizConfigLeak> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigLeak.service.impl;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.entity.BizConfigLeak;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.mapper.BizConfigLeakMapper;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigLeak.service.IBizConfigLeakService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 泄露配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BizConfigLeakServiceImpl extends ServiceImpl<BizConfigLeakMapper, BizConfigLeak> implements IBizConfigLeakService {
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigNucleus.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigNucleus.entity.BizConfigNucleus;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigNucleus.service.IBizConfigNucleusService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 核爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="核爆配置表")
|
||||
@RestController
|
||||
@RequestMapping("/bizConfigNucleus/bizConfigNucleus")
|
||||
@Slf4j
|
||||
public class BizConfigNucleusController extends JeecgController<BizConfigNucleus, IBizConfigNucleusService> {
|
||||
@Autowired
|
||||
private IBizConfigNucleusService bizConfigNucleusService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bizConfigNucleus
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核爆配置表-分页列表查询")
|
||||
@ApiOperation(value="核爆配置表-分页列表查询", notes="核爆配置表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<BizConfigNucleus>> queryPageList(BizConfigNucleus bizConfigNucleus,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BizConfigNucleus> queryWrapper = QueryGenerator.initQueryWrapper(bizConfigNucleus, req.getParameterMap());
|
||||
Page<BizConfigNucleus> page = new Page<BizConfigNucleus>(pageNo, pageSize);
|
||||
IPage<BizConfigNucleus> pageList = bizConfigNucleusService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bizConfigNucleus
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核爆配置表-添加")
|
||||
@ApiOperation(value="核爆配置表-添加", notes="核爆配置表-添加")
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BizConfigNucleus bizConfigNucleus) {
|
||||
bizConfigNucleusService.save(bizConfigNucleus);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bizConfigNucleus
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核爆配置表-编辑")
|
||||
@ApiOperation(value="核爆配置表-编辑", notes="核爆配置表-编辑")
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody BizConfigNucleus bizConfigNucleus) {
|
||||
bizConfigNucleusService.updateById(bizConfigNucleus);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核爆配置表-通过id删除")
|
||||
@ApiOperation(value="核爆配置表-通过id删除", notes="核爆配置表-通过id删除")
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bizConfigNucleusService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "核爆配置表-批量删除")
|
||||
@ApiOperation(value="核爆配置表-批量删除", notes="核爆配置表-批量删除")
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bizConfigNucleusService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "核爆配置表-通过id查询")
|
||||
@ApiOperation(value="核爆配置表-通过id查询", notes="核爆配置表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<BizConfigNucleus> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BizConfigNucleus bizConfigNucleus = bizConfigNucleusService.getById(id);
|
||||
if(bizConfigNucleus==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bizConfigNucleus);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bizConfigNucleus
|
||||
*/
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BizConfigNucleus bizConfigNucleus) {
|
||||
return super.exportXls(request, bizConfigNucleus, BizConfigNucleus.class, "核爆配置表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("bizConfigNucleus:biz_config_nucleus:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, BizConfigNucleus.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigNucleus.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 核爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("biz_config_nucleus")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="biz_config_nucleus对象", description="核爆配置表")
|
||||
public class BizConfigNucleus implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
/**工程ID*/
|
||||
@Excel(name = "工程ID", width = 15)
|
||||
@ApiModelProperty(value = "工程ID")
|
||||
private String engineeringId;
|
||||
/**经度*/
|
||||
@Excel(name = "经度", width = 15)
|
||||
@ApiModelProperty(value = "经度")
|
||||
private Double lon;
|
||||
/**纬度*/
|
||||
@Excel(name = "纬度", width = 15)
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private Double lat;
|
||||
/**事件时间*/
|
||||
@Excel(name = "事件时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "事件时间")
|
||||
private Date eventTime;
|
||||
/**武器ID*/
|
||||
@Excel(name = "武器ID", width = 15)
|
||||
@ApiModelProperty(value = "武器ID")
|
||||
private String weaponId;
|
||||
/**高度*/
|
||||
@Excel(name = "高度", width = 15)
|
||||
@ApiModelProperty(value = "高度")
|
||||
private Double height;
|
||||
/**DL*/
|
||||
@Excel(name = "DL", width = 15)
|
||||
@ApiModelProperty(value = "DL")
|
||||
private Double dl;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigNucleus.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigNucleus.entity.BizConfigNucleus;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 核爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BizConfigNucleusMapper extends BaseMapper<BizConfigNucleus> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.project.calculateConfig.bizConfigNucleus.mapper.BizConfigNucleusMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.project.calculateConfig.bizConfigNucleus.service;
|
||||
|
||||
import org.jeecg.modules.project.calculateConfig.bizConfigNucleus.entity.BizConfigNucleus;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 核爆配置表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-09-20
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBizConfigNucleusService extends IService<BizConfigNucleus> {
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user