You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
884 B
Java

1 year ago
package weaver.interfaces.workflow.action.javacode;
import weaver.conn.RecordSet;
import weaver.interfaces.workflow.action.Action;
import weaver.general.BaseBean;
import weaver.soa.workflow.request.RequestInfo;
/**
* Online custom action interface
*/
public class Action20240511020255 extends BaseBean implements Action{
/**
* After selecting aciton after the process path node, this method will be executed after the node is submitted.
*/
public String execute(RequestInfo request) {
RecordSet recordSet = new RecordSet();
recordSet.executeUpdate("DELETE FROM uf_pushArchivesLog " +
"WHERE id NOT IN ( " +
" SELECT MIN(id) " +
" FROM uf_pushArchivesLog where type = 0 or type = 1 " +
" GROUP BY REQUEST " +
");");
return Action.SUCCESS;
}
}