feat(oa): 添加到货明细管理功能
- 创建到货明细实体类 OaArrivalDetail 包含基本信息字段 - 实现到货明细业务对象 OaArrivalDetailBo 和视图对象 OaArrivalDetailVo - 开发到货明细服务接口 IOaArrivalDetailService 及其实现类 - 构建到货明细数据访问层 OaArrivalDetailMapper 及对应的 XML 映射文件 - 设计到货明细控制器 OaArrivalDetailController 提供完整的 CRUD 操作 - 集成分页查询、导出 Excel、新增修改删除等完整业务功能
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
package com.ruoyi.oa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import com.ruoyi.common.core.validate.QueryGroup;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.oa.domain.vo.OaArrivalDetailVo;
|
||||
import com.ruoyi.oa.domain.bo.OaArrivalDetailBo;
|
||||
import com.ruoyi.oa.service.IOaArrivalDetailService;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 到货明细
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/oa/arrivalDetail")
|
||||
public class OaArrivalDetailController extends BaseController {
|
||||
|
||||
private final IOaArrivalDetailService iOaArrivalDetailService;
|
||||
|
||||
/**
|
||||
* 查询到货明细列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<OaArrivalDetailVo> list(OaArrivalDetailBo bo, PageQuery pageQuery) {
|
||||
return iOaArrivalDetailService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出到货明细列表
|
||||
*/
|
||||
@Log(title = "到货明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(OaArrivalDetailBo bo, HttpServletResponse response) {
|
||||
List<OaArrivalDetailVo> list = iOaArrivalDetailService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "到货明细", OaArrivalDetailVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取到货明细详细信息
|
||||
*
|
||||
* @param detailId 主键
|
||||
*/
|
||||
@GetMapping("/{detailId}")
|
||||
public R<OaArrivalDetailVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long detailId) {
|
||||
return R.ok(iOaArrivalDetailService.queryById(detailId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增到货明细
|
||||
*/
|
||||
@Log(title = "到货明细", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody OaArrivalDetailBo bo) {
|
||||
return toAjax(iOaArrivalDetailService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改到货明细
|
||||
*/
|
||||
@Log(title = "到货明细", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody OaArrivalDetailBo bo) {
|
||||
return toAjax(iOaArrivalDetailService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除到货明细
|
||||
*
|
||||
* @param detailIds 主键串
|
||||
*/
|
||||
@Log(title = "到货明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{detailIds}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] detailIds) {
|
||||
return toAjax(iOaArrivalDetailService.deleteWithValidByIds(Arrays.asList(detailIds), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.oa.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 到货明细对象 oa_arrival_detail
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("oa_arrival_detail")
|
||||
public class OaArrivalDetail extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 明细主键
|
||||
*/
|
||||
@TableId(value = "detail_id")
|
||||
private Long detailId;
|
||||
/**
|
||||
* 关联采购需求ID
|
||||
*/
|
||||
private Long requirementId;
|
||||
/**
|
||||
* 关联项目ID
|
||||
*/
|
||||
private Long projectId;
|
||||
/**
|
||||
* 项目类型:0=内贸 1=外贸
|
||||
*/
|
||||
private Integer tradeType;
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
private String contractNo;
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
private String goodsName;
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private BigDecimal quantity;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
private BigDecimal unitPrice;
|
||||
/**
|
||||
* 到货类型 (0 收,1 发)
|
||||
*/
|
||||
private Integer arrivalType;
|
||||
/**
|
||||
* 到货截止日期
|
||||
*/
|
||||
private Date deadline;
|
||||
/**
|
||||
* 发货地点
|
||||
*/
|
||||
private String sourceAddress;
|
||||
/**
|
||||
* 规划目的地
|
||||
*/
|
||||
private String targetAddress;
|
||||
/**
|
||||
* 状态(0 = 待发货,1 = 运输中,2 = 已到货,3 = 异常 / 拒收,4 = 取消)
|
||||
*/
|
||||
private Integer detailStatus;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String description;
|
||||
/**
|
||||
* 手动备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 删除标志:0正常 1删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.oa.domain.bo;
|
||||
|
||||
import com.ruoyi.common.core.validate.AddGroup;
|
||||
import com.ruoyi.common.core.validate.EditGroup;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 到货明细业务对象 oa_arrival_detail
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class OaArrivalDetailBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 明细主键
|
||||
*/
|
||||
private Long detailId;
|
||||
|
||||
/**
|
||||
* 关联采购需求ID
|
||||
*/
|
||||
private Long requirementId;
|
||||
|
||||
/**
|
||||
* 关联项目ID
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目类型:0=内贸 1=外贸
|
||||
*/
|
||||
private Integer tradeType;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
private String contractNo;
|
||||
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
private String goodsName;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private BigDecimal quantity;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/**
|
||||
* 到货类型 (0 收,1 发)
|
||||
*/
|
||||
private Integer arrivalType;
|
||||
|
||||
/**
|
||||
* 到货截止日期
|
||||
*/
|
||||
private Date deadline;
|
||||
|
||||
/**
|
||||
* 发货地点
|
||||
*/
|
||||
private String sourceAddress;
|
||||
|
||||
/**
|
||||
* 规划目的地
|
||||
*/
|
||||
private String targetAddress;
|
||||
|
||||
/**
|
||||
* 状态(0 = 待发货,1 = 运输中,2 = 已到货,3 = 异常 / 拒收,4 = 取消)
|
||||
*/
|
||||
private Integer detailStatus;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 手动备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.ruoyi.oa.domain.vo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.annotation.ExcelDictFormat;
|
||||
import com.ruoyi.common.convert.ExcelDictConvert;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 到货明细视图对象 oa_arrival_detail
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class OaArrivalDetailVo extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 明细主键
|
||||
*/
|
||||
@ExcelProperty(value = "明细主键")
|
||||
private Long detailId;
|
||||
|
||||
/**
|
||||
* 关联采购需求ID
|
||||
*/
|
||||
@ExcelProperty(value = "关联采购需求ID")
|
||||
private Long requirementId;
|
||||
|
||||
/**
|
||||
* 关联项目ID
|
||||
*/
|
||||
@ExcelProperty(value = "关联项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目类型:0=内贸 1=外贸
|
||||
*/
|
||||
@ExcelProperty(value = "项目类型:0=内贸 1=外贸")
|
||||
private Integer tradeType;
|
||||
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
@ExcelProperty(value = "合同编号")
|
||||
private String contractNo;
|
||||
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
@ExcelProperty(value = "物料名称")
|
||||
private String goodsName;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@ExcelProperty(value = "数量")
|
||||
private BigDecimal quantity;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@ExcelProperty(value = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/**
|
||||
* 到货类型 (0 收,1 发)
|
||||
*/
|
||||
@ExcelProperty(value = "到货类型 (0 收,1 发)")
|
||||
private Integer arrivalType;
|
||||
|
||||
/**
|
||||
* 到货截止日期
|
||||
*/
|
||||
@ExcelProperty(value = "到货截止日期")
|
||||
private Date deadline;
|
||||
|
||||
/**
|
||||
* 发货地点
|
||||
*/
|
||||
@ExcelProperty(value = "发货地点")
|
||||
private String sourceAddress;
|
||||
|
||||
/**
|
||||
* 规划目的地
|
||||
*/
|
||||
@ExcelProperty(value = "规划目的地")
|
||||
private String targetAddress;
|
||||
|
||||
/**
|
||||
* 状态(0 = 待发货,1 = 运输中,2 = 已到货,3 = 异常 / 拒收,4 = 取消)
|
||||
*/
|
||||
@ExcelProperty(value = "状态(0 = 待发货,1 = 运输中,2 = 已到货,3 = 异常 / 拒收,4 = 取消)")
|
||||
private Integer detailStatus;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ExcelProperty(value = "描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 手动备注
|
||||
*/
|
||||
@ExcelProperty(value = "手动备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaArrivalDetail;
|
||||
import com.ruoyi.oa.domain.vo.OaArrivalDetailVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 到货明细Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
public interface OaArrivalDetailMapper extends BaseMapperPlus<OaArrivalDetailMapper, OaArrivalDetail, OaArrivalDetailVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ruoyi.oa.service;
|
||||
|
||||
import com.ruoyi.oa.domain.OaArrivalDetail;
|
||||
import com.ruoyi.oa.domain.vo.OaArrivalDetailVo;
|
||||
import com.ruoyi.oa.domain.bo.OaArrivalDetailBo;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 到货明细Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
public interface IOaArrivalDetailService {
|
||||
|
||||
/**
|
||||
* 查询到货明细
|
||||
*/
|
||||
OaArrivalDetailVo queryById(Long detailId);
|
||||
|
||||
/**
|
||||
* 查询到货明细列表
|
||||
*/
|
||||
TableDataInfo<OaArrivalDetailVo> queryPageList(OaArrivalDetailBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询到货明细列表
|
||||
*/
|
||||
List<OaArrivalDetailVo> queryList(OaArrivalDetailBo bo);
|
||||
|
||||
/**
|
||||
* 新增到货明细
|
||||
*/
|
||||
Boolean insertByBo(OaArrivalDetailBo bo);
|
||||
|
||||
/**
|
||||
* 修改到货明细
|
||||
*/
|
||||
Boolean updateByBo(OaArrivalDetailBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除到货明细信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.ruoyi.oa.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.oa.domain.bo.OaArrivalDetailBo;
|
||||
import com.ruoyi.oa.domain.vo.OaArrivalDetailVo;
|
||||
import com.ruoyi.oa.domain.OaArrivalDetail;
|
||||
import com.ruoyi.oa.mapper.OaArrivalDetailMapper;
|
||||
import com.ruoyi.oa.service.IOaArrivalDetailService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 到货明细Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-06-12
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class OaArrivalDetailServiceImpl implements IOaArrivalDetailService {
|
||||
|
||||
private final OaArrivalDetailMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询到货明细
|
||||
*/
|
||||
@Override
|
||||
public OaArrivalDetailVo queryById(Long detailId){
|
||||
return baseMapper.selectVoById(detailId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询到货明细列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<OaArrivalDetailVo> queryPageList(OaArrivalDetailBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<OaArrivalDetail> lqw = buildQueryWrapper(bo);
|
||||
Page<OaArrivalDetailVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询到货明细列表
|
||||
*/
|
||||
@Override
|
||||
public List<OaArrivalDetailVo> queryList(OaArrivalDetailBo bo) {
|
||||
LambdaQueryWrapper<OaArrivalDetail> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<OaArrivalDetail> buildQueryWrapper(OaArrivalDetailBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<OaArrivalDetail> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getRequirementId() != null, OaArrivalDetail::getRequirementId, bo.getRequirementId());
|
||||
lqw.eq(bo.getProjectId() != null, OaArrivalDetail::getProjectId, bo.getProjectId());
|
||||
lqw.eq(bo.getTradeType() != null, OaArrivalDetail::getTradeType, bo.getTradeType());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getContractNo()), OaArrivalDetail::getContractNo, bo.getContractNo());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getGoodsName()), OaArrivalDetail::getGoodsName, bo.getGoodsName());
|
||||
lqw.eq(bo.getQuantity() != null, OaArrivalDetail::getQuantity, bo.getQuantity());
|
||||
lqw.eq(bo.getUnitPrice() != null, OaArrivalDetail::getUnitPrice, bo.getUnitPrice());
|
||||
lqw.eq(bo.getArrivalType() != null, OaArrivalDetail::getArrivalType, bo.getArrivalType());
|
||||
lqw.eq(bo.getDeadline() != null, OaArrivalDetail::getDeadline, bo.getDeadline());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSourceAddress()), OaArrivalDetail::getSourceAddress, bo.getSourceAddress());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getTargetAddress()), OaArrivalDetail::getTargetAddress, bo.getTargetAddress());
|
||||
lqw.eq(bo.getDetailStatus() != null, OaArrivalDetail::getDetailStatus, bo.getDetailStatus());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDescription()), OaArrivalDetail::getDescription, bo.getDescription());
|
||||
lqw.orderByDesc(OaArrivalDetail::getCreateTime);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增到货明细
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(OaArrivalDetailBo bo) {
|
||||
OaArrivalDetail add = BeanUtil.toBean(bo, OaArrivalDetail.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setDetailId(add.getDetailId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改到货明细
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(OaArrivalDetailBo bo) {
|
||||
OaArrivalDetail update = BeanUtil.toBean(bo, OaArrivalDetail.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(OaArrivalDetail entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除到货明细
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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="com.ruoyi.oa.mapper.OaArrivalDetailMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.oa.domain.OaArrivalDetail" id="OaArrivalDetailResult">
|
||||
<result property="detailId" column="detail_id"/>
|
||||
<result property="requirementId" column="requirement_id"/>
|
||||
<result property="projectId" column="project_id"/>
|
||||
<result property="tradeType" column="trade_type"/>
|
||||
<result property="contractNo" column="contract_no"/>
|
||||
<result property="goodsName" column="goods_name"/>
|
||||
<result property="quantity" column="quantity"/>
|
||||
<result property="unitPrice" column="unit_price"/>
|
||||
<result property="arrivalType" column="arrival_type"/>
|
||||
<result property="deadline" column="deadline"/>
|
||||
<result property="sourceAddress" column="source_address"/>
|
||||
<result property="targetAddress" column="target_address"/>
|
||||
<result property="detailStatus" column="detail_status"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user