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