|
@@ -1,42 +1,28 @@
|
|
|
package org.jeecg.modules.itdmPersonManage.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.itdmPersonManage.entity.ItdmPersonManage;
|
|
|
-import org.jeecg.modules.itdmPersonManage.service.IItdmPersonManageService;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
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.apache.ibatis.annotations.Param;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.modules.itdmPersonManage.entity.ItdmPersonManage;
|
|
|
+import org.jeecg.modules.itdmPersonManage.service.IItdmPersonManageService;
|
|
|
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;
|
|
|
|
|
|
- /**
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
* @Description: 人员管理
|
|
|
* @Author: jeecg-boot
|
|
|
* @Date: 2023-05-17
|
|
@@ -49,7 +35,19 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class ItdmPersonManageController extends JeecgController<ItdmPersonManage, IItdmPersonManageService> {
|
|
|
@Autowired
|
|
|
private IItdmPersonManageService itdmPersonManageService;
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 项目经理下拉列表
|
|
|
+ */
|
|
|
+ @ApiOperation(value="项目经理下拉列表", notes="项目经理下拉列表")
|
|
|
+ @GetMapping("/xialalist")
|
|
|
+ public List<ItdmPersonManage> list1(@RequestParam("position") String position)
|
|
|
+ {
|
|
|
+ List<ItdmPersonManage> list = itdmPersonManageService.queryList(position);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +69,7 @@ public class ItdmPersonManageController extends JeecgController<ItdmPersonManage
|
|
|
IPage<ItdmPersonManage> pageList = itdmPersonManageService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +84,7 @@ public class ItdmPersonManageController extends JeecgController<ItdmPersonManage
|
|
|
itdmPersonManageService.save(itdmPersonManage);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +99,7 @@ public class ItdmPersonManageController extends JeecgController<ItdmPersonManage
|
|
|
itdmPersonManageService.updateById(itdmPersonManage);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +114,7 @@ public class ItdmPersonManageController extends JeecgController<ItdmPersonManage
|
|
|
itdmPersonManageService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +129,7 @@ public class ItdmPersonManageController extends JeecgController<ItdmPersonManage
|
|
|
this.itdmPersonManageService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|