Browse Source

新增设备工艺管理

车车 10 tháng trước cách đây
mục cha
commit
bb2a75a85e

+ 117 - 0
ktg-iscs/src/main/java/com/ktg/iscs/controller/IsDeviceTechnologyController.java

@@ -0,0 +1,117 @@
+package com.ktg.iscs.controller;
+
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ktg.common.annotation.Log;
+import com.ktg.common.core.controller.BaseController;
+import com.ktg.common.enums.BusinessType;
+import com.ktg.common.pojo.CommonResult;
+import com.ktg.common.utils.poi.ExcelUtil;
+import com.ktg.iscs.domain.IsDeviceTechnology;
+import com.ktg.iscs.domain.vo.technology.IsDeviceTechnologyVO;
+import com.ktg.iscs.service.IIsDeviceTechnologyService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Parameters;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+import com.ktg.common.core.page.TableDataInfo;
+
+/**
+ * 设备工艺Controller
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+@Api(tags = "设备工艺")
+@RestController
+@RequestMapping("/iscs/technology")
+public class IsDeviceTechnologyController extends BaseController
+{
+    @Autowired
+    private IIsDeviceTechnologyService isDeviceTechnologyService;
+
+    /**
+     * 查询设备工艺分页
+     */
+    @ApiOperation("查询设备工艺-分页")
+    @Parameters({
+            @Parameter(name = "page", description = "Page"),
+            @Parameter(name = "isDeviceTechnology", description = "实体参数")
+    })
+    @PreAuthorize("@ss.hasPermi('iscs:technology:list')")
+    @GetMapping("/getIsDeviceTechnologyPage")
+    public CommonResult<Page<IsDeviceTechnologyVO>> getIsDeviceTechnologyPage(Page<IsDeviceTechnology> page, IsDeviceTechnology isDeviceTechnology)
+    {
+        Page<IsDeviceTechnologyVO> result = isDeviceTechnologyService.getIsDeviceTechnologyPage(page, isDeviceTechnology);
+        return CommonResult.success(result);
+    }
+
+    /**
+     * 导出设备工艺列表
+     */
+    @ApiOperation("导出设备工艺列表")
+    @Parameter(name = "isDeviceTechnology", description = "实体参数")
+    @PreAuthorize("@ss.hasPermi('iscs:technology:export')")
+    @Log(title = "设备工艺", businessType = BusinessType.EXPORT)
+    @PostMapping("/exportIsDeviceTechnology")
+    public void exportIsDeviceTechnology(HttpServletResponse response, IsDeviceTechnology isDeviceTechnology)
+    {
+        List<IsDeviceTechnology> list = isDeviceTechnologyService.selectIsDeviceTechnologyList(isDeviceTechnology);
+        ExcelUtil<IsDeviceTechnology> util = new ExcelUtil<IsDeviceTechnology>(IsDeviceTechnology.class);
+        util.exportExcel(response, list, "设备工艺数据");
+    }
+
+    /**
+     * 获取设备工艺详细信息
+     */
+    @ApiOperation("获取设备工艺详细信息")
+    @Parameter(name = "technologyId", description = "technologyId")
+    @PreAuthorize("@ss.hasPermi('iscs:technology:query')")
+    @GetMapping(value = "/selectIsDeviceTechnologyById")
+    public CommonResult<IsDeviceTechnology> selectIsDeviceTechnologyById(Long technologyId)
+    {
+        return CommonResult.success(isDeviceTechnologyService.selectIsDeviceTechnologyByTechnologyId(technologyId));
+    }
+
+    /**
+     * 新增设备工艺
+     */
+    @ApiOperation("新增设备工艺")
+    @PreAuthorize("@ss.hasPermi('iscs:technology:add')")
+    @Log(title = "设备工艺", businessType = BusinessType.INSERT)
+    @PostMapping("/insertIsDeviceTechnology")
+    public CommonResult<Boolean> insertIsDeviceTechnology(@RequestBody @Parameter(name = "isDeviceTechnology", description = "新增数据类,放到body") IsDeviceTechnology isDeviceTechnology)
+    {
+        return CommonResult.success(isDeviceTechnologyService.insertIsDeviceTechnology(isDeviceTechnology) == 1);
+    }
+
+    /**
+     * 修改设备工艺
+     */
+    @ApiOperation("修改设备工艺")
+    @PreAuthorize("@ss.hasPermi('iscs:technology:edit')")
+    @Log(title = "设备工艺", businessType = BusinessType.UPDATE)
+    @PostMapping("/updateIsDeviceTechnology")
+    public CommonResult<Boolean> updateIsDeviceTechnology(@RequestBody @Parameter(name = "isDeviceTechnology", description = "修改数据类,放到body") IsDeviceTechnology isDeviceTechnology)
+    {
+        return CommonResult.success(isDeviceTechnologyService.updateIsDeviceTechnology(isDeviceTechnology) == 1);
+    }
+
+    /**
+     * 删除设备工艺
+     */
+    @ApiOperation("删除设备工艺")
+    @PreAuthorize("@ss.hasPermi('iscs:technology:remove')")
+    @Log(title = "设备工艺", businessType = BusinessType.DELETE)
+	@PostMapping("/deleteIsDeviceTechnologyByTechnologyIds")
+    public CommonResult<Boolean> deleteIsDeviceTechnologyByTechnologyIds(String technologyIds)
+    {
+        return CommonResult.success(isDeviceTechnologyService.deleteIsDeviceTechnologyByTechnologyIds(technologyIds) != 0);
+    }
+}

