人员主数据接口增加启用状态分配规则专用更新功能

This commit is contained in:
yuxueliang0813 2025-03-27 17:27:49 +08:00
parent 0945792f90
commit 5b37560472
1 changed files with 12 additions and 0 deletions

View File

@ -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<String, Object> 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<String> exprtNumber) {