公开征求意见模块导出上报意见功能 修复
This commit is contained in:
+11
@@ -84,6 +84,15 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "增加意见")
|
||||
@PostMapping("/saveBatchByWk")
|
||||
public ResponseMessage saveBatchByWk(@RequestBody List<SarPublicIdeaAll> sar){
|
||||
boolean flag=sarPublicIdeaAllImpl.saveOrUpdateBatch(sar);
|
||||
return Result.success("200",flag);
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除意见")
|
||||
@GetMapping("/deleteStand")
|
||||
public ResponseMessage deleteStand(DelStandDto delStandDto){
|
||||
@@ -136,6 +145,7 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
|
||||
.userName(sarPublicIdeaAll.getUserName())
|
||||
.deptName(sarPublicIdeaAll.getDeptName())
|
||||
.state(map.get(sarPublicIdeaAll.getState()))
|
||||
.cause(sarPublicIdeaAll.getCause())
|
||||
.build();
|
||||
standExcel2.add(getExcelDto);
|
||||
}else {
|
||||
@@ -160,6 +170,7 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
|
||||
headList.add(Lists.newArrayList("提出人"));
|
||||
if ("1".equals(type)){
|
||||
headList.add(Lists.newArrayList("处理意见"));
|
||||
headList.add(Lists.newArrayList("原因"));
|
||||
}
|
||||
if ("1".equals(type)) {
|
||||
EasyExcel.write(response.getOutputStream(), GetExcelDto2.class).head(headList).autoCloseStream(Boolean.FALSE).sheet("sheet1")
|
||||
|
||||
@@ -37,6 +37,8 @@ public class GetExcelDto2 {
|
||||
|
||||
private String state;
|
||||
|
||||
private String cause;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -75,4 +75,7 @@ public class SarPublicIdeaAll extends BaseEntity {
|
||||
@TableField("state")
|
||||
private String state;
|
||||
|
||||
@TableField("cause")
|
||||
private String cause;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user