+ 11 - 15
ktg-iscs/src/main/java/com/ktg/iscs/controller/IsWorkstationController.java

@@ -6,6 +6,7 @@ import com.ktg.common.annotation.Log;
 import com.ktg.common.core.controller.BaseController;
 import com.ktg.common.enums.BusinessType;
 import com.ktg.common.pojo.CommonResult;
+import com.ktg.common.utils.StringUtils;
 import com.ktg.common.utils.poi.ExcelUtil;
 import com.ktg.iscs.domain.IsWorkstation;
 import com.ktg.iscs.service.IIsWorkstationService;
@@ -29,8 +30,7 @@ import java.util.List;
 @Api(tags = "mars岗位")
 @RestController
 @RequestMapping("/iscs/workstation")
-public class IsWorkstationController extends BaseController
-{
+public class IsWorkstationController extends BaseController {
     @Autowired
     private IIsWorkstationService isWorkstationService;
 
@@ -44,9 +44,10 @@ public class IsWorkstationController extends BaseController
     })
     @PreAuthorize("@ss.hasPermi('iscs:workstation:list')")
     @GetMapping("/getIsWorkstationPage")
-    public CommonResult<Page<IsWorkstation>> getIsWorkstationPage(Page<IsWorkstation> page, IsWorkstation isWorkstation)
-    {
+    public CommonResult<Page<IsWorkstation>> getIsWorkstationPage(Page<IsWorkstation> page, IsWorkstation isWorkstation) {
         Page<IsWorkstation> result = isWorkstationService.page(page, Wrappers.<IsWorkstation>lambdaQuery()
+                .like(StringUtils.isNotBlank(isWorkstation.getWorkstationName()), IsWorkstation::getWorkstationName, isWorkstation.getWorkstationName())
+                .eq(StringUtils.isNotBlank(isWorkstation.getStatus()), IsWorkstation::getStatus, isWorkstation.getStatus())
                 .orderByDesc(IsWorkstation::getWorkstationId));
         return CommonResult.success(result);
     }
@@ -59,8 +60,7 @@ public class IsWorkstationController extends BaseController
     @PreAuthorize("@ss.hasPermi('iscs:workstation:export')")
     @Log(title = "mars岗位", businessType = BusinessType.EXPORT)
     @PostMapping("/exportIsWorkstation")
-    public void exportIsWorkstation(HttpServletResponse response, IsWorkstation isWorkstation)
-    {
+    public void exportIsWorkstation(HttpServletResponse response, IsWorkstation isWorkstation) {
         List<IsWorkstation> list = isWorkstationService.selectIsWorkstationList(isWorkstation);
         ExcelUtil<IsWorkstation> util = new ExcelUtil<IsWorkstation>(IsWorkstation.class);
         util.exportExcel(response, list, "mars岗位数据");
@@ -73,8 +73,7 @@ public class IsWorkstationController extends BaseController
     @Parameter(name = "workstationId", description = "workstationId")
     @PreAuthorize("@ss.hasPermi('iscs:workstation:query')")
     @GetMapping(value = "/selectIsWorkstationById")
-    public CommonResult<IsWorkstation> selectIsWorkstationById(Long workstationId)
-    {
+    public CommonResult<IsWorkstation> selectIsWorkstationById(Long workstationId) {
         return CommonResult.success(isWorkstationService.selectIsWorkstationByWorkstationId(workstationId));
     }
 
@@ -85,8 +84,7 @@ public class IsWorkstationController extends BaseController
     @PreAuthorize("@ss.hasPermi('iscs:workstation:add')")
     @Log(title = "mars岗位", businessType = BusinessType.INSERT)
     @PostMapping("/insertIsWorkstation")
-    public CommonResult<Boolean> insertIsWorkstation(@RequestBody @Parameter(name = "isWorkstation", description = "新增数据类,放到body") IsWorkstation isWorkstation)
-    {
+    public CommonResult<Boolean> insertIsWorkstation(@RequestBody @Parameter(name = "isWorkstation", description = "新增数据类,放到body") IsWorkstation isWorkstation) {
         return CommonResult.success(isWorkstationService.insertIsWorkstation(isWorkstation) == 1);
     }
 
@@ -97,8 +95,7 @@ public class IsWorkstationController extends BaseController
     @PreAuthorize("@ss.hasPermi('iscs:workstation:edit')")
     @Log(title = "mars岗位", businessType = BusinessType.UPDATE)
     @PostMapping("/updateIsWorkstation")
-    public CommonResult<Boolean> updateIsWorkstation(@RequestBody @Parameter(name = "isWorkstation", description = "修改数据类,放到body") IsWorkstation isWorkstation)
-    {
+    public CommonResult<Boolean> updateIsWorkstation(@RequestBody @Parameter(name = "isWorkstation", description = "修改数据类,放到body") IsWorkstation isWorkstation) {
         return CommonResult.success(isWorkstationService.updateIsWorkstation(isWorkstation) == 1);
     }
 
@@ -108,9 +105,8 @@ public class IsWorkstationController extends BaseController
     @ApiOperation("删除mars岗位")
     @PreAuthorize("@ss.hasPermi('iscs:workstation:remove')")
     @Log(title = "mars岗位", businessType = BusinessType.DELETE)
-	@PostMapping("/deleteIsWorkstationByWorkstationIds")
-    public CommonResult<Boolean> deleteIsWorkstationByWorkstationIds(String workstationIds)
-    {
+    @PostMapping("/deleteIsWorkstationByWorkstationIds")
+    public CommonResult<Boolean> deleteIsWorkstationByWorkstationIds(String workstationIds) {
         return CommonResult.success(isWorkstationService.deleteIsWorkstationByWorkstationIds(workstationIds) != 0);
     }
 }

+ 63 - 0
ktg-iscs/src/main/java/com/ktg/iscs/domain/IsDeviceTechnology.java

@@ -0,0 +1,63 @@
+package com.ktg.iscs.domain;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModelProperty;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.ktg.common.annotation.Excel;
+import com.ktg.common.core.domain.model.BaseBean;
+
+/**
+ * 设备工艺对象 is_device_technology
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class IsDeviceTechnology extends BaseBean
+{
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "设备工艺ID")
+    @TableId(type = IdType.AUTO)
+    private Long technologyId;
+
+    @ApiModelProperty(value = "设备工艺编号")
+    @Excel(name = "设备工艺编号")
+    private String technologyCode;
+
+    @ApiModelProperty(value = "设备工艺名称")
+    @Excel(name = "设备工艺名称")
+    private String technologyName;
+
+    @ApiModelProperty(value = "设备工艺类型")
+    @Excel(name = "设备工艺类型")
+    private String technologyType;
+
+    @ApiModelProperty(value = "所属mars岗位ID")
+    @Excel(name = "所属mars岗位ID")
+    private Long workstationId;
+
+    @ApiModelProperty(value = "工艺图")
+    @Excel(name = "工艺图")
+    private String technologyImg;
+
+    @ApiModelProperty(value = "父部门id")
+    @Excel(name = "父部门id")
+    private Long parentId;
+
+    @ApiModelProperty(value = "祖级列表")
+    @Excel(name = "祖级列表")
+    private String ancestors;
+
+    @ApiModelProperty(value = "状态")
+    @Excel(name = "状态")
+    private String status;
+
+    @ApiModelProperty(value = "删除标志(0代表存在 2代表删除)")
+    private String delFlag;
+
+
+}

+ 66 - 0
ktg-iscs/src/main/java/com/ktg/iscs/domain/vo/technology/IsDeviceTechnologyVO.java

@@ -0,0 +1,66 @@
+package com.ktg.iscs.domain.vo.technology;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.ktg.common.annotation.Excel;
+import com.ktg.common.core.domain.model.BaseBean;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 设备工艺对象 is_device_technology
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class IsDeviceTechnologyVO extends BaseBean
+{
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "设备工艺ID")
+    @TableId(type = IdType.AUTO)
+    private Long technologyId;
+
+    @ApiModelProperty(value = "设备工艺编号")
+    @Excel(name = "设备工艺编号")
+    private String technologyCode;
+
+    @ApiModelProperty(value = "设备工艺名称")
+    @Excel(name = "设备工艺名称")
+    private String technologyName;
+
+    @ApiModelProperty(value = "设备工艺类型")
+    @Excel(name = "设备工艺类型")
+    private String technologyType;
+
+    @ApiModelProperty(value = "所属mars岗位ID")
+    private Long workstationId;
+
+    @ApiModelProperty(value = "所属mars岗位name")
+    @Excel(name = "所属mars岗位name")
+    private String workstationName;
+
+    @ApiModelProperty(value = "工艺图")
+    @Excel(name = "工艺图")
+    private String technologyImg;
+
+    @ApiModelProperty(value = "父部门id")
+    @Excel(name = "父部门id")
+    private Long parentId;
+
+    @ApiModelProperty(value = "祖级列表")
+    @Excel(name = "祖级列表")
+    private String ancestors;
+
+    @ApiModelProperty(value = "状态")
+    @Excel(name = "状态")
+    private String status;
+
+    @ApiModelProperty(value = "删除标志(0代表存在 2代表删除)")
+    private String delFlag;
+
+
+}

+ 70 - 0
ktg-iscs/src/main/java/com/ktg/iscs/mapper/IsDeviceTechnologyMapper.java

@@ -0,0 +1,70 @@
+package com.ktg.iscs.mapper;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ktg.iscs.domain.vo.technology.IsDeviceTechnologyVO;
+import org.apache.ibatis.annotations.Mapper;
+import com.ktg.common.mapper.BaseMapperX;
+import com.ktg.iscs.domain.IsDeviceTechnology;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 设备工艺Mapper接口
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+@Mapper
+public interface IsDeviceTechnologyMapper extends BaseMapperX<IsDeviceTechnology>
+{
+    /**
+     * 查询设备工艺
+     *
+     * @param technologyId 设备工艺主键
+     * @return 设备工艺
+     */
+    IsDeviceTechnology selectIsDeviceTechnologyByTechnologyId(Long technologyId);
+
+    /**
+     * 查询设备工艺列表
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 设备工艺集合
+     */
+    List<IsDeviceTechnology> selectIsDeviceTechnologyList(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 新增设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    int insertIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 修改设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    int updateIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 删除设备工艺
+     *
+     * @param technologyId 设备工艺主键
+     * @return 结果
+     */
+    int deleteIsDeviceTechnologyByTechnologyId(Long technologyId);
+
+    /**
+     * 批量删除设备工艺
+     *
+     * @param technologyIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteIsDeviceTechnologyByTechnologyIds(Long[] technologyIds);
+
+    Page<IsDeviceTechnologyVO> getIsDeviceTechnologyPage(Page<IsDeviceTechnology> page, @Param(value = "isDeviceTechnology") IsDeviceTechnology isDeviceTechnology);
+}

+ 66 - 0
ktg-iscs/src/main/java/com/ktg/iscs/service/IIsDeviceTechnologyService.java

@@ -0,0 +1,66 @@
+package com.ktg.iscs.service;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.IService;
+import java.util.List;
+import com.ktg.iscs.domain.IsDeviceTechnology;
+import com.ktg.iscs.domain.vo.technology.IsDeviceTechnologyVO;
+
+/**
+ * 设备工艺Service接口
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+public interface IIsDeviceTechnologyService extends IService<IsDeviceTechnology>
+{
+    /**
+     * 查询设备工艺
+     *
+     * @param technologyId 设备工艺主键
+     * @return 设备工艺
+     */
+    IsDeviceTechnology selectIsDeviceTechnologyByTechnologyId(Long technologyId);
+
+    /**
+     * 查询设备工艺列表
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 设备工艺集合
+     */
+    List<IsDeviceTechnology> selectIsDeviceTechnologyList(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 新增设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    int insertIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 修改设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    int updateIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology);
+
+    /**
+     * 批量删除设备工艺
+     *
+     * @param technologyIds 需要删除的设备工艺主键集合
+     * @return 结果
+     */
+    int deleteIsDeviceTechnologyByTechnologyIds(String technologyIds);
+
+    /**
+     * 删除设备工艺信息
+     *
+     * @param technologyId 设备工艺主键
+     * @return 结果
+     */
+    int deleteIsDeviceTechnologyByTechnologyId(Long technologyId);
+
+    Page<IsDeviceTechnologyVO> getIsDeviceTechnologyPage(Page<IsDeviceTechnology> page, IsDeviceTechnology isDeviceTechnology);
+}

+ 108 - 0
ktg-iscs/src/main/java/com/ktg/iscs/service/impl/IsDeviceTechnologyServiceImpl.java

@@ -0,0 +1,108 @@
+package com.ktg.iscs.service.impl;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.util.List;
+import cn.hutool.core.lang.Assert;
+import com.ktg.common.core.text.Convert;
+import com.ktg.common.utils.DateUtils;
+import com.ktg.iscs.domain.vo.technology.IsDeviceTechnologyVO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ktg.iscs.mapper.IsDeviceTechnologyMapper;
+import com.ktg.iscs.domain.IsDeviceTechnology;
+import com.ktg.iscs.service.IIsDeviceTechnologyService;
+
+/**
+ * 设备工艺Service业务层处理
+ *
+ * @author cgj
+ * @date 2024-12-17
+ */
+@Service
+public class IsDeviceTechnologyServiceImpl extends ServiceImpl<IsDeviceTechnologyMapper, IsDeviceTechnology> implements IIsDeviceTechnologyService
+{
+    @Autowired
+    private IsDeviceTechnologyMapper isDeviceTechnologyMapper;
+
+    /**
+     * 查询设备工艺
+     *
+     * @param technologyId 设备工艺主键
+     * @return 设备工艺
+     */
+    @Override
+    public IsDeviceTechnology selectIsDeviceTechnologyByTechnologyId(Long technologyId)
+    {
+        return isDeviceTechnologyMapper.selectIsDeviceTechnologyByTechnologyId(technologyId);
+    }
+
+    /**
+     * 查询设备工艺列表
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 设备工艺
+     */
+    @Override
+    public List<IsDeviceTechnology> selectIsDeviceTechnologyList(IsDeviceTechnology isDeviceTechnology)
+    {
+        return isDeviceTechnologyMapper.selectIsDeviceTechnologyList(isDeviceTechnology);
+    }
+
+    /**
+     * 新增设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    @Override
+    public int insertIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology)
+    {
+        isDeviceTechnology.setCreateTime(DateUtils.getNowDate());
+        return isDeviceTechnologyMapper.insertIsDeviceTechnology(isDeviceTechnology);
+    }
+
+    /**
+     * 修改设备工艺
+     *
+     * @param isDeviceTechnology 设备工艺
+     * @return 结果
+     */
+    @Override
+    public int updateIsDeviceTechnology(IsDeviceTechnology isDeviceTechnology)
+    {
+        isDeviceTechnology.setUpdateTime(DateUtils.getNowDate());
+        return isDeviceTechnologyMapper.updateIsDeviceTechnology(isDeviceTechnology);
+    }
+
+    /**
+     * 批量删除设备工艺
+     *
+     * @param technologyIds 需要删除的设备工艺主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIsDeviceTechnologyByTechnologyIds(String technologyIds)
+    {
+        Assert.notBlank(technologyIds, "请选择需要删除的数据!");
+        Long[] longIds = Convert.toLongArray(technologyIds);
+        return isDeviceTechnologyMapper.deleteIsDeviceTechnologyByTechnologyIds(longIds);
+    }
+
+    /**
+     * 删除设备工艺信息
+     *
+     * @param technologyId 设备工艺主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIsDeviceTechnologyByTechnologyId(Long technologyId)
+    {
+        return isDeviceTechnologyMapper.deleteIsDeviceTechnologyByTechnologyId(technologyId);
+    }
+
+    @Override
+    public Page<IsDeviceTechnologyVO> getIsDeviceTechnologyPage(Page<IsDeviceTechnology> page, IsDeviceTechnology isDeviceTechnology) {
+        return isDeviceTechnologyMapper.getIsDeviceTechnologyPage(page, isDeviceTechnology);
+    }
+}

+ 118 - 0
ktg-iscs/src/main/resources/mapper/IsDeviceTechnologyMapper.xml

@@ -0,0 +1,118 @@
+<?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.ktg.iscs.mapper.IsDeviceTechnologyMapper">
+
+
+    <sql id="selectIsDeviceTechnologyVo">
+        select * from is_device_technology
+    </sql>
+
+    <select id="selectIsDeviceTechnologyList" parameterType="IsDeviceTechnology" resultType="IsDeviceTechnology">
+        <include refid="selectIsDeviceTechnologyVo"/>
+        <where>
+            <if test="technologyCode != null  and technologyCode != ''"> and technology_code = #{technologyCode}</if>
+            <if test="technologyName != null  and technologyName != ''"> and technology_name like concat('%', #{technologyName}, '%')</if>
+            <if test="technologyType != null  and technologyType != ''"> and technology_type = #{technologyType}</if>
+            <if test="workstationId != null "> and workstation_id = #{workstationId}</if>
+            <if test="technologyImg != null  and technologyImg != ''"> and technology_img = #{technologyImg}</if>
+            <if test="parentId != null "> and parent_id = #{parentId}</if>
+            <if test="ancestors != null  and ancestors != ''"> and ancestors = #{ancestors}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+        </where>
+    </select>
+
+    <select id="selectIsDeviceTechnologyByTechnologyId" parameterType="Long" resultType="IsDeviceTechnology">
+        <include refid="selectIsDeviceTechnologyVo"/>
+        where technology_id = #{technologyId}
+    </select>
+
+    <insert id="insertIsDeviceTechnology" parameterType="IsDeviceTechnology" useGeneratedKeys="true" keyProperty="technologyId">
+        insert into is_device_technology
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="technologyCode != null and technologyCode != ''">technology_code,</if>
+            <if test="technologyName != null and technologyName != ''">technology_name,</if>
+            <if test="technologyType != null">technology_type,</if>
+            <if test="workstationId != null">workstation_id,</if>
+            <if test="technologyImg != null">technology_img,</if>
+            <if test="parentId != null">parent_id,</if>
+            <if test="ancestors != null">ancestors,</if>
+            <if test="status != null">status,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="technologyCode != null and technologyCode != ''">#{technologyCode},</if>
+            <if test="technologyName != null and technologyName != ''">#{technologyName},</if>
+            <if test="technologyType != null">#{technologyType},</if>
+            <if test="workstationId != null">#{workstationId},</if>
+            <if test="technologyImg != null">#{technologyImg},</if>
+            <if test="parentId != null">#{parentId},</if>
+            <if test="ancestors != null">#{ancestors},</if>
+            <if test="status != null">#{status},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIsDeviceTechnology" parameterType="IsDeviceTechnology">
+        update is_device_technology
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="technologyCode != null and technologyCode != ''">technology_code = #{technologyCode},</if>
+            <if test="technologyName != null and technologyName != ''">technology_name = #{technologyName},</if>
+            <if test="technologyType != null">technology_type = #{technologyType},</if>
+            <if test="workstationId != null">workstation_id = #{workstationId},</if>
+            <if test="technologyImg != null">technology_img = #{technologyImg},</if>
+            <if test="parentId != null">parent_id = #{parentId},</if>
+            <if test="ancestors != null">ancestors = #{ancestors},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where technology_id = #{technologyId}
+    </update>
+
+    <delete id="deleteIsDeviceTechnologyByTechnologyId" parameterType="Long">
+        delete from is_device_technology where technology_id = #{technologyId}
+    </delete>
+
+    <delete id="deleteIsDeviceTechnologyByTechnologyIds" parameterType="String">
+        delete from is_device_technology where technology_id in
+        <foreach item="technologyId" collection="array" open="(" separator="," close=")">
+            #{technologyId}
+        </foreach>
+    </delete>
+
+    <select id="getIsDeviceTechnologyPage" resultType="com.ktg.iscs.domain.vo.technology.IsDeviceTechnologyVO">
+        SELECT
+            t.*,
+            w.workstation_name
+        FROM
+            is_device_technology t
+                LEFT JOIN is_workstation w ON w.workstation_id = t.workstation_id
+        <where>
+            <if test="isDeviceTechnology.technologyName != null and isDeviceTechnology.technologyName.trim != ''">
+                and t.technology_name like concat('%',#{isDeviceTechnology.technologyName},'%')
+            </if>
+            <if test="isDeviceTechnology.technologyCode != null and isDeviceTechnology.technologyCode.trim != ''">
+                and t.technology_code like concat('%',#{isDeviceTechnology.technologyCode},'%')
+            </if>
+        </where>
+        ORDER BY
+        t.technology_id DESC
+    </select>
+
+</mapper>