diff --git a/inspur-service/inspur-admin/src/main/java/com/inspur/web/controller/examine/ExamAttestationController.java b/inspur-service/inspur-admin/src/main/java/com/inspur/web/controller/examine/ExamAttestationController.java new file mode 100644 index 0000000..dd14e11 --- /dev/null +++ b/inspur-service/inspur-admin/src/main/java/com/inspur/web/controller/examine/ExamAttestationController.java @@ -0,0 +1,118 @@ +package com.inspur.web.controller.examine; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import javax.xml.rpc.ServiceException; + +import com.inspur.examine.domain.ExamAttestationPeople; +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.inspur.common.annotation.Log; +import com.inspur.common.core.controller.BaseController; +import com.inspur.common.core.domain.AjaxResult; +import com.inspur.common.enums.BusinessType; +import com.inspur.examine.domain.ExamAttestation; +import com.inspur.examine.service.IExamAttestationService; +import com.inspur.common.utils.poi.ExcelUtil; +import com.inspur.common.core.page.TableDataInfo; + +/** + * 认证管理Controller + * + * @author inspur + * @date 2024-05-07 + */ +@RestController +@RequestMapping("/examine/attestation") +public class ExamAttestationController extends BaseController +{ + @Autowired + private IExamAttestationService examAttestationService; + + /** + * 查询认证管理列表 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:list')") + @GetMapping("/list") + public TableDataInfo list(ExamAttestation examAttestation) + { + startPage(); + List list = examAttestationService.selectExamAttestationList(examAttestation); + return getDataTable(list); + } + + /** + * 导出认证管理列表 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:export')") + @Log(title = "认证管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ExamAttestation examAttestation) + { + List list = examAttestationService.selectExamAttestationList(examAttestation); + ExcelUtil util = new ExcelUtil(ExamAttestation.class); + util.exportExcel(response, list, "认证管理数据"); + } + + /** + * 获取认证管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(examAttestationService.selectExamAttestationById(id)); + } + + /** + * 新增认证管理 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:add')") + @Log(title = "认证管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ExamAttestation examAttestation) + { + return toAjax(examAttestationService.insertExamAttestation(examAttestation)); + } + + /** + * 修改认证管理 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:edit')") + @Log(title = "认证管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ExamAttestation examAttestation) + { + return toAjax(examAttestationService.updateExamAttestation(examAttestation)); + } + + /** + * 删除认证管理 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:remove')") + @Log(title = "认证管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(examAttestationService.deleteExamAttestationByIds(ids)); + } + + /** + * 查询证书认证名单 + */ + @PreAuthorize("@ss.hasPermi('examine:attestation:peopleList')") + @GetMapping("/peopleList") + public TableDataInfo peopleList(ExamAttestationPeople examAttestationPeople) throws ServiceException { + startPage(); + List list = examAttestationService.selectPeopleList(examAttestationPeople); + return getDataTable(list); + } +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestation.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestation.java new file mode 100644 index 0000000..5948d42 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestation.java @@ -0,0 +1,59 @@ +package com.inspur.examine.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.inspur.common.annotation.Excel; +import com.inspur.common.core.domain.BaseEntity; +import lombok.Data; + +import java.util.Date; + +/** + * 认证管理对象 exam_attestation + * + * @author inspur + * @date 2024-05-07 + */ +@Data +public class ExamAttestation { + private static final long serialVersionUID = 1L; + + /** + * id + */ + private String id; + + /** + * 证书名称 + */ + @Excel(name = "认证名称") + private String attestationName; + + /** + * 发布单位 + */ + @Excel(name = "发布单位") + private String attestationUnit; + + /** + * 证书说明 + */ + @Excel(name = "认证说明") + private String attestationInfo; + + /** + * 创建时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date createTime; + + /** + * 证书认证人数 + */ + @Excel(name = "认证人数") + private Integer peopleCount; + + /** + * 租户id + */ + private String tenantId; +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestationPeople.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestationPeople.java new file mode 100644 index 0000000..e99bd7d --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/domain/ExamAttestationPeople.java @@ -0,0 +1,56 @@ +package com.inspur.examine.domain; + +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.inspur.common.annotation.Excel; +import lombok.Data; + +/** + * 认证人员关联对象 exam_attestation_people + * + * @author inspur + * @date 2024-05-07 + */ +@Data +public class ExamAttestationPeople { + private static final long serialVersionUID = 1L; + + /** + * id + */ + private String id; + + /** + * 认证id + */ + private String attestationId; + + /** + * 证书名称 + */ + private String attestationName; + + /** + * 认证人员id + */ + private Long peopleId; + + /** + * 认证人员名称 + */ + private String peopleName; + + /** + * 认证时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date attestationTime; + + /** + * 租户id + */ + @Excel(name = "租户id") + private String tenantId; +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationMapper.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationMapper.java new file mode 100644 index 0000000..23889d3 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationMapper.java @@ -0,0 +1,61 @@ +package com.inspur.examine.mapper; + +import java.util.List; +import com.inspur.examine.domain.ExamAttestation; + +/** + * 认证管理Mapper接口 + * + * @author inspur + * @date 2024-05-07 + */ +public interface ExamAttestationMapper +{ + /** + * 查询认证管理 + * + * @param id 认证管理主键 + * @return 认证管理 + */ + public ExamAttestation selectExamAttestationById(String id); + + /** + * 查询认证管理列表 + * + * @param examAttestation 认证管理 + * @return 认证管理集合 + */ + public List selectExamAttestationList(ExamAttestation examAttestation); + + /** + * 新增认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + public int insertExamAttestation(ExamAttestation examAttestation); + + /** + * 修改认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + public int updateExamAttestation(ExamAttestation examAttestation); + + /** + * 删除认证管理 + * + * @param id 认证管理主键 + * @return 结果 + */ + public int deleteExamAttestationById(String id); + + /** + * 批量删除认证管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteExamAttestationByIds(String[] ids); +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationPeopleMapper.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationPeopleMapper.java new file mode 100644 index 0000000..76789ed --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/mapper/ExamAttestationPeopleMapper.java @@ -0,0 +1,71 @@ +package com.inspur.examine.mapper; + +import java.util.List; +import com.inspur.examine.domain.ExamAttestationPeople; + +/** + * 认证人员关联Mapper接口 + * + * @author inspur + * @date 2024-05-07 + */ +public interface ExamAttestationPeopleMapper +{ + /** + * 查询认证人员关联 + * + * @param id 认证人员关联主键 + * @return 认证人员关联 + */ + public ExamAttestationPeople selectExamAttestationPeopleById(String id); + + /** + * 查询认证人员关联列表 + * + * @param examAttestationPeople 认证人员关联 + * @return 认证人员关联集合 + */ + public List selectExamAttestationPeopleList(ExamAttestationPeople examAttestationPeople); + + /** + * 新增认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + public int insertExamAttestationPeople(ExamAttestationPeople examAttestationPeople); + + /** + * 修改认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + public int updateExamAttestationPeople(ExamAttestationPeople examAttestationPeople); + + /** + * 删除认证人员关联 + * + * @param id 认证人员关联主键 + * @return 结果 + */ + public int deleteExamAttestationPeopleById(String id); + + /** + * 批量删除认证人员关联 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteExamAttestationPeopleByIds(String[] ids); + + /** + * 根据认证ids删除关联信息 + * + * @Author xusd + * @Date 16:43 2024/5/7 + * @param ids 认证ids + * @return int + */ + int deleteExamAttestationPeopleByAttestationIds(String[] ids); +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationPeopleService.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationPeopleService.java new file mode 100644 index 0000000..9745f30 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationPeopleService.java @@ -0,0 +1,71 @@ +package com.inspur.examine.service; + +import java.util.List; +import com.inspur.examine.domain.ExamAttestationPeople; + +/** + * 认证人员关联Service接口 + * + * @author inspur + * @date 2024-05-07 + */ +public interface IExamAttestationPeopleService +{ + /** + * 查询认证人员关联 + * + * @param id 认证人员关联主键 + * @return 认证人员关联 + */ + public ExamAttestationPeople selectExamAttestationPeopleById(String id); + + /** + * 查询认证人员关联列表 + * + * @param examAttestationPeople 认证人员关联 + * @return 认证人员关联集合 + */ + public List selectExamAttestationPeopleList(ExamAttestationPeople examAttestationPeople); + + /** + * 新增认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + public int insertExamAttestationPeople(ExamAttestationPeople examAttestationPeople); + + /** + * 修改认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + public int updateExamAttestationPeople(ExamAttestationPeople examAttestationPeople); + + /** + * 批量删除认证人员关联 + * + * @param ids 需要删除的认证人员关联主键集合 + * @return 结果 + */ + public int deleteExamAttestationPeopleByIds(String[] ids); + + /** + * 删除认证人员关联信息 + * + * @param id 认证人员关联主键 + * @return 结果 + */ + public int deleteExamAttestationPeopleById(String id); + + /** + * 根据认证ids删除关联信息 + * + * @Author xusd + * @Date 16:43 2024/5/7 + * @param ids 认证ids + * @return int + */ + int deleteExamAttestationPeopleByAttestationIds(String[] ids); +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationService.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationService.java new file mode 100644 index 0000000..ba4a103 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/IExamAttestationService.java @@ -0,0 +1,69 @@ +package com.inspur.examine.service; + +import java.util.List; +import com.inspur.examine.domain.ExamAttestation; +import com.inspur.examine.domain.ExamAttestationPeople; + +import javax.xml.rpc.ServiceException; + +/** + * 认证管理Service接口 + * + * @author inspur + * @date 2024-05-07 + */ +public interface IExamAttestationService +{ + /** + * 查询认证管理 + * + * @param id 认证管理主键 + * @return 认证管理 + */ + public ExamAttestation selectExamAttestationById(String id); + + /** + * 查询认证管理列表 + * + * @param examAttestation 认证管理 + * @return 认证管理集合 + */ + public List selectExamAttestationList(ExamAttestation examAttestation); + + /** + * 新增认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + public int insertExamAttestation(ExamAttestation examAttestation); + + /** + * 修改认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + public int updateExamAttestation(ExamAttestation examAttestation); + + /** + * 批量删除认证管理 + * + * @param ids 需要删除的认证管理主键集合 + * @return 结果 + */ + public int deleteExamAttestationByIds(String[] ids); + + /** + * 删除认证管理信息 + * + * @param id 认证管理主键 + * @return 结果 + */ + public int deleteExamAttestationById(String id); + + /** + * 查询证书认证名单 + */ + List selectPeopleList(ExamAttestationPeople examAttestationPeople) throws ServiceException; +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationPeopleServiceImpl.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationPeopleServiceImpl.java new file mode 100644 index 0000000..0d9d610 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationPeopleServiceImpl.java @@ -0,0 +1,106 @@ +package com.inspur.examine.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.inspur.examine.mapper.ExamAttestationPeopleMapper; +import com.inspur.examine.domain.ExamAttestationPeople; +import com.inspur.examine.service.IExamAttestationPeopleService; + +/** + * 认证人员关联Service业务层处理 + * + * @author inspur + * @date 2024-05-07 + */ +@Service +public class ExamAttestationPeopleServiceImpl implements IExamAttestationPeopleService +{ + @Autowired + private ExamAttestationPeopleMapper examAttestationPeopleMapper; + + /** + * 查询认证人员关联 + * + * @param id 认证人员关联主键 + * @return 认证人员关联 + */ + @Override + public ExamAttestationPeople selectExamAttestationPeopleById(String id) + { + return examAttestationPeopleMapper.selectExamAttestationPeopleById(id); + } + + /** + * 查询认证人员关联列表 + * + * @param examAttestationPeople 认证人员关联 + * @return 认证人员关联 + */ + @Override + public List selectExamAttestationPeopleList(ExamAttestationPeople examAttestationPeople) + { + return examAttestationPeopleMapper.selectExamAttestationPeopleList(examAttestationPeople); + } + + /** + * 新增认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + @Override + public int insertExamAttestationPeople(ExamAttestationPeople examAttestationPeople) + { + return examAttestationPeopleMapper.insertExamAttestationPeople(examAttestationPeople); + } + + /** + * 修改认证人员关联 + * + * @param examAttestationPeople 认证人员关联 + * @return 结果 + */ + @Override + public int updateExamAttestationPeople(ExamAttestationPeople examAttestationPeople) + { + return examAttestationPeopleMapper.updateExamAttestationPeople(examAttestationPeople); + } + + /** + * 批量删除认证人员关联 + * + * @param ids 需要删除的认证人员关联主键 + * @return 结果 + */ + @Override + public int deleteExamAttestationPeopleByIds(String[] ids) + { + return examAttestationPeopleMapper.deleteExamAttestationPeopleByIds(ids); + } + + /** + * 删除认证人员关联信息 + * + * @param id 认证人员关联主键 + * @return 结果 + */ + @Override + public int deleteExamAttestationPeopleById(String id) + { + return examAttestationPeopleMapper.deleteExamAttestationPeopleById(id); + } + + /** + * 根据认证ids删除关联信息 + * + * @Author xusd + * @Date 16:43 2024/5/7 + * @param ids 认证ids + * @return int + */ + @Override + public int deleteExamAttestationPeopleByAttestationIds(String[] ids) { + return examAttestationPeopleMapper.deleteExamAttestationPeopleByAttestationIds(ids); + } +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationServiceImpl.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationServiceImpl.java new file mode 100644 index 0000000..ecd0f18 --- /dev/null +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamAttestationServiceImpl.java @@ -0,0 +1,130 @@ +package com.inspur.examine.service.impl; + +import java.util.Collections; +import java.util.List; +import java.util.Objects; + +import com.inspur.common.utils.DateUtils; +import com.inspur.common.utils.SecurityUtils; +import com.inspur.common.utils.StringUtils; +import com.inspur.common.utils.uuid.IdUtils; +import com.inspur.examine.domain.ExamAttestationPeople; +import com.inspur.examine.service.IExamAttestationPeopleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.inspur.examine.mapper.ExamAttestationMapper; +import com.inspur.examine.domain.ExamAttestation; +import com.inspur.examine.service.IExamAttestationService; +import org.springframework.transaction.annotation.Transactional; + +import javax.xml.rpc.ServiceException; + +/** + * 认证管理Service业务层处理 + * + * @author inspur + * @date 2024-05-07 + */ +@Service +public class ExamAttestationServiceImpl implements IExamAttestationService +{ + @Autowired + private ExamAttestationMapper examAttestationMapper; + + @Autowired + private IExamAttestationPeopleService examAttestationPeopleService; + + /** + * 查询认证管理 + * + * @param id 认证管理主键 + * @return 认证管理 + */ + @Override + public ExamAttestation selectExamAttestationById(String id) + { + return examAttestationMapper.selectExamAttestationById(id); + } + + /** + * 查询认证管理列表 + * + * @param examAttestation 认证管理 + * @return 认证管理 + */ + @Override + public List selectExamAttestationList(ExamAttestation examAttestation) + { + examAttestation.setTenantId(SecurityUtils.getLoginUser().getTenantId()); + return examAttestationMapper.selectExamAttestationList(examAttestation); + } + + /** + * 新增认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + @Override + public int insertExamAttestation(ExamAttestation examAttestation) + { + examAttestation.setId(IdUtils.fastSimpleUUID()); + examAttestation.setCreateTime(DateUtils.getNowDate()); + return examAttestationMapper.insertExamAttestation(examAttestation); + } + + /** + * 修改认证管理 + * + * @param examAttestation 认证管理 + * @return 结果 + */ + @Override + public int updateExamAttestation(ExamAttestation examAttestation) + { + return examAttestationMapper.updateExamAttestation(examAttestation); + } + + /** + * 批量删除认证管理 + * + * @param ids 需要删除的认证管理主键 + * @return 结果 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int deleteExamAttestationByIds(String[] ids) { + int i = examAttestationMapper.deleteExamAttestationByIds(ids); + if (i > 0) { + //根据认证id删除关联信息 + examAttestationPeopleService.deleteExamAttestationPeopleByAttestationIds(ids); + } + return i; + } + + /** + * 删除认证管理信息 + * + * @param id 认证管理主键 + * @return 结果 + */ + @Override + public int deleteExamAttestationById(String id) + { + return examAttestationMapper.deleteExamAttestationById(id); + } + + @Override + public List selectPeopleList(ExamAttestationPeople examAttestationPeople) throws ServiceException { + examAttestationPeople.setTenantId(SecurityUtils.getLoginUser().getTenantId()); + List list = examAttestationPeopleService.selectExamAttestationPeopleList(examAttestationPeople); + if (StringUtils.isNotEmpty(list)) { + ExamAttestation examAttestation = this.selectExamAttestationById(examAttestationPeople.getAttestationId()); + if (Objects.isNull(examAttestation)) { + throw new ServiceException("未查询到此证书"); + } + list.forEach(item -> item.setAttestationName(examAttestation.getAttestationName())); + } + return list; + } +} diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/ExamQuestionBankServiceImpl.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamQuestionBankServiceImpl.java similarity index 98% rename from inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/ExamQuestionBankServiceImpl.java rename to inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamQuestionBankServiceImpl.java index 1c1dcee..544e9f0 100644 --- a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/ExamQuestionBankServiceImpl.java +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/ExamQuestionBankServiceImpl.java @@ -1,4 +1,4 @@ -package com.inspur.examine.service; +package com.inspur.examine.service.impl; import java.util.List; import com.inspur.common.utils.DateUtils; diff --git a/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationMapper.xml b/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationMapper.xml new file mode 100644 index 0000000..a07fa1e --- /dev/null +++ b/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationMapper.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + select id, attestation_name, attestation_unit, attestation_info, create_time from exam_attestation + + + + + + + + insert into exam_attestation + + id, + attestation_name, + attestation_unit, + attestation_info, + create_time, + + + #{id}, + #{attestationName}, + #{attestationUnit}, + #{attestationInfo}, + #{createTime}, + + + + + update exam_attestation + + attestation_name = #{attestationName}, + attestation_unit = #{attestationUnit}, + attestation_info = #{attestationInfo}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from exam_attestation where id = #{id} + + + + delete from exam_attestation where id in + + #{id} + + + \ No newline at end of file diff --git a/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationPeopleMapper.xml b/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationPeopleMapper.xml new file mode 100644 index 0000000..ef5ae2a --- /dev/null +++ b/inspur-service/inspur-examine/src/main/resources/mapper/ExamAttestationPeopleMapper.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + SELECT + eap.id, + eap.attestation_id, + eap.people_id, + eap.attestation_time, + eap.tenant_id, + su.nick_name + FROM + exam_attestation_people AS eap + LEFT JOIN sys_user AS su ON eap.people_id = su.user_id + + + + + + + + insert into exam_attestation_people + + id, + attestation_id, + people_id, + attestation_time, + tenant_id, + + + #{id}, + #{attestationId}, + #{peopleId}, + #{attestationTime}, + #{tenantId}, + + + + + update exam_attestation_people + + attestation_id = #{attestationId}, + people_id = #{peopleId}, + attestation_time = #{attestationTime}, + tenant_id = #{tenantId}, + + where id = #{id} + + + + delete from exam_attestation_people where id = #{id} + + + + delete from exam_attestation_people where id in + + #{id} + + + + + delete from exam_attestation_people where attestation_id in + + #{id} + + + \ No newline at end of file diff --git a/inspur-ui/src/api/examine/attestation.js b/inspur-ui/src/api/examine/attestation.js new file mode 100644 index 0000000..aeaabfa --- /dev/null +++ b/inspur-ui/src/api/examine/attestation.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询认证管理列表 +export function listAttestation(query) { + return request({ + url: '/examine/attestation/list', + method: 'get', + params: query + }) +} + +// 查询认证管理详细 +export function getAttestation(id) { + return request({ + url: '/examine/attestation/' + id, + method: 'get' + }) +} + +// 新增认证管理 +export function addAttestation(data) { + return request({ + url: '/examine/attestation', + method: 'post', + data: data + }) +} + +// 修改认证管理 +export function updateAttestation(data) { + return request({ + url: '/examine/attestation', + method: 'put', + data: data + }) +} + +// 删除认证管理 +export function delAttestation(id) { + return request({ + url: '/examine/attestation/' + id, + method: 'delete' + }) +} + +// 查询证书认证名单 +export function listAttestationPeople(query) { + return request({ + url: '/examine/attestation/peopleList', + method: 'get', + params: query + }) +} diff --git a/inspur-ui/src/views/examine/attestation/index.vue b/inspur-ui/src/views/examine/attestation/index.vue new file mode 100644 index 0000000..7517526 --- /dev/null +++ b/inspur-ui/src/views/examine/attestation/index.vue @@ -0,0 +1,329 @@ + + +