From 64026632c7873a0314bbbe224a57e0053cf18cd7 Mon Sep 17 00:00:00 2001
From: dy <dingyang@lnfxkj.tech>
Date: 星期一, 21 四月 2025 17:55:58 +0800
Subject: [PATCH] 工序级产能数据管理后台代码提交

---
 aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsProcessCapacityManagementController.java |  105 +++++++++
 aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProfessionalFixedCycleManagement.java                  |    4 
 aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsProcessCapacityManagementServiceImpl.java        |   96 ++++++++
 aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsProcessCapacityManagementMapper.java                   |   63 +++++
 aps-modules/aps-core/src/main/java/com/aps/core/service/IApsProcessCapacityManagementService.java                |   61 +++++
 aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProcessCapacityManagement.java                         |  182 ++++++++++++++++
 aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessCapacityManagementMapper.xml                       |  106 +++++++++
 7 files changed, 616 insertions(+), 1 deletions(-)

diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsProcessCapacityManagementController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsProcessCapacityManagementController.java
new file mode 100644
index 0000000..94491a7
--- /dev/null
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsProcessCapacityManagementController.java
@@ -0,0 +1,105 @@
+package com.aps.core.controller.basicData;
+
+import java.util.List;
+
+import jakarta.servlet.http.HttpServletResponse;
+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.aps.common.log.annotation.Log;
+import com.aps.common.log.enums.BusinessType;
+import com.aps.common.security.annotation.RequiresPermissions;
+import com.aps.core.domain.ApsProcessCapacityManagement;
+import com.aps.core.service.IApsProcessCapacityManagementService;
+import com.aps.common.core.web.controller.BaseController;
+import com.aps.common.core.web.domain.AjaxResult;
+import com.aps.common.core.utils.poi.ExcelUtil;
+import com.aps.common.core.web.page.TableDataInfo;
+
+/**
+ * 宸ュ簭绾т骇鑳芥暟鎹鐞咰ontroller
+ * 
+ * @author dingYang
+ * @date 2025-04-21
+ */
+@RestController
+@RequestMapping("/processCapacityManagement")
+public class ApsProcessCapacityManagementController extends BaseController
+{
+    @Autowired
+    private IApsProcessCapacityManagementService apsProcessCapacityManagementService;
+
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞嗗垪琛�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:list")
+    @GetMapping("/list")
+    public TableDataInfo list(ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        startPage();
+        List<ApsProcessCapacityManagement> list = apsProcessCapacityManagementService.selectApsProcessCapacityManagementList(apsProcessCapacityManagement);
+        return getDataTable(list);
+    }
+
+    /**
+     * 瀵煎嚭宸ュ簭绾т骇鑳芥暟鎹鐞嗗垪琛�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:export")
+    @Log(title = "宸ュ簭绾т骇鑳芥暟鎹鐞�", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        List<ApsProcessCapacityManagement> list = apsProcessCapacityManagementService.selectApsProcessCapacityManagementList(apsProcessCapacityManagement);
+        ExcelUtil<ApsProcessCapacityManagement> util = new ExcelUtil<ApsProcessCapacityManagement>(ApsProcessCapacityManagement.class);
+        util.exportExcel(response, list, "宸ュ簭绾т骇鑳芥暟鎹鐞嗘暟鎹�");
+    }
+
+    /**
+     * 鑾峰彇宸ュ簭绾т骇鑳芥暟鎹鐞嗚缁嗕俊鎭�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(apsProcessCapacityManagementService.selectApsProcessCapacityManagementById(id));
+    }
+
+    /**
+     * 鏂板宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:add")
+    @Log(title = "宸ュ簭绾т骇鑳芥暟鎹鐞�", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        return toAjax(apsProcessCapacityManagementService.insertApsProcessCapacityManagement(apsProcessCapacityManagement));
+    }
+
+    /**
+     * 淇敼宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:edit")
+    @Log(title = "宸ュ簭绾т骇鑳芥暟鎹鐞�", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        return toAjax(apsProcessCapacityManagementService.updateApsProcessCapacityManagement(apsProcessCapacityManagement));
+    }
+
+    /**
+     * 鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    @RequiresPermissions("processCapacityManagement:processCapacityManagement:remove")
+    @Log(title = "宸ュ簭绾т骇鑳芥暟鎹鐞�", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(apsProcessCapacityManagementService.deleteApsProcessCapacityManagementByIds(ids));
+    }
+}
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProcessCapacityManagement.java b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProcessCapacityManagement.java
new file mode 100644
index 0000000..ac5a40b
--- /dev/null
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProcessCapacityManagement.java
@@ -0,0 +1,182 @@
+package com.aps.core.domain;
+
+import java.math.BigDecimal;
+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.aps.common.core.annotation.Excel;
+import com.aps.common.core.web.domain.BaseEntity;
+
+/**
+ * 宸ュ簭绾т骇鑳芥暟鎹鐞嗗璞� aps_process_capacity_management
+ * 
+ * @author dingYang
+ * @date 2025-04-21
+ */
+public class ApsProcessCapacityManagement extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 鏂欏彿 */
+    @Excel(name = "鏂欏彿")
+    private String itemNumber;
+
+    /** 浜ц兘绫诲瀷 */
+    @Excel(name = "浜ц兘绫诲瀷")
+    private String capacityType;
+
+    /** 宸ュ簭搴忓彿 */
+    @Excel(name = "宸ュ簭搴忓彿")
+    private String processNumber;
+
+    /** 宸ュ簭鍚嶇О */
+    @Excel(name = "宸ュ簭鍚嶇О")
+    private String processName;
+
+    /** 宸ヨ壓璺嚎ID */
+    @Excel(name = "宸ヨ壓璺嚎ID")
+    private String processRouteId;
+
+    /** 宸ユ椂 */
+    @Excel(name = "宸ユ椂")
+    private BigDecimal workTime;
+
+    /** 鐢熸晥鏃ユ湡 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "鐢熸晥鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date effectiveDate;
+
+    /** 澶辨晥鏃ユ湡 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "澶辨晥鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date expiringDate;
+
+    /** 闆嗘垚鏃ユ湡 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "闆嗘垚鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+    private Date integrationDate;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+
+    public void setItemNumber(String itemNumber) 
+    {
+        this.itemNumber = itemNumber;
+    }
+
+    public String getItemNumber() 
+    {
+        return itemNumber;
+    }
+
+    public void setCapacityType(String capacityType) 
+    {
+        this.capacityType = capacityType;
+    }
+
+    public String getCapacityType() 
+    {
+        return capacityType;
+    }
+
+    public void setProcessNumber(String processNumber) 
+    {
+        this.processNumber = processNumber;
+    }
+
+    public String getProcessNumber() 
+    {
+        return processNumber;
+    }
+
+    public void setProcessName(String processName) 
+    {
+        this.processName = processName;
+    }
+
+    public String getProcessName() 
+    {
+        return processName;
+    }
+
+    public void setProcessRouteId(String processRouteId) 
+    {
+        this.processRouteId = processRouteId;
+    }
+
+    public String getProcessRouteId() 
+    {
+        return processRouteId;
+    }
+
+    public void setWorkTime(BigDecimal workTime)
+    {
+        this.workTime = workTime;
+    }
+
+    public BigDecimal getWorkTime()
+    {
+        return workTime;
+    }
+
+    public void setEffectiveDate(Date effectiveDate) 
+    {
+        this.effectiveDate = effectiveDate;
+    }
+
+    public Date getEffectiveDate() 
+    {
+        return effectiveDate;
+    }
+
+    public void setExpiringDate(Date expiringDate) 
+    {
+        this.expiringDate = expiringDate;
+    }
+
+    public Date getExpiringDate() 
+    {
+        return expiringDate;
+    }
+
+    public void setIntegrationDate(Date integrationDate) 
+    {
+        this.integrationDate = integrationDate;
+    }
+
+    public Date getIntegrationDate() 
+    {
+        return integrationDate;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("itemNumber", getItemNumber())
+            .append("capacityType", getCapacityType())
+            .append("processNumber", getProcessNumber())
+            .append("processName", getProcessName())
+            .append("processRouteId", getProcessRouteId())
+            .append("workTime", getWorkTime())
+            .append("effectiveDate", getEffectiveDate())
+            .append("expiringDate", getExpiringDate())
+            .append("integrationDate", getIntegrationDate())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProfessionalFixedCycleManagement.java b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProfessionalFixedCycleManagement.java
index ea7a880..1a7bff8 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProfessionalFixedCycleManagement.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/domain/ApsProfessionalFixedCycleManagement.java
@@ -1,5 +1,6 @@
 package com.aps.core.domain;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import com.aps.common.core.annotation.Excel;
@@ -37,7 +38,8 @@
     private String professionalFixedCycle;
 
     /** 闆嗘垚鏃ユ湡 */
-    @Excel(name = "闆嗘垚鏃ユ湡")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "闆嗘垚鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
     private Date integrationDate;
 
     /** 閫傜敤宸ュ巶 */
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsProcessCapacityManagementMapper.java b/aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsProcessCapacityManagementMapper.java
new file mode 100644
index 0000000..9081041
--- /dev/null
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsProcessCapacityManagementMapper.java
@@ -0,0 +1,63 @@
+package com.aps.core.mapper;
+
+import java.util.List;
+import com.aps.core.domain.ApsProcessCapacityManagement;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 宸ュ簭绾т骇鑳芥暟鎹鐞哅apper鎺ュ彛
+ * 
+ * @author dingYang
+ * @date 2025-04-21
+ */
+@Mapper
+public interface ApsProcessCapacityManagementMapper 
+{
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    public ApsProcessCapacityManagement selectApsProcessCapacityManagementById(String id);
+
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞嗗垪琛�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞嗛泦鍚�
+     */
+    public List<ApsProcessCapacityManagement> selectApsProcessCapacityManagementList(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 鏂板宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    public int insertApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 淇敼宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    public int updateApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 缁撴灉
+     */
+    public int deleteApsProcessCapacityManagementById(String id);
+
+    /**
+     * 鎵归噺鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
+     * @return 缁撴灉
+     */
+    public int deleteApsProcessCapacityManagementByIds(String[] ids);
+}
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/service/IApsProcessCapacityManagementService.java b/aps-modules/aps-core/src/main/java/com/aps/core/service/IApsProcessCapacityManagementService.java
new file mode 100644
index 0000000..c31ae4b
--- /dev/null
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/service/IApsProcessCapacityManagementService.java
@@ -0,0 +1,61 @@
+package com.aps.core.service;
+
+import java.util.List;
+import com.aps.core.domain.ApsProcessCapacityManagement;
+
+/**
+ * 宸ュ簭绾т骇鑳芥暟鎹鐞哠ervice鎺ュ彛
+ * 
+ * @author dingYang
+ * @date 2025-04-21
+ */
+public interface IApsProcessCapacityManagementService 
+{
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    public ApsProcessCapacityManagement selectApsProcessCapacityManagementById(String id);
+
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞嗗垪琛�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞嗛泦鍚�
+     */
+    public List<ApsProcessCapacityManagement> selectApsProcessCapacityManagementList(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 鏂板宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    public int insertApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 淇敼宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    public int updateApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement);
+
+    /**
+     * 鎵归噺鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param ids 闇�瑕佸垹闄ょ殑宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿泦鍚�
+     * @return 缁撴灉
+     */
+    public int deleteApsProcessCapacityManagementByIds(String[] ids);
+
+    /**
+     * 鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞嗕俊鎭�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 缁撴灉
+     */
+    public int deleteApsProcessCapacityManagementById(String id);
+}
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsProcessCapacityManagementServiceImpl.java b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsProcessCapacityManagementServiceImpl.java
new file mode 100644
index 0000000..83facd1
--- /dev/null
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/service/impl/ApsProcessCapacityManagementServiceImpl.java
@@ -0,0 +1,96 @@
+package com.aps.core.service.impl;
+
+import java.util.List;
+import com.aps.common.core.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.aps.core.mapper.ApsProcessCapacityManagementMapper;
+import com.aps.core.domain.ApsProcessCapacityManagement;
+import com.aps.core.service.IApsProcessCapacityManagementService;
+
+/**
+ * 宸ュ簭绾т骇鑳芥暟鎹鐞哠ervice涓氬姟灞傚鐞�
+ * 
+ * @author dingYang
+ * @date 2025-04-21
+ */
+@Service
+public class ApsProcessCapacityManagementServiceImpl implements IApsProcessCapacityManagementService 
+{
+    @Autowired
+    private ApsProcessCapacityManagementMapper apsProcessCapacityManagementMapper;
+
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    @Override
+    public ApsProcessCapacityManagement selectApsProcessCapacityManagementById(String id)
+    {
+        return apsProcessCapacityManagementMapper.selectApsProcessCapacityManagementById(id);
+    }
+
+    /**
+     * 鏌ヨ宸ュ簭绾т骇鑳芥暟鎹鐞嗗垪琛�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     */
+    @Override
+    public List<ApsProcessCapacityManagement> selectApsProcessCapacityManagementList(ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        return apsProcessCapacityManagementMapper.selectApsProcessCapacityManagementList(apsProcessCapacityManagement);
+    }
+
+    /**
+     * 鏂板宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    @Override
+    public int insertApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        apsProcessCapacityManagement.setCreateTime(DateUtils.getNowDate());
+        return apsProcessCapacityManagementMapper.insertApsProcessCapacityManagement(apsProcessCapacityManagement);
+    }
+
+    /**
+     * 淇敼宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param apsProcessCapacityManagement 宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * @return 缁撴灉
+     */
+    @Override
+    public int updateApsProcessCapacityManagement(ApsProcessCapacityManagement apsProcessCapacityManagement)
+    {
+        apsProcessCapacityManagement.setUpdateTime(DateUtils.getNowDate());
+        return apsProcessCapacityManagementMapper.updateApsProcessCapacityManagement(apsProcessCapacityManagement);
+    }
+
+    /**
+     * 鎵归噺鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞�
+     * 
+     * @param ids 闇�瑕佸垹闄ょ殑宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteApsProcessCapacityManagementByIds(String[] ids)
+    {
+        return apsProcessCapacityManagementMapper.deleteApsProcessCapacityManagementByIds(ids);
+    }
+
+    /**
+     * 鍒犻櫎宸ュ簭绾т骇鑳芥暟鎹鐞嗕俊鎭�
+     * 
+     * @param id 宸ュ簭绾т骇鑳芥暟鎹鐞嗕富閿�
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteApsProcessCapacityManagementById(String id)
+    {
+        return apsProcessCapacityManagementMapper.deleteApsProcessCapacityManagementById(id);
+    }
+}
diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessCapacityManagementMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessCapacityManagementMapper.xml
new file mode 100644
index 0000000..bb1d7ca
--- /dev/null
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessCapacityManagementMapper.xml
@@ -0,0 +1,106 @@
+<?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.aps.core.mapper.ApsProcessCapacityManagementMapper">
+    
+    <resultMap type="ApsProcessCapacityManagement" id="ApsProcessCapacityManagementResult">
+        <result property="id"    column="id"    />
+        <result property="itemNumber"    column="item_number"    />
+        <result property="capacityType"    column="capacity_type"    />
+        <result property="processNumber"    column="process_number"    />
+        <result property="processName"    column="process_name"    />
+        <result property="processRouteId"    column="process_route_id"    />
+        <result property="workTime"    column="work_time"    />
+        <result property="effectiveDate"    column="effective_date"    />
+        <result property="expiringDate"    column="expiring_date"    />
+        <result property="integrationDate"    column="integration_date"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectApsProcessCapacityManagementVo">
+        select id, item_number, capacity_type, process_number, process_name, process_route_id, work_time, effective_date, expiring_date, integration_date, create_by, create_time, update_by, update_time from aps_process_capacity_management
+    </sql>
+
+    <select id="selectApsProcessCapacityManagementList" parameterType="ApsProcessCapacityManagement" resultMap="ApsProcessCapacityManagementResult">
+        <include refid="selectApsProcessCapacityManagementVo"/>
+        <where>  
+            <if test="itemNumber != null  and itemNumber != ''"> and item_number = #{itemNumber}</if>
+        </where>
+    </select>
+    
+    <select id="selectApsProcessCapacityManagementById" parameterType="String" resultMap="ApsProcessCapacityManagementResult">
+        <include refid="selectApsProcessCapacityManagementVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertApsProcessCapacityManagement" parameterType="ApsProcessCapacityManagement">
+        insert into aps_process_capacity_management
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="itemNumber != null and itemNumber != ''">item_number,</if>
+            <if test="capacityType != null">capacity_type,</if>
+            <if test="processNumber != null">process_number,</if>
+            <if test="processName != null">process_name,</if>
+            <if test="processRouteId != null">process_route_id,</if>
+            <if test="workTime != null">work_time,</if>
+            <if test="effectiveDate != null">effective_date,</if>
+            <if test="expiringDate != null">expiring_date,</if>
+            <if test="integrationDate != null">integration_date,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="itemNumber != null and itemNumber != ''">#{itemNumber},</if>
+            <if test="capacityType != null">#{capacityType},</if>
+            <if test="processNumber != null">#{processNumber},</if>
+            <if test="processName != null">#{processName},</if>
+            <if test="processRouteId != null">#{processRouteId},</if>
+            <if test="workTime != null">#{workTime},</if>
+            <if test="effectiveDate != null">#{effectiveDate},</if>
+            <if test="expiringDate != null">#{expiringDate},</if>
+            <if test="integrationDate != null">#{integrationDate},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateApsProcessCapacityManagement" parameterType="ApsProcessCapacityManagement">
+        update aps_process_capacity_management
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="itemNumber != null and itemNumber != ''">item_number = #{itemNumber},</if>
+            <if test="capacityType != null">capacity_type = #{capacityType},</if>
+            <if test="processNumber != null">process_number = #{processNumber},</if>
+            <if test="processName != null">process_name = #{processName},</if>
+            <if test="processRouteId != null">process_route_id = #{processRouteId},</if>
+            <if test="workTime != null">work_time = #{workTime},</if>
+            <if test="effectiveDate != null">effective_date = #{effectiveDate},</if>
+            <if test="expiringDate != null">expiring_date = #{expiringDate},</if>
+            <if test="integrationDate != null">integration_date = #{integrationDate},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteApsProcessCapacityManagementById" parameterType="String">
+        delete from aps_process_capacity_management where id = #{id}
+    </delete>
+
+    <delete id="deleteApsProcessCapacityManagementByIds" parameterType="String">
+        delete from aps_process_capacity_management where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3