Browse Source

新增派单sop发布

wangliang 1 năm trước cách đây
mục cha
commit
8f965fb8dd

+ 0 - 14
sop-api/install/mysql/init/init.sql

@@ -937,20 +937,6 @@ CREATE TABLE `t_b_ding_submit` (
                                    UNIQUE KEY `t_b_ding_submit_un` (`sop_no`,`user_archives_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考勤提交审核表';
 
--- ----------------------------
--- Table structure for t_b_engineer_allocation
--- ----------------------------
-DROP TABLE IF EXISTS `t_b_engineer_allocation`;
-CREATE TABLE `t_b_engineer_allocation` (
-                                           `id` bigint NOT NULL COMMENT '主键',
-                                           `service_id` bigint DEFAULT NULL COMMENT '服务单元id',
-                                           `sop_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'sop单号',
-                                           `crm_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'crm单号',
-                                           `engineer_user_id` bigint NOT NULL COMMENT '用户id',
-                                           `role_id` bigint NOT NULL COMMENT '角色id',
-                                           PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='sop工程师分配表';
-
 -- ----------------------------
 -- Table structure for t_b_product
 -- ----------------------------

+ 0 - 92
sop-business/src/main/java/com/qmth/sop/business/entity/TBEngineerAllocation.java

@@ -1,92 +0,0 @@
-package com.qmth.sop.business.entity;
-
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * <p>
- * sop工程师分配表
- * </p>
- *
- * @author wangliang
- * @since 2023-08-01
- */
-@ApiModel(value="TBEngineerAllocation对象", description="sop工程师分配表")
-public class TBEngineerAllocation implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "主键")
-    @JsonSerialize(using = ToStringSerializer.class)
-    private Long id;
-
-    @ApiModelProperty(value = "服务单元id")
-    @JsonSerialize(using = ToStringSerializer.class)
-    private Long serviceId;
-
-    @ApiModelProperty(value = "sop单号")
-    private String sopNo;
-
-    @ApiModelProperty(value = "crm单号")
-    private String crmNo;
-
-    @ApiModelProperty(value = "用户id")
-    @JsonSerialize(using = ToStringSerializer.class)
-    private Long engineerUserId;
-
-    @ApiModelProperty(value = "角色id")
-    @JsonSerialize(using = ToStringSerializer.class)
-    private Long roleId;
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    public Long getServiceId() {
-        return serviceId;
-    }
-
-    public void setServiceId(Long serviceId) {
-        this.serviceId = serviceId;
-    }
-
-    public String getSopNo() {
-        return sopNo;
-    }
-
-    public void setSopNo(String sopNo) {
-        this.sopNo = sopNo;
-    }
-
-    public String getCrmNo() {
-        return crmNo;
-    }
-
-    public void setCrmNo(String crmNo) {
-        this.crmNo = crmNo;
-    }
-
-    public Long getEngineerUserId() {
-        return engineerUserId;
-    }
-
-    public void setEngineerUserId(Long engineerUserId) {
-        this.engineerUserId = engineerUserId;
-    }
-
-    public Long getRoleId() {
-        return roleId;
-    }
-
-    public void setRoleId(Long roleId) {
-        this.roleId = roleId;
-    }
-}

+ 0 - 16
sop-business/src/main/java/com/qmth/sop/business/mapper/TBEngineerAllocationMapper.java

@@ -1,16 +0,0 @@
-package com.qmth.sop.business.mapper;
-
-import com.qmth.sop.business.entity.TBEngineerAllocation;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-
-/**
- * <p>
- * sop工程师分配表 Mapper 接口
- * </p>
- *
- * @author wangliang
- * @since 2023-08-01
- */
-public interface TBEngineerAllocationMapper extends BaseMapper<TBEngineerAllocation> {
-
-}

+ 0 - 16
sop-business/src/main/java/com/qmth/sop/business/service/TBEngineerAllocationService.java

@@ -1,16 +0,0 @@
-package com.qmth.sop.business.service;
-
-import com.qmth.sop.business.entity.TBEngineerAllocation;
-import com.baomidou.mybatisplus.extension.service.IService;
-
-/**
- * <p>
- * sop工程师分配表 服务类
- * </p>
- *
- * @author wangliang
- * @since 2023-08-01
- */
-public interface TBEngineerAllocationService extends IService<TBEngineerAllocation> {
-
-}

+ 0 - 20
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBEngineerAllocationServiceImpl.java

@@ -1,20 +0,0 @@
-package com.qmth.sop.business.service.impl;
-
-import com.qmth.sop.business.entity.TBEngineerAllocation;
-import com.qmth.sop.business.mapper.TBEngineerAllocationMapper;
-import com.qmth.sop.business.service.TBEngineerAllocationService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- * sop工程师分配表 服务实现类
- * </p>
- *
- * @author wangliang
- * @since 2023-08-01
- */
-@Service
-public class TBEngineerAllocationServiceImpl extends ServiceImpl<TBEngineerAllocationMapper, TBEngineerAllocation> implements TBEngineerAllocationService {
-
-}

+ 4 - 1
sop-business/src/main/resources/db/log/wangliang_update_log.sql

@@ -72,4 +72,7 @@ VALUES(3087, '编辑派单明细sop', '/api/admin/tb/crm/detail/sop/edit', 'URL'
 
 -- 2024-05-15
 ALTER TABLE t_b_crm ADD process_var MEDIUMTEXT
-    COMMENT '过程变量' NULL after publish_time;
+    COMMENT '过程变量' NULL after publish_time;
+
+-- 2024-05-16
+DROP TABLE IF EXISTS `t_b_engineer_allocation`;

+ 0 - 5
sop-business/src/main/resources/mapper/TBEngineerAllocationMapper.xml

@@ -1,5 +0,0 @@
-<?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.qmth.sop.business.mapper.TBEngineerAllocationMapper">
-
-</mapper>