|
@@ -30,7 +30,7 @@ public class GroupbyProjectCodeNumPlugin implements PluginInterface {
|
|
int projectNum = 0;
|
|
int projectNum = 0;
|
|
int sumProjectNum = 0;
|
|
int sumProjectNum = 0;
|
|
Object srcProjectUseTime = localMap.get(SystemEventAttrConstant.PROJECT_USE_TIME);
|
|
Object srcProjectUseTime = localMap.get(SystemEventAttrConstant.PROJECT_USE_TIME);
|
|
- Object srcProjectUseDay = CommonUtil.getProjectUseDay(srcProjectUseTime);
|
|
|
|
|
|
+ String srcProjectUseDay = CommonUtil.getProjectUseDay(srcProjectUseTime);
|
|
Object srcProjectCode = localMap.getOrDefault(SystemEventAttrConstant.MEDICAL_PROJECT_CODE_KEY, "").toString();
|
|
Object srcProjectCode = localMap.getOrDefault(SystemEventAttrConstant.MEDICAL_PROJECT_CODE_KEY, "").toString();
|
|
log.info("项目编码:{} 项目使用时间:{}", srcProjectCode, srcProjectUseDay);
|
|
log.info("项目编码:{} 项目使用时间:{}", srcProjectCode, srcProjectUseDay);
|
|
if (null == srcProjectCode || null == srcProjectUseTime) {
|
|
if (null == srcProjectCode || null == srcProjectUseTime) {
|
|
@@ -41,7 +41,7 @@ public class GroupbyProjectCodeNumPlugin implements PluginInterface {
|
|
String projectCode = adviceMap.getOrDefault(SystemEventAttrConstant.MEDICAL_PROJECT_CODE_KEY, "").toString();
|
|
String projectCode = adviceMap.getOrDefault(SystemEventAttrConstant.MEDICAL_PROJECT_CODE_KEY, "").toString();
|
|
Object projectUseTime = adviceMap.get(SystemEventAttrConstant.PROJECT_USE_TIME);
|
|
Object projectUseTime = adviceMap.get(SystemEventAttrConstant.PROJECT_USE_TIME);
|
|
String projectUseDay = CommonUtil.getProjectUseDay(projectUseTime);
|
|
String projectUseDay = CommonUtil.getProjectUseDay(projectUseTime);
|
|
- log.info("同批其他项目编码:{} 项目使用时间:{}", projectCode, projectUseDay);
|
|
|
|
|
|
+ log.info("同批其他项目编码:{} 项目使用时间:{} 原始项目编码:{} 原始项目使用时间:{}", projectCode, projectUseDay, srcProjectCode, srcProjectUseDay);
|
|
Integer quaity = (Integer) adviceMap.getOrDefault(SystemEventAttrConstant.QUANTITY, 1);
|
|
Integer quaity = (Integer) adviceMap.getOrDefault(SystemEventAttrConstant.QUANTITY, 1);
|
|
if (StringUtils.isNotBlank(projectCode) && null != projectUseTime && projectCode.equals(srcProjectCode) && srcProjectUseDay.equals(projectUseDay)) {
|
|
if (StringUtils.isNotBlank(projectCode) && null != projectUseTime && projectCode.equals(srcProjectCode) && srcProjectUseDay.equals(projectUseDay)) {
|
|
projectNum = projectNum + quaity;
|
|
projectNum = projectNum + quaity;
|
|
@@ -58,6 +58,7 @@ public class GroupbyProjectCodeNumPlugin implements PluginInterface {
|
|
}
|
|
}
|
|
localMap.put(SystemEventAttrConstant.SAME_TIME_SAME_CODE_NUM, projectNum);
|
|
localMap.put(SystemEventAttrConstant.SAME_TIME_SAME_CODE_NUM, projectNum);
|
|
localMap.put(SystemEventAttrConstant.SAME_TIME_SAME_CODE_List, projectCodeList);
|
|
localMap.put(SystemEventAttrConstant.SAME_TIME_SAME_CODE_List, projectCodeList);
|
|
|
|
+ log.info("原始项目编码:{} 原始项目使用时间:{} 同一批项目:{}", srcProjectCode, srcProjectUseDay, projectCodeList);
|
|
localMap.put(SystemEventAttrConstant.SAME_CODE_NUM, sumProjectNum);
|
|
localMap.put(SystemEventAttrConstant.SAME_CODE_NUM, sumProjectNum);
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|