|
@@ -1,37 +1,22 @@
|
|
|
-package org.jeecg.modules.itdmGongdanMaster.controller;
|
|
|
+package org.jeecg.modules.itdmGongDan.controller;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-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.itdmGongdanMaster.entity.ItdmGongdanMaster;
|
|
|
-import org.jeecg.modules.itdmGongdanMaster.service.IItdmGongdanMasterService;
|
|
|
+import org.jeecg.modules.itdmGongDan.entity.ItdmGongdanMaster;
|
|
|
+import org.jeecg.modules.itdmGongDan.service.IItdmGongdanMasterService;
|
|
|
|
|
|
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.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
@@ -39,7 +24,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
/**
|
|
|
* @Description: 工单master
|
|
|
* @Author: jeecg-boot
|
|
|
- * @Date: 2023-05-21
|
|
|
+ * @Date: 2023-05-28
|
|
|
* @Version: V1.0
|
|
|
*/
|
|
|
@Api(tags="工单master")
|
|
@@ -49,7 +34,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMaster, IItdmGongdanMasterService> {
|
|
|
@Autowired
|
|
|
private IItdmGongdanMasterService itdmGongdanMasterService;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +56,7 @@ public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMast
|
|
|
IPage<ItdmGongdanMaster> pageList = itdmGongdanMasterService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +71,7 @@ public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMast
|
|
|
itdmGongdanMasterService.save(itdmGongdanMaster);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +86,7 @@ public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMast
|
|
|
itdmGongdanMasterService.updateById(itdmGongdanMaster);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +101,7 @@ public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMast
|
|
|
itdmGongdanMasterService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +116,7 @@ public class ItdmGongdanMasterController extends JeecgController<ItdmGongdanMast
|
|
|
this.itdmGongdanMasterService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|