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) {