更新权限阅览表创建人数据
This commit is contained in:
parent
a648ba62c1
commit
e669ae473f
@ -0,0 +1,46 @@
|
||||
package com.awspaas.user.apps.app20250109170254.job;
|
||||
|
||||
import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.schedule.IJob;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class UpdateCreateUser implements IJob {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
|
||||
|
||||
List<BO> public_prem_scope=SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE").addQuery("CREATEUSER=","admin").list();
|
||||
|
||||
int counts=1;
|
||||
for(int i=0;i<public_prem_scope.size();i++){
|
||||
|
||||
BO bo=public_prem_scope.get(i);
|
||||
//文件id
|
||||
String uuid=public_prem_scope.get(i).getString("FILEUUID");
|
||||
String publishprocessid=public_prem_scope.get(i).getString("PUBLISHPROCESSID");
|
||||
|
||||
BO bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH").detailByBindId(publishprocessid);
|
||||
|
||||
if(bo_act_coe_publish_n!=null){
|
||||
String applyuserid=bo_act_coe_publish_n.getString("APPLYUSERID");
|
||||
int count = DBSql.update("UPDATE BO_ACT_PUBLISH_PERM_SCOPE SET CREATEUSER='" + applyuserid+ "' WHERE FILEUUID ='" + uuid+ "'");
|
||||
counts++;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
System.out.println("刷新数据结束,共有"+counts+"数据被更新");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user