#请假申请校验 只允许同一个人 同一个请假类型只允许一条在途流程

kangrui
wangjie 2 years ago
parent 7e7df74b13
commit b11dab66cf

@ -36,7 +36,7 @@ public class KrLeaveRepeatAction implements Action {
}
String billTableName = requestInfo.getRequestManager().getBillTableName();
RecordSet rs = new RecordSet();
rs.executeQuery("select count(1) as num from " + billTableName + " where resourceId = ? and jqlx =? and requestid != ? and spzt != 2", resourceId, leaveType, requestInfo.getRequestid());
rs.executeQuery("select count(1) as num from " + billTableName + " a LEFT JOIN workflow_requestbase w ON a.requestid = w.requestid where a.resourceId = ? and a.jqlx =? and a.requestid != ? and w.currentnodetype IN ( 1, 2 )", resourceId, leaveType, requestInfo.getRequestid());
if (rs.next()) {
int num = rs.getInt("num");
if (num > 0) {

Loading…
Cancel
Save