|
@@ -1687,6 +1687,45 @@ public class BpmInitiatedProvider extends GenericProvider implements IBpmInitiat
|
|
|
else if("jd-async-tool".equalsIgnoreCase(multiTaskType)) {
|
|
else if("jd-async-tool".equalsIgnoreCase(multiTaskType)) {
|
|
|
Async.beginWork(timeout, workerWrappers.toArray(new WorkerWrapper[0]));
|
|
Async.beginWork(timeout, workerWrappers.toArray(new WorkerWrapper[0]));
|
|
|
}
|
|
}
|
|
|
|
|
+ //========== 试剂更换待验证
|
|
|
|
|
+ if(BeanUtils.isNotEmpty(ContextUtil.getSetting())) {
|
|
|
|
|
+ JSONObject configMap = JSONObject.parseObject(ContextUtil.getSetting());
|
|
|
|
|
+ String showReagentCard = configMap.getString("showReagentCard");
|
|
|
|
|
+ if (BeanUtils.isNotEmpty(showReagentCard) && showReagentCard.equals("true")) {
|
|
|
|
|
+ StopWatchUtil.initAndStartLocal(localId, Level.DEBUG, step, "new reagent verify count");
|
|
|
|
|
+ try{
|
|
|
|
|
+ Infobox infobox6 = new Infobox();
|
|
|
|
|
+ infobox6.setIcon("ibps-icon-file-o");
|
|
|
|
|
+ infobox6.setColor(Infobox.COLOR_BLUE);
|
|
|
|
|
+ infobox6.setDataContent("试剂更换验证");
|
|
|
|
|
+ infobox6.setUrl("reagentVerifyPendingMatters");
|
|
|
|
|
+ infobox6.setAlias("reagentVerifyPendingMatters");
|
|
|
|
|
+ infobox6.setDataText("-1");
|
|
|
|
|
+ infobox6.setAccessToken(ContextUtil.getCurrentAccessToken());
|
|
|
|
|
+ //依据当前用户的主部门进行判断
|
|
|
|
|
+ List<Map<String, Object>> reagentList = (List<Map<String, Object>>) commonDao.query("select * from ibps_bpm_tasks where PROC_DEF_KEY_ in ('Process_0xb5ig0','Process_011hgfk')");
|
|
|
|
|
+ //String curPosID = getDiDian();
|
|
|
|
|
+ String curUSD = ContextUtil.getCurrentUserId();
|
|
|
|
|
+ String curPosID = "";
|
|
|
|
|
+ List<Map<String, Object>> posList = (List<Map<String, Object>>) commonDao.query("select MAIN_PID_ from ibps_party_rel where MAIN_TYPE_='position' and SUB_PID_='"+curUSD+"'");
|
|
|
|
|
+ for(Map<String, Object> pos : posList) {
|
|
|
|
|
+ curPosID = pos.get("MAIN_PID_").toString();
|
|
|
|
|
+ }
|
|
|
|
|
+ Integer num = 0;
|
|
|
|
|
+ for(Map<String, Object> reagentMap : reagentList) {
|
|
|
|
|
+ String potTmp = reagentMap.get("SUBJECT_").toString();
|
|
|
|
|
+ String deptValue = potTmp.replaceAll(".*\"dept\":\"([^\"]+)\".*", "$1");
|
|
|
|
|
+ if(deptValue.equals(curPosID)){
|
|
|
|
|
+ num = num+1;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ infobox6.setDataText(String.valueOf(num));
|
|
|
|
|
+ list.add(infobox6);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ logger.error(e.getMessage(), e);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
} catch(Exception e) {
|
|
} catch(Exception e) {
|
|
|
setExceptionResult(result, StateEnum.ERROR_BPMN.getCode(), StateEnum.ERROR_BPMN.getText(), e);
|
|
setExceptionResult(result, StateEnum.ERROR_BPMN.getCode(), StateEnum.ERROR_BPMN.getText(), e);
|
|
|
}
|
|
}
|