@Override public void addWorkDate(String id, String areaId, String name, String desc, String startDate, String endDate) throws Exception { executor.insert("addWorkDate", id, areaId, name, desc, startDate, endDate); } @Override
user.setUser_regdate(new Date()); executor.insertBean("createcommonuser", user); executor.insert("inituserjoborg", user.getUser_id(),orgid,new Date()); executor.insert("inituserorg", orgid,user.getUser_id()); user.setUser_password(p); this.userOrgParamManager.fixuserorg(user.getUser_id()+"", orgid);
user.setUser_regdate(new Date()); executor.insertBean("createcommonuser", user); executor.insert("inituserjoborg", user.getUser_id(),orgid,new Date()); executor.insert("inituserorg", orgid,user.getUser_id()); this.userOrgParamManager.fixuserorg(user.getUser_id()+"", orgid); user.setUser_password(p);
@Override public void insertSingleSub(String appId, String userId, String pendingType) throws Exception { executor.insert("insertSingleSub", appId, userId, pendingType); } @Override
@Override public void addOrg(String orgId, String orgName, String areaId) throws Exception { executor.insert("addOrg", orgId, orgName, areaId); }
@Override public void insertSingleArrange(String year, String areaId, String week, String type, String dateOfYear) throws Exception { executor.insert("insertSingleArrange", type, year, areaId, week,dateOfYear); } @Override
@Override public void addArea(String areaId,String areaName ,String areaDesc,String creator ,String createTime,String areaDefault) throws Exception { executor.insert("addArea", areaId, areaName , areaDesc, creator , createTime, areaDefault); } @Override
@Override public void saveWorkTime(String pid,String id, String name, String startTime, String endTime) throws Exception { executor.insert("saveWorkTime",pid,id, name, startTime,endTime); } @Override
@Override public void updateNodeChangeInfo(String taskId, String processIntsId, String processKey, String fromuserID, String userId, String reamrk, String reason, int delegateType) { try { executor.insert("addNodeChangeInfo_wf", fromuserID, userId, taskId, processIntsId, processKey, new Timestamp(new Date().getTime()), reamrk, reason, delegateType); } catch (Exception e) { throw new ProcessException(e); } }
@Override public void tempSaveFormDatas(ProIns proIns, String businessKey, String processKey) throws Exception { delFormDatasByBusinessKey(businessKey); // 对象序列化 String xml = ObjectSerializable.toXML(proIns); executor.insert("saveFormData_wf", businessKey, processKey, xml); }
@Override public void saveMessageType(String processKey, String messagetempleid, String emailtempleid, String noticeId, int iscontainholiday, int noticerate) { try { // 新增 if (StringUtil.isEmpty(noticeId)) { noticeId = java.util.UUID.randomUUID().toString(); executor.insert("insertProTemplate_wf", noticeId, processKey, messagetempleid, emailtempleid, iscontainholiday, noticerate); } else {// 修改 executor.update("updateProTemplate_wf", messagetempleid, emailtempleid, iscontainholiday, noticerate, noticeId); } } catch (SQLException e) { throw new ProcessException(e); } }
@Override public void addEntrustTaskInfo(TaskCondition task) { try { executor.insert("addEntrustTaskInfo_wf", task.getTaskId(), task.getCreateUser(), task.getEntrustUser(), task.getProcessIntsId(), task.getProcessKey(), new Timestamp(new Date().getTime())); } catch (Exception e) { throw new ProcessException(e); } }
@Override public void afterPropertiesSet() throws Exception { TransactionManager tm = new TransactionManager(); try { tm.begin(); int exist = this.executor.queryObject(int.class, "existcommonorg"); if(exist <= 0) { executor.insert("createcommonorg", new Date()); exist = this.executor.queryObject(int.class, "existcommonorgjob"); if(exist <= 0) executor.insert("initcommonorgjob"); } tm.commit(); } catch(Exception e) { throw e; } finally { tm.release(); } } @Override
public void backuplog() throws LogException{ TransactionManager tm = new TransactionManager(); try { tm.begin(); this.executor.insert("backuplog",new Date()); this.executor.delete("deletealllog"); tm.commit(); } catch (Exception e) { throw new LogException("backuplog failed:",e); } finally { tm.release(); } } /**
@Override public void addIsContainHoliday(String processKey, int IsContainHoliday) throws Exception { if (StringUtil.isEmpty(processKey)) { throw new Exception("设置流程工时处理是否包含节假日出错,processKey是空"); } TransactionManager tm = new TransactionManager(); try { tm.begin(); String noticeId = executor.queryField("queryNoticeIdByProKey", processKey); if (StringUtil.isNotEmpty(noticeId)) { executor.update("updateProIsContainHoliday_wf", IsContainHoliday, noticeId); } else { executor.insert("insertProIsContainHoliday_wf", java.util.UUID .randomUUID().toString(), processKey, IsContainHoliday); } tm.commit(); } finally { tm.release(); } }
executor.insert("recoredrejectedlog", taskContext.getRejectednode(),taskContext.getRejectedtaskid(),newtask.getId(),TaskService.op_returntorejected,execution.getProcessInstanceId());//rejectnode,rejecttaskid,newtaskid executor.insert("recoredrejectedlog", taskContext.getRejectednode(),taskContext.getRejectedtaskid(),newtask.getId(),taskContext.getOp(),execution.getProcessInstanceId());//rejectnode,rejecttaskid,newtaskid executor.insert("recoredrejectedlog", taskContext.getRejectednode(), taskContext.getRejectedtaskid(), executor.insert("recoredrejectedlog", taskContext.getRejectednode(), taskContext.getRejectedtaskid(), executor.insert("recoredrejectedlog", taskRejectLog.getREJECTNODE(),taskRejectLog.getREJECTTASKID(),newtask.getId(),taskRejectLog.getOPTYPE(),execution.getProcessInstanceId());//rejectnode,rejecttaskid,newtaskid