Browse Source

代码第一次生成

zfrr 7 months ago
parent
commit
158524ee59

+ 5 - 0
autoremark-admin/pom.xml

@@ -61,6 +61,11 @@
             <artifactId>autoremark-generator</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.autoremark</groupId>
+            <artifactId>autoremark-business</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>

+ 27 - 0
autoremark-business/pom.xml

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.autoremark</groupId>
+        <artifactId>autoremark</artifactId>
+        <version>3.7.0</version>
+    </parent>
+
+    <artifactId>autoremark-business</artifactId>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.autoremark</groupId>
+            <artifactId>autoremark-common</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

+ 17 - 0
autoremark-business/src/main/java/com/autoremark/Main.java

@@ -0,0 +1,17 @@
+package com.autoremark;
+
+//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
+// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
+public class Main {
+    public static void main(String[] args) {
+        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
+        // to see how IntelliJ IDEA suggests fixing it.
+        System.out.printf("Hello and welcome!");
+
+        for (int i = 1; i <= 5; i++) {
+            //TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
+            // for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
+            System.out.println("i = " + i);
+        }
+    }
+}

+ 104 - 0
autoremark-business/src/main/java/com/autoremark/business/controller/TblTaskAssignmentController.java

@@ -0,0 +1,104 @@
+package com.autoremark.business.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.autoremark.common.annotation.Log;
+import com.autoremark.common.core.controller.BaseController;
+import com.autoremark.common.core.domain.AjaxResult;
+import com.autoremark.common.enums.BusinessType;
+import com.autoremark.business.domain.TblTaskAssignment;
+import com.autoremark.business.service.ITblTaskAssignmentService;
+import com.autoremark.common.utils.poi.ExcelUtil;
+import com.autoremark.common.core.page.TableDataInfo;
+
+/**
+ * 任务分配Controller
+ * 
+ * @author ruoyi
+ * @date 2025-01-14
+ */
+@RestController
+@RequestMapping("/business/assignment")
+public class TblTaskAssignmentController extends BaseController
+{
+    @Autowired
+    private ITblTaskAssignmentService tblTaskAssignmentService;
+
+    /**
+     * 查询任务分配列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TblTaskAssignment tblTaskAssignment)
+    {
+        startPage();
+        List<TblTaskAssignment> list = tblTaskAssignmentService.selectTblTaskAssignmentList(tblTaskAssignment);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出任务分配列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:export')")
+    @Log(title = "任务分配", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TblTaskAssignment tblTaskAssignment)
+    {
+        List<TblTaskAssignment> list = tblTaskAssignmentService.selectTblTaskAssignmentList(tblTaskAssignment);
+        ExcelUtil<TblTaskAssignment> util = new ExcelUtil<TblTaskAssignment>(TblTaskAssignment.class);
+        util.exportExcel(response, list, "任务分配数据");
+    }
+
+    /**
+     * 获取任务分配详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:query')")
+    @GetMapping(value = "/{assignmentId}")
+    public AjaxResult getInfo(@PathVariable("assignmentId") String assignmentId)
+    {
+        return AjaxResult.success(tblTaskAssignmentService.selectTblTaskAssignmentByAssignmentId(assignmentId));
+    }
+
+    /**
+     * 新增任务分配
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:add')")
+    @Log(title = "任务分配", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TblTaskAssignment tblTaskAssignment)
+    {
+        return toAjax(tblTaskAssignmentService.insertTblTaskAssignment(tblTaskAssignment));
+    }
+
+    /**
+     * 修改任务分配
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:edit')")
+    @Log(title = "任务分配", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TblTaskAssignment tblTaskAssignment)
+    {
+        return toAjax(tblTaskAssignmentService.updateTblTaskAssignment(tblTaskAssignment));
+    }
+
+    /**
+     * 删除任务分配
+     */
+    @PreAuthorize("@ss.hasPermi('business:assignment:remove')")
+    @Log(title = "任务分配", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{assignmentIds}")
+    public AjaxResult remove(@PathVariable String[] assignmentIds)
+    {
+        return toAjax(tblTaskAssignmentService.deleteTblTaskAssignmentByAssignmentIds(assignmentIds));
+    }
+}

+ 310 - 0
autoremark-business/src/main/java/com/autoremark/business/domain/TblTaskAssignment.java

@@ -0,0 +1,310 @@
+package com.autoremark.business.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.autoremark.common.annotation.Excel;
+import com.autoremark.common.core.domain.BaseEntity;
+
+/**
+ * 任务分配对象 tbl_task_assignment
+ * 
+ * @author ruoyi
+ * @date 2025-01-14
+ */
+public class TblTaskAssignment extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 流水号主键 */
+    private String assignmentId;
+
+    /** 任务id */
+    @Excel(name = "任务id")
+    private String taskId;
+
+    /** 分配给的用户id */
+    @Excel(name = "分配给的用户id")
+    private String userId;
+
+    /** 创建人 */
+    @Excel(name = "创建人")
+    private Long createdBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date createdTime;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date updatedTime;
+
+    /** 更新人 */
+    @Excel(name = "更新人")
+    private Long updatedBy;
+
+    /** 删除人 */
+    @Excel(name = "删除人")
+    private Long deletedBy;
+
+    /** 删除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date deletedTime;
+
+    /** 审核人 */
+    @Excel(name = "审核人")
+    private Long checkedBy;
+
+    /** 审核状态 */
+    @Excel(name = "审核状态")
+    private Long checked;
+
+    /** 是否启用 */
+    @Excel(name = "是否启用")
+    private Long enabled;
+
+    /** 任务创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "任务创建时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date createdAt;
+
+    /** 任务更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "任务更新时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date updatedAt;
+
+    /** 备用字符1 */
+    @Excel(name = "备用字符1")
+    private String str1;
+
+    /** 备用字符2 */
+    @Excel(name = "备用字符2")
+    private String str2;
+
+    /** 备用字符3 */
+    @Excel(name = "备用字符3")
+    private String str3;
+
+    /** 备用整数1 */
+    @Excel(name = "备用整数1")
+    private Long num1;
+
+    /** 备用整数2 */
+    @Excel(name = "备用整数2")
+    private Long num2;
+
+    /** 备用整数3 */
+    @Excel(name = "备用整数3")
+    private Long num3;
+
+    public void setAssignmentId(String assignmentId) 
+    {
+        this.assignmentId = assignmentId;
+    }
+
+    public String getAssignmentId() 
+    {
+        return assignmentId;
+    }
+    public void setTaskId(String taskId) 
+    {
+        this.taskId = taskId;
+    }
+
+    public String getTaskId() 
+    {
+        return taskId;
+    }
+    public void setUserId(String userId) 
+    {
+        this.userId = userId;
+    }
+
+    public String getUserId() 
+    {
+        return userId;
+    }
+    public void setCreatedBy(Long createdBy) 
+    {
+        this.createdBy = createdBy;
+    }
+
+    public Long getCreatedBy() 
+    {
+        return createdBy;
+    }
+    public void setCreatedTime(Date createdTime) 
+    {
+        this.createdTime = createdTime;
+    }
+
+    public Date getCreatedTime() 
+    {
+        return createdTime;
+    }
+    public void setUpdatedTime(Date updatedTime) 
+    {
+        this.updatedTime = updatedTime;
+    }
+
+    public Date getUpdatedTime() 
+    {
+        return updatedTime;
+    }
+    public void setUpdatedBy(Long updatedBy) 
+    {
+        this.updatedBy = updatedBy;
+    }
+
+    public Long getUpdatedBy() 
+    {
+        return updatedBy;
+    }
+    public void setDeletedBy(Long deletedBy) 
+    {
+        this.deletedBy = deletedBy;
+    }
+
+    public Long getDeletedBy() 
+    {
+        return deletedBy;
+    }
+    public void setDeletedTime(Date deletedTime) 
+    {
+        this.deletedTime = deletedTime;
+    }
+
+    public Date getDeletedTime() 
+    {
+        return deletedTime;
+    }
+    public void setCheckedBy(Long checkedBy) 
+    {
+        this.checkedBy = checkedBy;
+    }
+
+    public Long getCheckedBy() 
+    {
+        return checkedBy;
+    }
+    public void setChecked(Long checked) 
+    {
+        this.checked = checked;
+    }
+
+    public Long getChecked() 
+    {
+        return checked;
+    }
+    public void setEnabled(Long enabled) 
+    {
+        this.enabled = enabled;
+    }
+
+    public Long getEnabled() 
+    {
+        return enabled;
+    }
+    public void setCreatedAt(Date createdAt) 
+    {
+        this.createdAt = createdAt;
+    }
+
+    public Date getCreatedAt() 
+    {
+        return createdAt;
+    }
+    public void setUpdatedAt(Date updatedAt) 
+    {
+        this.updatedAt = updatedAt;
+    }
+
+    public Date getUpdatedAt() 
+    {
+        return updatedAt;
+    }
+    public void setStr1(String str1) 
+    {
+        this.str1 = str1;
+    }
+
+    public String getStr1() 
+    {
+        return str1;
+    }
+    public void setStr2(String str2) 
+    {
+        this.str2 = str2;
+    }
+
+    public String getStr2() 
+    {
+        return str2;
+    }
+    public void setStr3(String str3) 
+    {
+        this.str3 = str3;
+    }
+
+    public String getStr3() 
+    {
+        return str3;
+    }
+    public void setNum1(Long num1) 
+    {
+        this.num1 = num1;
+    }
+
+    public Long getNum1() 
+    {
+        return num1;
+    }
+    public void setNum2(Long num2) 
+    {
+        this.num2 = num2;
+    }
+
+    public Long getNum2() 
+    {
+        return num2;
+    }
+    public void setNum3(Long num3) 
+    {
+        this.num3 = num3;
+    }
+
+    public Long getNum3() 
+    {
+        return num3;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("assignmentId", getAssignmentId())
+            .append("taskId", getTaskId())
+            .append("userId", getUserId())
+            .append("createdBy", getCreatedBy())
+            .append("createdTime", getCreatedTime())
+            .append("updatedTime", getUpdatedTime())
+            .append("updatedBy", getUpdatedBy())
+            .append("deletedBy", getDeletedBy())
+            .append("deletedTime", getDeletedTime())
+            .append("checkedBy", getCheckedBy())
+            .append("checked", getChecked())
+            .append("enabled", getEnabled())
+            .append("createdAt", getCreatedAt())
+            .append("updatedAt", getUpdatedAt())
+            .append("str1", getStr1())
+            .append("str2", getStr2())
+            .append("str3", getStr3())
+            .append("num1", getNum1())
+            .append("num2", getNum2())
+            .append("num3", getNum3())
+            .toString();
+    }
+}

