From 0b0fd7293129dfe31a8b1c1becd34e2665cfa61e Mon Sep 17 00:00:00 2001 From: dxfeng Date: Wed, 10 Jul 2024 11:18:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=B1=E5=90=8D=E5=86=8C=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AE=9A=E5=88=B6=E6=A8=A1=E6=9D=BF=E4=BF=9D=E5=AD=98BUB?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/resource/JclOrgCustomTemplateMapper.java | 2 ++ .../mapper/resource/JclOrgCustomTemplateMapper.xml | 6 ++++++ .../organization/service/impl/HrmResourceServiceImpl.java | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.java b/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.java index 37901863..2f71bb38 100644 --- a/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.java +++ b/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.java @@ -30,6 +30,8 @@ public interface JclOrgCustomTemplateMapper { List listAllId(); + List listAllIdByCreator(@Param("creator") Integer creator); + int deleteByIds(@Param("ids") Collection ids); int updateUsed(@Param("isused")String isused,@Param("id") String id,@Param("creator") String creator); diff --git a/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.xml b/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.xml index fc060340..3043f7a8 100644 --- a/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.xml +++ b/src/com/engine/organization/mapper/resource/JclOrgCustomTemplateMapper.xml @@ -147,4 +147,10 @@ from JCL_ORG_CUSTOM_TEMPLATE t where t.isused = #{isused} and t.creator = #{creator} + + diff --git a/src/com/engine/organization/service/impl/HrmResourceServiceImpl.java b/src/com/engine/organization/service/impl/HrmResourceServiceImpl.java index 0d0f18a7..1b4b8cdc 100644 --- a/src/com/engine/organization/service/impl/HrmResourceServiceImpl.java +++ b/src/com/engine/organization/service/impl/HrmResourceServiceImpl.java @@ -348,7 +348,8 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic public Integer updateCustomTemplate(Map params) { int rowNum = getIntValue((String) params.get("rownum")); int count = 0; - List allIds = getJclOrgCustomTemplateMapper().listAllId(); + // 只查询当前人员的模板数据 + List allIds = getJclOrgCustomTemplateMapper().listAllIdByCreator(user.getUID()); String currentDate = OrganizationDateUtil.getFormatLocalDate(new java.util.Date()); List nameList = new ArrayList<>(); for (int i = 0; i < rowNum; i++) {