Browse Source

由测试转达产品话,把true、false改为启用、关闭

dev_shibei_match
zxc 4 years ago
parent
commit
82f69e7d09
  1. 13
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointRuleServiceImpl.java

13
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointRuleServiceImpl.java

@ -192,6 +192,7 @@ public class PointRuleServiceImpl extends BaseServiceImpl<PointRuleDao, PointRul
insertOperateRecord(tokenDTO, entityNew, entityDB, CommonOperateTypeEnum.EDIT.getCode());
// 系统日志记录
String messages = disposeLog(formDTO, entityDB);
log.info("要保存的日志========="+messages);
if (StringUtils.isNotBlank(messages)){
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
PointRuleChangedMQMsg msg = new PointRuleChangedMQMsg();
@ -236,14 +237,10 @@ public class PointRuleServiceImpl extends BaseServiceImpl<PointRuleDao, PointRul
appendStatus = true;
}
// 规则启用 是否启用 0-否,1-是
String status;
if (e.getEnabledFlag().equals(NumConstant.ZERO_STR)){
status = "false";
}else {
status = "true";
}
if(!status.equals(f.getEnabledFlag())){
String s = String.format(StrConstant.POINT_CHANGE, "规则启用", f.getEnabledFlag());
String webStatus = f.getEnabledFlag().equals("true") ? "启用" : "关闭";
String javaStatus = e.getEnabledFlag().equals(NumConstant.ONE_STR) ? "启用" : "关闭";
if(!webStatus.equals(javaStatus)){
String s = String.format(StrConstant.POINT_CHANGE, "规则启用", webStatus);
sb.append(s).append(",");
appendStatus = true;
}

Loading…
Cancel
Save