From 5b375604727cbe68b08e7d9f0805be9ce913f1e1 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Thu, 27 Mar 2025 17:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=BB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E5=90=AF=E7=94=A8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=88=86=E9=85=8D=E8=A7=84=E5=88=99=E4=B8=93=E7=94=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/java/shkd/bamp/base/task/DobeDWpersonTask.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main/java/shkd/bamp/base/task/DobeDWpersonTask.java b/main/java/shkd/bamp/base/task/DobeDWpersonTask.java index 2e8f161..83d4444 100644 --- a/main/java/shkd/bamp/base/task/DobeDWpersonTask.java +++ b/main/java/shkd/bamp/base/task/DobeDWpersonTask.java @@ -6,6 +6,8 @@ import com.alibaba.fastjson.JSONObject; import kd.bos.context.RequestContext; import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObjectCollection; +import kd.bos.db.DB; +import kd.bos.db.DBRoute; import kd.bos.exception.KDException; import kd.bos.logging.Log; import kd.bos.logging.LogFactory; @@ -41,6 +43,10 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin { private static final String proficientTypeName = "rebm_proficienttype";//供应链库 专家专业分类 表名 t_bid_majortype private static Log log = LogFactory.getLog(DobeDWpersonTask.class); private static final String dw_menthod = "mdm_user"; + //更新启用状态分配规则专用为启用 + private static final String updateEnable = "update t_sec_user set fk_qeug_disable=2179899756556343296 where fenable='1' and fk_qeug_disable=0;"; + //更新启用状态分配规则专用为禁用 + private static final String updateDisable = "update t_sec_user set fk_qeug_disable=2179899908641806336 where fenable='0' and fk_qeug_disable=0;"; @Override public void execute(RequestContext requestContext, Map map) throws KDException { @@ -101,7 +107,13 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin { } //保存数据:直接保存入库,不走操作校验 SaveServiceHelper.save(dos); + + //更新启用状态分配规则专用为禁用 + DB.update(DBRoute.of("sys"), updateDisable, null); } + + //更新启用状态分配规则专用为启用 + DB.update(DBRoute.of("sys"), updateEnable, null); } private void handleUser(JSONObject json_body,List exprtNumber) {