xiSpeak反馈表后端代码
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package org.jeecg;
|
||||
|
||||
//TIP 要<b>运行</b>代码,请按 <shortcut actionId="Run"/> 或
|
||||
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
//TIP 当文本光标位于高亮显示的文本处时按 <shortcut actionId="ShowIntentionActions"/>
|
||||
// 查看 IntelliJ IDEA 建议如何修正。
|
||||
System.out.printf("Hello and welcome!");
|
||||
|
||||
for (int i = 1; i <= 5; i++) {
|
||||
//TIP 按 <shortcut actionId="Debug"/> 开始调试代码。我们已经设置了一个 <icon src="AllIcons.Debugger.Db_set_breakpoint"/> 断点
|
||||
// 但您始终可以通过按 <shortcut actionId="ToggleLineBreakpoint"/> 添加更多断点。
|
||||
System.out.println("i = " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
package org.jeecg.modules.bg.xispeak.controller.feedback;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.bg.xispeak.entity.BgXiSpeakFeedback;
|
||||
import org.jeecg.modules.bg.xispeak.service.IBgXiSpeakFeedbackService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 习总书记重要讲话反馈表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2026-04-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Tag(name="习总书记重要讲话反馈表")
|
||||
@RestController
|
||||
@RequestMapping("/bg/xispeak/bgXiSpeak")
|
||||
@Slf4j
|
||||
public class BgXiSpeakFeedbackController extends JeecgController<BgXiSpeakFeedback, IBgXiSpeakFeedbackService> {
|
||||
@Autowired
|
||||
private IBgXiSpeakFeedbackService bgXiSpeakFeedbackService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param bgXiSpeakFeedback
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary="习总书记重要讲话反馈表-分页列表查询")
|
||||
@GetMapping(value = "/listBgXiSpeakFeedbackByMainId")
|
||||
public Result<IPage<BgXiSpeakFeedback>> queryPageList(BgXiSpeakFeedback bgXiSpeakFeedback,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BgXiSpeakFeedback> queryWrapper = QueryGenerator.initQueryWrapper(bgXiSpeakFeedback, req.getParameterMap());
|
||||
Page<BgXiSpeakFeedback> page = new Page<BgXiSpeakFeedback>(pageNo, pageSize);
|
||||
IPage<BgXiSpeakFeedback> pageList = bgXiSpeakFeedbackService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param bgXiSpeakFeedback
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "习总书记重要讲话反馈表-添加")
|
||||
@Operation(summary="习总书记重要讲话反馈表-添加")
|
||||
@PostMapping(value = "/addBgXiSpeakFeedback")
|
||||
public Result<String> add(@RequestBody BgXiSpeakFeedback bgXiSpeakFeedback) {
|
||||
bgXiSpeakFeedbackService.save(bgXiSpeakFeedback);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param bgXiSpeakFeedback
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "习总书记重要讲话反馈表-编辑")
|
||||
@Operation(summary="习总书记重要讲话反馈表-编辑")
|
||||
@PostMapping(value = "/editBgXiSpeakFeedback")
|
||||
public Result<String> edit(@RequestBody BgXiSpeakFeedback bgXiSpeakFeedback) {
|
||||
bgXiSpeakFeedbackService.updateById(bgXiSpeakFeedback);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "习总书记重要讲话反馈表-通过id删除")
|
||||
@Operation(summary="习总书记重要讲话反馈表-通过id删除")
|
||||
@DeleteMapping(value = "/deleteBgXiSpeakFeedback")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bgXiSpeakFeedbackService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "习总书记重要讲话反馈表-批量删除")
|
||||
@Operation(summary="习总书记重要讲话反馈表-批量删除")
|
||||
@DeleteMapping(value = "/deleteBatchBgXiSpeakFeedback")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.bgXiSpeakFeedbackService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary="习总书记重要讲话反馈表-通过id查询")
|
||||
@GetMapping(value = "/queryBgXiSpeakFeedbackById")
|
||||
public Result<BgXiSpeakFeedback> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BgXiSpeakFeedback bgXiSpeakFeedback = bgXiSpeakFeedbackService.getById(id);
|
||||
if(bgXiSpeakFeedback==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bgXiSpeakFeedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param bgXiSpeakFeedback
|
||||
*/
|
||||
@RequestMapping(value = "/exportBgXiSpeakFeedback")
|
||||
public ModelAndView exportXls(HttpServletRequest request, BgXiSpeakFeedback bgXiSpeakFeedback) {
|
||||
return super.exportXls(request, bgXiSpeakFeedback, BgXiSpeakFeedback.class, "习总书记重要讲话反馈表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/importBgXiSpeakFeedback", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response, @PathVariable("mainId") String mainId) {
|
||||
return super.importExcel(request, response, BgXiSpeakFeedback.class);
|
||||
}
|
||||
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package org.jeecg.modules.bg.xispeak.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* @Description: 习总书记重要讲话反馈表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2026-04-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("bg_xi_speak_feedback")
|
||||
@Schema(description="习总书记重要讲话反馈表")
|
||||
public class BgXiSpeakFeedback implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description = "主键")
|
||||
private java.lang.String id;
|
||||
/**创建人*/
|
||||
@Schema(description = "创建人")
|
||||
private java.lang.String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "创建日期")
|
||||
private java.util.Date createTime;
|
||||
/**更新人*/
|
||||
@Schema(description = "更新人")
|
||||
private java.lang.String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "更新日期")
|
||||
private java.util.Date updateTime;
|
||||
/**所属部门*/
|
||||
@Schema(description = "所属部门")
|
||||
private java.lang.String sysOrgCode;
|
||||
/**反馈部门id*/
|
||||
@Excel(name = "反馈部门id", width = 15)
|
||||
@Schema(description = "反馈部门id")
|
||||
private java.lang.String responDeptid;
|
||||
/**反馈部门名称*/
|
||||
@Excel(name = "反馈部门名称", width = 15)
|
||||
@Schema(description = "反馈部门名称")
|
||||
private java.lang.String responDeptname;
|
||||
/**反馈人id*/
|
||||
@Excel(name = "反馈人id", width = 15)
|
||||
@Schema(description = "反馈人id")
|
||||
private java.lang.String responPersonid;
|
||||
/**反馈人姓名*/
|
||||
@Excel(name = "反馈人姓名", width = 15)
|
||||
@Schema(description = "反馈人姓名")
|
||||
private java.lang.String responPersonname;
|
||||
/**反馈时间*/
|
||||
@Excel(name = "反馈时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(description = "反馈时间")
|
||||
private java.util.Date responTime;
|
||||
/**落实情况*/
|
||||
@Excel(name = "落实情况", width = 15)
|
||||
@Schema(description = "落实情况")
|
||||
private java.lang.String implStatus;
|
||||
/**完成状态*/
|
||||
@Excel(name = "完成状态", width = 15)
|
||||
@Schema(description = "完成状态")
|
||||
private java.lang.String completionStatus;
|
||||
/**外键*/
|
||||
@Excel(name = "外键", width = 15)
|
||||
@Schema(description = "外键")
|
||||
private java.lang.String mainId;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package org.jeecg.modules.bg.xispeak.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.jeecg.modules.bg.xispeak.entity.BgXiSpeakFeedback;
|
||||
|
||||
/**
|
||||
* @Description: 习总书记重要讲话反馈表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2026-04-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface BgXiSpeakFeedbackMapper extends BaseMapper<BgXiSpeakFeedback> {
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package org.jeecg.modules.bg.xispeak.service;
|
||||
|
||||
import org.jeecg.modules.bg.xispeak.entity.BgXiSpeakFeedback;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 习总书记重要讲话反馈表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2026-04-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBgXiSpeakFeedbackService extends IService<BgXiSpeakFeedback> {
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package org.jeecg.modules.bg.xispeak.service.impl;
|
||||
|
||||
import org.jeecg.modules.bg.xispeak.entity.BgXiSpeakFeedback;
|
||||
import org.jeecg.modules.bg.xispeak.mapper.BgXiSpeakFeedbackMapper;
|
||||
import org.jeecg.modules.bg.xispeak.service.IBgXiSpeakFeedbackService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 习总书记重要讲话反馈表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2026-04-28
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class BgXiSpeakFeedbackServiceImpl extends ServiceImpl<BgXiSpeakFeedbackMapper, BgXiSpeakFeedback> implements IBgXiSpeakFeedbackService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user