瀏覽代碼

fix:增加刀具齐套性检测表

wang.sq@aliyun.com 1 周之前
父節點
當前提交
340115b0b4

+ 17 - 0
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/cuttercategories/dao/CutterCategoriesMapper.java

@@ -0,0 +1,17 @@
+package com.github.zuihou.business.cuttercategories.dao;
+
+import com.github.zuihou.base.mapper.SuperMapper;
+import com.github.zuihou.business.cuttercategories.entity.CutterCategoriesEntity;
+import org.springframework.stereotype.Repository;
+
+/**
+ * @Project: imcs-admin-boot
+ * @Package: com.github.zuihou.business.cuttercategories.dao
+ * @Author: Lenovo
+ * @Time: 2025 - 04 - 15 14 : 17
+ * @Description:
+ */
+
+@Repository
+public interface CutterCategoriesMapper extends SuperMapper<CutterCategoriesEntity> {
+}

+ 28 - 0
imcs-admin-boot/imcs-business-biz/src/main/resources/mapper_business/base/cuttercategories/CutterCategoriesMapper.xml

@@ -0,0 +1,28 @@
+<?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.github.zuihou.business.cuttercategories.dao.CutterCategoriesMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.github.zuihou.business.cuttercategories.entity.CutterCategoriesEntity">
+        <id column="id" jdbcType="BIGINT" property="id"/>
+        <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
+        <result column="create_user" jdbcType="BIGINT" property="createUser"/>
+        <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
+        <result column="update_user" jdbcType="BIGINT" property="updateUser"/>
+        <result column="order_no" jdbcType="VARCHAR" property="orderNo"/>
+        <result column="parts_no" jdbcType="VARCHAR" property="partsNo"/>
+        <result column="procedure_no" jdbcType="VARCHAR" property="procedureNo"/>
+        <result column="program_name" jdbcType="VARCHAR" property="programName"/>
+        <result column="cutter_t" jdbcType="VARCHAR" property="cutterT"/>
+        <result column="cutter_name" jdbcType="VARCHAR" property="cutterName"/>
+        <result column="cutter_specification" jdbcType="VARCHAR" property="cutterSpecification"/>
+        <result column="cutter_sort" jdbcType="BIGINT" property="cutterSort"/>
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        id,order_no,parts_no,procedure_no,program_name,cutter_t,cutter_name,cutter_specification,cutter_sort
+    </sql>
+
+
+</mapper>

+ 80 - 0
imcs-admin-boot/imcs-business-entity/src/main/java/com/github/zuihou/business/cuttercategories/dto/CutterCategoriesDto.java

@@ -0,0 +1,80 @@
+package com.github.zuihou.business.cuttercategories.dto;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.TableField;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.hibernate.validator.constraints.Length;
+
+import java.io.Serializable;
+
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
+
+/**
+ * @Project: imcs-admin-boot
+ * @Package: com.github.zuihou.business.cutterdata.dto
+ * @Author: Lenovo
+ * @Time: 2025 - 04 - 15 14 : 09
+ * @Description:
+ */
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class CutterCategoriesDto implements Serializable {
+
+    private Long id;
+
+    @ApiModelProperty(value = "订单编号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "order_no", condition = LIKE)
+    @Excel(name = "订单编号")
+    private  String orderNo;
+
+    @ApiModelProperty(value = "零件编号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "parts_no", condition = LIKE)
+    @Excel(name = "零件编号")
+    private  String partsNo;
+
+    @ApiModelProperty(value = "工序号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "procedure_no", condition = LIKE)
+    @Excel(name = "工序号")
+    private  String procedureNo;
+
+    @ApiModelProperty(value = "程序名")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "program_name", condition = LIKE)
+    @Excel(name = "程序名")
+    private  String programName;
+
+    @ApiModelProperty(value = "刀号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_t", condition = LIKE)
+    @Excel(name = "刀号")
+    private  String cutterT;
+
+    @ApiModelProperty(value = "刀具名")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_name", condition = LIKE)
+    @Excel(name = "刀具名")
+    private  String cutterName;
+
+    @ApiModelProperty(value = "刀具规格")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_specification", condition = LIKE)
+    @Excel(name = "刀具规格")
+    private  String cutterSpecification;
+
+    @ApiModelProperty(value = "刀具使用排序")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_sort", condition = LIKE)
+    @Excel(name = "刀具使用排序")
+    private  Integer cutterSort;
+
+}

+ 86 - 0
imcs-admin-boot/imcs-business-entity/src/main/java/com/github/zuihou/business/cuttercategories/entity/CutterCategoriesEntity.java

@@ -0,0 +1,86 @@
+package com.github.zuihou.business.cuttercategories.entity;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.github.zuihou.base.entity.Entity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.*;
+import lombok.experimental.Accessors;
+import org.hibernate.validator.constraints.Length;
+
+import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;
+
+/**
+ * @Project: imcs-admin-boot
+ * @Package: com.github.zuihou.business.cutterdata
+ * @Author: Lenovo
+ * @Time: 2025 - 04 - 15 14 : 09
+ * @Description:
+ */
+
+@Data
+@Builder
+@NoArgsConstructor
+@ToString(callSuper = true)
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("imcs_cutter_categories")
+@ApiModel(value = "CutterCategoriesEntity", description = "订单刀具齐套检测")
+@AllArgsConstructor
+public class CutterCategoriesEntity  extends Entity<Long> {
+
+    private static final long serialVersionUID = 1L;
+
+    private Long id;
+
+    @ApiModelProperty(value = "订单编号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "order_no", condition = LIKE)
+    @Excel(name = "订单编号")
+    private  String orderNo;
+
+    @ApiModelProperty(value = "零件编号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "parts_no", condition = LIKE)
+    @Excel(name = "零件编号")
+    private  String partsNo;
+
+    @ApiModelProperty(value = "工序号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "procedure_no", condition = LIKE)
+    @Excel(name = "工序号")
+    private  String procedureNo;
+
+    @ApiModelProperty(value = "程序名")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "program_name", condition = LIKE)
+    @Excel(name = "程序名")
+    private  String programName;
+
+    @ApiModelProperty(value = "刀号")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_t", condition = LIKE)
+    @Excel(name = "刀号")
+    private  String cutterT;
+
+    @ApiModelProperty(value = "刀具名")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_name", condition = LIKE)
+    @Excel(name = "刀具名")
+    private  String cutterName;
+
+    @ApiModelProperty(value = "刀具规格")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_specification", condition = LIKE)
+    @Excel(name = "刀具规格")
+    private  String cutterSpecification;
+
+    @ApiModelProperty(value = "刀具使用排序")
+    @Length(max = 128, message = "名称长度不能超过128")
+    @TableField(value = "cutter_sort", condition = LIKE)
+    @Excel(name = "刀具使用排序")
+    private  Integer cutterSort;
+
+}