|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.web.controller.invest;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig;
|
|
@@ -15,6 +16,7 @@ import com.ruoyi.invest.domain.TProjectCirculation;
|
|
|
import com.ruoyi.invest.domain.TProjectMeeting;
|
|
|
import com.ruoyi.invest.service.ITProjectCirculationService;
|
|
|
import com.ruoyi.invest.service.ITProjectMeetingService;
|
|
|
+import com.ruoyi.system.service.ISysDictDataService;
|
|
|
import com.ruoyi.tool.domain.TUnifyFile;
|
|
|
import com.ruoyi.tool.service.ITUnifyFileService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -57,6 +59,9 @@ public class TProjectMeetingController extends BaseController
|
|
|
@Autowired
|
|
|
private ITUnifyFileService tUnifyFileService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysDictDataService dictDataService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询会议记录列表
|
|
|
*/
|
|
@@ -80,7 +85,13 @@ public class TProjectMeetingController extends BaseController
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, TProjectMeeting tProjectMeeting)
|
|
|
{
|
|
|
- List<TProjectMeeting> list = tProjectMeetingService.selectTProjectMeetingList(tProjectMeeting);
|
|
|
+ List<TProjectMeeting> list = tProjectMeetingService.selectTProjectMeetingList(tProjectMeeting)
|
|
|
+ .stream().map(n -> {
|
|
|
+ n.setProjectPoolId(n.gettProjectPool().getProjectName());
|
|
|
+ n.setMeetingType(dictDataService.selectDictLabel("MEETING_TYPE",n.getMeetingType()));
|
|
|
+ return n;
|
|
|
+ })
|
|
|
+ .collect(Collectors.toList());
|
|
|
ExcelUtil<TProjectMeeting> util = new ExcelUtil<TProjectMeeting>(TProjectMeeting.class);
|
|
|
util.exportExcel(response, list, "会议记录数据");
|
|
|
}
|
|
@@ -108,10 +119,11 @@ public class TProjectMeetingController extends BaseController
|
|
|
tProjectMeeting.setId(IdUtils.fastSimpleUUID());
|
|
|
tProjectMeeting.setCreateBy(getNickName());
|
|
|
|
|
|
- int number = tProjectMeetingService.selectTProjectMeetingCode(DateUtils.dateTimeNow("YYYY"));
|
|
|
if(tProjectMeeting.getMeetingType().equals("LX")||tProjectMeeting.getMeetingType().equals("TJ")){
|
|
|
+ int number = tProjectMeetingService.selectTProjectMeetingCode(DateUtils.lastTwoDigits()+"-");
|
|
|
tProjectMeeting.setMeetingCode(tProjectMeeting.getProjectGroup()+"-"+ DateUtils.lastTwoDigits() +"-"+tProjectMeeting.getMeetingType()+"-"+ String.format("%03d",number+1));
|
|
|
}else{
|
|
|
+ int number = tProjectMeetingService.selectTProjectMeetingCode(DateUtils.dateTimeNow("YYYY"));
|
|
|
tProjectMeeting.setMeetingCode(DateUtils.dateNow()+ String.format("%03d",number+1));
|
|
|
}
|
|
|
// todo 保存附件信息
|