档案借阅申请

new
parent b210fff383
commit c4bb8252a8

@ -4,4 +4,6 @@ import cn.iocoder.yudao.framework.common.exception.ErrorCode;
public interface ErrorCodeConstants {
ErrorCode RECORD_NOT_EXISTS = new ErrorCode(200100, "归档不存在");
ErrorCode CODE_RULE_NOT_EXISTS = new ErrorCode(300100, "编码不存在");
ErrorCode BORROW_APPLY_NOT_EXISTS = new ErrorCode(300200,"借阅申请不存在");
}

@ -0,0 +1,102 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Operation;
import javax.validation.constraints.*;
import javax.validation.*;
import javax.servlet.http.*;
import java.util.*;
import java.io.IOException;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.*;
import cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo.*;
import cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply.BorrowApplyDO;
import cn.iocoder.yudao.module.archives.convert.borrowapply.BorrowApplyConvert;
import cn.iocoder.yudao.module.archives.service.borrowapply.BorrowApplyService;
@Tag(name = "管理后台 - 档案借阅申请")
@RestController
@RequestMapping("/archives/borrow-apply")
@Validated
public class BorrowApplyController {
@Resource
private BorrowApplyService borrowApplyService;
@PostMapping("/create")
@Operation(summary = "创建档案借阅申请")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:create')")
public CommonResult<Integer> createBorrowApply(@Valid @RequestBody BorrowApplyCreateReqVO createReqVO) {
return success(borrowApplyService.createBorrowApply(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新档案借阅申请")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:update')")
public CommonResult<Boolean> updateBorrowApply(@Valid @RequestBody BorrowApplyUpdateReqVO updateReqVO) {
borrowApplyService.updateBorrowApply(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除档案借阅申请")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:delete')")
public CommonResult<Boolean> deleteBorrowApply(@RequestParam("id") Integer id) {
borrowApplyService.deleteBorrowApply(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得档案借阅申请")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:query')")
public CommonResult<BorrowApplyRespVO> getBorrowApply(@RequestParam("id") Integer id) {
BorrowApplyDO borrowApply = borrowApplyService.getBorrowApply(id);
return success(BorrowApplyConvert.INSTANCE.convert(borrowApply));
}
@GetMapping("/list")
@Operation(summary = "获得档案借阅申请列表")
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:query')")
public CommonResult<List<BorrowApplyRespVO>> getBorrowApplyList(@RequestParam("ids") Collection<Integer> ids) {
List<BorrowApplyDO> list = borrowApplyService.getBorrowApplyList(ids);
return success(BorrowApplyConvert.INSTANCE.convertList(list));
}
@GetMapping("/page")
@Operation(summary = "获得档案借阅申请分页")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:query')")
public CommonResult<PageResult<BorrowApplyRespVO>> getBorrowApplyPage(@Valid BorrowApplyPageReqVO pageVO) {
PageResult<BorrowApplyDO> pageResult = borrowApplyService.getBorrowApplyPage(pageVO);
return success(BorrowApplyConvert.INSTANCE.convertPage(pageResult));
}
@GetMapping("/export-excel")
@Operation(summary = "导出档案借阅申请 Excel")
@PreAuthorize("@ss.hasPermission('archives:borrow-apply:export')")
@OperateLog(type = EXPORT)
public void exportBorrowApplyExcel(@Valid BorrowApplyExportReqVO exportReqVO,
HttpServletResponse response) throws IOException {
List<BorrowApplyDO> list = borrowApplyService.getBorrowApplyList(exportReqVO);
// 导出 Excel
List<BorrowApplyExcelVO> datas = BorrowApplyConvert.INSTANCE.convertList02(list);
ExcelUtils.write(response, "档案借阅申请.xls", "数据", BorrowApplyExcelVO.class, datas);
}
}

@ -0,0 +1,64 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
/**
* Base VO VO 使
* VO Swagger
*/
@Data
public class BorrowApplyBaseVO {
@Schema(description = "借阅申请编码")
private String borrowCode;
@Schema(description = "借阅申请状态 0:已通过 1驳回")
private Boolean borrowState;
@Schema(description = "借阅事由", example = "不好")
private String reason;
@Schema(description = "借阅描述")
private String describe;
@Schema(description = "借阅人id", example = "6652")
private Integer userId;
@Schema(description = "借阅人名称", example = "李四")
private String userName;
@Schema(description = "借阅部门id", example = "29611")
private Integer deptId;
@Schema(description = "借阅部门名称", example = "张三")
private String deptName;
@Schema(description = "预计归还日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime returnTime;
@Schema(description = "借阅方式 0:外接 1:现场查阅")
private Boolean way;
@Schema(description = "档案介质")
private Boolean media;
@Schema(description = "业务实体id", example = "23211")
private Long companyId;
@Schema(description = "业务实体名称")
private String company;
@Schema(description = "描述", example = "随便")
private String remark;
}

@ -0,0 +1,14 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
@Schema(description = "管理后台 - 档案借阅申请创建 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BorrowApplyCreateReqVO extends BorrowApplyBaseVO {
}

@ -0,0 +1,68 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.ExcelProperty;
/**
* Excel VO
*
* @author
*/
@Data
public class BorrowApplyExcelVO {
@ExcelProperty("借阅id")
private Integer id;
@ExcelProperty("借阅申请编码")
private String borrowCode;
@ExcelProperty("借阅申请状态 0:已通过 1驳回")
private Boolean borrowState;
@ExcelProperty("借阅事由")
private String reason;
@ExcelProperty("借阅描述")
private String describe;
@ExcelProperty("借阅人id")
private Integer userId;
@ExcelProperty("借阅人名称")
private String userName;
@ExcelProperty("借阅部门id")
private Integer deptId;
@ExcelProperty("借阅部门名称")
private String deptName;
@ExcelProperty("预计归还日期")
private LocalDateTime returnTime;
@ExcelProperty("借阅方式 0:外接 1:现场查阅")
private Boolean way;
@ExcelProperty("档案介质")
private Boolean media;
@ExcelProperty("业务实体id")
private Long companyId;
@ExcelProperty("业务实体名称")
private String company;
@ExcelProperty("描述")
private String remark;
@ExcelProperty("创建日期")
private LocalDateTime createTime;
}

@ -0,0 +1,63 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - 档案借阅申请 Excel 导出 Request VO参数和 BorrowApplyPageReqVO 是一致的")
@Data
public class BorrowApplyExportReqVO {
@Schema(description = "借阅申请编码")
private String borrowCode;
@Schema(description = "借阅申请状态 0:已通过 1驳回")
private Boolean borrowState;
@Schema(description = "借阅事由", example = "不好")
private String reason;
@Schema(description = "借阅描述")
private String describe;
@Schema(description = "借阅人id", example = "6652")
private Integer userId;
@Schema(description = "借阅人名称", example = "李四")
private String userName;
@Schema(description = "借阅部门id", example = "29611")
private Integer deptId;
@Schema(description = "借阅部门名称", example = "张三")
private String deptName;
@Schema(description = "预计归还日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] returnTime;
@Schema(description = "借阅方式 0:外接 1:现场查阅")
private Boolean way;
@Schema(description = "档案介质")
private Boolean media;
@Schema(description = "业务实体id", example = "23211")
private Long companyId;
@Schema(description = "业务实体名称")
private String company;
@Schema(description = "描述", example = "随便")
private String remark;
@Schema(description = "创建日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
}

@ -0,0 +1,65 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - 档案借阅申请分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BorrowApplyPageReqVO extends PageParam {
@Schema(description = "借阅申请编码")
private String borrowCode;
@Schema(description = "借阅申请状态 0:已通过 1驳回")
private Boolean borrowState;
@Schema(description = "借阅事由", example = "不好")
private String reason;
@Schema(description = "借阅描述")
private String describe;
@Schema(description = "借阅人id", example = "6652")
private Integer userId;
@Schema(description = "借阅人名称", example = "李四")
private String userName;
@Schema(description = "借阅部门id", example = "29611")
private Integer deptId;
@Schema(description = "借阅部门名称", example = "张三")
private String deptName;
@Schema(description = "预计归还日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] returnTime;
@Schema(description = "借阅方式 0:外接 1:现场查阅")
private Boolean way;
@Schema(description = "档案介质")
private Boolean media;
@Schema(description = "业务实体id", example = "23211")
private Long companyId;
@Schema(description = "业务实体名称")
private String company;
@Schema(description = "描述", example = "随便")
private String remark;
@Schema(description = "创建日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
}

@ -0,0 +1,19 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 档案借阅申请 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BorrowApplyRespVO extends BorrowApplyBaseVO {
@Schema(description = "借阅id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8595")
private Integer id;
@Schema(description = "创建日期")
private LocalDateTime createTime;
}

@ -0,0 +1,18 @@
package cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
@Schema(description = "管理后台 - 档案借阅申请更新 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BorrowApplyUpdateReqVO extends BorrowApplyBaseVO {
@Schema(description = "借阅id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8595")
@NotNull(message = "借阅id不能为空")
private Integer id;
}

@ -0,0 +1,34 @@
package cn.iocoder.yudao.module.archives.convert.borrowapply;
import java.util.*;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo.*;
import cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply.BorrowApplyDO;
/**
* Convert
*
* @author
*/
@Mapper
public interface BorrowApplyConvert {
BorrowApplyConvert INSTANCE = Mappers.getMapper(BorrowApplyConvert.class);
BorrowApplyDO convert(BorrowApplyCreateReqVO bean);
BorrowApplyDO convert(BorrowApplyUpdateReqVO bean);
BorrowApplyRespVO convert(BorrowApplyDO bean);
List<BorrowApplyRespVO> convertList(List<BorrowApplyDO> list);
PageResult<BorrowApplyRespVO> convertPage(PageResult<BorrowApplyDO> page);
List<BorrowApplyExcelVO> convertList02(List<BorrowApplyDO> list);
}

@ -0,0 +1,88 @@
package cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
/**
* DO
*
* @author
*/
@TableName("archives_borrow_apply")
@KeySequence("archives_borrow_apply_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BorrowApplyDO extends BaseDO {
/**
* id
*/
@TableId
private Integer id;
/**
*
*/
private String borrowCode;
/**
* 0: 1
*/
private Boolean borrowState;
/**
*
*/
private String reason;
/**
*
*/
private String describe;
/**
* id
*/
private Integer userId;
/**
*
*/
private String userName;
/**
* id
*/
private Integer deptId;
/**
*
*/
private String deptName;
/**
*
*/
private LocalDateTime returnTime;
/**
* 0: 1:
*/
private Boolean way;
/**
*
*/
private Boolean media;
/**
* id
*/
private Long companyId;
/**
*
*/
private String company;
/**
*
*/
private String remark;
}

@ -0,0 +1,60 @@
package cn.iocoder.yudao.module.archives.dal.mysql.borrowapply;
import java.util.*;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply.BorrowApplyDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo.*;
/**
* Mapper
*
* @author
*/
@Mapper
public interface BorrowApplyMapper extends BaseMapperX<BorrowApplyDO> {
default PageResult<BorrowApplyDO> selectPage(BorrowApplyPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<BorrowApplyDO>()
.eqIfPresent(BorrowApplyDO::getBorrowCode, reqVO.getBorrowCode())
.eqIfPresent(BorrowApplyDO::getBorrowState, reqVO.getBorrowState())
.eqIfPresent(BorrowApplyDO::getReason, reqVO.getReason())
.eqIfPresent(BorrowApplyDO::getDescribe, reqVO.getDescribe())
.eqIfPresent(BorrowApplyDO::getUserId, reqVO.getUserId())
.likeIfPresent(BorrowApplyDO::getUserName, reqVO.getUserName())
.eqIfPresent(BorrowApplyDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(BorrowApplyDO::getDeptName, reqVO.getDeptName())
.betweenIfPresent(BorrowApplyDO::getReturnTime, reqVO.getReturnTime())
.eqIfPresent(BorrowApplyDO::getWay, reqVO.getWay())
.eqIfPresent(BorrowApplyDO::getMedia, reqVO.getMedia())
.eqIfPresent(BorrowApplyDO::getCompanyId, reqVO.getCompanyId())
.eqIfPresent(BorrowApplyDO::getCompany, reqVO.getCompany())
.eqIfPresent(BorrowApplyDO::getRemark, reqVO.getRemark())
.betweenIfPresent(BorrowApplyDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(BorrowApplyDO::getId));
}
default List<BorrowApplyDO> selectList(BorrowApplyExportReqVO reqVO) {
return selectList(new LambdaQueryWrapperX<BorrowApplyDO>()
.eqIfPresent(BorrowApplyDO::getBorrowCode, reqVO.getBorrowCode())
.eqIfPresent(BorrowApplyDO::getBorrowState, reqVO.getBorrowState())
.eqIfPresent(BorrowApplyDO::getReason, reqVO.getReason())
.eqIfPresent(BorrowApplyDO::getDescribe, reqVO.getDescribe())
.eqIfPresent(BorrowApplyDO::getUserId, reqVO.getUserId())
.likeIfPresent(BorrowApplyDO::getUserName, reqVO.getUserName())
.eqIfPresent(BorrowApplyDO::getDeptId, reqVO.getDeptId())
.likeIfPresent(BorrowApplyDO::getDeptName, reqVO.getDeptName())
.betweenIfPresent(BorrowApplyDO::getReturnTime, reqVO.getReturnTime())
.eqIfPresent(BorrowApplyDO::getWay, reqVO.getWay())
.eqIfPresent(BorrowApplyDO::getMedia, reqVO.getMedia())
.eqIfPresent(BorrowApplyDO::getCompanyId, reqVO.getCompanyId())
.eqIfPresent(BorrowApplyDO::getCompany, reqVO.getCompany())
.eqIfPresent(BorrowApplyDO::getRemark, reqVO.getRemark())
.betweenIfPresent(BorrowApplyDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(BorrowApplyDO::getId));
}
}

@ -0,0 +1,70 @@
package cn.iocoder.yudao.module.archives.service.borrowapply;
import java.util.*;
import javax.validation.*;
import cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo.*;
import cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply.BorrowApplyDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
/**
* Service
*
* @author
*/
public interface BorrowApplyService {
/**
*
*
* @param createReqVO
* @return
*/
Integer createBorrowApply(@Valid BorrowApplyCreateReqVO createReqVO);
/**
*
*
* @param updateReqVO
*/
void updateBorrowApply(@Valid BorrowApplyUpdateReqVO updateReqVO);
/**
*
*
* @param id
*/
void deleteBorrowApply(Integer id);
/**
*
*
* @param id
* @return
*/
BorrowApplyDO getBorrowApply(Integer id);
/**
*
*
* @param ids
* @return
*/
List<BorrowApplyDO> getBorrowApplyList(Collection<Integer> ids);
/**
*
*
* @param pageReqVO
* @return
*/
PageResult<BorrowApplyDO> getBorrowApplyPage(BorrowApplyPageReqVO pageReqVO);
/**
* , Excel
*
* @param exportReqVO
* @return
*/
List<BorrowApplyDO> getBorrowApplyList(BorrowApplyExportReqVO exportReqVO);
}

@ -0,0 +1,82 @@
package cn.iocoder.yudao.module.archives.service.borrowapply;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import java.util.*;
import cn.iocoder.yudao.module.archives.controller.admin.borrowapply.vo.*;
import cn.iocoder.yudao.module.archives.dal.dataobject.borrowapply.BorrowApplyDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.archives.convert.borrowapply.BorrowApplyConvert;
import cn.iocoder.yudao.module.archives.dal.mysql.borrowapply.BorrowApplyMapper;
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
import static cn.iocoder.yudao.module.archives.enums.ErrorCodeConstants.*;
/**
* Service
*
* @author
*/
@Service
@Validated
public class BorrowApplyServiceImpl implements BorrowApplyService {
@Resource
private BorrowApplyMapper borrowApplyMapper;
@Override
public Integer createBorrowApply(BorrowApplyCreateReqVO createReqVO) {
// 插入
BorrowApplyDO borrowApply = BorrowApplyConvert.INSTANCE.convert(createReqVO);
borrowApplyMapper.insert(borrowApply);
// 返回
return borrowApply.getId();
}
@Override
public void updateBorrowApply(BorrowApplyUpdateReqVO updateReqVO) {
// 校验存在
validateBorrowApplyExists(updateReqVO.getId());
// 更新
BorrowApplyDO updateObj = BorrowApplyConvert.INSTANCE.convert(updateReqVO);
borrowApplyMapper.updateById(updateObj);
}
@Override
public void deleteBorrowApply(Integer id) {
// 校验存在
validateBorrowApplyExists(id);
// 删除
borrowApplyMapper.deleteById(id);
}
private void validateBorrowApplyExists(Integer id) {
if (borrowApplyMapper.selectById(id) == null) {
throw exception(BORROW_APPLY_NOT_EXISTS);
}
}
@Override
public BorrowApplyDO getBorrowApply(Integer id) {
return borrowApplyMapper.selectById(id);
}
@Override
public List<BorrowApplyDO> getBorrowApplyList(Collection<Integer> ids) {
return borrowApplyMapper.selectBatchIds(ids);
}
@Override
public PageResult<BorrowApplyDO> getBorrowApplyPage(BorrowApplyPageReqVO pageReqVO) {
return borrowApplyMapper.selectPage(pageReqVO);
}
@Override
public List<BorrowApplyDO> getBorrowApplyList(BorrowApplyExportReqVO exportReqVO) {
return borrowApplyMapper.selectList(exportReqVO);
}
}

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.archives.dal.mysql.borrowapply.BorrowApplyMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
</mapper>
Loading…
Cancel
Save