From 625eaccbd304be6867eefb3d0718a450d5600874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Wed, 6 Nov 2024 18:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AE=E5=AD=A6?= =?UTF-8?q?=E6=A0=A1=E4=B8=8A=E4=BC=A0=E5=8F=82=E8=B5=9B=E8=AF=81=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HitRegistrationTeachInfoController.java | 13 + .../SchoolCertificateController.java | 110 ++++++ .../ruoyi/cms/domain/SchoolCertificate.java | 80 ++++ .../HitRegistrationTeachInfoMapper.java | 5 + .../cms/mapper/SchoolCertificateMapper.java | 63 ++++ .../IHitRegistrationTeachInfoService.java | 10 + .../service/ISchoolCertificateService.java | 70 ++++ .../HitRegistrationTeachInfoServiceImpl.java | 13 + .../impl/SchoolCertificateServiceImpl.java | 131 +++++++ .../cms/HitRegistrationTeachInfoMapper.xml | 13 +- .../mapper/cms/SchoolCertificateMapper.xml | 76 ++++ .../common/utils/file/FileUploadUtils.java | 4 +- ruoyi-ui/src/api/hit/certificate.js | 60 +++ ruoyi-ui/src/views/hit/certificate/index.vue | 344 ++++++++++++++++++ 14 files changed, 989 insertions(+), 3 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/cms/controller/SchoolCertificateController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/cms/domain/SchoolCertificate.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/SchoolCertificateMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/cms/service/ISchoolCertificateService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/SchoolCertificateServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/cms/SchoolCertificateMapper.xml create mode 100644 ruoyi-ui/src/api/hit/certificate.js create mode 100644 ruoyi-ui/src/views/hit/certificate/index.vue diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitRegistrationTeachInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitRegistrationTeachInfoController.java index a050a2f..282ff3f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitRegistrationTeachInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitRegistrationTeachInfoController.java @@ -1,6 +1,7 @@ package com.ruoyi.cms.controller; import java.util.List; +import java.util.Map; import javax.servlet.http.HttpServletResponse; import com.ruoyi.common.core.domain.HitRegistrationTeachInfo; @@ -110,5 +111,17 @@ public class HitRegistrationTeachInfoController extends BaseController return AjaxResult.success(hitRegistrationTeachInfoService.getTeacherInfo(schoolName,division)); } + /** + * 查询学校名称 + * @param hitRegistrationTeachInfo + * @return + */ + @GetMapping("getSchoolName") + public TableDataInfo getSchoolName(String schoolName,String year){ + List schoolNames = hitRegistrationTeachInfoService.getSchoolName(schoolName,year); + return getDataTable(schoolNames); + + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/SchoolCertificateController.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/SchoolCertificateController.java new file mode 100644 index 0000000..433330e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/SchoolCertificateController.java @@ -0,0 +1,110 @@ +package com.ruoyi.cms.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.cms.domain.SchoolCertificate; +import com.ruoyi.cms.service.ISchoolCertificateService; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.common.utils.file.FileUtils; +import com.ruoyi.framework.config.ServerConfig; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; +import org.springframework.web.multipart.MultipartFile; + +/** + * certificateController + * + * @author ruoyi + * @date 2024-11-06 + */ +@RestController +@RequestMapping("/system/certificate") +public class SchoolCertificateController extends BaseController { + @Autowired + private ISchoolCertificateService schoolCertificateService; + + @Autowired + private ServerConfig serverConfig; + + /** + * 查询certificate列表 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:list')") + @GetMapping("/list") + public TableDataInfo list(SchoolCertificate schoolCertificate) { + startPage(); + List list = schoolCertificateService.selectSchoolCertificateList(schoolCertificate); + return getDataTable(list); + } + + /** + * 导出certificate列表 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:export')") + @Log(title = "certificate", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SchoolCertificate schoolCertificate) { + List list = schoolCertificateService.selectSchoolCertificateList(schoolCertificate); + ExcelUtil util = new ExcelUtil(SchoolCertificate.class); + util.exportExcel(response, list, "certificate数据"); + } + + /** + * 获取certificate详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:certificate:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return success(schoolCertificateService.selectSchoolCertificateById(id)); + } + + /** + * 新增certificate + */ + @Log(title = "certificate", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SchoolCertificate schoolCertificate) { + return toAjax(schoolCertificateService.insertSchoolCertificate(schoolCertificate)); + } + + /** + * 修改certificate + */ + @PreAuthorize("@ss.hasPermi('system:certificate:edit')") + @Log(title = "certificate", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SchoolCertificate schoolCertificate) { + return toAjax(schoolCertificateService.updateSchoolCertificate(schoolCertificate)); + } + + /** + * 删除certificate + */ + @PreAuthorize("@ss.hasPermi('system:certificate:remove')") + @Log(title = "certificate", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(schoolCertificateService.deleteSchoolCertificateByIds(ids)); + } + + @GetMapping("/download") + public AjaxResult download(SchoolCertificate schoolCertificate){ + return success(schoolCertificateService.download(schoolCertificate)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/domain/SchoolCertificate.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/domain/SchoolCertificate.java new file mode 100644 index 0000000..4186e76 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/domain/SchoolCertificate.java @@ -0,0 +1,80 @@ +package com.ruoyi.cms.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * certificate对象 school_certificate + * + * @author ruoyi + * @date 2024-11-06 + */ +public class SchoolCertificate extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long id; + + /** 学校名称 */ + @Excel(name = "学校名称") + private String schooleName; + + /** 文件地址 */ + @Excel(name = "文件地址") + private String file; + + /** 年份 */ + private String year; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setSchooleName(String schooleName) + { + this.schooleName = schooleName; + } + + public String getSchooleName() + { + return schooleName; + } + public void setFile(String file) + { + this.file = file; + } + + public String getFile() + { + return file; + } + public void setYear(String year) + { + this.year = year; + } + + public String getYear() + { + return year; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("schooleName", getSchooleName()) + .append("file", getFile()) + .append("year", getYear()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/HitRegistrationTeachInfoMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/HitRegistrationTeachInfoMapper.java index 7cc5727..5156dc8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/HitRegistrationTeachInfoMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/HitRegistrationTeachInfoMapper.java @@ -1,9 +1,12 @@ package com.ruoyi.cms.mapper; import java.util.List; +import java.util.Map; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.ruoyi.common.core.domain.HitRegistrationTeachInfo; +import org.apache.ibatis.annotations.Param; /** * 教师信息Mapper接口 @@ -67,4 +70,6 @@ public interface HitRegistrationTeachInfoMapper extends BaseMapper selectSchoolName(@Param("schoolName") String schoolename,@Param("year") String year); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/SchoolCertificateMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/SchoolCertificateMapper.java new file mode 100644 index 0000000..c0fe242 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/mapper/SchoolCertificateMapper.java @@ -0,0 +1,63 @@ +package com.ruoyi.cms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.cms.domain.SchoolCertificate; + +import java.util.List; + +/** + * certificateMapper接口 + * + * @author ruoyi + * @date 2024-11-06 + */ +public interface SchoolCertificateMapper extends BaseMapper +{ + /** + * 查询certificate + * + * @param id certificate主键 + * @return certificate + */ + public SchoolCertificate selectSchoolCertificateById(Long id); + + /** + * 查询certificate列表 + * + * @param schoolCertificate certificate + * @return certificate集合 + */ + public List selectSchoolCertificateList(SchoolCertificate schoolCertificate); + + /** + * 新增certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + public int insertSchoolCertificate(SchoolCertificate schoolCertificate); + + /** + * 修改certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + public int updateSchoolCertificate(SchoolCertificate schoolCertificate); + + /** + * 删除certificate + * + * @param id certificate主键 + * @return 结果 + */ + public int deleteSchoolCertificateById(Long id); + + /** + * 批量删除certificate + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteSchoolCertificateByIds(Long[] ids); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegistrationTeachInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegistrationTeachInfoService.java index aa9dd6d..64b2e36 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegistrationTeachInfoService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegistrationTeachInfoService.java @@ -1,11 +1,13 @@ package com.ruoyi.cms.service; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.ruoyi.cms.domain.HitRegistrationStudentInfo; import com.ruoyi.common.core.domain.HitRegistrationTeachInfo; import com.ruoyi.common.core.domain.model.RegisterBody; import org.springframework.web.bind.annotation.RequestBody; import java.util.List; +import java.util.Map; /** * 教师信息Service接口 @@ -73,4 +75,12 @@ public interface IHitRegistrationTeachInfoService List getTeacherInfo(String schoolName, String division); void register(RegisterBody user) throws Exception; + + /** + * + * 查询学校名称 + * @param schoolName + * @return + */ + List getSchoolName(String schoolename,String year); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/ISchoolCertificateService.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/ISchoolCertificateService.java new file mode 100644 index 0000000..bd9d79b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/ISchoolCertificateService.java @@ -0,0 +1,70 @@ +package com.ruoyi.cms.service; + +import com.ruoyi.cms.domain.SchoolCertificate; + +import java.util.List; + +/** + * certificateService接口 + * + * @author ruoyi + * @date 2024-11-06 + */ +public interface ISchoolCertificateService +{ + /** + * 查询certificate + * + * @param id certificate主键 + * @return certificate + */ + public SchoolCertificate selectSchoolCertificateById(Long id); + + /** + * 查询certificate列表 + * + * @param schoolCertificate certificate + * @return certificate集合 + */ + public List selectSchoolCertificateList(SchoolCertificate schoolCertificate); + + /** + * 新增certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + public int insertSchoolCertificate(SchoolCertificate schoolCertificate); + + /** + * 修改certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + public int updateSchoolCertificate(SchoolCertificate schoolCertificate); + + /** + * 批量删除certificate + * + * @param ids 需要删除的certificate主键集合 + * @return 结果 + */ + public int deleteSchoolCertificateByIds(Long[] ids); + + /** + * 删除certificate信息 + * + * @param id certificate主键 + * @return 结果 + */ + public int deleteSchoolCertificateById(Long id); + + /** + * + * + * @param id + * @return + */ + SchoolCertificate download(SchoolCertificate schoolCertificate); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegistrationTeachInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegistrationTeachInfoServiceImpl.java index 44528eb..5136102 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegistrationTeachInfoServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegistrationTeachInfoServiceImpl.java @@ -3,8 +3,10 @@ package com.ruoyi.cms.service.impl; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.List; +import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.ruoyi.cms.domain.HitRegistrationStudentInfo; import com.ruoyi.common.constant.CacheConstants; import com.ruoyi.common.constant.Constants; @@ -239,6 +241,17 @@ public class HitRegistrationTeachInfoServiceImpl implements IHitRegistrationTeac } } + /** + * 查询学校名称 + * + * @param schoolName + * @return + */ + @Override + public List getSchoolName(String schoolename,String year) { + return hitRegistrationTeachInfoMapper.selectSchoolName(schoolename,year); + } + /** * 校验验证码 * diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/SchoolCertificateServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/SchoolCertificateServiceImpl.java new file mode 100644 index 0000000..968c0b6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/SchoolCertificateServiceImpl.java @@ -0,0 +1,131 @@ +package com.ruoyi.cms.service.impl; + +import java.util.List; + +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.ObjectUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.cms.domain.SchoolCertificate; +import com.ruoyi.cms.mapper.SchoolCertificateMapper; +import com.ruoyi.cms.service.ISchoolCertificateService; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * certificateService业务层处理 + * + * @author ruoyi + * @date 2024-11-06 + */ +@Service +public class SchoolCertificateServiceImpl extends ServiceImpl implements ISchoolCertificateService +{ + @Autowired + private SchoolCertificateMapper schoolCertificateMapper; + + /** + * 查询certificate + * + * @param id certificate主键 + * @return certificate + */ + @Override + public SchoolCertificate selectSchoolCertificateById(Long id) + { + return schoolCertificateMapper.selectSchoolCertificateById(id); + } + + /** + * 查询certificate列表 + * + * @param schoolCertificate certificate + * @return certificate + */ + @Override + public List selectSchoolCertificateList(SchoolCertificate schoolCertificate) + { + return schoolCertificateMapper.selectSchoolCertificateList(schoolCertificate); + } + + /** + * 新增certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + @Override + public int insertSchoolCertificate(SchoolCertificate schoolCertificate) + { + //判断当前年 当前学校是否有数据 + int year = DateUtil.year(DateUtil.date()); + SchoolCertificate schoolCertificate1 = baseMapper.selectOne(new LambdaQueryWrapper<>(SchoolCertificate.class) + .eq(SchoolCertificate::getSchooleName, schoolCertificate.getSchooleName()) + .eq(SchoolCertificate::getYear, year)); + if (ObjectUtil.isNotNull(schoolCertificate1)) { + //修改 + schoolCertificate1.setFile(schoolCertificate.getFile()); + return baseMapper.updateById(schoolCertificate1); + }else { + //新增 + schoolCertificate.setYear(year+""); + schoolCertificate.setCreateTime(DateUtils.getNowDate()); + return schoolCertificateMapper.insertSchoolCertificate(schoolCertificate); + } + } + + /** + * 修改certificate + * + * @param schoolCertificate certificate + * @return 结果 + */ + @Override + public int updateSchoolCertificate(SchoolCertificate schoolCertificate) + { + schoolCertificate.setUpdateTime(DateUtils.getNowDate()); + return schoolCertificateMapper.updateSchoolCertificate(schoolCertificate); + } + + /** + * 批量删除certificate + * + * @param ids 需要删除的certificate主键 + * @return 结果 + */ + @Override + public int deleteSchoolCertificateByIds(Long[] ids) + { + return schoolCertificateMapper.deleteSchoolCertificateByIds(ids); + } + + /** + * 删除certificate信息 + * + * @param id certificate主键 + * @return 结果 + */ + @Override + public int deleteSchoolCertificateById(Long id) + { + return schoolCertificateMapper.deleteSchoolCertificateById(id); + } + + /** + * @param id + * @return + */ + @Override + public SchoolCertificate download(SchoolCertificate schoolCertificate) { + //通过年份与学校名查询 + SchoolCertificate schoolCertificate1 = baseMapper.selectOne(new LambdaQueryWrapper<>(SchoolCertificate.class) + .eq(SchoolCertificate::getYear, schoolCertificate.getYear()) + .eq(SchoolCertificate::getSchooleName, schoolCertificate.getSchooleName())); + if (ObjectUtil.isNull(schoolCertificate1)){ + throw new RuntimeException("当前学校并未上传"); + } + return schoolCertificate1; + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/cms/HitRegistrationTeachInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/cms/HitRegistrationTeachInfoMapper.xml index 22f6c8c..a46a21d 100644 --- a/ruoyi-admin/src/main/resources/mapper/cms/HitRegistrationTeachInfoMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/cms/HitRegistrationTeachInfoMapper.xml @@ -58,7 +58,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where user_id = #{userId} and YEAR(create_time) = YEAR(CURRENT_DATE) - + insert into hit_registration_teach_info diff --git a/ruoyi-admin/src/main/resources/mapper/cms/SchoolCertificateMapper.xml b/ruoyi-admin/src/main/resources/mapper/cms/SchoolCertificateMapper.xml new file mode 100644 index 0000000..4ca01d9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/cms/SchoolCertificateMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + select id, schoole_name, file, year, create_time, update_time from school_certificate + + + + + + + + insert into school_certificate + + id, + schoole_name, + file, + year, + create_time, + update_time, + + + #{id}, + #{schooleName}, + #{file}, + #{year}, + #{createTime}, + #{updateTime}, + + + + + update school_certificate + + schoole_name = #{schooleName}, + file = #{file}, + year = #{year}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from school_certificate where id = #{id} + + + + delete from school_certificate where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java index a701d77..497fdb6 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java @@ -25,12 +25,12 @@ public class FileUploadUtils /** * 默认大小 50M */ - public static final long DEFAULT_MAX_SIZE = 1000 * 1024 * 1024L; + public static final long DEFAULT_MAX_SIZE = 100000 * 1024 * 1024L; /** * 默认的文件名最大长度 100 */ - public static final int DEFAULT_FILE_NAME_LENGTH = 100; + public static final int DEFAULT_FILE_NAME_LENGTH = 1000; /** * 默认上传的地址 diff --git a/ruoyi-ui/src/api/hit/certificate.js b/ruoyi-ui/src/api/hit/certificate.js new file mode 100644 index 0000000..20ff161 --- /dev/null +++ b/ruoyi-ui/src/api/hit/certificate.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +// 查询certificate列表 +export function listCertificate(query) { + return request({ + url: '/system/certificate/list', + method: 'get', + params: query + }) +} +// 查询certificate列表 +export function listSchooleName(query) { + return request({ + url: '/HitRegistrationTeachInfo/HitRegistrationTeachInfo/getSchoolName', + method: 'get', + params: query + }) +} + +// 查询certificate详细 +export function getCertificate(id) { + return request({ + url: '/system/certificate/' + id, + method: 'get' + }) +} + +// 新增certificate +export function addCertificate(data) { + return request({ + url: '/system/certificate', + method: 'post', + data: data + }) +} + +// 修改certificate +export function updateCertificate(data) { + return request({ + url: '/system/certificate', + method: 'put', + data: data + }) +} + +// 删除certificate +export function delCertificate(id) { + return request({ + url: '/system/certificate/' + id, + method: 'delete' + }) +} +// 删除certificate +export function downCertificate(query) { + return request({ + url: '/system/certificate/download', + method: 'get', + params: query + }) +} diff --git a/ruoyi-ui/src/views/hit/certificate/index.vue b/ruoyi-ui/src/views/hit/certificate/index.vue new file mode 100644 index 0000000..deb651c --- /dev/null +++ b/ruoyi-ui/src/views/hit/certificate/index.vue @@ -0,0 +1,344 @@ + + +