diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/controller/DepadminlxController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/controller/DepadminlxController.java new file mode 100644 index 0000000..2c08804 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/controller/DepadminlxController.java @@ -0,0 +1,180 @@ +package org.jeecg.modules.demo.depadminlx.controller; + +import java.util.Arrays; +import java.util.HashMap; +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.system.query.QueryRuleEnum; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.demo.depadminlx.entity.Depadminlx; +import org.jeecg.modules.demo.depadminlx.service.IDepadminlxService; + +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: 2024-11-01 + * @Version: V1.0 + */ +@Api(tags="单位基本情况联系人") +@RestController +@RequestMapping("/depadminlx/depadminlx") +@Slf4j +public class DepadminlxController extends JeecgController { + @Autowired + private IDepadminlxService depadminlxService; + + /** + * 分页列表查询 + * + * @param depadminlx + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "单位基本情况联系人-分页列表查询") + @ApiOperation(value="单位基本情况联系人-分页列表查询", notes="单位基本情况联系人-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Depadminlx depadminlx, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(depadminlx, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = depadminlxService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param depadminlx + * @return + */ + @AutoLog(value = "单位基本情况联系人-添加") + @ApiOperation(value="单位基本情况联系人-添加", notes="单位基本情况联系人-添加") + @RequiresPermissions("depadminlx:depadminlx:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Depadminlx depadminlx) { + depadminlxService.save(depadminlx); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param depadminlx + * @return + */ + @AutoLog(value = "单位基本情况联系人-编辑") + @ApiOperation(value="单位基本情况联系人-编辑", notes="单位基本情况联系人-编辑") + @RequiresPermissions("depadminlx:depadminlx:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Depadminlx depadminlx) { + depadminlxService.updateById(depadminlx); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "单位基本情况联系人-通过id删除") + @ApiOperation(value="单位基本情况联系人-通过id删除", notes="单位基本情况联系人-通过id删除") + @RequiresPermissions("depadminlx:depadminlx:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + depadminlxService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "单位基本情况联系人-批量删除") + @ApiOperation(value="单位基本情况联系人-批量删除", notes="单位基本情况联系人-批量删除") + @RequiresPermissions("depadminlx:depadminlx:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.depadminlxService.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 queryById(@RequestParam(name="id",required=true) String id) { + Depadminlx depadminlx = depadminlxService.getById(id); + if(depadminlx==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(depadminlx); + } + + /** + * 导出excel + * + * @param request + * @param depadminlx + */ + @RequiresPermissions("depadminlx:depadminlx:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Depadminlx depadminlx) { + return super.exportXls(request, depadminlx, Depadminlx.class, "单位基本情况联系人"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequiresPermissions("depadminlx:depadminlx:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, Depadminlx.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/entity/Depadminlx.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/entity/Depadminlx.java new file mode 100644 index 0000000..9b89a73 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/entity/Depadminlx.java @@ -0,0 +1,101 @@ +package org.jeecg.modules.demo.depadminlx.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 org.jeecg.common.constant.ProvinceCityArea; +import org.jeecg.common.util.SpringContextUtils; +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: 2024-11-01 + * @Version: V1.0 + */ +@Data +@TableName("depadminlx") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="depadminlx对象", description="单位基本情况联系人") +public class Depadminlx 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; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private String sysOrgCode; + /**编制数*/ + @Excel(name = "编制数", width = 15) + @ApiModelProperty(value = "编制数") + private String bzs; + /**在职职工人数:*/ + @Excel(name = "在职职工人数:", width = 15) + @ApiModelProperty(value = "在职职工人数:") + private String zzzgrs; + /**中级职称以上研究人员数*/ + @Excel(name = "中级职称以上研究人员数", width = 15) + @ApiModelProperty(value = "中级职称以上研究人员数") + private String zjzcysyjrys; + /**单位联系人姓名*/ + @Excel(name = "单位联系人姓名", width = 15) + @ApiModelProperty(value = "单位联系人姓名") + private String dwlxrxm; + /**单位联系人职称*/ + @Excel(name = "单位联系人职称", width = 15) + @ApiModelProperty(value = "单位联系人职称") + private String dwlxrzc; + /**单位联系人职务*/ + @Excel(name = "单位联系人职务", width = 15) + @ApiModelProperty(value = "单位联系人职务") + private String dwlxrzw; + /**单位联系人电话*/ + @Excel(name = "单位联系人电话", width = 15) + @ApiModelProperty(value = "单位联系人电话") + private String dwlxrdh; + /**单位联系人手机*/ + @Excel(name = "单位联系人手机", width = 15) + @ApiModelProperty(value = "单位联系人手机") + private String dwlxrsj; + /**单位联系人邮箱*/ + @Excel(name = "单位联系人邮箱", width = 15) + @ApiModelProperty(value = "单位联系人邮箱") + private String dwlxryx; + /**部门*/ + @Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @ApiModelProperty(value = "部门") + private String depid; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/DepadminlxMapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/DepadminlxMapper.java new file mode 100644 index 0000000..66e94a3 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/DepadminlxMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.depadminlx.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.depadminlx.entity.Depadminlx; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 单位基本情况联系人 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface DepadminlxMapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/xml/DepadminlxMapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/xml/DepadminlxMapper.xml new file mode 100644 index 0000000..9d0977f --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/mapper/xml/DepadminlxMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/IDepadminlxService.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/IDepadminlxService.java new file mode 100644 index 0000000..6830a3c --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/IDepadminlxService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.depadminlx.service; + +import org.jeecg.modules.demo.depadminlx.entity.Depadminlx; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 单位基本情况联系人 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface IDepadminlxService extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/impl/DepadminlxServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/impl/DepadminlxServiceImpl.java new file mode 100644 index 0000000..8c60899 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depadminlx/service/impl/DepadminlxServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.depadminlx.service.impl; + +import org.jeecg.modules.demo.depadminlx.entity.Depadminlx; +import org.jeecg.modules.demo.depadminlx.mapper.DepadminlxMapper; +import org.jeecg.modules.demo.depadminlx.service.IDepadminlxService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 单位基本情况联系人 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +@Service +public class DepadminlxServiceImpl extends ServiceImpl implements IDepadminlxService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java new file mode 100644 index 0000000..92f9469 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java @@ -0,0 +1,180 @@ +package org.jeecg.modules.demo.depfile.controller; + +import java.util.Arrays; +import java.util.HashMap; +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.system.query.QueryRuleEnum; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.demo.depfile.entity.Depfile; +import org.jeecg.modules.demo.depfile.service.IDepfileService; + +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: 2024-11-01 + * @Version: V1.0 + */ +@Api(tags="单位技术研究资质情况") +@RestController +@RequestMapping("/depfile/depfile") +@Slf4j +public class DepfileController extends JeecgController { + @Autowired + private IDepfileService depfileService; + + /** + * 分页列表查询 + * + * @param depfile + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "单位技术研究资质情况-分页列表查询") + @ApiOperation(value="单位技术研究资质情况-分页列表查询", notes="单位技术研究资质情况-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Depfile depfile, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(depfile, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = depfileService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param depfile + * @return + */ + @AutoLog(value = "单位技术研究资质情况-添加") + @ApiOperation(value="单位技术研究资质情况-添加", notes="单位技术研究资质情况-添加") + @RequiresPermissions("depfile:depfile:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Depfile depfile) { + depfileService.save(depfile); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param depfile + * @return + */ + @AutoLog(value = "单位技术研究资质情况-编辑") + @ApiOperation(value="单位技术研究资质情况-编辑", notes="单位技术研究资质情况-编辑") + @RequiresPermissions("depfile:depfile:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Depfile depfile) { + depfileService.updateById(depfile); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "单位技术研究资质情况-通过id删除") + @ApiOperation(value="单位技术研究资质情况-通过id删除", notes="单位技术研究资质情况-通过id删除") + @RequiresPermissions("depfile:depfile:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + depfileService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "单位技术研究资质情况-批量删除") + @ApiOperation(value="单位技术研究资质情况-批量删除", notes="单位技术研究资质情况-批量删除") + @RequiresPermissions("depfile:depfile:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.depfileService.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 queryById(@RequestParam(name="id",required=true) String id) { + Depfile depfile = depfileService.getById(id); + if(depfile==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(depfile); + } + + /** + * 导出excel + * + * @param request + * @param depfile + */ + @RequiresPermissions("depfile:depfile:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Depfile depfile) { + return super.exportXls(request, depfile, Depfile.class, "单位技术研究资质情况"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequiresPermissions("depfile:depfile:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, Depfile.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/entity/Depfile.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/entity/Depfile.java new file mode 100644 index 0000000..0403607 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/entity/Depfile.java @@ -0,0 +1,83 @@ +package org.jeecg.modules.demo.depfile.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 org.jeecg.common.constant.ProvinceCityArea; +import org.jeecg.common.util.SpringContextUtils; +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: 2024-11-01 + * @Version: V1.0 + */ +@Data +@TableName("depfile") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="depfile对象", description="单位技术研究资质情况") +public class Depfile 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; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private String sysOrgCode; + /**部门名称*/ + @Excel(name = "部门名称", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @ApiModelProperty(value = "部门名称") + private String depid; + /**名称*/ + @Excel(name = "名称", width = 15) + @ApiModelProperty(value = "名称") + private String filename; + /**认定部门及批号*/ + @Excel(name = "认定部门及批号", width = 15) + @ApiModelProperty(value = "认定部门及批号") + private String depnumber; + /**认定时间*/ + @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 rdtime; + /**文件*/ + @Excel(name = "文件", width = 15) + @ApiModelProperty(value = "文件") + private String upfile; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/DepfileMapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/DepfileMapper.java new file mode 100644 index 0000000..6d8e69b --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/DepfileMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.depfile.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.depfile.entity.Depfile; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 单位技术研究资质情况 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface DepfileMapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/xml/DepfileMapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/xml/DepfileMapper.xml new file mode 100644 index 0000000..149258b --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/mapper/xml/DepfileMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/IDepfileService.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/IDepfileService.java new file mode 100644 index 0000000..18e84b4 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/IDepfileService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.depfile.service; + +import org.jeecg.modules.demo.depfile.entity.Depfile; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 单位技术研究资质情况 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface IDepfileService extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/impl/DepfileServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/impl/DepfileServiceImpl.java new file mode 100644 index 0000000..96149ff --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/service/impl/DepfileServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.depfile.service.impl; + +import org.jeecg.modules.demo.depfile.entity.Depfile; +import org.jeecg.modules.demo.depfile.mapper.DepfileMapper; +import org.jeecg.modules.demo.depfile.service.IDepfileService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 单位技术研究资质情况 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +@Service +public class DepfileServiceImpl extends ServiceImpl implements IDepfileService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java new file mode 100644 index 0000000..fa8b637 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java @@ -0,0 +1,180 @@ +package org.jeecg.modules.demo.depsbncz.controller; + +import java.util.Arrays; +import java.util.HashMap; +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.system.query.QueryRuleEnum; +import org.jeecg.common.util.oConvertUtils; +import org.jeecg.modules.demo.depsbncz.entity.Depsbncz; +import org.jeecg.modules.demo.depsbncz.service.IDepsbnczService; + +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: 2024-11-01 + * @Version: V1.0 + */ +@Api(tags="上年度(末)主要财务数据") +@RestController +@RequestMapping("/depsbncz/depsbncz") +@Slf4j +public class DepsbnczController extends JeecgController { + @Autowired + private IDepsbnczService depsbnczService; + + /** + * 分页列表查询 + * + * @param depsbncz + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "上年度(末)主要财务数据-分页列表查询") + @ApiOperation(value="上年度(末)主要财务数据-分页列表查询", notes="上年度(末)主要财务数据-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(Depsbncz depsbncz, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(depsbncz, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = depsbnczService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param depsbncz + * @return + */ + @AutoLog(value = "上年度(末)主要财务数据-添加") + @ApiOperation(value="上年度(末)主要财务数据-添加", notes="上年度(末)主要财务数据-添加") + @RequiresPermissions("depsbncz:depsbncz:add") + @PostMapping(value = "/add") + public Result add(@RequestBody Depsbncz depsbncz) { + depsbnczService.save(depsbncz); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param depsbncz + * @return + */ + @AutoLog(value = "上年度(末)主要财务数据-编辑") + @ApiOperation(value="上年度(末)主要财务数据-编辑", notes="上年度(末)主要财务数据-编辑") + @RequiresPermissions("depsbncz:depsbncz:edit") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) + public Result edit(@RequestBody Depsbncz depsbncz) { + depsbnczService.updateById(depsbncz); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "上年度(末)主要财务数据-通过id删除") + @ApiOperation(value="上年度(末)主要财务数据-通过id删除", notes="上年度(末)主要财务数据-通过id删除") + @RequiresPermissions("depsbncz:depsbncz:delete") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + depsbnczService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "上年度(末)主要财务数据-批量删除") + @ApiOperation(value="上年度(末)主要财务数据-批量删除", notes="上年度(末)主要财务数据-批量删除") + @RequiresPermissions("depsbncz:depsbncz:deleteBatch") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.depsbnczService.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 queryById(@RequestParam(name="id",required=true) String id) { + Depsbncz depsbncz = depsbnczService.getById(id); + if(depsbncz==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(depsbncz); + } + + /** + * 导出excel + * + * @param request + * @param depsbncz + */ + @RequiresPermissions("depsbncz:depsbncz:exportXls") + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Depsbncz depsbncz) { + return super.exportXls(request, depsbncz, Depsbncz.class, "上年度(末)主要财务数据"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequiresPermissions("depsbncz:depsbncz:importExcel") + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, Depsbncz.class); + } + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/entity/Depsbncz.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/entity/Depsbncz.java new file mode 100644 index 0000000..997b18d --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/entity/Depsbncz.java @@ -0,0 +1,105 @@ +package org.jeecg.modules.demo.depsbncz.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 org.jeecg.common.constant.ProvinceCityArea; +import org.jeecg.common.util.SpringContextUtils; +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: 2024-11-01 + * @Version: V1.0 + */ +@Data +@TableName("depsbncz") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="depsbncz对象", description="上年度(末)主要财务数据") +public class Depsbncz 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; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private String sysOrgCode; + /**部门*/ + @Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @ApiModelProperty(value = "部门") + private String depid; + /**单位开办费*/ + @Excel(name = "单位开办费", width = 15) + @ApiModelProperty(value = "单位开办费") + private String dwkbf; + /**资产合计*/ + @Excel(name = "资产合计", width = 15) + @ApiModelProperty(value = "资产合计") + private String zchj; + /**负债合计*/ + @Excel(name = "负债合计", width = 15) + @ApiModelProperty(value = "负债合计") + private String fzhj; + /**净资产*/ + @Excel(name = "净资产", width = 15) + @ApiModelProperty(value = "净资产") + private String jzc; + /**财政拨款*/ + @Excel(name = "财政拨款", width = 15) + @ApiModelProperty(value = "财政拨款") + private String czbk; + /**财政拨款专项支出*/ + @Excel(name = "财政拨款专项支出", width = 15) + @ApiModelProperty(value = "财政拨款专项支出") + private String czbkzxzc; + /**经营收入*/ + @Excel(name = "经营收入", width = 15) + @ApiModelProperty(value = "经营收入") + private String jysr; + /**经营支出*/ + @Excel(name = "经营支出", width = 15) + @ApiModelProperty(value = "经营支出") + private String jyzc; + /**经营结余*/ + @Excel(name = "经营结余", width = 15) + @ApiModelProperty(value = "经营结余") + private String jyjy; + /**纳税总额*/ + @Excel(name = "纳税总额", width = 15) + @ApiModelProperty(value = "纳税总额") + private String nsze; +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/DepsbnczMapper.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/DepsbnczMapper.java new file mode 100644 index 0000000..821d209 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/DepsbnczMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.depsbncz.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.depsbncz.entity.Depsbncz; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 上年度(末)主要财务数据 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface DepsbnczMapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/xml/DepsbnczMapper.xml b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/xml/DepsbnczMapper.xml new file mode 100644 index 0000000..adb48b2 --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/mapper/xml/DepsbnczMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/IDepsbnczService.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/IDepsbnczService.java new file mode 100644 index 0000000..ffee35e --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/IDepsbnczService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.depsbncz.service; + +import org.jeecg.modules.demo.depsbncz.entity.Depsbncz; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 上年度(末)主要财务数据 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +public interface IDepsbnczService extends IService { + +} diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/impl/DepsbnczServiceImpl.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/impl/DepsbnczServiceImpl.java new file mode 100644 index 0000000..8c8e36f --- /dev/null +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/service/impl/DepsbnczServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.depsbncz.service.impl; + +import org.jeecg.modules.demo.depsbncz.entity.Depsbncz; +import org.jeecg.modules.demo.depsbncz.mapper.DepsbnczMapper; +import org.jeecg.modules.demo.depsbncz.service.IDepsbnczService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 上年度(末)主要财务数据 + * @Author: jeecg-boot + * @Date: 2024-11-01 + * @Version: V1.0 + */ +@Service +public class DepsbnczServiceImpl extends ServiceImpl implements IDepsbnczService { + +} diff --git a/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3.png b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3.png new file mode 100644 index 0000000..17bc9d1 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3@2x.png new file mode 100644 index 0000000..5073de7 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_ 3@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_3.png b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_3.png new file mode 100644 index 0000000..36916ec Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/2641675928551_3.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(1).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(1).png new file mode 100644 index 0000000..0f603d0 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(1).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(2).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(2).png new file mode 100644 index 0000000..e7e29f9 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(2).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(3).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(3).png new file mode 100644 index 0000000..fa14716 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(3).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(4).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(4).png new file mode 100644 index 0000000..d720678 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(4).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(5).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(5).png new file mode 100644 index 0000000..e1bec25 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(5).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame(6).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame(6).png new file mode 100644 index 0000000..ec73157 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame(6).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame.png b/jeecgboot-vue3/src/assets/images/mainHome/Frame.png new file mode 100644 index 0000000..918d5ae Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(1).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(1).png new file mode 100644 index 0000000..988e188 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(1).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(2).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(2).png new file mode 100644 index 0000000..f805f81 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(2).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(3).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(3).png new file mode 100644 index 0000000..3e95eb6 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(3).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(4).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(4).png new file mode 100644 index 0000000..feb9eb4 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(4).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(5).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(5).png new file mode 100644 index 0000000..7a92fd8 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(5).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(6).png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(6).png new file mode 100644 index 0000000..aa1ce9e Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x(6).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x.png new file mode 100644 index 0000000..6d14868 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Frame@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Group 18.png b/jeecgboot-vue3/src/assets/images/mainHome/Group 18.png new file mode 100644 index 0000000..f01edab Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Group 18.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Group 18@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/Group 18@2x.png new file mode 100644 index 0000000..518c442 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Group 18@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Group 3.png b/jeecgboot-vue3/src/assets/images/mainHome/Group 3.png new file mode 100644 index 0000000..c58faf9 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Group 3.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Group 3@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/Group 3@2x.png new file mode 100644 index 0000000..e47e83c Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Group 3@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/Group18.png b/jeecgboot-vue3/src/assets/images/mainHome/Group18.png new file mode 100644 index 0000000..f01edab Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/Group18.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/bg.png b/jeecgboot-vue3/src/assets/images/mainHome/bg.png new file mode 100644 index 0000000..4e60cc3 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/bg.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/chevron-right.png b/jeecgboot-vue3/src/assets/images/mainHome/chevron-right.png new file mode 100644 index 0000000..0938dd1 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/chevron-right.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/chevron-right@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/chevron-right@2x.png new file mode 100644 index 0000000..7ddfa82 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/chevron-right@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/div(1).png b/jeecgboot-vue3/src/assets/images/mainHome/div(1).png new file mode 100644 index 0000000..8f4a077 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/div(1).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/div.png b/jeecgboot-vue3/src/assets/images/mainHome/div.png new file mode 100644 index 0000000..f302b5d Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/div.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/div@2x(1).png b/jeecgboot-vue3/src/assets/images/mainHome/div@2x(1).png new file mode 100644 index 0000000..0da52b2 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/div@2x(1).png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/div@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/div@2x.png new file mode 100644 index 0000000..68712f8 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/div@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 14.png b/jeecgboot-vue3/src/assets/images/mainHome/image 14.png new file mode 100644 index 0000000..13d523b Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 14.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 14@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/image 14@2x.png new file mode 100644 index 0000000..a964ee3 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 14@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 15.png b/jeecgboot-vue3/src/assets/images/mainHome/image 15.png new file mode 100644 index 0000000..c8d7faf Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 15.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 15@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/image 15@2x.png new file mode 100644 index 0000000..8dedd40 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 15@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 6.png b/jeecgboot-vue3/src/assets/images/mainHome/image 6.png new file mode 100644 index 0000000..e509338 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 6.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image 6@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/image 6@2x.png new file mode 100644 index 0000000..5a03800 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image 6@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image14.png b/jeecgboot-vue3/src/assets/images/mainHome/image14.png new file mode 100644 index 0000000..13d523b Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image14.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image15.png b/jeecgboot-vue3/src/assets/images/mainHome/image15.png new file mode 100644 index 0000000..c8d7faf Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image15.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/image6@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/image6@2x.png new file mode 100644 index 0000000..f5714d0 Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/image6@2x.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台.png b/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台.png new file mode 100644 index 0000000..d785dad Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台.png differ diff --git a/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台@2x.png b/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台@2x.png new file mode 100644 index 0000000..e47e83c Binary files /dev/null and b/jeecgboot-vue3/src/assets/images/mainHome/河南省大学生学科竞赛综合管理平台@2x.png differ diff --git a/jeecgboot-vue3/src/views/depadminlx/Depadminlx.api.ts b/jeecgboot-vue3/src/views/depadminlx/Depadminlx.api.ts new file mode 100644 index 0000000..edb55d9 --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/Depadminlx.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/depadminlx/depadminlx/list', + save='/depadminlx/depadminlx/add', + edit='/depadminlx/depadminlx/edit', + deleteOne = '/depadminlx/depadminlx/delete', + deleteBatch = '/depadminlx/depadminlx/deleteBatch', + importExcel = '/depadminlx/depadminlx/importExcel', + exportXls = '/depadminlx/depadminlx/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/depadminlx/Depadminlx.data.ts b/jeecgboot-vue3/src/views/depadminlx/Depadminlx.data.ts new file mode 100644 index 0000000..eaf3ea01 --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/Depadminlx.data.ts @@ -0,0 +1,72 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '编制数', + align: "center", + dataIndex: 'bzs' + }, + { + title: '在职职工人数:', + align: "center", + dataIndex: 'zzzgrs' + }, + { + title: '中级职称以上研究人员数', + align: "center", + dataIndex: 'zjzcysyjrys' + }, + { + title: '单位联系人姓名', + align: "center", + dataIndex: 'dwlxrxm' + }, + { + title: '单位联系人职称', + align: "center", + dataIndex: 'dwlxrzc' + }, + { + title: '单位联系人职务', + align: "center", + dataIndex: 'dwlxrzw' + }, + { + title: '单位联系人电话', + align: "center", + dataIndex: 'dwlxrdh' + }, + { + title: '单位联系人手机', + align: "center", + dataIndex: 'dwlxrsj' + }, + { + title: '单位联系人邮箱', + align: "center", + dataIndex: 'dwlxryx' + }, + { + title: '部门', + align: "center", + dataIndex: 'depid_dictText' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + bzs: {title: '编制数',order: 0,view: 'text', type: 'string',}, + zzzgrs: {title: '在职职工人数:',order: 1,view: 'text', type: 'string',}, + zjzcysyjrys: {title: '中级职称以上研究人员数',order: 2,view: 'text', type: 'string',}, + dwlxrxm: {title: '单位联系人姓名',order: 3,view: 'text', type: 'string',}, + dwlxrzc: {title: '单位联系人职称',order: 4,view: 'text', type: 'string',}, + dwlxrzw: {title: '单位联系人职务',order: 5,view: 'text', type: 'string',}, + dwlxrdh: {title: '单位联系人电话',order: 6,view: 'text', type: 'string',}, + dwlxrsj: {title: '单位联系人手机',order: 7,view: 'text', type: 'string',}, + dwlxryx: {title: '单位联系人邮箱',order: 8,view: 'text', type: 'string',}, + depid: {title: '部门',order: 9,view: 'sel_search', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',}, +}; diff --git a/jeecgboot-vue3/src/views/depadminlx/DepadminlxList.vue b/jeecgboot-vue3/src/views/depadminlx/DepadminlxList.vue new file mode 100644 index 0000000..0d70cd0 --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/DepadminlxList.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depadminlx/V20241101_1__menu_insert_Depadminlx.sql b/jeecgboot-vue3/src/views/depadminlx/V20241101_1__menu_insert_Depadminlx.sql new file mode 100644 index 0000000..05c72ce --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/V20241101_1__menu_insert_Depadminlx.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/depadminlx文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2024110110148950120', NULL, '单位基本情况联系人', '/depadminlx/depadminlxList', 'depadminlx/DepadminlxList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950121', '2024110110148950120', '添加单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950122', '2024110110148950120', '编辑单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950123', '2024110110148950120', '删除单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950124', '2024110110148950120', '批量删除单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950125', '2024110110148950120', '导出excel_单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110110148950126', '2024110110148950120', '导入excel_单位基本情况联系人', NULL, NULL, 0, NULL, NULL, 2, 'depadminlx:depadminlx:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 10:14:12', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxForm.vue b/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxForm.vue new file mode 100644 index 0000000..669aa89 --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxForm.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxModal.vue b/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxModal.vue new file mode 100644 index 0000000..16c965f --- /dev/null +++ b/jeecgboot-vue3/src/views/depadminlx/components/DepadminlxModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/depfile/Depfile.api.ts b/jeecgboot-vue3/src/views/depfile/Depfile.api.ts new file mode 100644 index 0000000..7ee2b34 --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/Depfile.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/depfile/depfile/list', + save='/depfile/depfile/add', + edit='/depfile/depfile/edit', + deleteOne = '/depfile/depfile/delete', + deleteBatch = '/depfile/depfile/deleteBatch', + importExcel = '/depfile/depfile/importExcel', + exportXls = '/depfile/depfile/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/depfile/Depfile.data.ts b/jeecgboot-vue3/src/views/depfile/Depfile.data.ts new file mode 100644 index 0000000..70e98ce --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/Depfile.data.ts @@ -0,0 +1,42 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '部门名称', + align: "center", + dataIndex: 'depid_dictText' + }, + { + title: '名称', + align: "center", + dataIndex: 'filename' + }, + { + title: '认定部门及批号', + align: "center", + dataIndex: 'depnumber' + }, + { + title: '认定时间', + align: "center", + dataIndex: 'rdtime' + }, + { + title: '文件', + align: "center", + dataIndex: 'upfile', + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + depid: {title: '部门名称',order: 0,view: 'sel_search', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',}, + filename: {title: '名称',order: 1,view: 'text', type: 'string',}, + depnumber: {title: '认定部门及批号',order: 2,view: 'text', type: 'string',}, + rdtime: {title: '认定时间',order: 3,view: 'datetime', type: 'string',}, + upfile: {title: '文件',order: 4,view: 'file', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/depfile/DepfileList.vue b/jeecgboot-vue3/src/views/depfile/DepfileList.vue new file mode 100644 index 0000000..836673c --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/DepfileList.vue @@ -0,0 +1,241 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depfile/V20241101_1__menu_insert_Depfile.sql b/jeecgboot-vue3/src/views/depfile/V20241101_1__menu_insert_Depfile.sql new file mode 100644 index 0000000..c2b426e --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/V20241101_1__menu_insert_Depfile.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/depfile文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2024110109297380210', NULL, '单位技术研究资质情况', '/depfile/depfileList', 'depfile/DepfileList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380211', '2024110109297380210', '添加单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380212', '2024110109297380210', '编辑单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380213', '2024110109297380210', '删除单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380214', '2024110109297380210', '批量删除单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380215', '2024110109297380210', '导出excel_单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109297380216', '2024110109297380210', '导入excel_单位技术研究资质情况', NULL, NULL, 0, NULL, NULL, 2, 'depfile:depfile:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:29:21', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/depfile/components/DepfileForm.vue b/jeecgboot-vue3/src/views/depfile/components/DepfileForm.vue new file mode 100644 index 0000000..1ccbc70 --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/components/DepfileForm.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depfile/components/DepfileModal.vue b/jeecgboot-vue3/src/views/depfile/components/DepfileModal.vue new file mode 100644 index 0000000..decce71 --- /dev/null +++ b/jeecgboot-vue3/src/views/depfile/components/DepfileModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts new file mode 100644 index 0000000..3afe675 --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/depsbncz/depsbncz/list', + save='/depsbncz/depsbncz/add', + edit='/depsbncz/depsbncz/edit', + deleteOne = '/depsbncz/depsbncz/delete', + deleteBatch = '/depsbncz/depsbncz/deleteBatch', + importExcel = '/depsbncz/depsbncz/importExcel', + exportXls = '/depsbncz/depsbncz/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts new file mode 100644 index 0000000..5e3d946 --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts @@ -0,0 +1,78 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '部门', + align: "center", + dataIndex: 'depid_dictText' + }, + { + title: '单位开办费', + align: "center", + dataIndex: 'dwkbf' + }, + { + title: '资产合计', + align: "center", + dataIndex: 'zchj' + }, + { + title: '负债合计', + align: "center", + dataIndex: 'fzhj' + }, + { + title: '净资产', + align: "center", + dataIndex: 'jzc' + }, + { + title: '财政拨款', + align: "center", + dataIndex: 'czbk' + }, + { + title: '财政拨款专项支出', + align: "center", + dataIndex: 'czbkzxzc' + }, + { + title: '经营收入', + align: "center", + dataIndex: 'jysr' + }, + { + title: '经营支出', + align: "center", + dataIndex: 'jyzc' + }, + { + title: '经营结余', + align: "center", + dataIndex: 'jyjy' + }, + { + title: '纳税总额', + align: "center", + dataIndex: 'nsze' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + depid: {title: '部门',order: 0,view: 'sel_search', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',}, + dwkbf: {title: '单位开办费',order: 1,view: 'text', type: 'string',}, + zchj: {title: '资产合计',order: 2,view: 'text', type: 'string',}, + fzhj: {title: '负债合计',order: 3,view: 'text', type: 'string',}, + jzc: {title: '净资产',order: 4,view: 'text', type: 'string',}, + czbk: {title: '财政拨款',order: 5,view: 'text', type: 'string',}, + czbkzxzc: {title: '财政拨款专项支出',order: 6,view: 'text', type: 'string',}, + jysr: {title: '经营收入',order: 7,view: 'text', type: 'string',}, + jyzc: {title: '经营支出',order: 8,view: 'text', type: 'string',}, + jyjy: {title: '经营结余',order: 9,view: 'text', type: 'string',}, + nsze: {title: '纳税总额',order: 10,view: 'text', type: 'string',}, +}; diff --git a/jeecgboot-vue3/src/views/depsbncz/DepsbnczList.vue b/jeecgboot-vue3/src/views/depsbncz/DepsbnczList.vue new file mode 100644 index 0000000..ae71389 --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/DepsbnczList.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depsbncz/V20241101_1__menu_insert_Depsbncz.sql b/jeecgboot-vue3/src/views/depsbncz/V20241101_1__menu_insert_Depsbncz.sql new file mode 100644 index 0000000..e146f15 --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/V20241101_1__menu_insert_Depsbncz.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/depsbncz文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2024110109512550080', NULL, '上年度(末)主要财务数据', '/depsbncz/depsbnczList', 'depsbncz/DepsbnczList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550081', '2024110109512550080', '添加上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550082', '2024110109512550080', '编辑上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550083', '2024110109512550080', '删除上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550084', '2024110109512550080', '批量删除上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550085', '2024110109512550080', '导出excel_上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2024110109512550086', '2024110109512550080', '导入excel_上年度(末)主要财务数据', NULL, NULL, 0, NULL, NULL, 2, 'depsbncz:depsbncz:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2024-11-01 09:51:08', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczForm.vue b/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczForm.vue new file mode 100644 index 0000000..eaab1c7 --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczForm.vue @@ -0,0 +1,206 @@ + + + + + diff --git a/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczModal.vue b/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczModal.vue new file mode 100644 index 0000000..83e296a --- /dev/null +++ b/jeecgboot-vue3/src/views/depsbncz/components/DepsbnczModal.vue @@ -0,0 +1,77 @@ + + + + + +