+ 61 - 0
autoremark-business/src/main/java/com/autoremark/business/mapper/TblTaskAssignmentMapper.java

@@ -0,0 +1,61 @@
+package com.autoremark.business.mapper;
+
+import java.util.List;
+import com.autoremark.business.domain.TblTaskAssignment;
+
+/**
+ * 任务分配Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-01-14
+ */
+public interface TblTaskAssignmentMapper 
+{
+    /**
+     * 查询任务分配
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 任务分配
+     */
+    public TblTaskAssignment selectTblTaskAssignmentByAssignmentId(String assignmentId);
+
+    /**
+     * 查询任务分配列表
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 任务分配集合
+     */
+    public List<TblTaskAssignment> selectTblTaskAssignmentList(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 新增任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    public int insertTblTaskAssignment(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 修改任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    public int updateTblTaskAssignment(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 删除任务分配
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 结果
+     */
+    public int deleteTblTaskAssignmentByAssignmentId(String assignmentId);
+
+    /**
+     * 批量删除任务分配
+     * 
+     * @param assignmentIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTblTaskAssignmentByAssignmentIds(String[] assignmentIds);
+}

+ 61 - 0
autoremark-business/src/main/java/com/autoremark/business/service/ITblTaskAssignmentService.java

@@ -0,0 +1,61 @@
+package com.autoremark.business.service;
+
+import java.util.List;
+import com.autoremark.business.domain.TblTaskAssignment;
+
+/**
+ * 任务分配Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-01-14
+ */
+public interface ITblTaskAssignmentService 
+{
+    /**
+     * 查询任务分配
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 任务分配
+     */
+    public TblTaskAssignment selectTblTaskAssignmentByAssignmentId(String assignmentId);
+
+    /**
+     * 查询任务分配列表
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 任务分配集合
+     */
+    public List<TblTaskAssignment> selectTblTaskAssignmentList(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 新增任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    public int insertTblTaskAssignment(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 修改任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    public int updateTblTaskAssignment(TblTaskAssignment tblTaskAssignment);
+
+    /**
+     * 批量删除任务分配
+     * 
+     * @param assignmentIds 需要删除的任务分配主键集合
+     * @return 结果
+     */
+    public int deleteTblTaskAssignmentByAssignmentIds(String[] assignmentIds);
+
+    /**
+     * 删除任务分配信息
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 结果
+     */
+    public int deleteTblTaskAssignmentByAssignmentId(String assignmentId);
+}

+ 93 - 0
autoremark-business/src/main/java/com/autoremark/business/service/impl/TblTaskAssignmentServiceImpl.java

@@ -0,0 +1,93 @@
+package com.autoremark.business.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.autoremark.business.mapper.TblTaskAssignmentMapper;
+import com.autoremark.business.domain.TblTaskAssignment;
+import com.autoremark.business.service.ITblTaskAssignmentService;
+
+/**
+ * 任务分配Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-01-14
+ */
+@Service
+public class TblTaskAssignmentServiceImpl implements ITblTaskAssignmentService 
+{
+    @Autowired
+    private TblTaskAssignmentMapper tblTaskAssignmentMapper;
+
+    /**
+     * 查询任务分配
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 任务分配
+     */
+    @Override
+    public TblTaskAssignment selectTblTaskAssignmentByAssignmentId(String assignmentId)
+    {
+        return tblTaskAssignmentMapper.selectTblTaskAssignmentByAssignmentId(assignmentId);
+    }
+
+    /**
+     * 查询任务分配列表
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 任务分配
+     */
+    @Override
+    public List<TblTaskAssignment> selectTblTaskAssignmentList(TblTaskAssignment tblTaskAssignment)
+    {
+        return tblTaskAssignmentMapper.selectTblTaskAssignmentList(tblTaskAssignment);
+    }
+
+    /**
+     * 新增任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    @Override
+    public int insertTblTaskAssignment(TblTaskAssignment tblTaskAssignment)
+    {
+        return tblTaskAssignmentMapper.insertTblTaskAssignment(tblTaskAssignment);
+    }
+
+    /**
+     * 修改任务分配
+     * 
+     * @param tblTaskAssignment 任务分配
+     * @return 结果
+     */
+    @Override
+    public int updateTblTaskAssignment(TblTaskAssignment tblTaskAssignment)
+    {
+        return tblTaskAssignmentMapper.updateTblTaskAssignment(tblTaskAssignment);
+    }
+
+    /**
+     * 批量删除任务分配
+     * 
+     * @param assignmentIds 需要删除的任务分配主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblTaskAssignmentByAssignmentIds(String[] assignmentIds)
+    {
+        return tblTaskAssignmentMapper.deleteTblTaskAssignmentByAssignmentIds(assignmentIds);
+    }
+
+    /**
+     * 删除任务分配信息
+     * 
+     * @param assignmentId 任务分配主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTblTaskAssignmentByAssignmentId(String assignmentId)
+    {
+        return tblTaskAssignmentMapper.deleteTblTaskAssignmentByAssignmentId(assignmentId);
+    }
+}

+ 148 - 0
autoremark-business/src/main/resources/mapper/business/TblTaskAssignmentMapper.xml

@@ -0,0 +1,148 @@
+<?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.autoremark.business.mapper.TblTaskAssignmentMapper">
+    
+    <resultMap type="TblTaskAssignment" id="TblTaskAssignmentResult">
+        <result property="assignmentId"    column="assignment_id"    />
+        <result property="taskId"    column="task_id"    />
+        <result property="userId"    column="user_id"    />
+        <result property="createdBy"    column="created_by"    />
+        <result property="createdTime"    column="created_time"    />
+        <result property="updatedTime"    column="updated_time"    />
+        <result property="updatedBy"    column="updated_by"    />
+        <result property="deletedBy"    column="deleted_by"    />
+        <result property="deletedTime"    column="deleted_time"    />
+        <result property="checkedBy"    column="checked_by"    />
+        <result property="checked"    column="checked"    />
+        <result property="enabled"    column="enabled"    />
+        <result property="createdAt"    column="created_at"    />
+        <result property="updatedAt"    column="updated_at"    />
+        <result property="str1"    column="str_1"    />
+        <result property="str2"    column="str_2"    />
+        <result property="str3"    column="str_3"    />
+        <result property="num1"    column="num_1"    />
+        <result property="num2"    column="num_2"    />
+        <result property="num3"    column="num_3"    />
+    </resultMap>
+
+    <sql id="selectTblTaskAssignmentVo">
+        select assignment_id, task_id, user_id, created_by, created_time, updated_time, updated_by, deleted_by, deleted_time, checked_by, checked, enabled, created_at, updated_at, str_1, str_2, str_3, num_1, num_2, num_3 from tbl_task_assignment
+    </sql>
+
+    <select id="selectTblTaskAssignmentList" parameterType="TblTaskAssignment" resultMap="TblTaskAssignmentResult">
+        <include refid="selectTblTaskAssignmentVo"/>
+        <where>  
+            <if test="taskId != null  and taskId != ''"> and task_id = #{taskId}</if>
+            <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
+            <if test="createdBy != null "> and created_by = #{createdBy}</if>
+            <if test="createdTime != null "> and created_time = #{createdTime}</if>
+            <if test="updatedTime != null "> and updated_time = #{updatedTime}</if>
+            <if test="updatedBy != null "> and updated_by = #{updatedBy}</if>
+            <if test="deletedBy != null "> and deleted_by = #{deletedBy}</if>
+            <if test="deletedTime != null "> and deleted_time = #{deletedTime}</if>
+            <if test="checkedBy != null "> and checked_by = #{checkedBy}</if>
+            <if test="checked != null "> and checked = #{checked}</if>
+            <if test="enabled != null "> and enabled = #{enabled}</if>
+            <if test="createdAt != null "> and created_at = #{createdAt}</if>
+            <if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
+            <if test="str1 != null  and str1 != ''"> and str_1 = #{str1}</if>
+            <if test="str2 != null  and str2 != ''"> and str_2 = #{str2}</if>
+            <if test="str3 != null  and str3 != ''"> and str_3 = #{str3}</if>
+            <if test="num1 != null "> and num_1 = #{num1}</if>
+            <if test="num2 != null "> and num_2 = #{num2}</if>
+            <if test="num3 != null "> and num_3 = #{num3}</if>
+        </where>
+    </select>
+    
+    <select id="selectTblTaskAssignmentByAssignmentId" parameterType="String" resultMap="TblTaskAssignmentResult">
+        <include refid="selectTblTaskAssignmentVo"/>
+        where assignment_id = #{assignmentId}
+    </select>
+        
+    <insert id="insertTblTaskAssignment" parameterType="TblTaskAssignment">
+        insert into tbl_task_assignment
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="assignmentId != null">assignment_id,</if>
+            <if test="taskId != null">task_id,</if>
+            <if test="userId != null">user_id,</if>
+            <if test="createdBy != null">created_by,</if>
+            <if test="createdTime != null">created_time,</if>
+            <if test="updatedTime != null">updated_time,</if>
+            <if test="updatedBy != null">updated_by,</if>
+            <if test="deletedBy != null">deleted_by,</if>
+            <if test="deletedTime != null">deleted_time,</if>
+            <if test="checkedBy != null">checked_by,</if>
+            <if test="checked != null">checked,</if>
+            <if test="enabled != null">enabled,</if>
+            <if test="createdAt != null">created_at,</if>
+            <if test="updatedAt != null">updated_at,</if>
+            <if test="str1 != null">str_1,</if>
+            <if test="str2 != null">str_2,</if>
+            <if test="str3 != null">str_3,</if>
+            <if test="num1 != null">num_1,</if>
+            <if test="num2 != null">num_2,</if>
+            <if test="num3 != null">num_3,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="assignmentId != null">#{assignmentId},</if>
+            <if test="taskId != null">#{taskId},</if>
+            <if test="userId != null">#{userId},</if>
+            <if test="createdBy != null">#{createdBy},</if>
+            <if test="createdTime != null">#{createdTime},</if>
+            <if test="updatedTime != null">#{updatedTime},</if>
+            <if test="updatedBy != null">#{updatedBy},</if>
+            <if test="deletedBy != null">#{deletedBy},</if>
+            <if test="deletedTime != null">#{deletedTime},</if>
+            <if test="checkedBy != null">#{checkedBy},</if>
+            <if test="checked != null">#{checked},</if>
+            <if test="enabled != null">#{enabled},</if>
+            <if test="createdAt != null">#{createdAt},</if>
+            <if test="updatedAt != null">#{updatedAt},</if>
+            <if test="str1 != null">#{str1},</if>
+            <if test="str2 != null">#{str2},</if>
+            <if test="str3 != null">#{str3},</if>
+            <if test="num1 != null">#{num1},</if>
+            <if test="num2 != null">#{num2},</if>
+            <if test="num3 != null">#{num3},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTblTaskAssignment" parameterType="TblTaskAssignment">
+        update tbl_task_assignment
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="taskId != null">task_id = #{taskId},</if>
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="createdBy != null">created_by = #{createdBy},</if>
+            <if test="createdTime != null">created_time = #{createdTime},</if>
+            <if test="updatedTime != null">updated_time = #{updatedTime},</if>
+            <if test="updatedBy != null">updated_by = #{updatedBy},</if>
+            <if test="deletedBy != null">deleted_by = #{deletedBy},</if>
+            <if test="deletedTime != null">deleted_time = #{deletedTime},</if>
+            <if test="checkedBy != null">checked_by = #{checkedBy},</if>
+            <if test="checked != null">checked = #{checked},</if>
+            <if test="enabled != null">enabled = #{enabled},</if>
+            <if test="createdAt != null">created_at = #{createdAt},</if>
+            <if test="updatedAt != null">updated_at = #{updatedAt},</if>
+            <if test="str1 != null">str_1 = #{str1},</if>
+            <if test="str2 != null">str_2 = #{str2},</if>
+            <if test="str3 != null">str_3 = #{str3},</if>
+            <if test="num1 != null">num_1 = #{num1},</if>
+            <if test="num2 != null">num_2 = #{num2},</if>
+            <if test="num3 != null">num_3 = #{num3},</if>
+        </trim>
+        where assignment_id = #{assignmentId}
+    </update>
+
+    <delete id="deleteTblTaskAssignmentByAssignmentId" parameterType="String">
+        delete from tbl_task_assignment where assignment_id = #{assignmentId}
+    </delete>
+
+    <delete id="deleteTblTaskAssignmentByAssignmentIds" parameterType="String">
+        delete from tbl_task_assignment where assignment_id in 
+        <foreach item="assignmentId" collection="array" open="(" separator="," close=")">
+            #{assignmentId}
+        </foreach>
+    </delete>
+</mapper>

+ 53 - 0
autoremark-ui/src/api/business/assignment.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询任务分配列表
+export function listAssignment(query) {
+  return request({
+    url: '/business/assignment/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询任务分配详细
+export function getAssignment(assignmentId) {
+  return request({
+    url: '/business/assignment/' + assignmentId,
+    method: 'get'
+  })
+}
+
+// 新增任务分配
+export function addAssignment(data) {
+  return request({
+    url: '/business/assignment',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改任务分配
+export function updateAssignment(data) {
+  return request({
+    url: '/business/assignment',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除任务分配
+export function delAssignment(assignmentId) {
+  return request({
+    url: '/business/assignment/' + assignmentId,
+    method: 'delete'
+  })
+}
+
+// 导出任务分配
+export function exportAssignment(query) {
+  return request({
+    url: '/business/assignment/export',
+    method: 'get',
+    params: query
+  })
+}

+ 556 - 0
autoremark-ui/src/views/business/assignment/index.vue

@@ -0,0 +1,556 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="任务id" prop="taskId">
+        <el-input
+          v-model="queryParams.taskId"
+          placeholder="请输入任务id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="分配给的用户id" prop="userId">
+        <el-input
+          v-model="queryParams.userId"
+          placeholder="请输入分配给的用户id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="创建人" prop="createdBy">
+        <el-input
+          v-model="queryParams.createdBy"
+          placeholder="请输入创建人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="创建时间" prop="createdTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.createdTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择创建时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="更新时间" prop="updatedTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.updatedTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择更新时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="更新人" prop="updatedBy">
+        <el-input
+          v-model="queryParams.updatedBy"
+          placeholder="请输入更新人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="删除人" prop="deletedBy">
+        <el-input
+          v-model="queryParams.deletedBy"
+          placeholder="请输入删除人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="删除时间" prop="deletedTime">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.deletedTime"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择删除时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="审核人" prop="checkedBy">
+        <el-input
+          v-model="queryParams.checkedBy"
+          placeholder="请输入审核人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="审核状态" prop="checked">
+        <el-input
+          v-model="queryParams.checked"
+          placeholder="请输入审核状态"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="是否启用" prop="enabled">
+        <el-input
+          v-model="queryParams.enabled"
+          placeholder="请输入是否启用"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="任务创建时间" prop="createdAt">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.createdAt"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择任务创建时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="任务更新时间" prop="updatedAt">
+        <el-date-picker clearable size="small"
+          v-model="queryParams.updatedAt"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择任务更新时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="备用字符1" prop="str1">
+        <el-input
+          v-model="queryParams.str1"
+          placeholder="请输入备用字符1"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备用字符2" prop="str2">
+        <el-input
+          v-model="queryParams.str2"
+          placeholder="请输入备用字符2"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备用字符3" prop="str3">
+        <el-input
+          v-model="queryParams.str3"
+          placeholder="请输入备用字符3"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备用整数1" prop="num1">
+        <el-input
+          v-model="queryParams.num1"
+          placeholder="请输入备用整数1"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备用整数2" prop="num2">
+        <el-input
+          v-model="queryParams.num2"
+          placeholder="请输入备用整数2"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="备用整数3" prop="num3">
+        <el-input
+          v-model="queryParams.num3"
+          placeholder="请输入备用整数3"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['business:assignment:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['business:assignment:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['business:assignment:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['business:assignment:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="assignmentList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="流水号主键" align="center" prop="assignmentId" />
+      <el-table-column label="任务id" align="center" prop="taskId" />
+      <el-table-column label="分配给的用户id" align="center" prop="userId" />
+      <el-table-column label="创建人" align="center" prop="createdBy" />
+      <el-table-column label="创建时间" align="center" prop="createdTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="更新时间" align="center" prop="updatedTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.updatedTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="更新人" align="center" prop="updatedBy" />
+      <el-table-column label="删除人" align="center" prop="deletedBy" />
+      <el-table-column label="删除时间" align="center" prop="deletedTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.deletedTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="审核人" align="center" prop="checkedBy" />
+      <el-table-column label="审核状态" align="center" prop="checked" />
+      <el-table-column label="是否启用" align="center" prop="enabled" />
+      <el-table-column label="任务创建时间" align="center" prop="createdAt" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.createdAt, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="任务更新时间" align="center" prop="updatedAt" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.updatedAt, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="备用字符1" align="center" prop="str1" />
+      <el-table-column label="备用字符2" align="center" prop="str2" />
+      <el-table-column label="备用字符3" align="center" prop="str3" />
+      <el-table-column label="备用整数1" align="center" prop="num1" />
+      <el-table-column label="备用整数2" align="center" prop="num2" />
+      <el-table-column label="备用整数3" align="center" prop="num3" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['business:assignment:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['business:assignment:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改任务分配对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="任务id" prop="taskId">
+          <el-input v-model="form.taskId" placeholder="请输入任务id" />
+        </el-form-item>
+        <el-form-item label="分配给的用户id" prop="userId">
+          <el-input v-model="form.userId" placeholder="请输入分配给的用户id" />
+        </el-form-item>
+        <el-form-item label="创建人" prop="createdBy">
+          <el-input v-model="form.createdBy" placeholder="请输入创建人" />
+        </el-form-item>
+        <el-form-item label="创建时间" prop="createdTime">
+          <el-date-picker clearable size="small"
+            v-model="form.createdTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择创建时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="更新时间" prop="updatedTime">
+          <el-date-picker clearable size="small"
+            v-model="form.updatedTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择更新时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="更新人" prop="updatedBy">
+          <el-input v-model="form.updatedBy" placeholder="请输入更新人" />
+        </el-form-item>
+        <el-form-item label="删除人" prop="deletedBy">
+          <el-input v-model="form.deletedBy" placeholder="请输入删除人" />
+        </el-form-item>
+        <el-form-item label="删除时间" prop="deletedTime">
+          <el-date-picker clearable size="small"
+            v-model="form.deletedTime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择删除时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="审核人" prop="checkedBy">
+          <el-input v-model="form.checkedBy" placeholder="请输入审核人" />
+        </el-form-item>
+        <el-form-item label="审核状态" prop="checked">
+          <el-input v-model="form.checked" placeholder="请输入审核状态" />
+        </el-form-item>
+        <el-form-item label="是否启用" prop="enabled">
+          <el-input v-model="form.enabled" placeholder="请输入是否启用" />
+        </el-form-item>
+        <el-form-item label="任务创建时间" prop="createdAt">
+          <el-date-picker clearable size="small"
+            v-model="form.createdAt"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择任务创建时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="任务更新时间" prop="updatedAt">
+          <el-date-picker clearable size="small"
+            v-model="form.updatedAt"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择任务更新时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="备用字符1" prop="str1">
+          <el-input v-model="form.str1" placeholder="请输入备用字符1" />
+        </el-form-item>
+        <el-form-item label="备用字符2" prop="str2">
+          <el-input v-model="form.str2" placeholder="请输入备用字符2" />
+        </el-form-item>
+        <el-form-item label="备用字符3" prop="str3">
+          <el-input v-model="form.str3" placeholder="请输入备用字符3" />
+        </el-form-item>
+        <el-form-item label="备用整数1" prop="num1">
+          <el-input v-model="form.num1" placeholder="请输入备用整数1" />
+        </el-form-item>
+        <el-form-item label="备用整数2" prop="num2">
+          <el-input v-model="form.num2" placeholder="请输入备用整数2" />
+        </el-form-item>
+        <el-form-item label="备用整数3" prop="num3">
+          <el-input v-model="form.num3" placeholder="请输入备用整数3" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listAssignment, getAssignment, delAssignment, addAssignment, updateAssignment } from "@/api/business/assignment";
+
+export default {
+  name: "Assignment",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 任务分配表格数据
+      assignmentList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        taskId: null,
+        userId: null,
+        createdBy: null,
+        createdTime: null,
+        updatedTime: null,
+        updatedBy: null,
+        deletedBy: null,
+        deletedTime: null,
+        checkedBy: null,
+        checked: null,
+        enabled: null,
+        createdAt: null,
+        updatedAt: null,
+        str1: null,
+        str2: null,
+        str3: null,
+        num1: null,
+        num2: null,
+        num3: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询任务分配列表 */
+    getList() {
+      this.loading = true;
+      listAssignment(this.queryParams).then(response => {
+        this.assignmentList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        assignmentId: null,
+        taskId: null,
+        userId: null,
+        createdBy: null,
+        createdTime: null,
+        updatedTime: null,
+        updatedBy: null,
+        deletedBy: null,
+        deletedTime: null,
+        checkedBy: null,
+        checked: null,
+        enabled: null,
+        createdAt: null,
+        updatedAt: null,
+        str1: null,
+        str2: null,
+        str3: null,
+        num1: null,
+        num2: null,
+        num3: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.assignmentId)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加任务分配";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const assignmentId = row.assignmentId || this.ids
+      getAssignment(assignmentId).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改任务分配";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.assignmentId != null) {
+            updateAssignment(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addAssignment(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const assignmentIds = row.assignmentId || this.ids;
+      this.$modal.confirm('是否确认删除任务分配编号为"' + assignmentIds + '"的数据项?').then(function() {
+        return delAssignment(assignmentIds);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('business/assignment/export', {
+        ...this.queryParams
+      }, `assignment_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 8 - 0
pom.xml

@@ -191,6 +191,13 @@
                 <version>${autoremark.version}</version>
             </dependency>
 
+            <!-- 自动标注模块-->
+            <dependency>
+                <groupId>com.autoremark</groupId>
+                <artifactId>autoremark-business</artifactId>
+                <version>${autoremark.version}</version>
+            </dependency>
+
             <!-- 系统模块-->
             <dependency>
                 <groupId>com.autoremark</groupId>
@@ -215,6 +222,7 @@
         <module>autoremark-quartz</module>
         <module>autoremark-generator</module>
         <module>autoremark-common</module>
+        <module>autoremark-business</module>
     </modules>
     <packaging>pom</packaging>