更改ec日志展示

This commit is contained in:
xiaodong.hu
2023-10-30 18:02:57 +08:00
parent 0d99364862
commit bb63eee4fa
3 changed files with 18 additions and 6 deletions

View File

@@ -109,7 +109,11 @@ public class HyPartnerEcTrackLogDO implements Serializable {
*/
public static String getDetailContentJoint(HyPartnerEcTrackLogDO ecLogVo){
if (StringUtils.isNotEmpty(ecLogVo.getContent())) {
return ecLogVo.getContent();
String str = ecLogVo.getContent();
if (str.contains("[mobile]")||str.contains("[/mobile]")) {
str = str.replaceAll("\\[mobile]", "").replaceAll("\\[/mobile]", "");
}
return str;
}
StringBuilder detailContent = new StringBuilder();
Integer trajectoryType = ecLogVo.getTrajectoryType();
@@ -120,7 +124,7 @@ public class HyPartnerEcTrackLogDO implements Serializable {
detailContent.append(TrajectoryTypeEnum.ALLOCATION_CUSTOMER.getJointText()).append(ecLogVo.getReceiveUser());
}
if (trajectoryType.equals(TrajectoryTypeEnum.GET_CUSTOMER.getValue())) {
detailContent.append(ecLogVo.getReceiveUser()).append(TrajectoryTypeEnum.GET_CUSTOMER.getJointText());
detailContent.append(ecLogVo.getUserName()).append(TrajectoryTypeEnum.GET_CUSTOMER.getJointText());
}
if (StringUtils.isEmpty(detailContent)) {
detailContent.append(TrajectoryTypeEnum.getShowText(trajectoryType));