Commit 13992312 by fudahua

待办以及消息

parent b80e5084
......@@ -62,7 +62,7 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
*/
private void buildPending(List<PendingTaskDetailDTO> list) {
String pattern = ".*([0-1]{6}).*";
String pattern = ".*([0-9]{6}).*";
list.forEach(dto -> {
String title = dto.getTitle();
PendingTaskTypeEnum taskTypeEnum = PendingTaskTypeEnum.getByType(dto.getTaskType());
......@@ -77,7 +77,8 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
Pattern r = Pattern.compile(pattern);
Matcher matcher = r.matcher(title);
String s = matcher.find() ? matcher.group(1) : "";
dto.setExtendContent(s);
String content = s.substring(0, 4) + "-" + s.substring(4);
dto.setExtendContent(content);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment