提交 81cd3a7e authored 作者: zjm's avatar zjm

合并分支 'bug' 到 'master'

fix(工具模块): 修改了生成阅知生成的工具 --》 改成 至 查看合并请求 !76
package com.tykj.dev.misc.utils; package com.tykj.dev.misc.utils;
import java.util.List; import java.util.List;
import java.util.Set;
/** /**
* @author zjm * @author zjm
...@@ -25,7 +26,7 @@ public class MessageFormatUtil { ...@@ -25,7 +26,7 @@ public class MessageFormatUtil {
return "【" + return "【" +
one + one +
"】" + "】" +
"-->" + "" +
"【" + "【" +
two + two +
"】"; "】";
...@@ -48,4 +49,15 @@ public class MessageFormatUtil { ...@@ -48,4 +49,15 @@ public class MessageFormatUtil {
return ""; return "";
}; };
/**
* 阅知中拼接型号和数量
*/
public static String spellUnitAndModelAndCount(String unitName, Set<String> models, Integer count) {
return "【"+unitName+"】【型号:" +
String.join(",",models) +
"共"+count+"件装备】";
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论