新增按照物料类别免检的方法
This commit is contained in:
parent
d94b0fe7b2
commit
218558aef3
|
|
@ -0,0 +1,121 @@
|
|||
package com.nflg.wms.repository.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 免检物料
|
||||
* </p>
|
||||
*
|
||||
* @author 代码生成器生成
|
||||
* @since 2026
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@Accessors(chain = true)
|
||||
@TableName("qms_exempt_category")
|
||||
public class QmsExemptCategory implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 供应商ID,关联qms_supplier_sqe_map表的 supplier_id
|
||||
*/
|
||||
private Long supplierId;
|
||||
|
||||
/**
|
||||
* 审核状态;0 待审核;1 已审核;2 已驳回
|
||||
*/
|
||||
private Integer auditStatus;
|
||||
|
||||
/**
|
||||
* 启用状态;false 禁用;true 启用
|
||||
*/
|
||||
private Boolean enable;
|
||||
|
||||
/**
|
||||
* 免检模式;0 永久;1 周期
|
||||
*/
|
||||
private Integer exemptMode;
|
||||
|
||||
/**
|
||||
* 有效期开始日期
|
||||
*/
|
||||
private LocalDateTime validStartDate;
|
||||
|
||||
/**
|
||||
* 有效期结束日期
|
||||
*/
|
||||
private LocalDateTime validEndDate;
|
||||
|
||||
/**
|
||||
* 审核人Id,关联user 表的 id
|
||||
*/
|
||||
private Long auditorId;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
private String auditorName;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
private LocalDateTime auditTime;
|
||||
|
||||
/**
|
||||
* 驳回原因
|
||||
*/
|
||||
private String rejectReason;
|
||||
|
||||
/**
|
||||
* 创建人ID,关联user 表的 id
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
private String createByName;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 修改人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
private String updateByName;
|
||||
|
||||
/**
|
||||
* 物料类别的编号,关联qms_qc_material_category.category_code
|
||||
*/
|
||||
private String categoryCode;
|
||||
}
|
||||
|
|
@ -15,6 +15,9 @@ import java.time.LocalDateTime;
|
|||
* <p>
|
||||
* 免检物料
|
||||
* </p>
|
||||
*
|
||||
* @author 代码生成器生成
|
||||
* @since 2026
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
|
|
@ -25,16 +28,19 @@ public class QmsExemptMaterial implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 物料编号,关联qms_qc_material表的material_no
|
||||
* 物料编号,关联qms_qc_material 表的 material_no
|
||||
*/
|
||||
private String materialNo;
|
||||
|
||||
/**
|
||||
* 供应商ID,关联qms_supplier_sqe_map表的supplier_id
|
||||
* 供应商ID,关联qms_supplier_sqe_map表的 supplier_id
|
||||
*/
|
||||
private Long supplierId;
|
||||
|
||||
|
|
@ -44,7 +50,7 @@ public class QmsExemptMaterial implements Serializable {
|
|||
private Integer auditStatus;
|
||||
|
||||
/**
|
||||
* 启用状态:true=启用,false=禁用
|
||||
* 启用状态;false 禁用;true 启用
|
||||
*/
|
||||
private Boolean enable;
|
||||
|
||||
|
|
@ -64,7 +70,7 @@ public class QmsExemptMaterial implements Serializable {
|
|||
private LocalDateTime validEndDate;
|
||||
|
||||
/**
|
||||
* 审核人ID
|
||||
* 审核人Id,关联user 表的 id
|
||||
*/
|
||||
private Long auditorId;
|
||||
|
||||
|
|
@ -84,7 +90,7 @@ public class QmsExemptMaterial implements Serializable {
|
|||
private String rejectReason;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
* 创建人ID,关联user 表的 id
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
package com.nflg.wms.repository.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nflg.wms.repository.entity.QmsExemptCategory;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 免检物料 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 代码生成器生成
|
||||
* @since 2026
|
||||
*/
|
||||
public interface QmsExemptCategoryMapper extends BaseMapper<QmsExemptCategory> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.nflg.wms.repository.service;
|
||||
|
||||
import com.nflg.wms.repository.entity.QmsExemptCategory;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 免检物料 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 代码生成器生成
|
||||
* @since 2026
|
||||
*/
|
||||
public interface IQmsExemptCategoryService extends IService<QmsExemptCategory> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.nflg.wms.repository.service.impl;
|
||||
|
||||
import com.nflg.wms.repository.entity.QmsExemptCategory;
|
||||
import com.nflg.wms.repository.mapper.QmsExemptCategoryMapper;
|
||||
import com.nflg.wms.repository.service.IQmsExemptCategoryService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 免检物料 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 代码生成器生成
|
||||
* @since 2026
|
||||
*/
|
||||
@Service
|
||||
public class QmsExemptCategoryServiceImpl extends ServiceImpl<QmsExemptCategoryMapper, QmsExemptCategory> implements IQmsExemptCategoryService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?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.nflg.wms.repository.mapper.QmsExemptCategoryMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
@ -33,7 +33,7 @@ public class CodeGeneratorTest {
|
|||
)
|
||||
.strategyConfig(builder -> {
|
||||
builder
|
||||
.addInclude("wms_return_request_item") //只生成指定表
|
||||
.addInclude("qms_exempt_category") //只生成指定表
|
||||
.entityBuilder().idType(IdType.ASSIGN_ID)
|
||||
.enableLombok()
|
||||
.enableChainModel()
|
||||
|
|
|
|||
Loading…
Reference in New Issue