新增待办信息

This commit is contained in:
2026-01-02 19:54:50 +08:00
parent 1ff8edd24d
commit c86e90ba63
2 changed files with 111 additions and 105 deletions

View File

@@ -49,7 +49,7 @@ import java.io.Serial;
@Column(name = "f_flow_id", attrName = "fflowId", label = "流程id", isUpdate = false, isQuery = false),
@Column(name = "f_flow_task_id", attrName = "fflowTaskId", label = "流程任务主键", isUpdate = false, isQuery = false),
@Column(name = "f_flow_state", attrName = "fflowState", label = "流程任务状态", isUpdate = false, isQuery = false, isUpdateForce = true),
}, orderBy = "a.id DESC"
}, orderBy = "a.create_time DESC"
)
@Data
public class BizMeetingInfo extends DataEntity<BizMeetingInfo> implements Serializable {

View File

@@ -1,6 +1,9 @@
package com.jeesite.modules.biz.web;
import java.util.List;
import com.jeesite.modules.sys.entity.User;
import com.jeesite.modules.sys.utils.UserUtils;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -26,6 +29,7 @@ import com.jeesite.modules.biz.service.BizMeetingInfoService;
/**
* 会议主表Controller
*
* @author gaoxq
* @version 2026-01-02
*/
@@ -86,6 +90,8 @@ public class BizMeetingInfoController extends BaseController {
@PostMapping(value = "save")
@ResponseBody
public String save(@Validated BizMeetingInfo bizMeetingInfo) {
User user = UserUtils.getUser();
bizMeetingInfo.setCreateUser(user.getLoginCode());
bizMeetingInfoService.save(bizMeetingInfo);
return renderResult(Global.TRUE, text("保存会议信息成功!"));
}
@@ -98,7 +104,7 @@ public class BizMeetingInfoController extends BaseController {
public void exportData(BizMeetingInfo bizMeetingInfo, HttpServletResponse response) {
List<BizMeetingInfo> list = bizMeetingInfoService.findList(bizMeetingInfo);
String fileName = "会议信息" + DateUtils.getDate("yyyyMMddHHmmss") + ".xlsx";
try(ExcelExport ee = new ExcelExport("会议信息", BizMeetingInfo.class)){
try (ExcelExport ee = new ExcelExport("会议信息", BizMeetingInfo.class)) {
ee.setDataList(list).write(response, fileName);
}
}
@@ -112,7 +118,7 @@ public class BizMeetingInfoController extends BaseController {
BizMeetingInfo bizMeetingInfo = new BizMeetingInfo();
List<BizMeetingInfo> list = ListUtils.newArrayList(bizMeetingInfo);
String fileName = "会议信息模板.xlsx";
try(ExcelExport ee = new ExcelExport("会议信息", BizMeetingInfo.class, Type.IMPORT)){
try (ExcelExport ee = new ExcelExport("会议信息", BizMeetingInfo.class, Type.IMPORT)) {
ee.setDataList(list).write(response, fileName);
}
}
@@ -126,9 +132,9 @@ public class BizMeetingInfoController extends BaseController {
public String importData(MultipartFile file) {
try {
String message = bizMeetingInfoService.importData(file);
return renderResult(Global.TRUE, "posfull:"+message);
return renderResult(Global.TRUE, "posfull:" + message);
} catch (Exception ex) {
return renderResult(Global.FALSE, "posfull:"+ex.getMessage());
return renderResult(Global.FALSE, "posfull:" + ex.getMessage());
}
}