feat: 提交项目代码
This commit is contained in:
@@ -0,0 +1,578 @@
|
||||
package com.adc.da.att.controller;
|
||||
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.att.vo.AttFileVo;
|
||||
import com.adc.da.file.store.IFileStore;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.util.MD5Util;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import sun.misc.BASE64Encoder;
|
||||
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.*;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.file.Files;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/att/attFile")
|
||||
@Api(description = "|AttFileEO|文件上传")
|
||||
public class AttFileEOController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(AttFileEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
|
||||
@Autowired
|
||||
private IFileStore iFileStore;
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
|
||||
// @Autowired
|
||||
// private RoleEOService roleEOService;
|
||||
//
|
||||
// @Autowired
|
||||
// private UserEOService userEOService;
|
||||
|
||||
@Value("${upload.file.white.lists}")
|
||||
private String uploadFileWhiteLists; //上传文件白名单
|
||||
|
||||
|
||||
@ApiOperation(value="|File|上传文件")
|
||||
@PostMapping(value="/upload",consumes="multipart/*",headers="content-type=multipart/form-data" )
|
||||
@CrossOrigin(origins = "*", maxAge = 3600)
|
||||
// @RequiresPermissions("att:attFile:uploadFile")
|
||||
public ResponseMessage<AttFileVo> uploadFile(@RequestParam("file") @ApiParam(value="上传文件",required=true) MultipartFile file) throws Exception{
|
||||
if(StringUtils.isNotEmpty(uploadFileWhiteLists)){
|
||||
String[] fileLists = uploadFileWhiteLists.split(",");
|
||||
List<String> arrList = Arrays.asList(fileLists);
|
||||
String getFileName = file.getOriginalFilename();
|
||||
Pattern pReg = Pattern.compile("\\/|\\/|\\||:|\\?|\\%|\\*|\"|<|>|\\p{Cntrl}");
|
||||
// getFileName = getFileName.replaceAll(, "_");
|
||||
Matcher matcher = pReg.matcher(getFileName);
|
||||
if (matcher.find()) {
|
||||
return Result.error("文件上传失败,该文件名可能导致文件类型改变,请修改后重试");
|
||||
}
|
||||
//截取文件后缀
|
||||
int pos = getFileName.lastIndexOf(".");
|
||||
String str = getFileName.substring(pos+1).toLowerCase();
|
||||
if (arrList.contains(str)) {
|
||||
AttFileVo fileInfo = attFileEOService.saveFileInfo(file);
|
||||
if (fileInfo != null && fileInfo.getId() != null) {
|
||||
String oriFileName = fileInfo.getOldFileName();
|
||||
if (StringUtils.isNotEmpty(oriFileName)) {
|
||||
String standNumber = "";
|
||||
oriFileName = oriFileName.replaceAll("."+fileInfo.getFileSuffix(),"");
|
||||
Pattern ptest = Pattern.compile("[A-Z]{1,}/{0,1}[A-Z]{1,}\\s{0,1}[0-9]\\d*\\.?\\d*");
|
||||
Pattern ptest2 = Pattern.compile("[A-Z]{1,}/{0,1}[A-Z]{1,}\\s{0,1}[0-9]\\d*\\.?\\d*-[0-9]{1,4}");
|
||||
Matcher matcher1 = ptest.matcher(oriFileName);
|
||||
Matcher matcher2 = ptest2.matcher(oriFileName);
|
||||
if (matcher2.find()) {
|
||||
standNumber = matcher2.group();
|
||||
} else if (matcher1.find()) {
|
||||
standNumber = matcher1.group();
|
||||
}
|
||||
fileInfo.setStandNum(standNumber);
|
||||
String standName = oriFileName.replace(standNumber,"");
|
||||
fileInfo.setStandName(standName);
|
||||
}
|
||||
return Result.success("true", "上传成功", fileInfo);
|
||||
} else {
|
||||
return Result.error("文件上传失败");
|
||||
}
|
||||
} else {
|
||||
return Result.error("文件上传失败,不允许上传该类型文件");
|
||||
}
|
||||
} else {
|
||||
return Result.error("文件上传失败,不允许上传该类型文件");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value="|File|上传文件")
|
||||
@PostMapping(value="/uploadFiles",consumes="multipart/*",headers="content-type=multipart/form-data" )
|
||||
@CrossOrigin(origins = "*", maxAge = 3600)
|
||||
public ResponseMessage<List<AttFileVo>> uploadFile(@RequestParam("files") @ApiParam(value="上传文件",required=true) MultipartFile[] files) throws Exception{
|
||||
List<AttFileVo> fileInfoList= attFileEOService.saveFilesInfo(files);
|
||||
return Result.success(fileInfoList);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 下载文件
|
||||
* Date 2018/10/10 18:36
|
||||
* @Param [response, fileId]
|
||||
* @return void
|
||||
**/
|
||||
@ApiOperation(value = "|File|下载文件")
|
||||
@GetMapping("/downloadFile")
|
||||
// @RequiresPermissions("sys:file:download")
|
||||
public void downloadFile(String fileId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(),request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=\""+ fileOldName +"\"");
|
||||
response.setContentType("application/octet-stream");
|
||||
is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(is);
|
||||
IOUtils.closeQuietly(os);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|File|手机下载文件")
|
||||
@GetMapping("/downloadFileByPhone")
|
||||
// @RequiresPermissions("sys:file:download")
|
||||
public ResponseMessage downloadFileByPhone(@RequestParam("fileId")@NotNull String fileId,@RequestParam("sign")@NotNull String sign, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
logger.info("手机下载文件调取到了----------------------"+fileId);
|
||||
String key = "dufy20170329java";
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH");
|
||||
String time = df.format(new Date());
|
||||
String signConvert = fileId + time + key;
|
||||
String signEncrypt = MD5Util.string2MD5(signConvert);
|
||||
|
||||
if(StringUtils.isEmpty(sign)){
|
||||
logger.info("非法请求");
|
||||
return Result.error("非法请求");
|
||||
}else {
|
||||
if(!signEncrypt.equals(sign)){
|
||||
logger.info("非法请求");
|
||||
return Result.error("非法请求");
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("手机下载验证已过----------------------"+sign);
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
String filePathResult = "";
|
||||
try {
|
||||
if (attFileEO != null) {
|
||||
File oldFile = new File(filePath + attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
String fileOldName = attFileEO.getOldFileName();
|
||||
String timeStr = String.valueOf(System.currentTimeMillis());
|
||||
String fileOutputPath = filePath + "/" + "phoneLoadFiles/" + timeStr;
|
||||
File dir = new File(fileOutputPath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
String newFilePath = fileOutputPath + "/" + fileOldName;
|
||||
File newFile = new File(newFilePath);
|
||||
if (!newFile.exists()) {
|
||||
Files.copy(oldFile.toPath(), newFile.toPath());
|
||||
}
|
||||
filePathResult = "uploadPath/phoneLoadFiles/" + timeStr + "/" + fileOldName;
|
||||
return Result.success(filePathResult);
|
||||
} else {
|
||||
return Result.error("获取文件信息失败");
|
||||
}
|
||||
} catch (IOException e){
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
return Result.error("获取文件信息失败");
|
||||
/*InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(),request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=\""+ fileOldName +"\"");
|
||||
response.setContentType("application/octet-stream");
|
||||
logger.info("请求头设置完毕");
|
||||
is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
logger.info("序列化流完毕");
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
logger.info("文件复制完毕");
|
||||
os.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(is);
|
||||
IOUtils.closeQuietly(os);
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|File|下载文件")
|
||||
@GetMapping("/downloadFileForSar")
|
||||
// @RequiresPermissions("sys:file:downloadFileForSar")
|
||||
public void downloadFileForSar(String fileId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(),request);
|
||||
response.setHeader("Content-Disposition", "attachment;filename=\""+fileOldName+"\"");
|
||||
response.setContentType("application/octet-stream");
|
||||
is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(is);
|
||||
IOUtils.closeQuietly(os);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|File|下载文件加水印")
|
||||
@GetMapping("/downloadFileForSarWaterMark")
|
||||
// @RequiresPermissions("sys:file:downloadFileForSar")
|
||||
public void downloadFileForSarWaterMark(String fileId, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(),request);
|
||||
//生成一份水印文件
|
||||
String oldFilePath = filePath + attFileEO.getFilePath()+attFileEO.getFileName();
|
||||
String newFilePath = filePath + attFileEO.getFilePath()+"waterPath/";
|
||||
File dir = new File(newFilePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
String waterFilePath = newFilePath + attFileEO.getOldFileName();
|
||||
// 添加水印
|
||||
String waterContent = "";
|
||||
// String userId = LoginUserUtil.getUserId();
|
||||
// String userMsg = "";
|
||||
// UserEO userEO = userEOService.selectByPrimaryKey(userId);
|
||||
// if (userEO != null) {
|
||||
// userMsg = userEO.getUname() + ",";
|
||||
// if (StringUtils.isNotEmpty(userEO.getWorkNum())) {
|
||||
// userMsg += userEO.getWorkNum() + ",";
|
||||
// }
|
||||
// }
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
|
||||
String date = df.format(new Date());
|
||||
// waterContent = userMsg + date;
|
||||
//2020年9月5日 去掉水印处理
|
||||
// WaterMarkUtil.waterMark(oldFilePath,waterFilePath,waterContent);
|
||||
response.setHeader("Content-Disposition", "attachment;filename=\""+fileOldName+"\"");
|
||||
response.setContentType("application/octet-stream");
|
||||
is = iFileStore.loadFile(attFileEO.getFilePath()+"waterPath/"+attFileEO.getOldFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(is);
|
||||
IOUtils.closeQuietly(os);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据不同浏览器定义下载文件编码
|
||||
* Date 2018/10/11 10:40
|
||||
* @Param [fileName, request]
|
||||
* @return java.lang.String
|
||||
**/
|
||||
public String fileNameEncoding(String fileName, HttpServletRequest request) throws IOException {
|
||||
String agent = request.getHeader("User-Agent");
|
||||
if (agent.contains("Firefox")) {
|
||||
/*BASE64Encoder base64Encoder = new BASE64Encoder();
|
||||
fileName = "=?utf-8?B?"
|
||||
+ base64Encoder.encode(fileName.getBytes("utf-8")) + "?=";*/
|
||||
fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1"); // firefox浏览器
|
||||
} else {
|
||||
fileName = URLEncoder.encode(fileName, "utf-8");
|
||||
//谷歌中空格变为+问题
|
||||
fileName = fileName.replaceAll("\\+","%20");
|
||||
}
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 查询文件信息
|
||||
* Date 2018/10/10 18:41
|
||||
* @Param [fileId]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.att.entity.AttFileEO>
|
||||
**/
|
||||
@ApiOperation(value = "|File|查询文件信息")
|
||||
@GetMapping("/getAttFileInfo")
|
||||
public ResponseMessage<AttFileEO> getAttFileInfo(String fileId){
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
return Result.success(attFileEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 查询多个文件信息
|
||||
* Date 2018/10/24 9:47
|
||||
* @Param [fileIds]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.att.entity.AttFileEO>
|
||||
**/
|
||||
@ApiOperation(value = "|File|查询多个文件信息")
|
||||
@GetMapping("/getMultiFileInfos")
|
||||
// @RequiresPermissions("att:attFile:getMultiFileInfos")
|
||||
public ResponseMessage<List<AttFileEO>> getMultiFileInfos(String fileIds){
|
||||
List<AttFileEO> fileObj = attFileEOService.getMultiFileInfos(fileIds);
|
||||
return Result.success(fileObj);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|File|下载文件")
|
||||
@GetMapping("/uploadModalFile")
|
||||
// @RequiresPermissions("att:attFile:uploadModalFile")
|
||||
public void uploadModalFile(String fileName, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(fileName,request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + fileOldName);
|
||||
response.setContentType("application/octet-stream");
|
||||
is = iFileStore.loadFile("/modal/"+fileName);
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
} finally {
|
||||
IOUtils.closeQuietly(is);
|
||||
IOUtils.closeQuietly(os);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|File|获取文件流")
|
||||
@GetMapping("/getFileInfo")
|
||||
// @RequiresPermissions("sys:file:getFileInfo")
|
||||
public void getPdfFileSteam(String fileId,HttpServletRequest request,HttpServletResponse response) {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(), request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + fileOldName);
|
||||
response.setContentType("application/octet-stream");
|
||||
String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
File readFile = new File(readFilePath);
|
||||
if (readFile.exists()) {
|
||||
byte[] data = null;
|
||||
try (FileInputStream input = new FileInputStream(readFile)){
|
||||
data = new byte[10000];
|
||||
int readIndex=0;
|
||||
while((readIndex=input.read(data)) > 0){
|
||||
response.getOutputStream().write(data,0,readIndex);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
/* is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();*/
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|File|获取转换后的pdf文件流")
|
||||
@GetMapping("/getPdfFileInfo")
|
||||
// @RequiresPermissions("sys:file:getFileInfo")
|
||||
public ResponseMessage getPdfFileInfo(String fileId,HttpServletRequest request,HttpServletResponse response) {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
String encreptFileStr = "";
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(), request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + fileOldName);
|
||||
response.setContentType("application/octet-stream");
|
||||
String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
File readFile = new File(readFilePath);
|
||||
String codeStr = "";
|
||||
BASE64Encoder encoder = new BASE64Encoder();
|
||||
if (readFile.exists()) {
|
||||
byte[] data = null;
|
||||
try (FileInputStream input = new FileInputStream(readFile)){
|
||||
data = new byte[(int) readFile.length()];
|
||||
input.read(data);
|
||||
input.close();
|
||||
} catch (IOException e) {
|
||||
logger.info(e.getMessage(),e);
|
||||
}
|
||||
//base64编码
|
||||
codeStr = encoder.encode(data);
|
||||
codeStr = codeStr.replaceAll("\r|\n", "");
|
||||
//加密处理,前30后50拼上随机生成字符串
|
||||
encreptFileStr = UUIDUtils.randomUUID(30) + codeStr + UUIDUtils.randomUUID(50);
|
||||
}
|
||||
/* is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();*/
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
if(StringUtils.isNotEmpty(encreptFileStr)){
|
||||
return Result.success("0","",encreptFileStr);
|
||||
} else {
|
||||
return Result.error("获取文件信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|File|分段获取转换后的pdf文件流")
|
||||
@GetMapping("/getSyncPdfFileInfo")
|
||||
public void getSyncPdfFileInfo(String fileId,HttpServletRequest request,HttpServletResponse response) {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(), request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + fileOldName);
|
||||
String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
File readFile = new File(readFilePath);
|
||||
if (readFile.exists()) {
|
||||
downloadExistsFile(request,response,readFile);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
/* is = iFileStore.loadFile(attFileEO.getFilePath()+attFileEO.getFileName());
|
||||
os = response.getOutputStream();
|
||||
IOUtils.copy(is, os);
|
||||
os.flush();*/
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
private void downloadExistsFile(HttpServletRequest request, HttpServletResponse response, File proposeFile) throws IOException,FileNotFoundException {
|
||||
logger.debug("下载文件路径:" + proposeFile.getPath());
|
||||
long fSize = proposeFile.length();
|
||||
// 下载
|
||||
response.setContentType("application/x-download");
|
||||
response.setHeader("Accept-Ranges", "bytes");
|
||||
response.setHeader("Content-Length", String.valueOf(fSize));
|
||||
long pos = 0;
|
||||
if (null != request.getHeader("Range")) {
|
||||
// 断点续传
|
||||
response.setStatus(HttpServletResponse.SC_PARTIAL_CONTENT);
|
||||
try {
|
||||
// pos = Long.parseLong(request.getHeader("Range").replaceAll(
|
||||
// "bytes=", "").replaceAll("-", ""));
|
||||
pos = Long.parseLong((request.getHeader("Range").replaceAll("bytes=", "").split("-")[0]));
|
||||
} catch (NumberFormatException e) {
|
||||
logger.error(request.getHeader("Range") + " is not Number!");
|
||||
pos = 0;
|
||||
}
|
||||
}
|
||||
ServletOutputStream out = response.getOutputStream();
|
||||
BufferedOutputStream bufferOut = new BufferedOutputStream(out);
|
||||
InputStream inputStream = new FileInputStream(proposeFile);
|
||||
String contentRange = new StringBuffer("bytes ").append(
|
||||
new Long(pos).toString()).append("-").append(
|
||||
new Long(fSize - 1).toString()).append("/").append(
|
||||
new Long(fSize).toString()).toString();
|
||||
response.setHeader("Content-Range", contentRange);
|
||||
logger.debug("Content-Range", contentRange);
|
||||
inputStream.skip(pos);
|
||||
byte[] buffer = new byte[64 * 1024];
|
||||
int length = 0;
|
||||
while ((length = inputStream.read(buffer, 0, buffer.length)) != -1) {
|
||||
bufferOut.write(buffer, 0, length);
|
||||
}
|
||||
bufferOut.flush();
|
||||
bufferOut.close();
|
||||
out.close();
|
||||
inputStream.close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|File|获取转换后图片流")
|
||||
@GetMapping("/getFileImgInfo")
|
||||
// @RequiresPermissions("sys:file:getFileInfo")
|
||||
public ResponseMessage<Map<String,String>> getFileImgInfo(String fileId,int pageNo,HttpServletRequest request,HttpServletResponse response) {
|
||||
Map<String,String> resultMap = new HashMap<>();
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
InputStream is = null;
|
||||
OutputStream os = null;
|
||||
response.reset();
|
||||
String encreptFileStr = "";
|
||||
try {
|
||||
String fileOldName = fileNameEncoding(attFileEO.getOldFileName(), request);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + fileOldName);
|
||||
response.setContentType("application/octet-stream");
|
||||
String fileName = attFileEO.getFileName().substring(0, attFileEO.getFileName().indexOf("."));
|
||||
String readFilePath = filePath + attFileEO.getFilePath() + fileName + "img/" + pageNo + ".png";
|
||||
String fileDic = filePath + attFileEO.getFilePath() + fileName + "img";
|
||||
File readFile = new File(readFilePath);
|
||||
String codeStr = "";
|
||||
BASE64Encoder encoder = new BASE64Encoder();
|
||||
if (readFile.exists()) {
|
||||
byte[] data = null;
|
||||
try (FileInputStream input = new FileInputStream(readFile)){
|
||||
data = new byte[(int) readFile.length()];
|
||||
input.read(data);
|
||||
input.close();
|
||||
} catch (IOException e) {
|
||||
logger.info(e.getMessage(),e);
|
||||
}
|
||||
//base64编码
|
||||
codeStr = encoder.encode(data);
|
||||
codeStr = codeStr.replaceAll("\r|\n", "");
|
||||
//加密处理,前30后50拼上随机生成字符串
|
||||
encreptFileStr = UUIDUtils.randomUUID(30) + codeStr + UUIDUtils.randomUUID(50);
|
||||
resultMap.put("data",encreptFileStr);
|
||||
//获取文件夹下图片数量
|
||||
int imgCount = 0;
|
||||
File readFileDic = new File(fileDic);
|
||||
if (readFileDic.isDirectory()) {
|
||||
File[] files = readFileDic.listFiles();
|
||||
if (files != null && files.length>0) {
|
||||
imgCount = files.length;
|
||||
}
|
||||
}
|
||||
resultMap.put("count",String.valueOf(imgCount));
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
}
|
||||
if(StringUtils.isNotEmpty(encreptFileStr)){
|
||||
return Result.success("0","获取成功",resultMap);
|
||||
} else {
|
||||
return Result.error("获取文件信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package com.adc.da.att.controller;
|
||||
|
||||
import com.adc.da.att.entity.UeditorImage;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.att.vo.AttFileVo;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.List;
|
||||
|
||||
/*import com.adc.da.att.common.ueditor.ActionEnter;*/
|
||||
|
||||
|
||||
/**
|
||||
* 用于处理关于ueditor插件相关的请求
|
||||
* @author zhangyanduan
|
||||
* @date 2018年9月25日
|
||||
*
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@CrossOrigin
|
||||
@RequestMapping("/${restPath}/ueditor")
|
||||
public class UeditorController {
|
||||
@Value("classpath:ueditor/config.json")
|
||||
private Resource ueditorConfig;
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
|
||||
|
||||
@RequestMapping(value = "/getConfig")
|
||||
@ResponseBody
|
||||
public String getUeditorConfig(HttpServletRequest request) throws Exception{
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||
log.info(path);
|
||||
log.info(basePath);
|
||||
String ueditorData = IOUtils.toString(ueditorConfig.getInputStream(), Charset.forName("UTF-8"));
|
||||
return ueditorData;
|
||||
}
|
||||
|
||||
@RequestMapping("/uploadImageData")
|
||||
@ResponseBody
|
||||
public String uploadImageData(HttpServletRequest request) {
|
||||
UeditorImage msg = uploadFile(request);
|
||||
return JSONObject.toJSONString(msg);
|
||||
}
|
||||
|
||||
private UeditorImage uploadFile(HttpServletRequest request) {
|
||||
UeditorImage image = new UeditorImage();
|
||||
try{
|
||||
List<MultipartFile> files = ((MultipartHttpServletRequest) request).getFiles("upfile");
|
||||
String referer = request.getHeader("referer");
|
||||
if(files!=null && !files.isEmpty()){
|
||||
MultipartFile uploadFile=files.get(0);
|
||||
AttFileVo attFileVo= attFileEOService.saveFileInfo(uploadFile);
|
||||
String picUrlPath ="";
|
||||
if(StringUtils.isNotEmpty(referer)){
|
||||
picUrlPath=referer+"uploadPath"+ attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
}else{
|
||||
picUrlPath="uploadPath"+attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
}
|
||||
log.info("Ueditor 上传图片返回路径:"+picUrlPath);
|
||||
image.setState("SUCCESS");
|
||||
image.setUrl(picUrlPath);
|
||||
image.setTitle(attFileVo.getOldFileName());
|
||||
// image.setState(attFileVo.getOldFileName());
|
||||
image.setOriginal(attFileVo.getOldFileName());
|
||||
}else{
|
||||
image.setState("FAIL");
|
||||
}
|
||||
}catch (Exception e){
|
||||
image.setState("FAIL");
|
||||
log.error(e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
/* image.setUrl(serverPath + path);
|
||||
image.setState("SUCCESS");
|
||||
image.setOriginal(fileName);
|
||||
image.setTitle(fileName);*/
|
||||
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.att.dao;
|
||||
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>ATT_FILE AttFileEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface AttFileEODao extends BaseMapper<AttFileEO> {
|
||||
|
||||
public void creatTableInfo(@Param("tableName") String tableName);
|
||||
|
||||
public int existTable(@Param("tableName") String tableName);
|
||||
|
||||
public AttFileEO selectFileInfoById(AttFileEO attFileEO);
|
||||
|
||||
public int insertData(AttFileEO attFileEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
package com.adc.da.att.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>ATT_FILE AttFileEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class AttFileEO extends BaseEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1284335706608668758L;
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(AttFileEO.class);
|
||||
|
||||
private String id;
|
||||
private String fileName;
|
||||
private String oldFileName;
|
||||
private String fileSuffix;
|
||||
private String filePath;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String resId;
|
||||
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>fileName -> file_name</li>
|
||||
* <li>oldFileName -> old_file_name</li>
|
||||
* <li>fileSuffix -> file_suffix</li>
|
||||
* <li>filePath -> file_path</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){
|
||||
return null;
|
||||
}
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "fileName": return "file_name";
|
||||
case "oldFileName": return "old_file_name";
|
||||
case "fileSuffix": return "file_suffix";
|
||||
case "filePath": return "file_path";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>file_name -> fileName</li>
|
||||
* <li>old_file_name -> oldFileName</li>
|
||||
* <li>file_suffix -> fileSuffix</li>
|
||||
* <li>file_path -> filePath</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){
|
||||
return null;
|
||||
}
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "file_name": return "fileName";
|
||||
case "old_file_name": return "oldFileName";
|
||||
case "file_suffix": return "fileSuffix";
|
||||
case "file_path": return "filePath";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex!= -1){
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}else{
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
if(tableName!=null && !tableName.isEmpty()){
|
||||
this.id = tableName+"_"+id;
|
||||
}
|
||||
//此处注意保存时表结构是否存在
|
||||
this.id=id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOldFileName() {
|
||||
return this.oldFileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileSuffix() {
|
||||
return this.fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFilePath() {
|
||||
return this.filePath;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
if(this.tableName !=null && !this.tableName.isEmpty()){
|
||||
return this.tableName;
|
||||
}else{
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex !=-1){
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}else{
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
}
|
||||
return this.tableName;
|
||||
}
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.adc.da.att.entity;
|
||||
|
||||
public class UeditorImage {
|
||||
|
||||
private String state;
|
||||
private String url;
|
||||
private String title;
|
||||
private String original;
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getOriginal() {
|
||||
return original;
|
||||
}
|
||||
|
||||
public void setOriginal(String original) {
|
||||
this.original = original;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
package com.adc.da.att.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>ATT_FILE AttFileEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class AttFileEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String fileName;
|
||||
private String fileNameOperator = "=";
|
||||
private String oldFileName;
|
||||
private String oldFileNameOperator = "=";
|
||||
private String fileSuffix;
|
||||
private String fileSuffixOperator = "=";
|
||||
private String filePath;
|
||||
private String filePathOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
|
||||
private String tableName;
|
||||
|
||||
public String getId() {
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
int tableNameIndex = id.lastIndexOf("_");
|
||||
String tableName = id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileNameOperator() {
|
||||
return this.fileNameOperator;
|
||||
}
|
||||
|
||||
public void setFileNameOperator(String fileNameOperator) {
|
||||
this.fileNameOperator = fileNameOperator;
|
||||
}
|
||||
|
||||
public String getOldFileName() {
|
||||
return this.oldFileName;
|
||||
}
|
||||
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
public String getOldFileNameOperator() {
|
||||
return this.oldFileNameOperator;
|
||||
}
|
||||
|
||||
public void setOldFileNameOperator(String oldFileNameOperator) {
|
||||
this.oldFileNameOperator = oldFileNameOperator;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return this.fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFileSuffixOperator() {
|
||||
return this.fileSuffixOperator;
|
||||
}
|
||||
|
||||
public void setFileSuffixOperator(String fileSuffixOperator) {
|
||||
this.fileSuffixOperator = fileSuffixOperator;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return this.filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getFilePathOperator() {
|
||||
return this.filePathOperator;
|
||||
}
|
||||
|
||||
public void setFilePathOperator(String filePathOperator) {
|
||||
this.filePathOperator = filePathOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.att.service;
|
||||
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.vo.AttFileVo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
public interface IAttFileEOService extends IService<AttFileEO> {
|
||||
|
||||
public AttFileVo saveFileInfo(File file);
|
||||
|
||||
public AttFileVo saveFileInfo(MultipartFile file);
|
||||
|
||||
public List<AttFileVo> saveFilesInfo(MultipartFile[] files);
|
||||
|
||||
public AttFileEO getFileInfo(String attId);
|
||||
|
||||
public List<AttFileEO> getMultiFileInfos(String fileIds);
|
||||
|
||||
public String saveFileAttId(File file);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,361 @@
|
||||
package com.adc.da.att.service.impl;
|
||||
|
||||
import com.adc.da.att.dao.AttFileEODao;
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.att.vo.AttFileVo;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.util.FileUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Service("attFileEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
@Slf4j
|
||||
public class AttFileEOServiceImpl extends ServiceImpl<AttFileEODao, AttFileEO> implements IAttFileEOService {
|
||||
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
|
||||
|
||||
/**
|
||||
* 保存文件并返回文件ID
|
||||
*
|
||||
* @param file
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public AttFileVo saveFileInfo(File file) {
|
||||
/**
|
||||
* 1、首先生成文件保存的主键ID
|
||||
* 2、根据文件ID生成随机路径
|
||||
* 3、生成文件名
|
||||
* 3、保存文件
|
||||
* 4、获取文件相关信息
|
||||
* 5、判断当前表是否有存在,如果存在则执行insert语句 如果不存在则创建表结构
|
||||
* 5、保存入库并返回主键ID
|
||||
*/
|
||||
AttFileVo attFileVo = new AttFileVo();
|
||||
String fileId = UUIDUtils.randomUUID20();
|
||||
try {
|
||||
String uuidPath = UUIDUtils.getUUIDPath(fileId);
|
||||
|
||||
String FileSavePath = filePath + uuidPath + "/";
|
||||
File dir = new File(FileSavePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
|
||||
String fileName = file.getName();
|
||||
String fileSuffix = fileName.substring(fileName.lastIndexOf(".")+1, fileName.length());
|
||||
String newFileName = fileId +"."+ fileSuffix;
|
||||
File saveFile = new File(FileSavePath + newFileName);
|
||||
FileUtils.copyFile(file,saveFile);
|
||||
//开始存储文件信息
|
||||
String tableName = UUIDUtils.getAttTable();
|
||||
int existTable = this.baseMapper.existTable(tableName);
|
||||
if (existTable == 0) {
|
||||
this.baseMapper.creatTableInfo(tableName);
|
||||
}
|
||||
fileId = tableName + "_" + fileId;
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
attFileEO.setTableName(tableName);
|
||||
attFileEO.setId(fileId);
|
||||
attFileEO.setOldFileName(fileName);
|
||||
attFileEO.setFileSuffix(fileSuffix);
|
||||
attFileEO.setFilePath(uuidPath);
|
||||
attFileEO.setFileName(newFileName);
|
||||
attFileEO.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
attFileEO.setCreationTime(new Date());
|
||||
attFileEO.setModifyTime(new Date());
|
||||
this.baseMapper.insertData(attFileEO);
|
||||
attFileVo.setId(fileId);
|
||||
attFileVo.setFileName(newFileName);
|
||||
attFileVo.setFilePath(uuidPath);
|
||||
attFileVo.setFileSuffix(fileSuffix);
|
||||
attFileVo.setOldFileName(fileName);
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(),e);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(),e);
|
||||
}
|
||||
return attFileVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存文件并返回文件ID
|
||||
*
|
||||
* @param file
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public AttFileVo saveFileInfo(MultipartFile file) {
|
||||
/**
|
||||
* 1、首先生成文件保存的主键ID
|
||||
* 2、根据文件ID生成随机路径
|
||||
* 3、生成文件名
|
||||
* 3、保存文件
|
||||
* 4、获取文件相关信息
|
||||
* 5、判断当前表是否有存在,如果存在则执行insert语句 如果不存在则创建表结构
|
||||
* 5、保存入库并返回主键ID
|
||||
*/
|
||||
AttFileVo attFileVo = new AttFileVo();
|
||||
String fileId = UUIDUtils.randomUUID20();
|
||||
try {
|
||||
String uuidPath = UUIDUtils.getUUIDPath(fileId);
|
||||
|
||||
String FileSavePath = filePath + uuidPath;
|
||||
File dir = new File(FileSavePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
//开始存储文件
|
||||
String fileName = file.getOriginalFilename();
|
||||
// 此处发现在IE 11中存在获取文件名时获取了文件路径,此处将文件路径去除
|
||||
if(fileName.indexOf(":\\")>-1){
|
||||
// 此时说明存在从根路径获取的内容 需要处理
|
||||
fileName = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length());
|
||||
}
|
||||
String fileSuffix = fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length());
|
||||
String newFileName = fileId + "." + fileSuffix;
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(FileSavePath + newFileName));
|
||||
//开始存储文件信息
|
||||
String tableName = UUIDUtils.getAttTable();
|
||||
int existTable = this.baseMapper.existTable(tableName);
|
||||
if (existTable == 0) {
|
||||
this.baseMapper.creatTableInfo(tableName);
|
||||
}
|
||||
fileId = tableName + "_" + fileId;
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
attFileEO.setTableName(tableName);
|
||||
attFileEO.setId(fileId);
|
||||
attFileEO.setOldFileName(fileName);
|
||||
attFileEO.setFileSuffix(fileSuffix);
|
||||
attFileEO.setFilePath(uuidPath);
|
||||
attFileEO.setFileName(newFileName);
|
||||
attFileEO.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
attFileEO.setCreationTime(new Date());
|
||||
attFileEO.setModifyTime(new Date());
|
||||
this.baseMapper.insertData(attFileEO);
|
||||
attFileVo.setId(fileId);
|
||||
attFileVo.setFileName(newFileName);
|
||||
attFileVo.setFilePath(uuidPath);
|
||||
attFileVo.setFileSuffix(fileSuffix);
|
||||
attFileVo.setOldFileName(fileName);
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(),e);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
return attFileVo;
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* 保存文件列表
|
||||
* @MethodName:saveFilesInfo
|
||||
* @author: zhangyanduan
|
||||
* @param:[files]
|
||||
* @return:java.lang.String
|
||||
* date: 2018/9/19 9:48
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<AttFileVo> saveFilesInfo(MultipartFile[] files) {
|
||||
/**
|
||||
* 1、首先生成文件保存的主键ID
|
||||
* 2、根据文件ID生成随机路径
|
||||
* 3、生成文件名
|
||||
* 3、保存文件
|
||||
* 4、获取文件相关信息
|
||||
* 5、判断当前表是否有存在,如果存在则执行insert语句 如果不存在则创建表结构
|
||||
* 5、保存入库并返回主键ID
|
||||
*/
|
||||
List<AttFileVo> fileInfoList = new ArrayList<AttFileVo>();
|
||||
if (files != null && files.length > 0) {
|
||||
for (int index = 0; index < files.length; index++) {
|
||||
MultipartFile file = files[index];
|
||||
AttFileVo attFileVo = new AttFileVo();
|
||||
String fileId = UUIDUtils.randomUUID20();
|
||||
try {
|
||||
String uuidPath = UUIDUtils.getUUIDPath(fileId);
|
||||
String FileSavePath = filePath + uuidPath;
|
||||
File dir = new File(FileSavePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
//开始存储文件
|
||||
String fileName = file.getOriginalFilename();
|
||||
if(fileName.indexOf(":\\")>-1){
|
||||
// 此时说明存在从根路径获取的内容 需要处理
|
||||
fileName = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length());
|
||||
}
|
||||
String fileSuffix = fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length());
|
||||
String newFileName = fileId + "." + fileSuffix;
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(FileSavePath + newFileName));
|
||||
//开始存储文件信息
|
||||
String tableName = UUIDUtils.getAttTable();
|
||||
int existTable = this.baseMapper.existTable(tableName);
|
||||
if (existTable == 0) {
|
||||
this.baseMapper.creatTableInfo(tableName);
|
||||
}
|
||||
fileId = tableName + "_" + fileId;
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
attFileEO.setTableName(tableName);
|
||||
attFileEO.setId(fileId);
|
||||
attFileEO.setOldFileName(fileName);
|
||||
attFileEO.setFileSuffix(fileSuffix);
|
||||
attFileEO.setFilePath(uuidPath);
|
||||
attFileEO.setFileName(newFileName);
|
||||
attFileEO.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
attFileEO.setCreationTime(new Date());
|
||||
attFileEO.setModifyTime(new Date());
|
||||
this.baseMapper.insertData(attFileEO);
|
||||
attFileVo.setId(fileId);
|
||||
attFileVo.setFileName(newFileName);
|
||||
attFileVo.setFilePath(uuidPath);
|
||||
attFileVo.setFileSuffix(fileSuffix);
|
||||
attFileVo.setOldFileName(fileName);
|
||||
fileInfoList.add(attFileVo);
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(),e);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(),e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return fileInfoList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据文件ID获取文件信息
|
||||
*
|
||||
* @param attId
|
||||
* @return
|
||||
*/
|
||||
public AttFileEO getFileInfo(String attId) {
|
||||
/**
|
||||
* 根据ID获取文件信息
|
||||
*/
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
AttFileEO attFileInfo=null;
|
||||
try {
|
||||
attFileEO.setId(attId);
|
||||
attFileInfo = this.baseMapper.selectFileInfoById(attFileEO);
|
||||
return attFileInfo;
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(),e);
|
||||
}
|
||||
return attFileEO;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 多文件查询
|
||||
* Date 2018/10/24 11:08
|
||||
* @Param [fileIds]
|
||||
* @return java.util.List<com.adc.da.att.entity.AttFileEO>
|
||||
**/
|
||||
public List<AttFileEO> getMultiFileInfos(String fileIds) {
|
||||
List<AttFileEO> fileObj = new ArrayList<>();
|
||||
if(StringUtils.isNotEmpty(fileIds)){
|
||||
String idList[] = fileIds.split(",");
|
||||
for(int i=0;i<idList.length;i++){
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(idList[i])){
|
||||
attFileEO.setId(idList[i]);
|
||||
AttFileEO getFile = this.baseMapper.selectFileInfoById(attFileEO);
|
||||
if(attFileEO != null){
|
||||
fileObj.add(getFile);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(),e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileObj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 获取attId
|
||||
* Date 2018/10/30 21:05
|
||||
* @Param [file]
|
||||
* @return java.lang.String
|
||||
**/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public String saveFileAttId(File file) {
|
||||
/**
|
||||
* 1、首先生成文件保存的主键ID
|
||||
* 2、根据文件ID生成随机路径
|
||||
* 3、生成文件名
|
||||
* 3、保存文件
|
||||
* 4、获取文件相关信息
|
||||
* 5、判断当前表是否有存在,如果存在则执行insert语句 如果不存在则创建表结构
|
||||
* 5、保存入库并返回主键ID
|
||||
*/
|
||||
String fileId = UUIDUtils.randomUUID20();
|
||||
try {
|
||||
String uuidPath = UUIDUtils.getUUIDPath(fileId);
|
||||
|
||||
String FileSavePath = filePath + uuidPath;
|
||||
File dir = new File(FileSavePath);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
|
||||
String fileName = file.getName();
|
||||
String fileSuffix = fileName.substring(fileName.lastIndexOf("."), fileName.length());
|
||||
String newFileName = fileId + fileSuffix;
|
||||
File saveFile = new File(FileSavePath + newFileName);
|
||||
// FileUtil.copyInputStreamToFile(file.get, saveFile);
|
||||
FileUtils.moveFile(file,saveFile);
|
||||
//开始存储文件信息
|
||||
String tableName = UUIDUtils.getAttTable();
|
||||
int existTable = this.baseMapper.existTable(tableName);
|
||||
if (existTable == 0) {
|
||||
this.baseMapper.creatTableInfo(tableName);
|
||||
}
|
||||
fileId = tableName + "_" + fileId;
|
||||
AttFileEO attFileEO = new AttFileEO();
|
||||
attFileEO.setTableName(tableName);
|
||||
attFileEO.setId(fileId);
|
||||
attFileEO.setOldFileName(fileName);
|
||||
attFileEO.setFileSuffix(fileSuffix);
|
||||
attFileEO.setFilePath(uuidPath);
|
||||
attFileEO.setFileName(newFileName);
|
||||
attFileEO.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
attFileEO.setCreationTime(new Date());
|
||||
attFileEO.setModifyTime(new Date());
|
||||
this.baseMapper.insertData(attFileEO);
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(),e);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(),e);
|
||||
} finally {
|
||||
FileUtil.deleteQuietly(file);
|
||||
}
|
||||
return fileId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.adc.da.att.vo;
|
||||
|
||||
public class AttFileVo {
|
||||
|
||||
private String id;
|
||||
private String fileName;
|
||||
private String oldFileName;
|
||||
private String fileSuffix;
|
||||
private String filePath;
|
||||
private String attId;
|
||||
|
||||
private String name;
|
||||
//识别文件名中的标准号和名称
|
||||
private String standNum;
|
||||
private String standName;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getOldFileName() {
|
||||
return oldFileName;
|
||||
}
|
||||
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
this.name = this.oldFileName;
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
this.attId=this.id;
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getStandNum() {
|
||||
return standNum;
|
||||
}
|
||||
|
||||
public void setStandNum(String standNum) {
|
||||
this.standNum = standNum;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonCollectEO;
|
||||
import com.adc.da.person.page.PersonCollectEOPage;
|
||||
import com.adc.da.person.service.IPersonCollectEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personCollect")
|
||||
@Api(description = "|PersonCollectEO|")
|
||||
public class PersonCollectEOController extends BaseController<PersonCollectEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonCollectEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonCollectEOService personCollectEOService;
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //判断是法规,标准,动态
|
||||
* @Date 17:39 2018/9/28
|
||||
* @Param [pageNo, pageSize, modeType]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo<com.adc.da.person.entity.PersonCollectEO>>
|
||||
**/
|
||||
@ApiOperation(value = "|PersonCollectEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
public ResponseMessage<PageInfo<PersonCollectEO>> page(Integer pageNo, Integer pageSize, String modeType, String collectTitle) throws Exception {
|
||||
PersonCollectEOPage page = new PersonCollectEOPage();
|
||||
if (StringUtils.isNotEmpty(modeType)) {
|
||||
List<String> collectTypes = new ArrayList<>();
|
||||
switch (modeType) {
|
||||
case "STAND":
|
||||
collectTypes.add("INLAND_STAND");
|
||||
collectTypes.add("FOREIGN_STAND");
|
||||
collectTypes.add("BUSINESS_STAND");
|
||||
break;
|
||||
case "LAWS":
|
||||
collectTypes.add("INLAND_LAWS");
|
||||
collectTypes.add("FOREIGN_LAWS");
|
||||
break;
|
||||
case "MSG":
|
||||
collectTypes.add("INLAND_MSG");
|
||||
collectTypes.add("FOREIGN_MSG");
|
||||
collectTypes.add("RESOURCE_MSG");
|
||||
break;
|
||||
default:break;
|
||||
}
|
||||
page.setCollectTypeList(collectTypes);
|
||||
}
|
||||
if (pageNo != null) {
|
||||
page.setPage(pageNo);
|
||||
}else{
|
||||
page.setPage(1);
|
||||
}
|
||||
if (pageSize != null) {
|
||||
page.setPageSize(pageSize);
|
||||
}else{
|
||||
page.setPageSize(10);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(collectTitle)) {
|
||||
page.setCollectTitle(collectTitle);
|
||||
}
|
||||
page.setUserId(LoginUserUtil.getUserId());
|
||||
List<PersonCollectEO> rows = personCollectEOService.queryByPersonCollectPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonCollectEO|查询")
|
||||
@GetMapping("")
|
||||
// @RequiresPermissions("person:personCollect:list")
|
||||
public ResponseMessage<List<PersonCollectEO>> list(PersonCollectEOPage page) throws Exception {
|
||||
return Result.success(personCollectEOService.queryByList(page));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonCollectEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("person:personCollect:get")
|
||||
public ResponseMessage<PersonCollectEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personCollectEOService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 刘寅楠
|
||||
* @param personCollectEO
|
||||
* @return com.adc.da.person.entity.PersonCollectEO
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonCollectEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("person:personCollect:create")
|
||||
public ResponseMessage<PersonCollectEO> create(@RequestBody PersonCollectEO personCollectEO) throws Exception {
|
||||
String userId = LoginUserUtil.getUserId();
|
||||
personCollectEO.setId(UUIDUtils.randomUUID20());
|
||||
personCollectEO.setUserId(userId);
|
||||
personCollectEO.setValidFlag(0);
|
||||
personCollectEO.setCreationTime(new Date());
|
||||
personCollectEO.setModifyTime(new Date());
|
||||
personCollectEOService.save(personCollectEO);
|
||||
return Result.success("0","收藏成功,请到'我的收藏'中查看相关信息。",personCollectEO);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonCollectEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("person:personCollect:update")
|
||||
public ResponseMessage<PersonCollectEO> update(@RequestBody PersonCollectEO personCollectEO) throws Exception {
|
||||
personCollectEO.setModifyTime(new Date());
|
||||
personCollectEOService.updateById(personCollectEO);
|
||||
return Result.success(personCollectEO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonCollectEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
// @RequiresPermissions("person:personCollect:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personCollectEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_COLLECT where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //对收藏数据进行取消收藏
|
||||
* @Date 17:31 2018/9/28
|
||||
* @Param [personCollectEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "取消收藏")
|
||||
@PutMapping("/updateByUserId")
|
||||
// @RequiresPermissions("person:personCollect:updateByUserId")
|
||||
public ResponseMessage<PersonCollectEO> updateByUserId(PersonCollectEO personCollectEO) throws Exception {
|
||||
personCollectEO.setValidFlag(1);
|
||||
boolean result = personCollectEOService.updateById(personCollectEO);
|
||||
if(result){
|
||||
return Result.success("0","取消成功",personCollectEO);
|
||||
} else {
|
||||
return Result.error("0","取消失败",personCollectEO);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|批量取消收藏")
|
||||
@PostMapping("/cancelCollectByBatch")
|
||||
public ResponseMessage cancelCollectByBatch(String ids) throws Exception {
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
int count = personCollectEOService.deleteByIdList(idList);
|
||||
if (count > 0) {
|
||||
return Result.success("200","取消收藏成功",true);
|
||||
} else {
|
||||
return Result.error("400","取消收藏失败");
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","取消收藏失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //通过检索模糊查询
|
||||
* @Date 17:38 2018/9/28
|
||||
* @Param [page]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonCollectEO>
|
||||
**/
|
||||
// @ApiOperation(value = "通过内容标题模糊查询")
|
||||
// @GetMapping("/selectByCollectTitle")
|
||||
//// @RequiresPermissions("person:personCollect:list")
|
||||
// public ResponseMessage<List<PersonCollectEO>> selectByCollectTitle(PersonCollectEOPage page) throws Exception {
|
||||
// page.setValidFlag("0");
|
||||
// List<PersonCollectEO> personCollectEO=personCollectEOService.queryByList(page);
|
||||
// return Result.success(personCollectEO);
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonConfEO;
|
||||
import com.adc.da.person.page.PersonConfEOPage;
|
||||
import com.adc.da.person.service.IPersonConfEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personConf")
|
||||
@Api(description = "|PersonConfEO|")
|
||||
public class PersonConfEOController extends BaseController<PersonConfEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonConfEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonConfEOService personConfEOService;
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonConfEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personConf:page")
|
||||
public ResponseMessage<PageInfo<PersonConfEO>> page(PersonConfEOPage page) throws Exception {
|
||||
List<PersonConfEO> rows = personConfEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonConfEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personConf:list")
|
||||
public ResponseMessage<List<PersonConfEO>> list(PersonConfEOPage page) throws Exception {
|
||||
return Result.success(personConfEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonConfEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personConf:get")
|
||||
public ResponseMessage<PersonConfEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personConfEOService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan 用户新增过程中,默认全部新增
|
||||
* @param
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "|PersonConfEO|新增")
|
||||
@PostMapping(value="addConfList")
|
||||
// @RequiresPermissions("person:personConf:save")
|
||||
public ResponseMessage<List<PersonConfEO>> addConfList(String userId) throws Exception {
|
||||
List<PersonConfEO> list = personConfEOService.saveConfList(userId);
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //按一个对象更新个人板块
|
||||
* @Date 8:38 2018/9/25
|
||||
* @Param [personConfEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonConfEO>
|
||||
**/
|
||||
@ApiOperation(value = "|PersonConfEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personConf:update")
|
||||
public ResponseMessage<PersonConfEO> update(@RequestBody PersonConfEO personConfEO) throws Exception {
|
||||
personConfEOService.updateById(personConfEO);
|
||||
personConfEO.setCreationTime(new Date());
|
||||
personConfEO.setModifyTime(new Date());
|
||||
boolean result=personConfEOService.updateById(personConfEO);
|
||||
if(!result){
|
||||
return Result.error("修改失败");
|
||||
}
|
||||
return Result.success(personConfEO);
|
||||
}
|
||||
|
||||
|
||||
// @ApiOperation(value = "根据前台传来的对象保存")
|
||||
// @PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// public ResponseMessage<PersonConfEO> insertByList(PersonConfEO personConfEO)throws Exception{
|
||||
// personConfEOService.updateByPrimaryKeySelective(personConfEO);
|
||||
// personConfEOService.insertByList(personConfEO);
|
||||
// return Result.success(personConfEO);
|
||||
// }
|
||||
|
||||
|
||||
@ApiOperation(value = "根据前台传来的对象保存")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
public ResponseMessage insertByList(@RequestBody List<PersonConfEO> personConfEOList) throws Exception {
|
||||
if (personConfEOList != null && personConfEOList.size() > 0) {
|
||||
|
||||
// String[] personConfEO=personConfEO.split(",");
|
||||
for (int i = 0; i < personConfEOList.size(); i++) {
|
||||
PersonConfEO personConfEO = personConfEOList.get(i);
|
||||
personConfEO.setUserId("1");
|
||||
personConfEO.setDisplaySeq(i+1);
|
||||
personConfEO.setCreationTime(new Date());
|
||||
personConfEO.setModifyTime(new Date());
|
||||
System.out.println(personConfEOList.get(i));
|
||||
personConfEOService.updateById(personConfEOList.get(i));
|
||||
personConfEOService.insert1(personConfEOList.get(i));
|
||||
}
|
||||
}else {
|
||||
return Result.error("操作失败");
|
||||
}
|
||||
return Result.success("","操作成功",personConfEOList);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonConfEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:personConf:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personConfEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_CONF where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //排序查询
|
||||
* @Date 16:13 2018/9/21
|
||||
* @Param []
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.person.entity.PersonConfEO>>
|
||||
**/
|
||||
// @ApiOperation(value = "排序查询")
|
||||
// @GetMapping("/selectByDisplay")
|
||||
// //@RequiresPermissions("person:personConf:list")
|
||||
// public ResponseMessage<List<PersonConfEO>> updateById() throws Exception {
|
||||
// List<PersonConfEO> personConfEO = personConfEOService.updateById();
|
||||
// return Result.success(personConfEO);
|
||||
// }
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //批量删除
|
||||
* @Date 16:12 2018/9/21
|
||||
* @Param [ids]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.person.entity.PersonConfEO>>
|
||||
**/
|
||||
// @ApiOperation(value = "批量删除")
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public ResponseMessage<List<PersonConfEO>> deleteByIdList(@PathVariable String ids) throws Exception {
|
||||
// String[] idList = ids.split(",");
|
||||
// if (idList != null && idList.length > 0) {
|
||||
// for (String id : idList) {
|
||||
// List<PersonConfEO> list = personConfEOService.deleteByIdList(id);
|
||||
// }
|
||||
// }
|
||||
// return Result.success();
|
||||
// }
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 查询左侧可显示的目录
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonConfEO|详情")
|
||||
@GetMapping("/getPersonConf")
|
||||
//@RequiresPermissions("person:personConf:get")
|
||||
public ResponseMessage<List<HashMap>> getPersonConf() throws Exception {
|
||||
List<HashMap> list = personConfEOService.selectByUserid(LoginUserUtil.getUserId());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 个人板块信息查询
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonConfEO|详情")
|
||||
@GetMapping("/getPersonConfList")
|
||||
//@RequiresPermissions("person:personConf:getPersonConfList")
|
||||
public ResponseMessage<Map> getPersonConfList() throws Exception {
|
||||
Map result = personConfEOService.selectPersonConfByUserid(LoginUserUtil.getUserId());
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 个人登录后修改自己显示板块
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonConfEO|详情")
|
||||
@PostMapping("/updatePersonConfList")
|
||||
//@RequiresPermissions("person:personConf:updatePersonConfList")
|
||||
public ResponseMessage<String[]> updatePersonConfList(String[] targetKeys) throws Exception {
|
||||
personConfEOService.updatePersonConfList(targetKeys, LoginUserUtil.getUserId());
|
||||
return Result.success("","保存成功",targetKeys);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonCookiesEO;
|
||||
import com.adc.da.person.page.PersonCookiesEOPage;
|
||||
import com.adc.da.person.service.IPersonCookiesEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personCookies")
|
||||
@Api(description = "|PersonCookiesEO|")
|
||||
public class PersonCookiesEOController extends BaseController<PersonCookiesEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonCookiesEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonCookiesEOService personCookiesEOService;
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personCookies:page")
|
||||
public ResponseMessage<PageInfo<PersonCookiesEO>> page(PersonCookiesEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
String userId= LoginUserUtil.getUserId();
|
||||
page.setUserId(userId);
|
||||
List<PersonCookiesEO> rows = personCookiesEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personCookies:list")
|
||||
public ResponseMessage<List<PersonCookiesEO>> list(PersonCookiesEOPage page) throws Exception {
|
||||
return Result.success(personCookiesEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personCookies:get")
|
||||
public ResponseMessage<PersonCookiesEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personCookiesEOService.getById(id));
|
||||
}
|
||||
|
||||
/*@ApiOperation(value = "|PersonCookiesEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personCookies:save")
|
||||
public ResponseMessage<PersonCookiesEO> create(@RequestBody PersonCookiesEO personCookiesEO) throws Exception {
|
||||
personCookiesEOService.insertSelective(personCookiesEO);
|
||||
return Result.success(personCookiesEO);
|
||||
}*/
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|新增")
|
||||
@PostMapping("/create")
|
||||
//@RequiresPermissions("person:personCookies:save")
|
||||
public ResponseMessage<PersonCookiesEO> create(@RequestBody PersonCookiesEO personCookiesEO) throws Exception {
|
||||
personCookiesEO.setUserId(LoginUserUtil.getUserId());
|
||||
personCookiesEO.setId(UUIDUtils.randomUUID20());
|
||||
personCookiesEO.setCreationTime(new Date());
|
||||
personCookiesEO.setModifyTime(new Date());
|
||||
personCookiesEO.setValidFlag(0);
|
||||
personCookiesEOService.saveBean(personCookiesEO);
|
||||
return Result.success(personCookiesEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|批量删除")
|
||||
@PostMapping("/deleteByBacth")
|
||||
public ResponseMessage deleteByBacth(String ids) throws Exception {
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
int count = personCookiesEOService.deleteByIdList(idList);
|
||||
if (count > 0) {
|
||||
return Result.success("200","删除成功",true);
|
||||
} else {
|
||||
return Result.error("400","删除失败");
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //删除我的浏览所有记录
|
||||
* @Date 9:51 2018/9/27
|
||||
* @Param [ids]
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
**/
|
||||
@ApiOperation(value = "|PersonCookiesEO|批量删除")
|
||||
@PutMapping("/deleteBacth")
|
||||
//@RequiresPermissions("person:personCookies:update")
|
||||
public ResponseMessage update(PersonCookiesEO personCookiesEO) throws Exception {
|
||||
personCookiesEO.setUserId(LoginUserUtil.getUserId());
|
||||
personCookiesEOService.updateByAll(personCookiesEO);
|
||||
return Result.success("true","清除成功",personCookiesEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:personCookies:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personCookiesEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_COOKIES where id = {}", id);
|
||||
return Result.success("true","删除成功",1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //单句删除
|
||||
* @Date 9:51 2018/9/27
|
||||
* @Param [personCookiesEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonCookiesEO>
|
||||
**/
|
||||
@ApiOperation(value = "根据用户id删除浏览记录")
|
||||
@PutMapping("/deleteBySimple")
|
||||
//@RequiresPermissions("person:personCookies:updateByUserId")
|
||||
public ResponseMessage<Integer> updateByUserId(PersonCookiesEO personCookiesEO) throws Exception {
|
||||
int personCookiesEO1=personCookiesEOService.updateByUserId(personCookiesEO);
|
||||
return Result.success("true","删除成功",1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// @ApiOperation(value = "根据浏览类型查询")
|
||||
// @GetMapping("/cookieType")
|
||||
// @ResponseBody
|
||||
// public ResponseMessage<List<PersonCookiesEO>> queryByCookieType(String cookieType) throws Exception{
|
||||
// List<PersonCookiesEO> personCookiesEO=personCookiesEOService.queryByCookieType(cookieType);
|
||||
// if(personCookiesEO==null){
|
||||
// return Result.error("查询失败");
|
||||
// }
|
||||
// return Result.success(personCookiesEO);
|
||||
// }
|
||||
|
||||
|
||||
// @ApiOperation(value = "根据用户id查询")
|
||||
// @GetMapping("/userId")
|
||||
// public ResponseMessage<List<PersonCookiesEO>> queryByUserId(String ids) throws Exception {
|
||||
// String[] idList = ids.split(",");
|
||||
// if (idList != null && idList.length > 0) {
|
||||
// for (String id : idList) {
|
||||
// List<PersonConfEO> list = personConfEOService.deleteByIdList(id);
|
||||
// }
|
||||
// }
|
||||
// return Result.success();
|
||||
// }
|
||||
|
||||
@ApiOperation(value = "|PersonCookiesEO|计算浏览数")
|
||||
@GetMapping("/countPageCookie")
|
||||
public ResponseMessage<Integer> countPageCookie(PersonCookiesEO personCookiesEO){
|
||||
int count = personCookiesEOService.countPageCookie(personCookiesEO);
|
||||
return Result.success(count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.person.page.PersonMsgEOPage;
|
||||
import com.adc.da.person.page.PersonShareEOPage;
|
||||
import com.adc.da.person.service.IPersonMsgEOService;
|
||||
import com.adc.da.person.service.IPersonShareEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personMsg")
|
||||
@Api(description = "|PersonMsgEO|")
|
||||
public class PersonMsgEOController extends BaseController<PersonMsgEO>{
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonMsgEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonMsgEOService personMsgEOService;
|
||||
|
||||
@Autowired
|
||||
private IPersonShareEOService personShareEOService;
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personMsg:page")
|
||||
public ResponseMessage<PageInfo<PersonMsgEO>> page(PersonMsgEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
List<PersonMsgEO> rows = personMsgEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personMsg:list")
|
||||
public ResponseMessage<List<PersonMsgEO>> list(PersonMsgEOPage page) throws Exception {
|
||||
return Result.success(personMsgEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personMsg:get")
|
||||
public ResponseMessage<PersonMsgEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personMsgEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personMsg:save")
|
||||
public ResponseMessage<PersonMsgEO> create(@RequestBody PersonMsgEO personMsgEO) throws Exception {
|
||||
personMsgEO.setUserId(LoginUserUtil.getUserId());
|
||||
personMsgEO.setId(UUIDUtils.randomUUID20());
|
||||
personMsgEO.setCreationTime(new Date());
|
||||
personMsgEO.setModifyTime(new Date());
|
||||
personMsgEO.setReadFlag(0);
|
||||
personMsgEO.setValidFlag(0);
|
||||
personMsgEOService.save(personMsgEO);
|
||||
return Result.success(personMsgEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personMsg:update")
|
||||
public ResponseMessage<PersonMsgEO> update(@RequestBody PersonMsgEO personMsgEO) throws Exception {
|
||||
personMsgEOService.updateById(personMsgEO);
|
||||
return Result.success(personMsgEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:personMsg:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personMsgEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_MSG where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description 根据id查询详细信息
|
||||
* @Date 14:10 2018/10/19
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonMsgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|PersonMsgEO|根据id查询详细信息")
|
||||
@GetMapping("/selectByInfoId")
|
||||
//@RequiresPermissions("person:personMsg:list")
|
||||
public ResponseMessage<PersonMsgEO> selectByInfoId(String id) throws Exception {
|
||||
PersonMsgEO personMsgEO = personMsgEOService.selectByInfoId(id);
|
||||
|
||||
// 查询详情表示查看过这条数据同时去修改是否已读
|
||||
if( null !=personMsgEO.getReadFlag() && personMsgEO.getReadFlag() == 0) {
|
||||
PersonMsgEO updatete = new PersonMsgEO();
|
||||
updatete.setId(personMsgEO.getId());
|
||||
updatete.setReadFlag(1);
|
||||
updatete.setModifyTime(new Date());
|
||||
personMsgEOService.updateById(updatete);
|
||||
}
|
||||
return Result.success(personMsgEO);
|
||||
}
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description 查询当前登录人一共有多少条未读动态
|
||||
* @Date 14:10 2018/10/19
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonMsgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|PersonMsgEO|查询当前登录人一共有多少条未读动态")
|
||||
@GetMapping("/selectNotRed")
|
||||
//@RequiresPermissions("person:personMsg:selectNotRed")
|
||||
public ResponseMessage<Map<String,Integer>> selectNotRed() throws Exception {
|
||||
Map<String,Integer> resultMap = new HashMap<String,Integer>();
|
||||
PersonMsgEOPage page = new PersonMsgEOPage();
|
||||
page.setValidFlag("0");
|
||||
page.setReadFlag("0");
|
||||
page.setUserId(LoginUserUtil.getUserId());
|
||||
int msgCount = personMsgEOService.selectByNotRed(page);
|
||||
resultMap.put("msgCount",msgCount);
|
||||
PersonShareEOPage personShareEOPage = new PersonShareEOPage();
|
||||
personShareEOPage.setReadFlag("0");
|
||||
personShareEOPage.setValidFlag("0");
|
||||
personShareEOPage.setRecipientId(LoginUserUtil.getUserId());
|
||||
int shareCount = personShareEOService.queryByCount(personShareEOPage);
|
||||
resultMap.put("shareCount",shareCount);
|
||||
int allCount = msgCount+shareCount;
|
||||
resultMap.put("allCount",allCount);
|
||||
return Result.success(resultMap);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "批量删除")
|
||||
@PostMapping("/deleteByIdList")
|
||||
public ResponseMessage deleteByIdList(String ids){
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
personMsgEOService.deletePersonMsgByIdList(idList);
|
||||
return Result.success("200","删除成功",true);
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author yuzhong
|
||||
* @Description 根据流程编号更改动态信息
|
||||
* @Date 14:10 2018/10/19
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonMsgEO>
|
||||
**/
|
||||
@ApiOperation(value = "根据流程编号更改动态信息")
|
||||
@GetMapping("/updateMsgInfoByProcessNum")
|
||||
//@RequiresPermissions("person:personMsg:selectNotRed")
|
||||
public ResponseMessage<Map<String,Integer>> updateMsgInfoByProcessNum(String processNum) throws Exception {
|
||||
Map<String,Integer> resultMap = new HashMap<String,Integer>();
|
||||
//为了把动态的信息关闭掉
|
||||
PersonMsgEOPage personMsgEOPage = new PersonMsgEOPage();
|
||||
personMsgEOPage.setProcessnum(processNum);
|
||||
personMsgEOPage.setValidFlag("0");
|
||||
List<PersonMsgEO> personMsgEOList = personMsgEOService.queryByList(personMsgEOPage);
|
||||
if(personMsgEOList!=null && !personMsgEOList.isEmpty()){
|
||||
for(PersonMsgEO personMsgEO : personMsgEOList){
|
||||
personMsgEO.setReadFlag(1);
|
||||
personMsgEOService.updateById(personMsgEO);
|
||||
}
|
||||
}
|
||||
PersonMsgEOPage page = new PersonMsgEOPage();
|
||||
page.setValidFlag("0");
|
||||
page.setReadFlag("0");
|
||||
page.setUserId(LoginUserUtil.getUserId());
|
||||
int msgCount = personMsgEOService.selectByNotRed(page);
|
||||
resultMap.put("msgCount",msgCount);
|
||||
PersonShareEOPage personShareEOPage = new PersonShareEOPage();
|
||||
personShareEOPage.setReadFlag("0");
|
||||
personShareEOPage.setValidFlag("0");
|
||||
personShareEOPage.setRecipientId(LoginUserUtil.getUserId());
|
||||
int shareCount = personShareEOService.queryByCount(personShareEOPage);
|
||||
resultMap.put("shareCount",shareCount);
|
||||
int allCount = msgCount+shareCount;
|
||||
resultMap.put("allCount",allCount);
|
||||
return Result.success(resultMap);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "批量标记已读")
|
||||
@PostMapping("/markIsReadByBatch")
|
||||
public ResponseMessage markIsReadByBatch(String ids){
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
int count = personMsgEOService.markIsReadByBatch(idList);
|
||||
if (count > 0) {
|
||||
return Result.success("200","标记成功",true);
|
||||
} else {
|
||||
return Result.error("400","标记失败");
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","标记失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonNoteEO;
|
||||
import com.adc.da.person.page.PersonNoteEOPage;
|
||||
import com.adc.da.person.service.IPersonNoteEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personNote")
|
||||
@Api(description = "|PersonNoteEO|")
|
||||
public class PersonNoteEOController extends BaseController<PersonNoteEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonNoteEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonNoteEOService personNoteEOService;
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonNoteEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personNote:page")
|
||||
public ResponseMessage<PageInfo<PersonNoteEO>> page(PersonNoteEOPage page) throws Exception {
|
||||
List<PersonNoteEO> rows = personNoteEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonNoteEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personNote:list")
|
||||
public ResponseMessage<List<PersonNoteEO>> list(PersonNoteEOPage page) throws Exception {
|
||||
return Result.success(personNoteEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonNoteEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personNote:get")
|
||||
public ResponseMessage<PersonNoteEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personNoteEOService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //保存笔记
|
||||
* @Date 18:30 2018/9/28
|
||||
* @Param [personNoteEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "保存笔记")
|
||||
@PostMapping("/save")
|
||||
//@RequiresPermissions("person:personNote:save")
|
||||
public ResponseMessage<PersonNoteEO> save(@RequestBody PersonNoteEO personNoteEO) throws Exception {
|
||||
personNoteEO.setId(personNoteEO.getId());
|
||||
personNoteEO.setUserId(personNoteEO.getUserId());
|
||||
boolean result=personNoteEOService.save(personNoteEO);
|
||||
if(!result){
|
||||
return Result.error("保存失败");
|
||||
}
|
||||
return Result.success("true","修改成功",personNoteEO);
|
||||
}
|
||||
|
||||
|
||||
/* @ApiOperation(value = "|PersonNoteEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("person:personNote:update")
|
||||
public ResponseMessage<PersonNoteEO> update(@RequestBody PersonNoteEO personNoteEO) throws Exception {
|
||||
personNoteEOService.updateByPrimaryKeySelective(personNoteEO);
|
||||
return Result.success(personNoteEO);
|
||||
}*/
|
||||
|
||||
@ApiOperation(value = "|PersonNoteEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
// @RequiresPermissions("person:personNote:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personNoteEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_NOTE where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //通过笔记的id和收藏id进行修改笔记内容
|
||||
* @Date 8:49 2018/9/28
|
||||
* @Param [personNoteEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "修改笔记")
|
||||
@PutMapping("/updateById")
|
||||
//@RequiresPermissions("person:personNote:updateByCollectId")
|
||||
public ResponseMessage<PersonNoteEO> updateByCollectId(PersonNoteEO personNoteEO) throws Exception {
|
||||
personNoteEOService.updateByCollectId(personNoteEO);
|
||||
return Result.success("true","修改成功",personNoteEO);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //通过传入的收藏表的id对笔记表进行查询
|
||||
* @Date 8:44 2018/9/28
|
||||
* @Param [collectId]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonNoteEO>
|
||||
**/
|
||||
@ApiOperation(value = "查询笔记")
|
||||
@GetMapping("/collectId")
|
||||
public ResponseMessage<List<PersonNoteEO>> queryByCollectId(PersonNoteEO personNoteEO) throws Exception {
|
||||
//获取当前登录人
|
||||
System.err.println("zzzzzzzz "+personNoteEO);
|
||||
List<PersonNoteEO> personNoteEO1 = personNoteEOService.queryByCollectId(personNoteEO);
|
||||
System.err.println("xxxxxxxx "+personNoteEO1);
|
||||
return Result.success(personNoteEO1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //根据用户id和笔记id删除
|
||||
* @Date 8:38 2018/9/28
|
||||
* @Param [personNoteEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "删除笔记")
|
||||
@PutMapping("/updatePersonNote")
|
||||
//@RequiresPermissions("person:personNote:updatePersonNote")
|
||||
public ResponseMessage<PersonNoteEO> updatePersonNote(PersonNoteEO personNoteEO) throws Exception {
|
||||
personNoteEOService.updateById(personNoteEO);
|
||||
return Result.success("true", "删除成功",personNoteEO);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //根据收藏的id插入笔记
|
||||
* @Date 21:15 2018/9/27
|
||||
* @Param [personNoteEO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "插入笔记")
|
||||
@PostMapping("/insertByCollectId")
|
||||
//@RequiresPermissions("person:personNote:insert")
|
||||
public ResponseMessage<PersonNoteEO> insert(PersonNoteEO personNoteEO) throws Exception {
|
||||
personNoteEO.setId(UUIDUtils.randomUUID20());
|
||||
personNoteEO.setUserId(LoginUserUtil.getUserId());
|
||||
personNoteEO.setCreartionTime(new Date());
|
||||
personNoteEO.setModifyTime(new Date());
|
||||
personNoteEO.setValidFlag(0);
|
||||
boolean result=personNoteEOService.save(personNoteEO);
|
||||
if(!result){
|
||||
return Result.error("添加失败");
|
||||
}
|
||||
return Result.success("true", "新增成功",personNoteEO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonSearchEO;
|
||||
import com.adc.da.person.page.PersonSearchEOPage;
|
||||
import com.adc.da.person.service.IPersonSearchEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personSearch")
|
||||
@Api(description = "|PersonSearchEO|")
|
||||
public class PersonSearchEOController extends BaseController<PersonSearchEO>{
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonSearchEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonSearchEOService personSearchEOService;
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personSearch:page")
|
||||
public ResponseMessage<PageInfo<PersonSearchEO>> page(PersonSearchEOPage page) throws Exception {
|
||||
List<PersonSearchEO> rows = personSearchEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personSearch:list")
|
||||
public ResponseMessage<List<PersonSearchEO>> list(PersonSearchEOPage page) throws Exception {
|
||||
return Result.success(personSearchEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personSearch:get")
|
||||
public ResponseMessage<PersonSearchEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personSearchEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personSearch:save")
|
||||
public ResponseMessage<PersonSearchEO> create(@RequestBody PersonSearchEO personSearchEO) throws Exception {
|
||||
personSearchEO.setId(UUIDUtils.randomUUID20());
|
||||
personSearchEO.setCreationTime(new Date());
|
||||
personSearchEO.setModifyTime(new Date());
|
||||
personSearchEOService.save(personSearchEO);
|
||||
return Result.success(personSearchEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//@RequiresPermissions("person:personSearch:update")
|
||||
public ResponseMessage<PersonSearchEO> update(@RequestBody PersonSearchEO personSearchEO) throws Exception {
|
||||
personSearchEOService.updateById(personSearchEO);
|
||||
return Result.success(personSearchEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonSearchEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:personSearch:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personSearchEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_SEARCH where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 查询各人检索记录
|
||||
* @param page
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonSearchEO|查询")
|
||||
@GetMapping("/selectPersonSearch")
|
||||
//@RequiresPermissions("person:personSearch:list")
|
||||
public ResponseMessage<List<PersonSearchEO>> selectPersonSearch(PersonSearchEOPage page) throws Exception {
|
||||
page.setUserId(LoginUserUtil.getUserId());
|
||||
page.setOrderBy("creation_time desc");
|
||||
page.setValidFlag("0");
|
||||
List<PersonSearchEO> result = personSearchEOService.queryByList(page);
|
||||
int i = 5;
|
||||
if(result.size()<5){
|
||||
i = result.size();
|
||||
}
|
||||
List<PersonSearchEO> newresult = result.subList(0,i);
|
||||
return Result.success(newresult);
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 删除或清空检索历史
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|PersonSearchEO|查询")
|
||||
@PostMapping("/deletePersonSearch")
|
||||
//@RequiresPermissions("person:personSearch:list")
|
||||
public ResponseMessage<List<String>> deletePersonSearch(String id,String type) throws Exception {
|
||||
List<String> idlist = new ArrayList<>();
|
||||
if(StringUtils.isNotEmpty(type) && type.equals("all")){
|
||||
// 清空当前登录人所有浏览记录
|
||||
PersonSearchEOPage personSearchEOPage = new PersonSearchEOPage();
|
||||
personSearchEOPage.setUserId(LoginUserUtil.getUserId());
|
||||
personSearchEOPage.setValidFlag("0");
|
||||
List<PersonSearchEO> resulist = personSearchEOService.queryByList(personSearchEOPage);
|
||||
for(int i=0;i<resulist.size();i++){
|
||||
idlist.add(resulist.get(i).getId());
|
||||
}
|
||||
} else {
|
||||
idlist.add(id);
|
||||
}
|
||||
PersonSearchEO personSearchEO = new PersonSearchEO();
|
||||
for(int i=0;i<idlist.size();i++){
|
||||
personSearchEO.setId(idlist.get(i));
|
||||
personSearchEO.setValidFlag(1);
|
||||
personSearchEO.setModifyTime(new Date());
|
||||
personSearchEOService.updateById(personSearchEO);
|
||||
}
|
||||
return Result.success(idlist);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
package com.adc.da.person.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.person.entity.PersonShareEO;
|
||||
import com.adc.da.person.page.PersonShareEOPage;
|
||||
import com.adc.da.person.service.IPersonShareEOService;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分享消息推送
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/personShare")
|
||||
@Api(description = "|PersonShareEO|")
|
||||
public class PersonShareEOController extends BaseController<PersonShareEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PersonShareEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IPersonShareEOService personShareEOService;
|
||||
|
||||
@Autowired
|
||||
private IUserEOService userEOService;
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|推送分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:personShare:page")
|
||||
public ResponseMessage<PageInfo<PersonShareEO>> page(PersonShareEOPage page) {
|
||||
page.setValidFlag("0");
|
||||
page.setRecipientId(LoginUserUtil.getUserId());
|
||||
List<PersonShareEO> rows = personShareEOService.queryByPage(page);
|
||||
//加载分享人名称到前台
|
||||
if (rows != null && rows.size() > 0) {
|
||||
for (PersonShareEO personShareEO : rows) {
|
||||
String userid = personShareEO.getShareUserId();
|
||||
UserEO user = userEOService.selectByPrimaryKey(userid);
|
||||
personShareEO.setShareUserId(user != null ? user.getUname() : null);
|
||||
}
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|转发分页查询")
|
||||
@GetMapping("/forwardPage")
|
||||
//@RequiresPermissions("person:personShare:page")
|
||||
public ResponseMessage<PageInfo<PersonShareEO>> forwardPage(PersonShareEOPage page) throws Exception {
|
||||
page.setFvalidFlag("0");
|
||||
page.setShareUserId(LoginUserUtil.getUserId());
|
||||
List<PersonShareEO> rows = personShareEOService.queryByPage(page);
|
||||
//加载转发人名称到前台
|
||||
if (rows != null && rows.size() > 0) {
|
||||
for (PersonShareEO personShareEO : rows) {
|
||||
String userid = personShareEO.getRecipientId();
|
||||
UserEO user = userEOService.selectByPrimaryKey(userid);
|
||||
personShareEO.setShareUserId(user != null ? user.getUname() : null);
|
||||
}
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:personShare:list")
|
||||
public ResponseMessage<List<PersonShareEO>> list(PersonShareEOPage page) throws Exception {
|
||||
return Result.success(personShareEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:personShare:get")
|
||||
public ResponseMessage<PersonShareEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(personShareEOService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 功能描述: 消息推送新增
|
||||
*
|
||||
* @param: [personShareEO]
|
||||
* @return: com.adc.da.util.http.ResponseMessage<com.adc.da.person.entity.PersonShareEO>
|
||||
* @auther: SYT
|
||||
* @date: 2018/10/15 14:00
|
||||
*/
|
||||
@ApiOperation(value = "|PersonShareEO|分享新增")
|
||||
@PostMapping("/savePersonShare")
|
||||
//@RequiresPermissions("person:personShare:create")
|
||||
public ResponseMessage<PersonShareEO> create(PersonShareEO personShareEO) throws Exception {
|
||||
|
||||
String[] split = personShareEO.getRecipientId().split(",");
|
||||
// 去掉重复选择的人
|
||||
List<String> idList = Arrays.asList(split);
|
||||
List<String> idListNew = new ArrayList<>();
|
||||
for (String id : idList) {
|
||||
if (!idListNew.contains(id)) {
|
||||
idListNew.add(id);
|
||||
}
|
||||
}
|
||||
for (String s : idListNew) {
|
||||
//前台传递的值 resType recipientId RES_ID RES_TITLE
|
||||
personShareEO.setRecipientId(s);
|
||||
personShareEO.setId(UUIDUtils.randomUUID20());
|
||||
personShareEO.setShareUserId(LoginUserUtil.getUserId());
|
||||
personShareEO.setValidFlag(0);
|
||||
personShareEO.setResUri("推送信息");
|
||||
personShareEO.setReadFlag(0);
|
||||
personShareEO.setModifyTime(new Date());
|
||||
personShareEO.setCreationTime(new Date());
|
||||
System.out.println(personShareEO);
|
||||
personShareEOService.save(personShareEO);
|
||||
}
|
||||
return Result.success(personShareEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|转发新增")
|
||||
@PostMapping("/savePersonForward")
|
||||
//@RequiresPermissions("person:personShare:create")
|
||||
public ResponseMessage<PersonShareEO> forwardCreate(PersonShareEO personShareEO) throws Exception {
|
||||
|
||||
String[] split = personShareEO.getRecipientId().split(",");
|
||||
// 去掉重复选择的人
|
||||
List<String> idList = Arrays.asList(split);
|
||||
List<String> idListNew = new ArrayList<>();
|
||||
for (String id : idList) {
|
||||
if (!idListNew.contains(id)) {
|
||||
idListNew.add(id);
|
||||
}
|
||||
}
|
||||
for (String s : idListNew) {
|
||||
//前台传递的值 resType recipientId RES_ID RES_TITLE
|
||||
personShareEO.setRecipientId(s);
|
||||
personShareEO.setId(UUIDUtils.randomUUID20());
|
||||
personShareEO.setShareUserId(LoginUserUtil.getUserId());
|
||||
personShareEO.setFvalidFlag(0);
|
||||
personShareEO.setResUri("转发消息");
|
||||
personShareEO.setReadFlag(0);
|
||||
personShareEO.setModifyTime(new Date());
|
||||
personShareEO.setCreationTime(new Date());
|
||||
System.out.println(personShareEO);
|
||||
personShareEOService.save(personShareEO);
|
||||
}
|
||||
return Result.success(personShareEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|修改")
|
||||
@PostMapping("/updateReadFlag")
|
||||
//@RequiresPermissions("person:personShare:update")
|
||||
public ResponseMessage<PersonShareEO> updateReadFlag(@RequestBody PersonShareEO personShareEO) throws Exception {
|
||||
personShareEO.setReadFlag(1);
|
||||
personShareEOService.updateById(personShareEO);
|
||||
return Result.success(personShareEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|PersonShareEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:personShare:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
personShareEOService.removeById(id);
|
||||
logger.info("delete from TS_PERSON_SHARE where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "批量删除")
|
||||
@PostMapping("/deleteByIdList")
|
||||
public ResponseMessage deleteByIdList(String ids){
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
personShareEOService.deleteByIdList(idList);
|
||||
return Result.success("200","删除成功",true);
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "转发批量删除")
|
||||
@PostMapping("/deleteByIdListForward")
|
||||
public ResponseMessage deleteByIdListForward(String ids){
|
||||
try {
|
||||
String arr[] = ids.split(",");
|
||||
List<String> idList = Arrays.asList(arr);
|
||||
personShareEOService.deleteByIdListForward(idList);
|
||||
return Result.success("200","删除成功",true);
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("400","删除失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonCollectEO;
|
||||
import com.adc.da.person.page.PersonCollectEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_COLLECT PersonCollectEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonCollectEODao extends BaseMapper<PersonCollectEO> {
|
||||
|
||||
List<PersonCollectEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonCollectEO> queryByPage(BasePage page);
|
||||
|
||||
public List<PersonCollectEO> queryByPersonCollectPage(PersonCollectEOPage page);
|
||||
|
||||
int queryByPersonCollectPageCount(PersonCollectEOPage page);
|
||||
|
||||
int deleteByIdList(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonConfEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_CONF PersonConfEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonConfEODao extends BaseMapper<PersonConfEO> {
|
||||
|
||||
List<PersonConfEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonConfEO> queryByPage(BasePage page);
|
||||
|
||||
// List<PersonConfEO> updateById();
|
||||
// List<PersonConfEO> deleteByIdList(String ids);
|
||||
|
||||
// List<PersonConfEO> insertByList(PersonConfEO personConfEO);
|
||||
// public void insertSelective(@Param("Id"));
|
||||
|
||||
List<PersonConfEO> insert1(PersonConfEO personConfEO);
|
||||
|
||||
List<PersonConfEO> selectByUserid(String userId);
|
||||
|
||||
int updateConfByUserIdModuleCode(PersonConfEO personConfEO);
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonCookiesEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_COOKIES PersonCookiesEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonCookiesEODao extends BaseMapper<PersonCookiesEO> {
|
||||
|
||||
List<PersonCookiesEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonCookiesEO> queryByPage(BasePage page);
|
||||
|
||||
List<PersonCookiesEO> queryByCookieType(String cookieType);
|
||||
|
||||
List<PersonCookiesEO> queryByUserId(String userId);
|
||||
|
||||
int updateByUserId(PersonCookiesEO personCookiesEO);
|
||||
|
||||
public void update(String id);
|
||||
|
||||
|
||||
//删除我的浏览所有记录
|
||||
public void updateByAll(PersonCookiesEO personCookiesEO);
|
||||
|
||||
//liwenxuan:标准法规被查阅次数:国内标准
|
||||
List<String> MonthlyNumberOfDomesticStandards(@Param("visitTime") Date visitTime, @Param("cookieType") String cookieType);
|
||||
|
||||
|
||||
//liwenxuan:数据报表的系统用户访问数量
|
||||
int sysUserVisitCount(Date visitTime);
|
||||
/**
|
||||
*
|
||||
* 功能描述:
|
||||
*
|
||||
* @param: 当前时间
|
||||
* @return: 动态信息访问量top10
|
||||
* @auther: bayulei
|
||||
* @date: 2018/10/11 20:40
|
||||
*/
|
||||
ArrayList<String> selectMsgConsultNumber(Date date);
|
||||
|
||||
int countPageCookie(PersonCookiesEO personCookiesEO);
|
||||
|
||||
int deleteByIdList(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.person.page.PersonMsgEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_MSG PersonMsgEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonMsgEODao extends BaseMapper<PersonMsgEO> {
|
||||
|
||||
List<PersonMsgEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonMsgEO> queryByPage(BasePage page);
|
||||
|
||||
public PersonMsgEO selectByInfoId(String id);
|
||||
|
||||
public int selectByNotRed(PersonMsgEOPage page);
|
||||
|
||||
void deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
void deletePersonMsgByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
int markIsReadByBatch(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonNoteEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_NOTE PersonNoteEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonNoteEODao extends BaseMapper<PersonNoteEO> {
|
||||
|
||||
List<PersonNoteEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonNoteEO> queryByPage(BasePage page);
|
||||
|
||||
Integer updateByCollectId(PersonNoteEO personNoteEO);
|
||||
|
||||
List<PersonNoteEO> queryByCollectId(PersonNoteEO personNoteEO);
|
||||
|
||||
int update(PersonNoteEO personNoteEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonSearchEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_SEARCH PersonSearchEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonSearchEODao extends BaseMapper<PersonSearchEO> {
|
||||
|
||||
List<PersonSearchEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonSearchEO> queryByPage(BasePage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.person.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonShareEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_SHARE PersonShareEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface PersonShareEODao extends BaseMapper<PersonShareEO> {
|
||||
|
||||
List<PersonShareEO> queryByList(BasePage page);
|
||||
|
||||
int queryByCount(BasePage var1);
|
||||
|
||||
List<PersonShareEO> queryByPage(BasePage page);
|
||||
|
||||
void deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
void deleteByIdListForward(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_COLLECT PersonCollectEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonCollectEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String collectResId;
|
||||
private String collectInfoUri;
|
||||
private String collectTitle;
|
||||
private String collectType;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
//追加字段
|
||||
private List<PersonNoteEO> noteList = new ArrayList<>();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>collectResId -> collect_res_id</li>
|
||||
* <li>collectInfoUri -> collect_info_uri</li>
|
||||
* <li>collectTitle -> collect_title</li>
|
||||
* <li>collectType -> collect_type</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "collectResId": return "collect_res_id";
|
||||
case "collectInfoUri": return "collect_info_uri";
|
||||
case "collectTitle": return "collect_title";
|
||||
case "collectType": return "collect_type";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
case "noteContent": return "noteContent";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>collect_res_id -> collectResId</li>
|
||||
* <li>collect_info_uri -> collectInfoUri</li>
|
||||
* <li>collect_title -> collectTitle</li>
|
||||
* <li>collect_type -> collectType</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "collect_res_id": return "collectResId";
|
||||
case "collect_info_uri": return "collectInfoUri";
|
||||
case "collect_title": return "collectTitle";
|
||||
case "collect_type": return "collectType";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
case "noteContent": return "noteContent";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCollectResId() {
|
||||
return this.collectResId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCollectResId(String collectResId) {
|
||||
this.collectResId = collectResId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCollectInfoUri() {
|
||||
return this.collectInfoUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCollectInfoUri(String collectInfoUri) {
|
||||
this.collectInfoUri = collectInfoUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCollectTitle() {
|
||||
return this.collectTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCollectTitle(String collectTitle) {
|
||||
this.collectTitle = collectTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCollectType() {
|
||||
return this.collectType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCollectType(String collectType) {
|
||||
this.collectType = collectType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<PersonNoteEO> getNoteList() {
|
||||
return noteList;
|
||||
}
|
||||
|
||||
public void setNoteList(List<PersonNoteEO> noteList) {
|
||||
this.noteList = noteList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PersonCollectEO{" +
|
||||
"modifyTime=" + modifyTime +
|
||||
", creationTime=" + creationTime +
|
||||
", validFlag=" + validFlag +
|
||||
", collectResId='" + collectResId + '\'' +
|
||||
", collectInfoUri='" + collectInfoUri + '\'' +
|
||||
", collectTitle='" + collectTitle + '\'' +
|
||||
", collectType='" + collectType + '\'' +
|
||||
", userId='" + userId + '\'' +
|
||||
", id='" + id + '\'' +
|
||||
", noteList=" + noteList +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_CONF PersonConfEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonConfEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer displaySeq;
|
||||
private String moduleCode;
|
||||
private String moduleName;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
* <li>moduleCode -> module_code</li>
|
||||
* <li>moduleName -> module_name</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "displaySeq": return "display_seq";
|
||||
case "moduleCode": return "module_code";
|
||||
case "moduleName": return "module_name";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
* <li>module_code -> moduleCode</li>
|
||||
* <li>module_name -> moduleName</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "display_seq": return "displaySeq";
|
||||
case "module_code": return "moduleCode";
|
||||
case "module_name": return "moduleName";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Integer displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModuleCode() {
|
||||
return this.moduleCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModuleCode(String moduleCode) {
|
||||
this.moduleCode = moduleCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModuleName() {
|
||||
return this.moduleName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_COOKIES PersonCookiesEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonCookiesEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String resUri;
|
||||
private String resId;
|
||||
private String resTitle;
|
||||
private String cookieType;
|
||||
private String userId;
|
||||
private String id;
|
||||
//新增字段
|
||||
private String resCount;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>resUri -> res_uri</li>
|
||||
* <li>resId -> res_id</li>
|
||||
* <li>resTitle -> res_title</li>
|
||||
* <li>cookieType -> cookie_type</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "resUri": return "res_uri";
|
||||
case "resId": return "res_id";
|
||||
case "resTitle": return "res_title";
|
||||
case "cookieType": return "cookie_type";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>res_uri -> resUri</li>
|
||||
* <li>res_id -> resId</li>
|
||||
* <li>res_title -> resTitle</li>
|
||||
* <li>cookie_type -> cookieType</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "res_uri": return "resUri";
|
||||
case "res_id": return "resId";
|
||||
case "res_title": return "resTitle";
|
||||
case "cookie_type": return "cookieType";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResUri() {
|
||||
return this.resUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResUri(String resUri) {
|
||||
this.resUri = resUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResTitle() {
|
||||
return this.resTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResTitle(String resTitle) {
|
||||
this.resTitle = resTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCookieType() {
|
||||
return this.cookieType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCookieType(String cookieType) {
|
||||
this.cookieType = cookieType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getResCount() {
|
||||
return resCount;
|
||||
}
|
||||
|
||||
public void setResCount(String resCount) {
|
||||
this.resCount = resCount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_MSG PersonMsgEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonMsgEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer readFlag;
|
||||
private String msgContent;
|
||||
private String msgTitle;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
// 发送预警判断是否出现在产品中时使用
|
||||
private String warningId;
|
||||
private String warningType;
|
||||
|
||||
// 与流程相关,流程编号
|
||||
private String processnum;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>readFlag -> read_flag</li>
|
||||
* <li>msgContent -> msg_content</li>
|
||||
* <li>msgTitle -> msg_title</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "readFlag": return "read_flag";
|
||||
case "msgContent": return "msg_content";
|
||||
case "msgTitle": return "msg_title";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>read_flag -> readFlag</li>
|
||||
* <li>msg_content -> msgContent</li>
|
||||
* <li>msg_title -> msgTitle</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "read_flag": return "readFlag";
|
||||
case "msg_content": return "msgContent";
|
||||
case "msg_title": return "msgTitle";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReadFlag(Integer readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMsgContent() {
|
||||
return this.msgContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMsgContent(String msgContent) {
|
||||
this.msgContent = msgContent;
|
||||
}
|
||||
|
||||
public String getMsgTitle() {
|
||||
return msgTitle;
|
||||
}
|
||||
|
||||
public void setMsgTitle(String msgTitle) {
|
||||
this.msgTitle = msgTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getWarningId() {
|
||||
return warningId;
|
||||
}
|
||||
|
||||
public void setWarningId(String warningId) {
|
||||
this.warningId = warningId;
|
||||
}
|
||||
|
||||
public String getWarningType() {
|
||||
return warningType;
|
||||
}
|
||||
|
||||
public void setWarningType(String warningType) {
|
||||
this.warningType = warningType;
|
||||
}
|
||||
|
||||
public String getProcessnum() {
|
||||
return processnum;
|
||||
}
|
||||
|
||||
public void setProcessnum(String processnum) {
|
||||
this.processnum = processnum;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_NOTE PersonNoteEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonNoteEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creartionTime;
|
||||
private Integer validFlag;
|
||||
private String noteContent;
|
||||
private String resType;
|
||||
private String resId;
|
||||
private String collectId;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creartionTime -> creartion_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>noteContent -> note_content</li>
|
||||
* <li>resType -> res_type</li>
|
||||
* <li>resId -> res_id</li>
|
||||
* <li>collectId -> collect_id</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creartionTime": return "creartion_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "noteContent": return "note_content";
|
||||
case "resType": return "res_type";
|
||||
case "resId": return "res_id";
|
||||
case "collectId": return "collect_id";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creartion_time -> creartionTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>note_content -> noteContent</li>
|
||||
* <li>res_type -> resType</li>
|
||||
* <li>res_id -> resId</li>
|
||||
* <li>collect_id -> collectId</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creartion_time": return "creartionTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "note_content": return "noteContent";
|
||||
case "res_type": return "resType";
|
||||
case "res_id": return "resId";
|
||||
case "collect_id": return "collectId";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreartionTime() {
|
||||
return this.creartionTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreartionTime(Date creartionTime) {
|
||||
this.creartionTime = creartionTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getNoteContent() {
|
||||
return noteContent;
|
||||
}
|
||||
|
||||
public void setNoteContent(String noteContent) {
|
||||
this.noteContent = noteContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResType() {
|
||||
return this.resType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCollectId() {
|
||||
return this.collectId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PersonNoteEO{" +
|
||||
"modifyTime=" + modifyTime +
|
||||
", creartionTime=" + creartionTime +
|
||||
", validFlag=" + validFlag +
|
||||
", noteContent='" + noteContent + '\'' +
|
||||
", resType='" + resType + '\'' +
|
||||
", resId='" + resId + '\'' +
|
||||
", collectId='" + collectId + '\'' +
|
||||
", userId='" + userId + '\'' +
|
||||
", id='" + id + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_SEARCH PersonSearchEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonSearchEO extends BaseEntity {
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String searchContent;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>searchContent -> search_content</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "searchContent": return "search_content";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>search_content -> searchContent</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "search_content": return "searchContent";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSearchContent() {
|
||||
return this.searchContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSearchContent(String searchContent) {
|
||||
this.searchContent = searchContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
package com.adc.da.person.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_SHARE PersonShareEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonShareEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer fvalidFlag;
|
||||
private Integer readFlag;
|
||||
private String resTitle;
|
||||
private String resUri;
|
||||
private String resId;
|
||||
|
||||
private String resType;
|
||||
private String shareUserId;
|
||||
private String recipientId;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>readFlag -> read_flag</li>
|
||||
* <li>resTitle -> res_title</li>
|
||||
* <li>resUri -> res_uri</li>
|
||||
* <li>resId -> res_id</li>
|
||||
* <li>resType -> res_type</li>
|
||||
* <li>shareUserId -> share_user_id</li>
|
||||
* <li>recipientId -> recipient_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "readFlag": return "read_flag";
|
||||
case "resTitle": return "res_title";
|
||||
case "resUri": return "res_uri";
|
||||
case "resId": return "res_id";
|
||||
case "resType": return "res_type";
|
||||
case "shareUserId": return "share_user_id";
|
||||
case "recipientId": return "recipient_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>read_flag -> readFlag</li>
|
||||
* <li>res_title -> resTitle</li>
|
||||
* <li>res_uri -> resUri</li>
|
||||
* <li>res_id -> resId</li>
|
||||
* <li>res_type -> resType</li>
|
||||
* <li>share_user_id -> shareUserId</li>
|
||||
* <li>recipient_id -> recipientId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "read_flag": return "readFlag";
|
||||
case "res_title": return "resTitle";
|
||||
case "res_uri": return "resUri";
|
||||
case "res_id": return "resId";
|
||||
case "res_type": return "resType";
|
||||
case "share_user_id": return "shareUserId";
|
||||
case "recipient_id": return "recipientId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReadFlag(Integer readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResTitle() {
|
||||
return this.resTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResTitle(String resTitle) {
|
||||
this.resTitle = resTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResUri() {
|
||||
return this.resUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResUri(String resUri) {
|
||||
this.resUri = resUri;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResType() {
|
||||
return this.resType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getShareUserId() {
|
||||
return this.shareUserId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setShareUserId(String shareUserId) {
|
||||
this.shareUserId = shareUserId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRecipientId() {
|
||||
return this.recipientId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRecipientId(String recipientId) {
|
||||
this.recipientId = recipientId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getFvalidFlag() {
|
||||
return fvalidFlag;
|
||||
}
|
||||
|
||||
public void setFvalidFlag(Integer fvalidFlag) {
|
||||
this.fvalidFlag = fvalidFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PersonShareEO{" +
|
||||
"modifyTime=" + modifyTime +
|
||||
", creationTime=" + creationTime +
|
||||
", validFlag=" + validFlag +
|
||||
", fvalidFlag=" + fvalidFlag +
|
||||
", readFlag=" + readFlag +
|
||||
", resTitle='" + resTitle + '\'' +
|
||||
", resUri='" + resUri + '\'' +
|
||||
", resId='" + resId + '\'' +
|
||||
", resType='" + resType + '\'' +
|
||||
", shareUserId='" + shareUserId + '\'' +
|
||||
", recipientId='" + recipientId + '\'' +
|
||||
", id='" + id + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_COLLECT PersonCollectEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonCollectEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "LIKE";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "LIKE";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String collectResId;
|
||||
private String collectResIdOperator = "LIKE";
|
||||
private String collectInfoUri;
|
||||
private String collectInfoUriOperator = "LIKE";
|
||||
private String collectTitle;
|
||||
private String collectTitleOperator = "LIKE";
|
||||
private String collectType;
|
||||
private String collectTypeOperator = "LIKE";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "LIKE";
|
||||
|
||||
private List<String> collectTypeList = new ArrayList<>();
|
||||
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCollectResId() {
|
||||
return this.collectResId;
|
||||
}
|
||||
|
||||
public void setCollectResId(String collectResId) {
|
||||
this.collectResId = collectResId;
|
||||
}
|
||||
|
||||
public String getCollectResIdOperator() {
|
||||
return this.collectResIdOperator;
|
||||
}
|
||||
|
||||
public void setCollectResIdOperator(String collectResIdOperator) {
|
||||
this.collectResIdOperator = collectResIdOperator;
|
||||
}
|
||||
|
||||
public String getCollectInfoUri() {
|
||||
return this.collectInfoUri;
|
||||
}
|
||||
|
||||
public void setCollectInfoUri(String collectInfoUri) {
|
||||
this.collectInfoUri = collectInfoUri;
|
||||
}
|
||||
|
||||
public String getCollectInfoUriOperator() {
|
||||
return this.collectInfoUriOperator;
|
||||
}
|
||||
|
||||
public void setCollectInfoUriOperator(String collectInfoUriOperator) {
|
||||
this.collectInfoUriOperator = collectInfoUriOperator;
|
||||
}
|
||||
|
||||
public String getCollectTitle() {
|
||||
return this.collectTitle;
|
||||
}
|
||||
|
||||
public void setCollectTitle(String collectTitle) {
|
||||
this.collectTitle = collectTitle;
|
||||
}
|
||||
|
||||
public String getCollectTitleOperator() {
|
||||
return this.collectTitleOperator;
|
||||
}
|
||||
|
||||
public void setCollectTitleOperator(String collectTitleOperator) {
|
||||
this.collectTitleOperator = collectTitleOperator;
|
||||
}
|
||||
|
||||
public String getCollectType() {
|
||||
return this.collectType;
|
||||
}
|
||||
|
||||
public void setCollectType(String collectType) {
|
||||
this.collectType = collectType;
|
||||
}
|
||||
|
||||
public String getCollectTypeOperator() {
|
||||
return this.collectTypeOperator;
|
||||
}
|
||||
|
||||
public void setCollectTypeOperator(String collectTypeOperator) {
|
||||
this.collectTypeOperator = collectTypeOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public List<String> getCollectTypeList() {
|
||||
return collectTypeList;
|
||||
}
|
||||
|
||||
public void setCollectTypeList(List<String> collectTypeList) {
|
||||
this.collectTypeList = collectTypeList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_CONF PersonConfEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonConfEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
private String moduleCode;
|
||||
private String moduleCodeOperator = "=";
|
||||
private String moduleName;
|
||||
private String moduleNameOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
public void setDisplaySeq(String displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String getDisplaySeqOperator() {
|
||||
return this.displaySeqOperator;
|
||||
}
|
||||
|
||||
public void setDisplaySeqOperator(String displaySeqOperator) {
|
||||
this.displaySeqOperator = displaySeqOperator;
|
||||
}
|
||||
|
||||
public String getModuleCode() {
|
||||
return this.moduleCode;
|
||||
}
|
||||
|
||||
public void setModuleCode(String moduleCode) {
|
||||
this.moduleCode = moduleCode;
|
||||
}
|
||||
|
||||
public String getModuleCodeOperator() {
|
||||
return this.moduleCodeOperator;
|
||||
}
|
||||
|
||||
public void setModuleCodeOperator(String moduleCodeOperator) {
|
||||
this.moduleCodeOperator = moduleCodeOperator;
|
||||
}
|
||||
|
||||
public String getModuleName() {
|
||||
return this.moduleName;
|
||||
}
|
||||
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName;
|
||||
}
|
||||
|
||||
public String getModuleNameOperator() {
|
||||
return this.moduleNameOperator;
|
||||
}
|
||||
|
||||
public void setModuleNameOperator(String moduleNameOperator) {
|
||||
this.moduleNameOperator = moduleNameOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_COOKIES PersonCookiesEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonCookiesEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String resUri;
|
||||
private String resUriOperator = "=";
|
||||
private String resId;
|
||||
private String resIdOperator = "=";
|
||||
private String resTitle;
|
||||
private String resTitleOperator = "=";
|
||||
private String cookieType;
|
||||
private String cookieTypeOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getResUri() {
|
||||
return this.resUri;
|
||||
}
|
||||
|
||||
public void setResUri(String resUri) {
|
||||
this.resUri = resUri;
|
||||
}
|
||||
|
||||
public String getResUriOperator() {
|
||||
return this.resUriOperator;
|
||||
}
|
||||
|
||||
public void setResUriOperator(String resUriOperator) {
|
||||
this.resUriOperator = resUriOperator;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getResIdOperator() {
|
||||
return this.resIdOperator;
|
||||
}
|
||||
|
||||
public void setResIdOperator(String resIdOperator) {
|
||||
this.resIdOperator = resIdOperator;
|
||||
}
|
||||
|
||||
public String getResTitle() {
|
||||
return this.resTitle;
|
||||
}
|
||||
|
||||
public void setResTitle(String resTitle) {
|
||||
this.resTitle = resTitle;
|
||||
}
|
||||
|
||||
public String getResTitleOperator() {
|
||||
return this.resTitleOperator;
|
||||
}
|
||||
|
||||
public void setResTitleOperator(String resTitleOperator) {
|
||||
this.resTitleOperator = resTitleOperator;
|
||||
}
|
||||
|
||||
public String getCookieType() {
|
||||
return this.cookieType;
|
||||
}
|
||||
|
||||
public void setCookieType(String cookieType) {
|
||||
this.cookieType = cookieType;
|
||||
}
|
||||
|
||||
public String getCookieTypeOperator() {
|
||||
return this.cookieTypeOperator;
|
||||
}
|
||||
|
||||
public void setCookieTypeOperator(String cookieTypeOperator) {
|
||||
this.cookieTypeOperator = cookieTypeOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_MSG PersonMsgEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonMsgEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "LIKE";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "LIKE";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String readFlag;
|
||||
private String readFlagOperator = "LIKE";
|
||||
private String msgContent;
|
||||
private String msgContentOperator = "LIKE";
|
||||
private String msgTitle;
|
||||
private String msgTitleOperator = "LIKE";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "LIKE";
|
||||
|
||||
private String processnum;
|
||||
private String processnumOperator = "=";
|
||||
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
public void setReadFlag(String readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
public String getReadFlagOperator() {
|
||||
return this.readFlagOperator;
|
||||
}
|
||||
|
||||
public void setReadFlagOperator(String readFlagOperator) {
|
||||
this.readFlagOperator = readFlagOperator;
|
||||
}
|
||||
|
||||
public String getMsgContent() {
|
||||
return this.msgContent;
|
||||
}
|
||||
|
||||
public void setMsgContent(String msgContent) {
|
||||
this.msgContent = msgContent;
|
||||
}
|
||||
|
||||
public String getMsgContentOperator() {
|
||||
return this.msgContentOperator;
|
||||
}
|
||||
|
||||
public void setMsgContentOperator(String msgContentOperator) {
|
||||
this.msgContentOperator = msgContentOperator;
|
||||
}
|
||||
|
||||
public String getMsgTitle() {
|
||||
return this.msgTitle;
|
||||
}
|
||||
|
||||
public void setMsgTitle(String msgTitle) {
|
||||
this.msgTitle = msgTitle;
|
||||
}
|
||||
|
||||
public String getMsgTitleOperator() {
|
||||
return this.msgTitleOperator;
|
||||
}
|
||||
|
||||
public void setMsgTitleOperator(String msgTitleOperator) {
|
||||
this.msgTitleOperator = msgTitleOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getProcessnum() {
|
||||
return processnum;
|
||||
}
|
||||
|
||||
public void setProcessnum(String processnum) {
|
||||
this.processnum = processnum;
|
||||
}
|
||||
|
||||
public String getProcessnumOperator() {
|
||||
return processnumOperator;
|
||||
}
|
||||
|
||||
public void setProcessnumOperator(String processnumOperator) {
|
||||
this.processnumOperator = processnumOperator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_NOTE PersonNoteEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonNoteEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creartionTime;
|
||||
private String creartionTime1;
|
||||
private String creartionTime2;
|
||||
private String creartionTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String noteContent;
|
||||
private String noteContentOperator = "=";
|
||||
private String resType;
|
||||
private String resTypeOperator = "=";
|
||||
private String resId;
|
||||
private String resIdOperator = "=";
|
||||
private String collectId;
|
||||
private String collectIdOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreartionTime() {
|
||||
return this.creartionTime;
|
||||
}
|
||||
|
||||
public void setCreartionTime(String creartionTime) {
|
||||
this.creartionTime = creartionTime;
|
||||
}
|
||||
|
||||
public String getCreartionTime1() {
|
||||
return this.creartionTime1;
|
||||
}
|
||||
|
||||
public void setCreartionTime1(String creartionTime1) {
|
||||
this.creartionTime1 = creartionTime1;
|
||||
}
|
||||
|
||||
public String getCreartionTime2() {
|
||||
return this.creartionTime2;
|
||||
}
|
||||
|
||||
public void setCreartionTime2(String creartionTime2) {
|
||||
this.creartionTime2 = creartionTime2;
|
||||
}
|
||||
|
||||
public String getCreartionTimeOperator() {
|
||||
return this.creartionTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreartionTimeOperator(String creartionTimeOperator) {
|
||||
this.creartionTimeOperator = creartionTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getNoteContent() {
|
||||
return this.noteContent;
|
||||
}
|
||||
|
||||
public void setNoteContent(String noteContent) {
|
||||
this.noteContent = noteContent;
|
||||
}
|
||||
|
||||
public String getNoteContentOperator() {
|
||||
return this.noteContentOperator;
|
||||
}
|
||||
|
||||
public void setNoteContentOperator(String noteContentOperator) {
|
||||
this.noteContentOperator = noteContentOperator;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return this.resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getResTypeOperator() {
|
||||
return this.resTypeOperator;
|
||||
}
|
||||
|
||||
public void setResTypeOperator(String resTypeOperator) {
|
||||
this.resTypeOperator = resTypeOperator;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getResIdOperator() {
|
||||
return this.resIdOperator;
|
||||
}
|
||||
|
||||
public void setResIdOperator(String resIdOperator) {
|
||||
this.resIdOperator = resIdOperator;
|
||||
}
|
||||
|
||||
public String getCollectId() {
|
||||
return this.collectId;
|
||||
}
|
||||
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
public String getCollectIdOperator() {
|
||||
return this.collectIdOperator;
|
||||
}
|
||||
|
||||
public void setCollectIdOperator(String collectIdOperator) {
|
||||
this.collectIdOperator = collectIdOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_SEARCH PersonSearchEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonSearchEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "LIKE";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "LIKE";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "LIKE";
|
||||
private String searchContent;
|
||||
private String searchContentOperator = "LIKE";
|
||||
private String userId;
|
||||
private String userIdOperator = "LIKE";
|
||||
private String id;
|
||||
private String idOperator = "LIKE";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getSearchContent() {
|
||||
return this.searchContent;
|
||||
}
|
||||
|
||||
public void setSearchContent(String searchContent) {
|
||||
this.searchContent = searchContent;
|
||||
}
|
||||
|
||||
public String getSearchContentOperator() {
|
||||
return this.searchContentOperator;
|
||||
}
|
||||
|
||||
public void setSearchContentOperator(String searchContentOperator) {
|
||||
this.searchContentOperator = searchContentOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,265 @@
|
||||
package com.adc.da.person.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_SHARE PersonShareEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonShareEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "LIKE";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "LIKE";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String fvalidFlag;
|
||||
private String fvalidFlagOperator = "=";
|
||||
private String readFlag;
|
||||
private String readFlagOperator = "LIKE";
|
||||
private String resTitle;
|
||||
private String resTitleOperator = "LIKE";
|
||||
private String resUri;
|
||||
private String resUriOperator = "LIKE";
|
||||
private String resId;
|
||||
private String resIdOperator = "LIKE";
|
||||
private String resType;
|
||||
private String resTypeOperator = "LIKE";
|
||||
private String shareUserId;
|
||||
private String shareUserIdOperator = "LIKE";
|
||||
private String recipientId;
|
||||
private String recipientIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "LIKE";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
public void setReadFlag(String readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
public String getReadFlagOperator() {
|
||||
return this.readFlagOperator;
|
||||
}
|
||||
|
||||
public void setReadFlagOperator(String readFlagOperator) {
|
||||
this.readFlagOperator = readFlagOperator;
|
||||
}
|
||||
|
||||
public String getResTitle() {
|
||||
return this.resTitle;
|
||||
}
|
||||
|
||||
public void setResTitle(String resTitle) {
|
||||
this.resTitle = resTitle;
|
||||
}
|
||||
|
||||
public String getResTitleOperator() {
|
||||
return this.resTitleOperator;
|
||||
}
|
||||
|
||||
public void setResTitleOperator(String resTitleOperator) {
|
||||
this.resTitleOperator = resTitleOperator;
|
||||
}
|
||||
|
||||
public String getResUri() {
|
||||
return this.resUri;
|
||||
}
|
||||
|
||||
public void setResUri(String resUri) {
|
||||
this.resUri = resUri;
|
||||
}
|
||||
|
||||
public String getResUriOperator() {
|
||||
return this.resUriOperator;
|
||||
}
|
||||
|
||||
public void setResUriOperator(String resUriOperator) {
|
||||
this.resUriOperator = resUriOperator;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getResIdOperator() {
|
||||
return this.resIdOperator;
|
||||
}
|
||||
|
||||
public void setResIdOperator(String resIdOperator) {
|
||||
this.resIdOperator = resIdOperator;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return this.resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getResTypeOperator() {
|
||||
return this.resTypeOperator;
|
||||
}
|
||||
|
||||
public void setResTypeOperator(String resTypeOperator) {
|
||||
this.resTypeOperator = resTypeOperator;
|
||||
}
|
||||
|
||||
public String getShareUserId() {
|
||||
return this.shareUserId;
|
||||
}
|
||||
|
||||
public void setShareUserId(String shareUserId) {
|
||||
this.shareUserId = shareUserId;
|
||||
}
|
||||
|
||||
public String getShareUserIdOperator() {
|
||||
return this.shareUserIdOperator;
|
||||
}
|
||||
|
||||
public void setShareUserIdOperator(String shareUserIdOperator) {
|
||||
this.shareUserIdOperator = shareUserIdOperator;
|
||||
}
|
||||
|
||||
public String getRecipientId() {
|
||||
return this.recipientId;
|
||||
}
|
||||
|
||||
public void setRecipientId(String recipientId) {
|
||||
this.recipientId = recipientId;
|
||||
}
|
||||
|
||||
public String getRecipientIdOperator() {
|
||||
return this.recipientIdOperator;
|
||||
}
|
||||
|
||||
public void setRecipientIdOperator(String recipientIdOperator) {
|
||||
this.recipientIdOperator = recipientIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getFvalidFlag() {
|
||||
return fvalidFlag;
|
||||
}
|
||||
|
||||
public void setFvalidFlag(String fvalidFlag) {
|
||||
this.fvalidFlag = fvalidFlag;
|
||||
}
|
||||
|
||||
public String getFvalidFlagOperator() {
|
||||
return fvalidFlagOperator;
|
||||
}
|
||||
|
||||
public void setFvalidFlagOperator(String fvalidFlagOperator) {
|
||||
this.fvalidFlagOperator = fvalidFlagOperator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonCollectEO;
|
||||
import com.adc.da.person.page.PersonCollectEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonCollectEOService extends IService<PersonCollectEO> {
|
||||
|
||||
public List<PersonCollectEO> queryByPage(PersonCollectEOPage page);
|
||||
|
||||
public List<PersonCollectEO> queryByList(PersonCollectEOPage page);
|
||||
|
||||
public List<PersonCollectEO> queryByPersonCollectPage(PersonCollectEOPage page);
|
||||
|
||||
public String queryCollectByUserAndId(String collectResId);
|
||||
|
||||
public int deleteByIdList(List<String> idList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonConfEO;
|
||||
import com.adc.da.person.page.PersonConfEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IPersonConfEOService extends IService<PersonConfEO> {
|
||||
|
||||
public List<PersonConfEO> queryByPage(PersonConfEOPage page);
|
||||
|
||||
public List<PersonConfEO> queryByList(PersonConfEOPage page);
|
||||
|
||||
public PersonConfEO saveBean(PersonConfEO personConfEO);
|
||||
|
||||
public PersonConfEO insert1(PersonConfEO personConfEO );
|
||||
|
||||
public List<HashMap> selectByUserid(String userId);
|
||||
|
||||
public Map selectPersonConfByUserid(String userId);
|
||||
|
||||
public String[] updatePersonConfList(String[] kes,String userId);
|
||||
|
||||
public List<PersonConfEO> saveConfList(String userId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonCookiesEO;
|
||||
import com.adc.da.person.page.PersonCookiesEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonCookiesEOService extends IService<PersonCookiesEO> {
|
||||
|
||||
public List<PersonCookiesEO> queryByPage(PersonCookiesEOPage page);
|
||||
|
||||
public List<PersonCookiesEO> queryByList(PersonCookiesEOPage page);
|
||||
|
||||
|
||||
public PersonCookiesEO saveBean(PersonCookiesEO personCookiesEO);
|
||||
|
||||
public void delete(String id);
|
||||
|
||||
public List<PersonCookiesEO> queryByCookieType(String cookieType);
|
||||
|
||||
public List<PersonCookiesEO> queryByUserId(String userId);
|
||||
|
||||
|
||||
public int updateByUserId(PersonCookiesEO personCookiesEO);
|
||||
|
||||
public void updateByAll(PersonCookiesEO personCookiesEO);
|
||||
|
||||
public int countPageCookie(PersonCookiesEO personCookiesEO);
|
||||
|
||||
public int deleteByIdList(List<String> idList);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.person.page.PersonMsgEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonMsgEOService extends IService<PersonMsgEO> {
|
||||
|
||||
public List<PersonMsgEO> queryByPage(PersonMsgEOPage page);
|
||||
|
||||
public List<PersonMsgEO> queryByList(PersonMsgEOPage page);
|
||||
|
||||
public PersonMsgEO selectByInfoId(String id);
|
||||
|
||||
public int selectByNotRed(PersonMsgEOPage page);
|
||||
|
||||
public void deleteByIdList(List<String> idList);
|
||||
|
||||
public void deletePersonMsgByIdList(List<String> idList);
|
||||
|
||||
public int markIsReadByBatch(List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonNoteEO;
|
||||
import com.adc.da.person.page.PersonNoteEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonNoteEOService extends IService<PersonNoteEO> {
|
||||
|
||||
|
||||
public List<PersonNoteEO> queryByPage(PersonNoteEOPage page);
|
||||
|
||||
public List<PersonNoteEO> queryByList(PersonNoteEOPage page);
|
||||
|
||||
public PersonNoteEO saveBean(PersonNoteEO personNoteEO);
|
||||
|
||||
public void updateBeanById(PersonNoteEO personNoteEO);
|
||||
|
||||
public void delete(String id);
|
||||
|
||||
public Integer updateByCollectId(PersonNoteEO personNoteEO);
|
||||
|
||||
public List<PersonNoteEO> queryByCollectId(PersonNoteEO personNoteEO);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.person.entity.PersonSearchEO;
|
||||
import com.adc.da.person.page.PersonSearchEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonSearchEOService extends IService<PersonSearchEO> {
|
||||
|
||||
public List<PersonSearchEO> queryByPage(PersonSearchEOPage page);
|
||||
|
||||
public List<PersonSearchEO> queryByList(PersonSearchEOPage page);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.adc.da.person.service;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonShareEO;
|
||||
import com.adc.da.person.page.PersonShareEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IPersonShareEOService extends IService<PersonShareEO> {
|
||||
|
||||
public List<PersonShareEO> queryByPage(PersonShareEOPage page);
|
||||
|
||||
public int queryByCount(BasePage page);
|
||||
|
||||
public List<PersonShareEO> queryByList(PersonShareEOPage page);
|
||||
|
||||
public void deleteByIdList(List<String> idList);
|
||||
|
||||
public void deleteByIdListForward(List<String> idList);
|
||||
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonCollectEODao;
|
||||
import com.adc.da.person.dao.PersonNoteEODao;
|
||||
import com.adc.da.person.entity.PersonCollectEO;
|
||||
import com.adc.da.person.entity.PersonNoteEO;
|
||||
import com.adc.da.person.page.PersonCollectEOPage;
|
||||
import com.adc.da.person.service.IPersonCollectEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_COLLECT PersonCollectEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personCollectEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonCollectEOServiceImpl extends ServiceImpl<PersonCollectEODao, PersonCollectEO> implements IPersonCollectEOService {
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private PersonNoteEODao personNoteEODao;
|
||||
|
||||
|
||||
@Override
|
||||
public List<PersonCollectEO> queryByPage(PersonCollectEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonCollectEO> queryByList(PersonCollectEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
public List<PersonCollectEO> queryByPersonCollectPage(PersonCollectEOPage page){
|
||||
page.setValidFlag("0");
|
||||
int ire = this.baseMapper.queryByPersonCollectPageCount(page);
|
||||
page.getPager().setRowCount(ire);
|
||||
List<PersonCollectEO> list = this.baseMapper.queryByPersonCollectPage(page);
|
||||
for(int i =0;i<list.size();i++){
|
||||
PersonNoteEO personNoteEO = new PersonNoteEO();
|
||||
personNoteEO.setCollectId(list.get(i).getId());
|
||||
List<PersonNoteEO> notelist = personNoteEODao.queryByCollectId(personNoteEO);
|
||||
list.get(i).setNoteList(notelist);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 根据当前登录人及资源id查询收藏信息
|
||||
* Date 2018/10/12 14:31
|
||||
* @Param [collectResId]
|
||||
* @return com.adc.da.person.entity.PersonCollectEO
|
||||
**/
|
||||
public String queryCollectByUserAndId(String collectResId) {
|
||||
PersonCollectEOPage page = new PersonCollectEOPage();
|
||||
String userId = LoginUserUtil.getUserId();
|
||||
page.setCollectResId(collectResId);
|
||||
page.setUserId(userId);
|
||||
page.setValidFlag("0");
|
||||
List<PersonCollectEO> getCollects = this.baseMapper.queryByList(page);
|
||||
String collectId = "";
|
||||
if(getCollects != null){
|
||||
if(getCollects.size()>0){
|
||||
collectId = getCollects.get(0).getId();
|
||||
}
|
||||
}
|
||||
return collectId;
|
||||
}
|
||||
|
||||
public int deleteByIdList(List<String> idList){
|
||||
return this.baseMapper.deleteByIdList(idList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonConfEODao;
|
||||
import com.adc.da.person.entity.PersonConfEO;
|
||||
import com.adc.da.person.page.PersonConfEOPage;
|
||||
import com.adc.da.person.service.IPersonConfEOService;
|
||||
import com.adc.da.sys.constant.PersonModelEnum;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_CONF PersonConfEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personConfEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonConfEOServiceImpl extends ServiceImpl<PersonConfEODao, PersonConfEO> implements IPersonConfEOService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<PersonConfEO> queryByPage(PersonConfEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonConfEO> queryByList(PersonConfEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
public PersonConfEO saveBean(PersonConfEO personConfEO){
|
||||
personConfEO.setCreationTime(new Date());
|
||||
personConfEO.setModifyTime(new Date());
|
||||
this.baseMapper.insert(personConfEO);
|
||||
return personConfEO;
|
||||
}
|
||||
|
||||
public PersonConfEO insert1(PersonConfEO personConfEO ){
|
||||
if(personConfEO!=null){
|
||||
this.baseMapper.insert(personConfEO);
|
||||
}
|
||||
return personConfEO;
|
||||
}
|
||||
|
||||
// public List<PersonConfEO> insertByList(PersonConfEO personConfEO){
|
||||
// if(CollectionUtils.isNotEmpty(personConfEO.)){
|
||||
// dao.updateByPrimaryKeySelective(personConfEO.getId());
|
||||
// for(){
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// return dao.insertByList(personConfEO);
|
||||
// }
|
||||
|
||||
|
||||
// public void updateById(PersonConfEO personConfEO){
|
||||
// personConfEO.setCreationTime(new Date());
|
||||
// personConfEO.setModifyTime(new Date());
|
||||
// dao.updateById(personConfEO);
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
// public List<PersonConfEO> selectByDisplay(){
|
||||
// return dao.selectByDisplay();
|
||||
// }
|
||||
|
||||
|
||||
// public List<PersonConfEO> deleteByIdList(String ids){
|
||||
// return dao.deleteByIdList(ids);
|
||||
// }
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
*/
|
||||
public List<HashMap> selectByUserid(String userId){
|
||||
List<PersonConfEO> list = this.baseMapper.selectByUserid(userId);
|
||||
List<HashMap> listresult = new ArrayList<>();
|
||||
for(int i=0;i<list.size();i++){
|
||||
HashMap map = new HashMap();
|
||||
map.put("title",list.get(i).getModuleName());
|
||||
map.put("path",getPath(list.get(i).getModuleCode()).get("path"));
|
||||
listresult.add(map);
|
||||
}
|
||||
return listresult;
|
||||
}
|
||||
|
||||
public Map selectPersonConfByUserid(String userId){
|
||||
List<Map> alllist = new ArrayList<>();
|
||||
for(PersonModelEnum type : PersonModelEnum.values()) {
|
||||
HashMap map = new HashMap();
|
||||
map.put("label",type.getLable());
|
||||
map.put("key",type.getValue());
|
||||
if(type.getValue().equals(PersonModelEnum.PLATE.getValue())){
|
||||
map.put("disabled",true);
|
||||
} else {
|
||||
map.put("disabled",false);
|
||||
}
|
||||
alllist.add(map);
|
||||
}
|
||||
List<String> listresult = new ArrayList<>();
|
||||
List<PersonConfEO> list = this.baseMapper.selectByUserid(userId);
|
||||
for(int i=0;i<list.size();i++){
|
||||
listresult.add(list.get(i).getModuleCode());
|
||||
}
|
||||
Map result = new HashMap();
|
||||
result.put("targetKeys",listresult);
|
||||
result.put("data",alllist);
|
||||
return result;
|
||||
}
|
||||
|
||||
Map<String,String> getPath(String code){
|
||||
String result = "";
|
||||
String name = "";
|
||||
if(code.equals(PersonModelEnum.COLLECT.getValue())){
|
||||
result= PersonModelEnum.COLLECT.getPath();
|
||||
name = PersonModelEnum.COLLECT.getLable();
|
||||
} else if(code.equals(PersonModelEnum.COOKIES.getValue())){
|
||||
result= PersonModelEnum.COOKIES.getPath();
|
||||
name = PersonModelEnum.COOKIES.getLable();
|
||||
}else if(code.equals(PersonModelEnum.MSG.getValue())){
|
||||
result= PersonModelEnum.MSG.getPath();
|
||||
name = PersonModelEnum.MSG.getLable();
|
||||
}else if(code.equals(PersonModelEnum.SHARE.getValue())){
|
||||
result= PersonModelEnum.SHARE.getPath();
|
||||
name = PersonModelEnum.SHARE.getLable();
|
||||
}else if(code.equals(PersonModelEnum.FEEDBACK.getValue())){
|
||||
result= PersonModelEnum.FEEDBACK.getPath();
|
||||
name = PersonModelEnum.FEEDBACK.getLable();
|
||||
}else if(code.equals(PersonModelEnum.INFO.getValue())){
|
||||
result= PersonModelEnum.INFO.getPath();
|
||||
name = PersonModelEnum.INFO.getLable();
|
||||
}else if(code.equals(PersonModelEnum.PLATE.getValue())){
|
||||
result= PersonModelEnum.PLATE.getPath();
|
||||
name = PersonModelEnum.PLATE.getLable();
|
||||
}
|
||||
Map map = new HashMap();
|
||||
map.put("name",name);
|
||||
map.put("path",result);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan 个人登录后,个人板块修改
|
||||
* @param kes
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
public String[] updatePersonConfList(String[] kes,String userId){
|
||||
PersonConfEO personConfEO = new PersonConfEO();
|
||||
List<String > alllist = new ArrayList<>();
|
||||
for(PersonModelEnum type : PersonModelEnum.values()) {
|
||||
alllist.add(type.getValue());
|
||||
}
|
||||
for(int i=0;i<kes.length;i++){
|
||||
personConfEO.setModifyTime(new Date());
|
||||
personConfEO.setDisplaySeq(i);
|
||||
personConfEO.setValidFlag(0);
|
||||
personConfEO.setUserId(userId);
|
||||
personConfEO.setModuleCode(kes[i]);
|
||||
alllist.remove(kes[i]);
|
||||
this.baseMapper.updateConfByUserIdModuleCode(personConfEO);
|
||||
}
|
||||
for(int i=0;i<alllist.size();i++){
|
||||
personConfEO.setModifyTime(new Date());
|
||||
personConfEO.setDisplaySeq(i);
|
||||
personConfEO.setValidFlag(1);
|
||||
personConfEO.setUserId(userId);
|
||||
personConfEO.setModuleCode(alllist.get(i));
|
||||
this.baseMapper.updateConfByUserIdModuleCode(personConfEO);
|
||||
}
|
||||
return kes;
|
||||
}
|
||||
|
||||
/**
|
||||
* gaoyan
|
||||
* 新增
|
||||
* @return
|
||||
*/
|
||||
public List<PersonConfEO> saveConfList(String userId){
|
||||
List<PersonConfEO> list = new ArrayList<>();
|
||||
int i=0;
|
||||
for(PersonModelEnum type : PersonModelEnum.values()) {
|
||||
PersonConfEO personConfEO = new PersonConfEO();
|
||||
personConfEO.setId(UUIDUtils.randomUUID20());
|
||||
personConfEO.setUserId(userId);
|
||||
personConfEO.setValidFlag(0);
|
||||
personConfEO.setModuleCode(type.getValue());
|
||||
personConfEO.setModuleName(type.getLable());
|
||||
personConfEO.setDisplaySeq(i++);
|
||||
personConfEO.setModifyTime(new Date());
|
||||
personConfEO.setCreationTime(new Date());
|
||||
this.baseMapper.insert(personConfEO);
|
||||
list.add(personConfEO);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonCookiesEODao;
|
||||
import com.adc.da.person.entity.PersonCookiesEO;
|
||||
import com.adc.da.person.page.PersonCookiesEOPage;
|
||||
import com.adc.da.person.service.IPersonCookiesEOService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_COOKIES PersonCookiesEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personCookiesEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonCookiesEOServiceImpl extends ServiceImpl<PersonCookiesEODao, PersonCookiesEO> implements IPersonCookiesEOService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<PersonCookiesEO> queryByPage(PersonCookiesEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonCookiesEO> queryByList(PersonCookiesEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
public PersonCookiesEO saveBean(PersonCookiesEO personCookiesEO){
|
||||
personCookiesEO.setCreationTime(new Date());
|
||||
personCookiesEO.setModifyTime(new Date());
|
||||
this.baseMapper.insert(personCookiesEO);
|
||||
return personCookiesEO;
|
||||
}
|
||||
|
||||
//删除个人浏览记录
|
||||
public void delete(String id){
|
||||
this.baseMapper.deleteById(id);
|
||||
}
|
||||
|
||||
// public void updateById(PersonCookiesEO personCookiesEO){
|
||||
// personCookiesEO.setCreationTime(new Date());
|
||||
// personCookiesEO.setModifyTime(new Date());
|
||||
// dao.updateByPrimaryKeySelective(personCookiesEO);
|
||||
// }
|
||||
|
||||
|
||||
public List<PersonCookiesEO> queryByCookieType(String cookieType){
|
||||
return this.baseMapper.queryByCookieType(cookieType);
|
||||
}
|
||||
|
||||
public List<PersonCookiesEO> queryByUserId(String userId){
|
||||
return this.baseMapper.queryByUserId(userId);
|
||||
}
|
||||
|
||||
public int updateByUserId(PersonCookiesEO personCookiesEO){
|
||||
return this.baseMapper.updateByUserId(personCookiesEO);
|
||||
}
|
||||
|
||||
//删除我的浏览所有记录
|
||||
public void updateByAll(PersonCookiesEO personCookiesEO){
|
||||
this.baseMapper.updateByAll(personCookiesEO);
|
||||
}
|
||||
|
||||
public int countPageCookie(PersonCookiesEO personCookiesEO){
|
||||
return this.baseMapper.countPageCookie(personCookiesEO);
|
||||
}
|
||||
|
||||
public int deleteByIdList(List<String> idList){
|
||||
return this.baseMapper.deleteByIdList(idList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonMsgEODao;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.person.page.PersonMsgEOPage;
|
||||
import com.adc.da.person.service.IPersonMsgEOService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_MSG PersonMsgEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personMsgEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonMsgEOServiceImpl extends ServiceImpl<PersonMsgEODao, PersonMsgEO> implements IPersonMsgEOService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<PersonMsgEO> queryByPage(PersonMsgEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonMsgEO> queryByList(PersonMsgEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
public PersonMsgEO selectByInfoId(String id){
|
||||
return this.baseMapper.selectByInfoId(id);
|
||||
}
|
||||
|
||||
//查询未读动态
|
||||
public int selectByNotRed(PersonMsgEOPage page){
|
||||
return this.baseMapper.selectByNotRed(page);
|
||||
}
|
||||
|
||||
public void deleteByIdList(List<String> idList){
|
||||
this.baseMapper.deleteByIdList(idList);
|
||||
}
|
||||
|
||||
public void deletePersonMsgByIdList(List<String> idList) {
|
||||
this.baseMapper.deletePersonMsgByIdList(idList);
|
||||
}
|
||||
|
||||
public int markIsReadByBatch(List<String> idList){
|
||||
return this.baseMapper.markIsReadByBatch(idList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonNoteEODao;
|
||||
import com.adc.da.person.entity.PersonNoteEO;
|
||||
import com.adc.da.person.page.PersonNoteEOPage;
|
||||
import com.adc.da.person.service.IPersonNoteEOService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_NOTE PersonNoteEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personNoteEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonNoteEOServiceImpl extends ServiceImpl<PersonNoteEODao, PersonNoteEO> implements IPersonNoteEOService {
|
||||
|
||||
@Override
|
||||
public List<PersonNoteEO> queryByPage(PersonNoteEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonNoteEO> queryByList(PersonNoteEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
//刘寅楠
|
||||
public PersonNoteEO saveBean(PersonNoteEO personNoteEO) {
|
||||
personNoteEO.setCreartionTime(new Date());
|
||||
personNoteEO.setModifyTime(new Date());
|
||||
this.baseMapper.insert(personNoteEO);
|
||||
return personNoteEO;
|
||||
}
|
||||
|
||||
|
||||
public void updateBeanById(PersonNoteEO personNoteEO) {
|
||||
personNoteEO.setCreartionTime(new Date());
|
||||
personNoteEO.setModifyTime(new Date());
|
||||
this.baseMapper.updateById(personNoteEO);
|
||||
}
|
||||
|
||||
|
||||
public void delete(String id) {
|
||||
this.baseMapper.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
public Integer updateByCollectId(PersonNoteEO personNoteEO) {
|
||||
personNoteEO.setModifyTime(new Date());
|
||||
return this.baseMapper.updateByCollectId(personNoteEO);
|
||||
}
|
||||
|
||||
|
||||
public List<PersonNoteEO> queryByCollectId(PersonNoteEO personNoteEO) {
|
||||
|
||||
return this.baseMapper.queryByCollectId(personNoteEO);
|
||||
}
|
||||
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonSearchEODao;
|
||||
import com.adc.da.person.entity.PersonSearchEO;
|
||||
import com.adc.da.person.page.PersonSearchEOPage;
|
||||
import com.adc.da.person.service.IPersonSearchEOService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_SEARCH PersonSearchEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personSearchEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonSearchEOServiceImpl extends ServiceImpl<PersonSearchEODao, PersonSearchEO> implements IPersonSearchEOService {
|
||||
|
||||
@Override
|
||||
public List<PersonSearchEO> queryByPage(PersonSearchEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonSearchEO> queryByList(PersonSearchEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.person.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.dao.PersonShareEODao;
|
||||
import com.adc.da.person.entity.PersonShareEO;
|
||||
import com.adc.da.person.page.PersonShareEOPage;
|
||||
import com.adc.da.person.service.IPersonShareEOService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>TS_PERSON_SHARE PersonShareEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("personShareEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class PersonShareEOServiceImpl extends ServiceImpl<PersonShareEODao, PersonShareEO> implements IPersonShareEOService {
|
||||
|
||||
@Override
|
||||
public List<PersonShareEO> queryByPage(PersonShareEOPage page) {
|
||||
Integer rowCount = this.queryByCount(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
return this.baseMapper.queryByPage(page);
|
||||
}
|
||||
|
||||
public int queryByCount(BasePage page) {
|
||||
return this.baseMapper.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PersonShareEO> queryByList(PersonShareEOPage page) {
|
||||
return this.baseMapper.queryByList(page);
|
||||
}
|
||||
|
||||
public void deleteByIdList(List<String> idList){
|
||||
this.baseMapper.deleteByIdList(idList);
|
||||
}
|
||||
|
||||
public void deleteByIdListForward(List<String> idList){
|
||||
this.baseMapper.deleteByIdListForward(idList);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum IsBelongEnum {
|
||||
BELONG(1, "属于");
|
||||
|
||||
private int value;
|
||||
private String label;
|
||||
|
||||
IsBelongEnum(int value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum PersonModelEnum {
|
||||
|
||||
INFO("INFO","个人信息","/info"),
|
||||
PLATE("PLATE","个人板块","/plate"),
|
||||
MSG("MSG","我的动态","/dynamics"),
|
||||
COLLECT("COLLECT","我的收藏","/collection"),
|
||||
SHARE("SHARE","我的推送","/push"),
|
||||
COOKIES("COOKIES","我的浏览","/browsing"),
|
||||
FEEDBACK("FEEDBACK","意见反馈","/feedback");
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
private String path;
|
||||
|
||||
private PersonModelEnum(String value, String lable, String path) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
this.path = path;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
public String getPath() { return path;}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.adc.da.sys.constant;
|
||||
|
||||
public enum UserSourceEnum {
|
||||
|
||||
SSO_USER("SSO","SSO用户"),LOCAL_USER("LOCAL","本地用户");
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
private UserSourceEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.FeedbackInfoEO;
|
||||
import com.adc.da.sys.page.FeedbackInfoEOPage;
|
||||
import com.adc.da.sys.service.IFeedbackInfoEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
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 org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/feedbackInfo")
|
||||
@Api(description = "|FeedbackInfoEO|")
|
||||
public class FeedbackInfoEOController extends BaseController<FeedbackInfoEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(FeedbackInfoEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IFeedbackInfoEOService feedbackInfoEOService;
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|意见反馈分页查找")
|
||||
@GetMapping("/page")
|
||||
/*@RequiresPermissions("sys:feedbackInfo:page")*/
|
||||
public ResponseMessage<PageInfo<FeedbackInfoEO>> page(FeedbackInfoEOPage page) throws Exception {
|
||||
List<FeedbackInfoEO> rows = feedbackInfoEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|当前登录人意见反馈分页查找")
|
||||
@GetMapping("/pageSelf")
|
||||
public ResponseMessage<PageInfo<FeedbackInfoEO>> pageSelf(FeedbackInfoEOPage page) throws Exception {
|
||||
String selfId = LoginUserUtil.getUserId();
|
||||
page.setSelfId(selfId);
|
||||
List<FeedbackInfoEO> rows = feedbackInfoEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|查询")
|
||||
@GetMapping("")
|
||||
// @RequiresPermissions("sys:feedbackInfo:list")
|
||||
public ResponseMessage<List<FeedbackInfoEO>> list(FeedbackInfoEOPage page) {
|
||||
return Result.success(feedbackInfoEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:feedbackInfo:get")
|
||||
public ResponseMessage<FeedbackInfoEO> find(@PathVariable String id) {
|
||||
return Result.success(feedbackInfoEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:feedbackInfo:create")
|
||||
public ResponseMessage<FeedbackInfoEO> create(@RequestBody FeedbackInfoEO feedbackInfoEO) throws Exception {
|
||||
feedbackInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
feedbackInfoEO.setCreationTime(new Date());
|
||||
feedbackInfoEO.setModifyTime(new Date());
|
||||
feedbackInfoEOService.save(feedbackInfoEO);
|
||||
return Result.success(feedbackInfoEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|FeedbackInfoEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("sys:feedbackInfo:update")
|
||||
public ResponseMessage<FeedbackInfoEO> update(@RequestBody FeedbackInfoEO feedbackInfoEO) throws Exception {
|
||||
feedbackInfoEOService.updateById(feedbackInfoEO);
|
||||
return Result.success(feedbackInfoEO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 功能描述:
|
||||
*
|
||||
* @auther: renxu
|
||||
* @date: 2018/12/6 13:57
|
||||
*/
|
||||
@ApiOperation(value = "|FeedbackInfoEO|删除")
|
||||
@DeleteMapping("/del")
|
||||
// @RequiresPermissions("sys:feedbackInfo:delete")
|
||||
public ResponseMessage delete(String id) throws Exception {
|
||||
feedbackInfoEOService.removeById(id);
|
||||
return Result.success("1","删除成功",1);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* 功能描述: 调用更新接口批量删除
|
||||
*
|
||||
* @auther: renxu
|
||||
* @date: 2018/12/6 13:57
|
||||
*/
|
||||
@ApiOperation(value = "|SarTestItemEO|删除多条数据")
|
||||
@DeleteMapping("/deleteArr")
|
||||
// @RequiresPermissions("sys:feedbackInfo:deleteArr")
|
||||
public ResponseMessage deleteArr(String ids) {
|
||||
FeedbackInfoEOPage page = new FeedbackInfoEOPage();
|
||||
page.setIdlist(ids.split(","));
|
||||
feedbackInfoEOService.deleteByPrimaryKeyList(page);
|
||||
return Result.success("1", "删除成功", 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "保存功能")
|
||||
@PostMapping("/save")
|
||||
// @RequiresPermissions("sys:feedbackInfo:save")
|
||||
public ResponseMessage<FeedbackInfoEO> insertFeedbackInfo(FeedbackInfoEO feedBackInfo) throws Exception {
|
||||
String userId = LoginUserUtil.getUserId();
|
||||
FeedbackInfoEO feedbackInfoEO = new FeedbackInfoEO();
|
||||
feedbackInfoEO.setUserId(userId);
|
||||
feedbackInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
feedbackInfoEO.setFeedbackInfo(feedBackInfo.getFeedbackInfo());
|
||||
feedbackInfoEO.setValidFlag(0);
|
||||
feedbackInfoEO.setModifyTime(new Date());
|
||||
feedbackInfoEO.setCreationTime(new Date());
|
||||
feedbackInfoEO.setContentText(feedBackInfo.getContentText());
|
||||
boolean result = feedbackInfoEOService.save(feedbackInfoEO);
|
||||
if(!result){
|
||||
return Result.error("保存失败");
|
||||
}
|
||||
return Result.success("true", "提交成功",feedbackInfoEO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.LinkInfoEO;
|
||||
import com.adc.da.sys.page.LinkInfoEOPage;
|
||||
import com.adc.da.sys.service.ILinkInfoEOService;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/linkInfo")
|
||||
@Api(description = "|LinkInfoEO|")
|
||||
public class LinkInfoEOController extends BaseController<LinkInfoEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(LinkInfoEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ILinkInfoEOService linkInfoEOService;
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
// @RequiresPermissions("sys:linkInfo:page")
|
||||
public ResponseMessage<PageInfo<LinkInfoEO>> page(LinkInfoEOPage page) throws Exception {
|
||||
page.setOrderBy("display_seq asc,id");
|
||||
List<LinkInfoEO> rows = linkInfoEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|查询")
|
||||
@GetMapping("/getLinkList")
|
||||
// @RequiresPermissions("sys:linkInfo:list")
|
||||
public ResponseMessage<List<LinkInfoEO>> list(LinkInfoEOPage page) throws Exception {
|
||||
page.setOrderBy("display_seq asc,id");
|
||||
List<LinkInfoEO> getList = linkInfoEOService.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for (LinkInfoEO linkInfoEO : getList) {
|
||||
if (StringUtils.isEmpty(linkInfoEO.getNewWebSite())) {
|
||||
linkInfoEO.setNewWebSite(linkInfoEO.getOldWebSite());
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("sys:linkInfo:get")
|
||||
public ResponseMessage<LinkInfoEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(linkInfoEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|新增")
|
||||
@PostMapping("/addLinkInfo")
|
||||
// @RequiresPermissions("sys:linkInfo:save")
|
||||
public ResponseMessage<LinkInfoEO> create(@RequestBody LinkInfoEO linkInfoEO) throws Exception {
|
||||
linkInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
linkInfoEO.setValidFlag(0);
|
||||
linkInfoEO.setCreationTime(new Date());
|
||||
linkInfoEO.setModifyTime(new Date());
|
||||
linkInfoEOService.save(linkInfoEO);
|
||||
return Result.success("0","新增成功",linkInfoEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|修改")
|
||||
@PutMapping("updateLinkInfo")
|
||||
// @RequiresPermissions("sys:linkInfo:update")
|
||||
public ResponseMessage<LinkInfoEO> update(@RequestBody LinkInfoEO linkInfoEO) throws Exception {
|
||||
linkInfoEO.setModifyTime(new Date());
|
||||
linkInfoEOService.updateById(linkInfoEO);
|
||||
return Result.success("0","修改成功",linkInfoEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("sys:linkInfo:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
linkInfoEOService.removeById(id);
|
||||
logger.info("delete from TS_LINK_INFO where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|LinkInfoEO|批量删除")
|
||||
@PutMapping("deleteLinkInfo")
|
||||
// @RequiresPermissions("sys:linkInfo:update")
|
||||
public ResponseMessage deleteLinkInfo(String ids) throws Exception {
|
||||
if (StringUtils.isNotEmpty(ids)) {
|
||||
String[] idArr = ids.split(",");
|
||||
List<String> idList = Arrays.asList(idArr);
|
||||
linkInfoEOService.deleteByIds(idList);
|
||||
return Result.success("0","删除成功",null);
|
||||
} else {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.sys.service.ILoginInfoEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Auther: renxu
|
||||
* @Date: 2018/10/25 20:47
|
||||
* @Description:
|
||||
*/
|
||||
@RestController
|
||||
@Api(description="LoginInfoEO")
|
||||
@RequestMapping("/${restPath}/sys/loginInfoEO")
|
||||
public class LoginInfoEOController {
|
||||
@Autowired
|
||||
ILoginInfoEOService loginInfoEOService;
|
||||
|
||||
@ApiOperation(value = "|Login|计数")
|
||||
@GetMapping("/count")
|
||||
public int count(){
|
||||
|
||||
return loginInfoEOService.count();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.MenuEO;
|
||||
import com.adc.da.sys.page.MenuEOPage;
|
||||
import com.adc.da.sys.service.IMenuEOService;
|
||||
import com.adc.da.sys.vo.MenuVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/menu")
|
||||
@Api(description = "菜单管理")
|
||||
public class MenuEOController extends BaseController<MenuEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MenuEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IMenuEOService menuEOService;
|
||||
|
||||
|
||||
@ApiOperation(value = "|MenuEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:menu:get")
|
||||
public ResponseMessage<MenuVO> find(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
return Result.success(BeanUtil.toBean(menuEOService.getById(id), MenuVO.class));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("sys:menu:save")
|
||||
public ResponseMessage<MenuVO> create(@RequestBody MenuVO menuVO) throws Exception {
|
||||
MenuEO menuEO = menuEOService.insertMenu(BeanUtil.toBean(menuVO,MenuEO.class));
|
||||
return Result.success(BeanUtil.toBean(menuEO,MenuVO.class));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|列表 --> 角色对应的菜单")
|
||||
@GetMapping
|
||||
/*@RequiresPermissions("sys:menu:list")*/
|
||||
public ResponseMessage<List<MenuVO>> list(String roleId) {
|
||||
List<MenuVO> menuVOs=new ArrayList<>();
|
||||
List<MenuEO> menuEOS = menuEOService.findAll();
|
||||
if(menuEOS!=null && !menuEOS.isEmpty()){
|
||||
for(MenuEO source:menuEOS){
|
||||
menuVOs.add(BeanUtil.toBean(source,MenuVO.class));
|
||||
}
|
||||
}
|
||||
if(roleId != null && !"".equals(roleId)){
|
||||
for (MenuVO menuVO: menuVOs) {
|
||||
if(menuEOService.isBelong(roleId, menuVO.getId())){
|
||||
// 这个字段已经修改
|
||||
// menuVO.setBelong(IsBelongEnum.BELONG.getValue());
|
||||
menuVO.setChecked(true);
|
||||
}else{
|
||||
menuVO.setChecked(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(menuVOs);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("sys:menu:update")
|
||||
public ResponseMessage<MenuVO> update(@RequestBody MenuVO menuVO) throws Exception {
|
||||
menuEOService.updateMenu(menuVO);
|
||||
return Result.success(menuVO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|删除")
|
||||
@DeleteMapping("/{ids}")
|
||||
// @RequiresPermissions("sys:menu:delete")
|
||||
public ResponseMessage delete(@NotNull @PathVariable("ids") String[] ids) throws Exception {
|
||||
menuEOService.delete(ids);
|
||||
logger.info("log===>delete from TS_MENU where ids = {}", ids);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "用户菜单列表|MenuEO|")
|
||||
@GetMapping("/listMenuByUserId/{userId}")
|
||||
// @RequiresPermissions("sys:menu:listMenuByUserId")
|
||||
public ResponseMessage<List<MenuVO>> listMenuByUserId(@NotNull @PathVariable("userId") String userId) {
|
||||
List<MenuVO> resultList=new ArrayList<>();
|
||||
List<MenuEO> menuEOS = menuEOService.listMenuEOByUserId(userId);
|
||||
if(menuEOS!=null && !menuEOS.isEmpty()){
|
||||
for(MenuEO source:menuEOS){
|
||||
resultList.add(BeanUtil.toBean(source,MenuVO.class));
|
||||
}
|
||||
}
|
||||
return Result.success(resultList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|MenuEO|查询全部权限菜单")
|
||||
@GetMapping("/listAllMenu")
|
||||
/*@RequiresPermissions("sys:menu:list")*/
|
||||
public ResponseMessage<List<MenuEO>> listAllMenu(MenuEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
page.setOrderBy("is_show,id");
|
||||
List<MenuEO> getList = menuEOService.queryByAllMenu(page);
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|新增")
|
||||
@PostMapping("/addMenu")
|
||||
public ResponseMessage<MenuEO> addMenu(MenuEO menuEO) throws Exception {
|
||||
return Result.success("0","新增成功",menuEOService.creatMenu(menuEO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|修改")
|
||||
@PutMapping("/updateMenu")
|
||||
public ResponseMessage<MenuEO> updateMenu(MenuEO menuEO) throws Exception {
|
||||
menuEO.setModifyTime(new Date());
|
||||
boolean countUpdate = menuEOService.updateById(menuEO);
|
||||
if(countUpdate){
|
||||
return Result.success("0","修改成功",menuEO);
|
||||
} else {
|
||||
return Result.error("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|删除")
|
||||
@PutMapping("/deleteMenuById")
|
||||
/*@RequiresPermissions("lawss:sarMenu:delete")*/
|
||||
public ResponseMessage deleteMenuById(String id) throws Exception {
|
||||
MenuEO menuEO = new MenuEO();
|
||||
menuEO.setId(id);
|
||||
menuEO.setValidFlag(1);
|
||||
boolean countSuc = menuEOService.updateById(menuEO);
|
||||
if (countSuc) {
|
||||
return Result.success("0","删除成功",menuEO);
|
||||
} else {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|MenuEO|判断是否包含子节点")
|
||||
@GetMapping("/judgeContentChild")
|
||||
/*@RequiresPermissions("sys:menu:list")*/
|
||||
public ResponseMessage<List<MenuEO>> judgeContentChild(String id) throws Exception {
|
||||
MenuEOPage page = new MenuEOPage();
|
||||
page.setParentId(id);
|
||||
page.setValidFlag("0");
|
||||
List<MenuEO> getList = menuEOService.queryByAllMenu(page);
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,352 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.OrgEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.OrgEOPage;
|
||||
import com.adc.da.sys.service.IOrgEOService;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
import com.adc.da.sys.vo.OrgVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/org")
|
||||
@Api(description = "组织机构管理")
|
||||
public class OrgEORestController extends BaseController<OrgEO> {
|
||||
private static final Logger logger = LoggerFactory.getLogger(OrgEORestController.class);
|
||||
|
||||
@Autowired
|
||||
private IOrgEOService orgEOService;
|
||||
@Autowired
|
||||
private IUserEOService userEOService;
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 需求可能会变成分页查找+模糊查找(根据类型/用户名称/角色名称/用户状态)
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [orgName]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.sys.vo.OrgVO>>
|
||||
**/
|
||||
@ApiOperation(value = "组织机构列表|OrgEO|")
|
||||
@GetMapping("/listOrgByOrgName")
|
||||
// @RequiresPermissions("sys:org:listMenuByUserId")
|
||||
public ResponseMessage<List<OrgVO>> listOrgByOrgName(String orgName) {
|
||||
List<OrgEO> orgEOS = orgEOService.listOrgEOByOrgName(orgName);
|
||||
List<OrgVO> result =new ArrayList<>();
|
||||
if(orgEOS!=null && !orgEOS.isEmpty()){
|
||||
for(OrgEO source:orgEOS){
|
||||
result.add(BeanUtil.toBean(source,OrgVO.class));
|
||||
}
|
||||
}
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 新增组织机构(入参:部门名称+部门简介+部门表述(不必须填写))
|
||||
* 注:判斷條件在前台設置
|
||||
* 1.判断部门简称不能为空,不能已经存在
|
||||
* 2.先判断返回对象不为空,然后在进行判断shotname
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [orgVO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.OrgVO>
|
||||
**/
|
||||
@SuppressWarnings("unchecked")
|
||||
@ApiOperation(value = "|OrgEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:org:create")
|
||||
public ResponseMessage<OrgVO> create(@RequestBody OrgVO orgVO) throws Exception {
|
||||
|
||||
return orgEOService.saveBean(BeanUtil.toBean(orgVO,OrgEO.class));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 修改组织机构(前台需要传入id)
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [orgVO]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.OrgVO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:org:update")
|
||||
public ResponseMessage<OrgVO> update(@RequestBody OrgVO orgVO) throws Exception {
|
||||
|
||||
return orgEOService.updateBeanById(BeanUtil.toBean(orgVO,OrgEO.class));
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //详情,根据id查询组织机构
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.OrgVO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:org:get")
|
||||
public ResponseMessage<OrgVO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
OrgVO orgVO = BeanUtil.toBean(orgEOService.getOrgEOById(id), OrgVO.class);
|
||||
return Result.success(orgVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 删除组织机构
|
||||
* 1.当前组织结构下面有子节点不可以删除(逻辑在service里面)
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|删除")
|
||||
@DeleteMapping("")
|
||||
@RequiresPermissions("sys:org:delete")
|
||||
public ResponseMessage delete( String id) throws Exception {
|
||||
return orgEOService.delete(id);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|OrgEO|获取所有树结构")
|
||||
@GetMapping("/getTree")
|
||||
// @RequiresPermissions("sys:org:getTree")
|
||||
public ResponseMessage<List<OrgEO>> getTree(){
|
||||
List<OrgEO> eos = orgEOService.selectOrgAllNode();
|
||||
return Result.success(eos);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|OrgEO|根据传入的orgId获取下层的部门树结构")
|
||||
@GetMapping("/getChildDept")
|
||||
// @RequiresPermissions("sys:org:getTree")
|
||||
public ResponseMessage<List<OrgEO>> getChildDept(String orgId){
|
||||
List<OrgEO> eos = orgEOService.getChildDept(orgId);
|
||||
return Result.success(eos);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 删除指定用户的单个组织机构关联
|
||||
* @Date Administrator 2018/9/18
|
||||
* @Param [userId, orgId]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|删除组织机构下的用户关联")
|
||||
@DeleteMapping("/{userId}/{orgId}")
|
||||
// @RequiresPermissions("sys:org:delOrgOfUser")
|
||||
public ResponseMessage<Integer> delOrgRelatedUser(@NotNull @PathVariable("userId") String userId, @NotNull @PathVariable("orgId") String orgId){
|
||||
return orgEOService.delOrgRelatedUser(userId, orgId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 前台传入类型(格式):[{"userId":"QJX2Z8E678","orgId":"5W2J4AQ8KA"}]
|
||||
* @Date Administrator 2018/9/17
|
||||
* @Param [userOrgs]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|给用户设置组织机构")
|
||||
@PostMapping("/addOrgRelateUsers")
|
||||
@RequiresPermissions("sys:org:addOrgRelateUsers")
|
||||
public ResponseMessage<Integer> addOrgRelatedUser(String userOrgs){
|
||||
|
||||
return orgEOService.addOrgRelatedUser(userOrgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 传入字段是用户表id的String字符串中间用逗号隔开
|
||||
* 1.删除的是用户和组织机构表中的数据(是真删除,关系表中没有validflag字段)
|
||||
* @Date Administrator 2018/9/18
|
||||
* @Param [ids]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.lang.Integer>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|批量删除组织机构下的一些用户")
|
||||
@DeleteMapping("/deleteList/{idList}")
|
||||
@RequiresPermissions("sys:org:delOrgRelatedUsers")
|
||||
public ResponseMessage<Integer> delOrgRelatedUsers(@NotNull @PathVariable("idList") String ids){
|
||||
String[] idList=ids.split(",");
|
||||
if(idList!=null && idList.length>0){
|
||||
for(String id:idList){
|
||||
orgEOService.delOrgRelatedUserByUserId(id);
|
||||
}
|
||||
return Result.success("true","删除成功",1);
|
||||
}
|
||||
return Result.error("false","删除失败");
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 传入的参数是根节点的id和orgName
|
||||
* @Date Administrator 2018/9/18
|
||||
* @Param [id, userCorpName]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.sys.entity.OrgEO>>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|获取树结构")
|
||||
@GetMapping("/findById")
|
||||
// @RequiresPermissions("sys:org:findById")
|
||||
public ResponseMessage<List<OrgEO>> findById(String id, String orgName){
|
||||
List<OrgEO> eos = orgEOService.findById(id, orgName);
|
||||
// eos.addAll(eos); 此方法是把两个list合并到一起
|
||||
return Result.success(eos);
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据角色名称获取组织机构用户树
|
||||
* @Date Administrator 2018/10/25
|
||||
* @Param [roleName]
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List<com.adc.da.sys.entity.OrgEO>>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|根据角色名称获取组织机构用户树")
|
||||
@GetMapping("/getTreeByRole")
|
||||
// @RequiresPermissions("sys:org:getTreeByRole")
|
||||
public ResponseMessage<List<OrgEO>> getTreeByRole(String roleName){
|
||||
Map<Integer,List<OrgEO>> map = new HashMap<>();
|
||||
//String[] split = roleName.split(",");
|
||||
//for(int i=0;i<split.length;i++){
|
||||
List<OrgEO> treeByRole = orgEOService.getTreeByRole(roleName);
|
||||
//map.put(i,treeByRole);
|
||||
//}
|
||||
return Result.success("true","操作成功",treeByRole);
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据用户获取其所在组织结构下某个角色的用户
|
||||
* @Date Administrator 2018/10/25
|
||||
* @Param [orgType, roleName]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.entity.OrgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|根据用户获取其所在组织结构下部门负责人或者科级负责人")
|
||||
@GetMapping("/getLeaderByUserId")
|
||||
public ResponseMessage<OrgEO> getLeaderByUserId(String userId,String orgType,String roleName){
|
||||
List<OrgEO> leaderByUserId = orgEOService.getLeaderByUserId(userId,orgType, roleName);
|
||||
if(leaderByUserId==null || leaderByUserId.size() == 0){
|
||||
return Result.success("","此用户未分配组织机构或未获取当前用户所在组织机构的领导id",new OrgEO());
|
||||
}else if(leaderByUserId != null && leaderByUserId.size()>1){
|
||||
return Result.error("false","此部门或科级存在多个负责人",new OrgEO());
|
||||
}
|
||||
return Result.success("true","操作成功",leaderByUserId.get(0));
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据角色名称和部门id获取组织结构用户树
|
||||
* @Date Administrator 2018/10/25
|
||||
* @Param [roleName, orgId]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.entity.OrgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|根据角色名称和部门id获取组织结构用户树")
|
||||
@GetMapping("/getTreeByRoleAndOrgId")
|
||||
public ResponseMessage<List<OrgEO>> getTreeByRoleAndOrgId(String roleName,String orgId){
|
||||
List<OrgEO> treeByRoleAndOrgId = orgEOService.getTreeByRoleAndOrgId(roleName, orgId);
|
||||
if(treeByRoleAndOrgId == null){
|
||||
return Result.success("true","此部门下没有项目经理",treeByRoleAndOrgId);
|
||||
}
|
||||
return Result.success("true","操作成功",treeByRoleAndOrgId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //流程3:根据角色名称和部门id获取组织结构用户树
|
||||
* @Date Administrator 2018/10/25
|
||||
* @Param [roleName, orgId]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.entity.OrgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|流程3:根据角色名称和userId获取组织结构用户树")
|
||||
@GetMapping("/getTreeByRoleAndOrgIdProcess3")
|
||||
public ResponseMessage<List<OrgEO>> getTreeByRoleAndOrgIdProcess3(String userId,String roleName){
|
||||
//根据用户ID获取用户信息及角色、组织机构信息
|
||||
UserEO userWithRoles = userEOService.getUserWithRoles(userId);
|
||||
//判断此用户是否有对应的组织机构
|
||||
if(userWithRoles ==null || userWithRoles.getOrgEOList().size()==0){
|
||||
return Result.success("true","此用户没有对应的组织结构",null);
|
||||
}
|
||||
//根据角色名称和部门id获取组织结构用户树
|
||||
List<OrgEO> treeByRoleAndOrgId = orgEOService.getTreeByRoleAndOrgId3(roleName, userWithRoles);
|
||||
if(treeByRoleAndOrgId == null){
|
||||
return Result.success("true","没有此id对应的组织机构",treeByRoleAndOrgId);
|
||||
}
|
||||
return Result.success("true","操作成功",treeByRoleAndOrgId);
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //根据orgType查询查询部及以上组织结构
|
||||
* @Date Administrator 2018/11/1
|
||||
* @Param []
|
||||
* @return java.util.List<com.adc.da.sys.entity.OrgEO>
|
||||
**/
|
||||
@ApiOperation(value = "|OrgEO|根据orgType查询查询部及以上组织结构")
|
||||
@GetMapping("/getIdsByorgType")
|
||||
public ResponseMessage<List<OrgEO>> getIdsByorgType(){
|
||||
List<OrgEO> list = orgEOService.getIdsByorgType();
|
||||
return Result.success(list);
|
||||
}
|
||||
@ApiOperation(value = "|OrgEO|根据角色名称和部门id获取用户树")
|
||||
@GetMapping("/getTreeByRoleAndOrgId1")
|
||||
public ResponseMessage<PageInfo<OrgEO>> getTreeByRoleAndOrgId1(OrgEOPage orgEOPage){
|
||||
List<OrgEO> treeByRoleAndOrgId1 = orgEOService.getTreeByRoleAndOrgId1(orgEOPage.getRoleName(), orgEOPage.getOrgId());
|
||||
|
||||
if(treeByRoleAndOrgId1== null || treeByRoleAndOrgId1.isEmpty()){
|
||||
return Result.success(getPageInfo(orgEOPage.getPager(), treeByRoleAndOrgId1));
|
||||
}
|
||||
List<OrgEO> list = new ArrayList<OrgEO>();
|
||||
//yuzhong 流程过来的要全展示
|
||||
if(!"1".equals(orgEOPage.getProcessFlag())) {
|
||||
int pageNo = (orgEOPage.getPage() - 1) * orgEOPage.getPageSize(); //每页的起始索引
|
||||
Integer sum = treeByRoleAndOrgId1.size(); //记录总数
|
||||
orgEOPage.getPager().setRowCount(sum);
|
||||
if (pageNo + orgEOPage.getPageSize() > sum) {
|
||||
list = treeByRoleAndOrgId1.subList(pageNo, sum);
|
||||
} else {
|
||||
list = treeByRoleAndOrgId1.subList(pageNo, pageNo + orgEOPage.getPageSize());
|
||||
}
|
||||
}else{
|
||||
list = treeByRoleAndOrgId1;
|
||||
}
|
||||
return Result.success(getPageInfo(orgEOPage.getPager(), list));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "(流程4)根据角色名称和部门id获取人员")
|
||||
@GetMapping("/getManagerByOrgId")
|
||||
public ResponseMessage<List<OrgEO>> getManagerByOrgId(String roleName,String orgId){
|
||||
List<OrgEO> orgEOList = orgEOService.getManagerByOrgId(roleName,orgId);
|
||||
return Result.success(orgEOList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据角色id获取组织机构用户树")
|
||||
@GetMapping("/getTreeByRoleId")
|
||||
public ResponseMessage<List<OrgEO>> getTreeByRoleId(String roleId){
|
||||
Map<Integer,List<OrgEO>> map = new HashMap<>();
|
||||
List<OrgEO> treeByRole = orgEOService.getTreeByRole2(roleId);
|
||||
return Result.success(treeByRole);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|OrgEO|获取子公司结构")
|
||||
@GetMapping("/getOrgRootTree")
|
||||
// @RequiresPermissions("sys:org:getTree")
|
||||
public ResponseMessage<List<OrgEO>> getOrgRootTree()throws Exception{
|
||||
|
||||
|
||||
List<OrgEO> list = orgEOService.getOrgRootTree();
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.page.Pager;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.constant.IsBelongEnum;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.adc.da.sys.page.RoleEOPage;
|
||||
import com.adc.da.sys.service.IRoleEOService;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
import com.adc.da.sys.vo.RoleVO;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/role")
|
||||
@Api(description = "角色管理")
|
||||
public class RoleEOController extends BaseController<RoleEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(RoleEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IRoleEOService roleEOService;
|
||||
|
||||
@Autowired
|
||||
private IUserEOService userService;
|
||||
|
||||
@ApiOperation(value = "|RoleEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
// @RequiresPermissions("sys:role:page")
|
||||
public ResponseMessage<PageInfo<RoleEO>> page(Integer pageNo, Integer pageSize, String roleName, String useFlag, String roleType) throws Exception {
|
||||
RoleEOPage page = new RoleEOPage();
|
||||
if (pageNo != null) {
|
||||
page.setPage(pageNo);
|
||||
}
|
||||
if (pageSize != null) {
|
||||
page.setPageSize(pageSize);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(roleName)) {
|
||||
page.setName("%"+roleName+"%");
|
||||
page.setNameOperator("LIKE");
|
||||
}
|
||||
if(StringUtils.isNotEmpty(useFlag)){
|
||||
page.setUseFlag(useFlag);
|
||||
}
|
||||
if(StringUtils.isNotEmpty(roleType)){
|
||||
page.setRoleType(roleType);
|
||||
}
|
||||
|
||||
page.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue()+"");
|
||||
page.setPager(new Pager());
|
||||
page.setOrderBy("modify_time desc");
|
||||
List<RoleEO> rows = roleEOService.queryByPage(page);
|
||||
//此处加载用户名称到前台
|
||||
if(rows!=null && rows.size()>0){
|
||||
for(RoleEO role:rows){
|
||||
String userId = role.getOperUser();
|
||||
if(userId!=null && !userId.isEmpty()){
|
||||
UserEO user = userService.selectByPrimaryKey(userId);
|
||||
role.setOperUserName(user!=null?user.getUname():null);
|
||||
}
|
||||
}
|
||||
}
|
||||
// PageInfo<RoleVO> mapPage = beanMapper.mapPage(getPageInfo(page.getPager(), rows), RoleVO.class);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:role:get")
|
||||
public ResponseMessage<RoleVO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
RoleEO roleEO = roleEOService.getRoleWithMenus(id);
|
||||
return Result.success(BeanUtil.toBean(roleEO, RoleVO.class));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|列表")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("sys:role:list")
|
||||
public ResponseMessage<List<RoleVO>> list(String userId) {
|
||||
RoleVO setRole = new RoleVO();
|
||||
setRole.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
List<RoleEO> roleEOList = roleEOService.findAll(setRole);
|
||||
List<RoleVO> resultList =new ArrayList<>();
|
||||
if(roleEOList!=null && !roleEOList.isEmpty()){
|
||||
for(RoleEO source:roleEOList){
|
||||
RoleVO roleVO = BeanUtil.toBean(source, RoleVO.class);
|
||||
roleVO.setMenusstr(source.getMenuEOIdList());
|
||||
roleVO.setMenus(source.getMenuEOList());
|
||||
resultList.add(roleVO);
|
||||
}
|
||||
}
|
||||
if (userId != null) {
|
||||
for (RoleVO roleVO : resultList) {
|
||||
if (roleEOService.isBelong(userId, roleVO.getRid())) {
|
||||
roleVO.setBelong(IsBelongEnum.BELONG.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(resultList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:role:create")
|
||||
public ResponseMessage<Integer> create(@RequestBody RoleVO roleVO) throws Exception {
|
||||
//TODO 此处调用了登录接口数据 暂时注销
|
||||
roleVO.setOprUser(LoginUserUtil.getUserId());
|
||||
if(StringUtils.isEmpty(roleVO.getName())){
|
||||
return Result.error("角色名称不能为空");
|
||||
}
|
||||
RoleEO map = BeanUtil.toBean(roleVO, RoleEO.class);
|
||||
logger.info("获取角色相关信息:"+map.getName());
|
||||
//判断角色名称不能重复,返回0代表角色名称已经存在,否则进行插入操作返回1
|
||||
int i = roleEOService.saveBean(map);
|
||||
if(i<=0){
|
||||
return Result.error("角色名称已经存在");
|
||||
}
|
||||
return Result.success("","新增成功",1);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:role:update")
|
||||
public ResponseMessage<Integer> update(@RequestBody RoleVO roleVO) throws Exception {
|
||||
if(StringUtils.isEmpty(roleVO.getName())){
|
||||
return Result.error("角色名称不能为空");
|
||||
}
|
||||
RoleEO map = BeanUtil.toBean(roleVO, RoleEO.class);
|
||||
//判断角色名称不能重复,返回0代表角色名称已经存在,否则进行修改操作返回1
|
||||
int i = roleEOService.updateByPrimaryKeySelective(map);
|
||||
if(i<=0){
|
||||
return Result.error("角色名称已经存在");
|
||||
}
|
||||
return Result.success("","操作成功",1);
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("sys:role:delete")
|
||||
public ResponseMessage delete(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
List<UserRoleEO> list = roleEOService.getUserRoleListByRoleId(id);
|
||||
// 如果角色有对应用户,则不允许删除
|
||||
if (list != null && list.size() > 0) {
|
||||
return Result.error( "该角色有对应用户,不能删除");
|
||||
}
|
||||
roleEOService.delete(id);
|
||||
return Result.success("true","操作成功","");
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description 入参格式修改了,TODO 暂时注掉了中间那段代码
|
||||
* @Date Administrator 2018/9/24
|
||||
* @Param [ids]
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
**/
|
||||
@ApiOperation(value = "|RoleEO|批量删除")
|
||||
@DeleteMapping("/deleteList")
|
||||
@RequiresPermissions("sys:role:deleteList")
|
||||
public ResponseMessage deleteList( String ids) throws Exception {
|
||||
String[] idList=ids.split(",");
|
||||
String saveOrignRoles = "";
|
||||
String saveUserRoles = "";
|
||||
if(idList!=null && idList.length>0){
|
||||
for(String id:idList){
|
||||
//原始角色不能删除:orgId查询defaultFlag
|
||||
RoleEO roleWithMenus = roleEOService.getRoleWithMenus(id);
|
||||
List<UserRoleEO> list = roleEOService.getUserRoleListByRoleId(id);
|
||||
// 如果角色有对应用户,则不允许删除
|
||||
if(roleWithMenus !=null && roleWithMenus.getIsDefault().equals(1)){
|
||||
saveOrignRoles += roleWithMenus.getName() + " ";
|
||||
} else if (list != null && list.size() > 0) {
|
||||
saveUserRoles += roleWithMenus.getName() + " ";
|
||||
} else {
|
||||
roleEOService.delete(id);
|
||||
}
|
||||
/* String loginUserId = SecurityUtils.getSubject().getSession().getAttribute(RequestUtils.LOGIN_USER_ID).toString();
|
||||
if(loginUserId != null || loginUserId != ""){
|
||||
UserEO getUser = userService.selectRoleMessageByPrimaryKey(loginUserId);
|
||||
*//*if(getUser != null && ! ("3").equals(getUser.getRoleExtInfo())){
|
||||
RoleEO getRole = roleEOService.selectByPrimaryKey(id);
|
||||
if(!("").equals(getRole.getExtInfo()) && getRole.getExtInfo() != null){
|
||||
if(! getRole.getExtInfo().equals(getUser.getRoleExtInfo())){
|
||||
return Result.error("您无权限删除该角色");
|
||||
}
|
||||
}
|
||||
|
||||
}*//*
|
||||
}*/
|
||||
}
|
||||
}
|
||||
if(StringUtils.isEmpty(saveOrignRoles) && StringUtils.isEmpty(saveUserRoles)){
|
||||
return Result.success("true","删除成功","");
|
||||
} else {
|
||||
String msg = "";
|
||||
if(StringUtils.isNotEmpty(saveOrignRoles) && StringUtils.isEmpty(saveUserRoles)){
|
||||
msg = saveOrignRoles + "为原始角色,不能删除。其余删除成功";
|
||||
} else if (StringUtils.isEmpty(saveOrignRoles) && StringUtils.isNotEmpty(saveUserRoles)) {
|
||||
msg = saveUserRoles + "下有对应用户,不能删除。其余删除成功";
|
||||
}else{
|
||||
msg = saveOrignRoles + "为原始角色,不能删除。"+ saveUserRoles + "下有对应用户,不能删除。其余删除成功";
|
||||
}
|
||||
return Result.success("true",msg,"");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "配置角色菜单|RoleEO|")
|
||||
@PostMapping("/saveRoleMenu")
|
||||
// @RequiresPermissions("sys:role:saveRoleMenu")
|
||||
public ResponseMessage<RoleVO> saveRoleMenu(@RequestBody RoleVO roleVO) throws Exception {
|
||||
String roleIds = roleVO.getRid();
|
||||
if(roleIds!=null && roleIds.length()>0){
|
||||
String[] roleIdList=roleIds.split(",");
|
||||
for(int i=0;i<roleIdList.length;i++){
|
||||
String rId=roleIdList[i];
|
||||
RoleEO role = BeanUtil.toBean(roleVO, RoleEO.class);
|
||||
role.setId(rId);
|
||||
roleEOService.saveRoleMenu(role);
|
||||
}
|
||||
}else{
|
||||
return Result.error("r00100","未设置角色信息");
|
||||
}
|
||||
return Result.success("true","操作成功",roleVO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|全部")
|
||||
@GetMapping("/findAll")
|
||||
//@RequiresPermissions("sys:role:findAll")
|
||||
public ResponseMessage<List<RoleVO>> findAll(String userId) {
|
||||
RoleVO setRole = new RoleVO();
|
||||
List<RoleEO> roleEOList = roleEOService.findAll(setRole);
|
||||
List<RoleVO> resultList =new ArrayList<>();
|
||||
if(roleEOList!=null && !roleEOList.isEmpty()){
|
||||
for(RoleEO source:roleEOList){
|
||||
RoleVO roleVO = BeanUtil.toBean(source, RoleVO.class);
|
||||
roleVO.setMenusstr(source.getMenuEOIdList());
|
||||
roleVO.setMenus(source.getMenuEOList());
|
||||
resultList.add(roleVO);
|
||||
}
|
||||
}
|
||||
return Result.success(resultList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleEO|判断当前登录人是否有购买流程权限")
|
||||
@GetMapping("/judgeBuyRoleForSearch")
|
||||
public ResponseMessage<String> judgeBuyRoleForSearch(RoleVO roleVO){
|
||||
// 查询“工程师”,“超级管理员”角色id
|
||||
String roleIdEngin = "";
|
||||
String roleIdAdmin = "";
|
||||
List<RoleEO> getRoleIdEngins = roleEOService.selectByNameAndId(null,"工程师");
|
||||
if(getRoleIdEngins != null && getRoleIdEngins.size()>0){
|
||||
roleIdEngin = getRoleIdEngins.get(0).getId();
|
||||
}
|
||||
List<RoleEO> getRoleIdAdmins = roleEOService.selectByNameAndId(null,"工程师");
|
||||
if(getRoleIdAdmins != null && getRoleIdAdmins.size()>0){
|
||||
roleIdAdmin = getRoleIdAdmins.get(0).getId();
|
||||
}
|
||||
// 查询当前登录人角色
|
||||
String roleIds = roleVO.getRoleIds();
|
||||
String[] roleArr = roleIds.split(",");
|
||||
List<String> roleIdList = Arrays.asList(roleArr);
|
||||
if(roleIdList != null && roleIdList.size()>0){
|
||||
if(roleIdList.contains(roleIdEngin) || roleIdList.contains(roleIdAdmin)){
|
||||
return Result.success(roleIds);
|
||||
} else {
|
||||
return Result.error("noPermission");
|
||||
}
|
||||
}
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.RoleSarMenuEO;
|
||||
import com.adc.da.sys.page.RoleSarMenuEOPage;
|
||||
import com.adc.da.sys.service.IRoleSarMenuEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/roleSarMenu")
|
||||
@Api(description = "|RoleSarMenuEO|")
|
||||
public class RoleSarMenuEOController extends BaseController<RoleSarMenuEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(RoleSarMenuEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IRoleSarMenuEOService roleSarMenuEOService;
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("sys:roleSarMenu:page")
|
||||
public ResponseMessage<PageInfo<RoleSarMenuEO>> page(RoleSarMenuEOPage page) throws Exception {
|
||||
List<RoleSarMenuEO> rows = roleSarMenuEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|查询")
|
||||
@GetMapping("")
|
||||
/*@RequiresPermissions("sys:roleSarMenu:list")*/
|
||||
public ResponseMessage<List<RoleSarMenuEO>> list(RoleSarMenuEOPage page) throws Exception {
|
||||
List<RoleSarMenuEO> getList = roleSarMenuEOService.queryByList(page);
|
||||
//数据中没有根节点的配置
|
||||
//查询根目录节点id
|
||||
List<RoleSarMenuEO> rootIds = roleSarMenuEOService.selectSarMenuRoots();
|
||||
if(rootIds != null && !rootIds.isEmpty()){
|
||||
for(RoleSarMenuEO roleSarMenuEO : rootIds){
|
||||
roleSarMenuEO.setRoleId(page.getRoleId());
|
||||
roleSarMenuEO.setSarMenuId(roleSarMenuEO.getId());
|
||||
if (!"BUSINESS_STAND".equals(roleSarMenuEO.getSorDivide())) {
|
||||
getList.add(roleSarMenuEO);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|详情")
|
||||
@GetMapping("/{roleId}")
|
||||
@RequiresPermissions("sys:roleSarMenu:get")
|
||||
public ResponseMessage<RoleSarMenuEO> find(@PathVariable String roleId) throws Exception {
|
||||
return Result.success(roleSarMenuEOService.getById(roleId));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:roleSarMenu:save")
|
||||
public ResponseMessage<RoleSarMenuEO> create(@RequestBody RoleSarMenuEO roleSarMenuEO) throws Exception {
|
||||
roleSarMenuEOService.save(roleSarMenuEO);
|
||||
return Result.success(roleSarMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:roleSarMenu:update")
|
||||
public ResponseMessage<RoleSarMenuEO> update(@RequestBody RoleSarMenuEO roleSarMenuEO) throws Exception {
|
||||
roleSarMenuEOService.updateById(roleSarMenuEO);
|
||||
return Result.success(roleSarMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|删除")
|
||||
@DeleteMapping("/{roleId}")
|
||||
@RequiresPermissions("sys:roleSarMenu:delete")
|
||||
public ResponseMessage delete(@PathVariable String roleId) throws Exception {
|
||||
roleSarMenuEOService.removeById(roleId);
|
||||
logger.info("delete from TS_ROLE_SAR_MENU where roleId = {}", roleId);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|RoleSarMenuEO|绑定角色所拥有的节点 id")
|
||||
@PostMapping("/bindRoleSarMenuId")
|
||||
public ResponseMessage bindRoleSarMenuId(@RequestBody RoleSarMenuEO roleSarMenuEO) throws Exception {
|
||||
List<String> sarMenuIds = roleSarMenuEO.getSarMenuIds();
|
||||
roleSarMenuEOService.removeById(roleSarMenuEO.getRoleId());
|
||||
//查询根目录节点id
|
||||
List<RoleSarMenuEO> rootIds = roleSarMenuEOService.selectSarMenuRoots();
|
||||
String inlandLawsId = "";
|
||||
String inlandStandId = "";
|
||||
String foreignStandId = "";
|
||||
String foreignLawsId = "";
|
||||
String BussId = "";
|
||||
for (RoleSarMenuEO sarMenuEO :rootIds){
|
||||
if(sarMenuEO.getSorDivide().equals("INLAND_LAWS")){
|
||||
//国内政策
|
||||
inlandLawsId = sarMenuEO.getId();
|
||||
|
||||
}
|
||||
if(sarMenuEO.getSorDivide().equals("INLAND_STAND")){
|
||||
//国内标准法规
|
||||
inlandStandId = sarMenuEO.getId();
|
||||
|
||||
}
|
||||
if(sarMenuEO.getSorDivide().equals("FOREIGN_STAND")){
|
||||
//国外标准法规
|
||||
foreignStandId = sarMenuEO.getId();
|
||||
|
||||
}
|
||||
if(sarMenuEO.getSorDivide().equals("FOREIGN_LAWS")){
|
||||
//国外政策
|
||||
foreignLawsId = sarMenuEO.getId();
|
||||
|
||||
}
|
||||
if(sarMenuEO.getSorDivide().equals("BUSINESS_STAND")){
|
||||
//国内政策
|
||||
BussId = sarMenuEO.getId();
|
||||
|
||||
}
|
||||
}
|
||||
//保存角色的配置,去除根节点
|
||||
for (String menuId : sarMenuIds){
|
||||
if( menuId.equals(inlandLawsId) || menuId.equals(inlandStandId) || menuId.equals(foreignStandId) || menuId.equals(foreignLawsId) ){
|
||||
continue;
|
||||
}
|
||||
RoleSarMenuEO sarMenuEO = new RoleSarMenuEO();
|
||||
sarMenuEO.setRoleId(roleSarMenuEO.getRoleId());
|
||||
sarMenuEO.setSarMenuId(menuId);
|
||||
roleSarMenuEOService.save(sarMenuEO);
|
||||
}
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/* @ApiOperation(value = "|RoleSarMenuEO|查询角色拥有的节点id")
|
||||
@GetMapping("/{roleId}")
|
||||
public ResponseMessage<RoleSarMenuEO> findRoleSarMenu(@PathVariable String roleId) throws Exception {
|
||||
List<RoleSarMenuEO> roleSarMenuEOS = roleSarMenuEOService.findRoleSarMenu(roleId);
|
||||
return Result.success(roleSarMenuEOService.selectByPrimaryKey(roleId));
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.UserConfigEO;
|
||||
import com.adc.da.sys.page.UserConfigEOPage;
|
||||
import com.adc.da.sys.service.IUserConfigEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/userConfig")
|
||||
@Api(description = "|UserConfigEO|")
|
||||
public class UserConfigEOController extends BaseController<UserConfigEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserConfigEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IUserConfigEOService userConfigEOService;
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:userConfig:page")
|
||||
public ResponseMessage<PageInfo<UserConfigEO>> page(UserConfigEOPage page) throws Exception {
|
||||
List<UserConfigEO> rows = userConfigEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("person:userConfig:list")
|
||||
public ResponseMessage<List<UserConfigEO>> list(UserConfigEOPage page) throws Exception {
|
||||
return Result.success(userConfigEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//@RequiresPermissions("person:userConfig:get")
|
||||
public ResponseMessage<UserConfigEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(userConfigEOService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|新增")
|
||||
@PostMapping("/createUserConfig")
|
||||
//@RequiresPermissions("person:userConfig:save")
|
||||
public ResponseMessage<UserConfigEO> create(@RequestBody UserConfigEO userConfigEO) throws Exception {
|
||||
UserConfigEOPage page = new UserConfigEOPage();
|
||||
page.setUserId(LoginUserUtil.getUserId());
|
||||
page.setConfigType("PAGE_SIZE");
|
||||
List<UserConfigEO> userConfigEOList = userConfigEOService.queryByList(page);
|
||||
if(userConfigEOList.size()>0){
|
||||
userConfigEO.setModifyTime(new Date());
|
||||
userConfigEO.setId(userConfigEOList.get(0).getId());
|
||||
userConfigEOService.updateById(userConfigEO);
|
||||
}
|
||||
else {
|
||||
String userId = LoginUserUtil.getUserId();
|
||||
userConfigEO.setId(UUIDUtils.randomUUID20());
|
||||
userConfigEO.setUserId(userId);
|
||||
userConfigEO.setValidFlag(0);
|
||||
userConfigEO.setCreationTime(new Date());
|
||||
userConfigEO.setModifyTime(new Date());
|
||||
userConfigEOService.save(userConfigEO);
|
||||
}
|
||||
|
||||
return Result.success(userConfigEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|修改")
|
||||
@PutMapping("/updateUserConfig")
|
||||
//@RequiresPermissions("person:userConfig:update")
|
||||
public ResponseMessage<UserConfigEO> update(@RequestBody UserConfigEO userConfigEO) throws Exception {
|
||||
userConfigEO.setModifyTime(new Date());
|
||||
userConfigEOService.updateById(userConfigEO);
|
||||
return Result.success(userConfigEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserConfigEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//@RequiresPermissions("person:userConfig:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
userConfigEOService.removeById(id);
|
||||
logger.info("delete from TS_USER_CONFIG where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,557 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.adc.da.base.page.Pager;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.service.IOrgEOService;
|
||||
import com.adc.da.sys.service.IRoleEOService;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
import com.adc.da.sys.service.IUserInfoEOService;
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/user")
|
||||
@Api(description = "用户管理")
|
||||
public class UserEOController extends BaseController<UserEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IUserEOService userEOService;
|
||||
@Autowired
|
||||
private IOrgEOService orgEOService;
|
||||
|
||||
@Autowired
|
||||
IUserInfoEOService userInfoEOService;
|
||||
@Autowired
|
||||
IRoleEOService roleEOService;
|
||||
|
||||
@ApiOperation(value = "|UserEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:user:get")
|
||||
public ResponseMessage<UserVO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
UserEO userEO = userEOService.getUserWithRoles(id);
|
||||
UserVO userVO= new UserVO();
|
||||
if(userEO!=null){
|
||||
userVO = BeanUtil.toBean(userEO,UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
userVO.setPassword(userEO.getPassword());
|
||||
}
|
||||
return Result.success(userVO);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo < com.adc.da.sys.entity.UserEO>>
|
||||
* @Author liwenxuan
|
||||
* @Description 用户分页
|
||||
* @Date Administrator 2018/9/27
|
||||
* @Param [pageNo, pageSize, orgId, userType, uname, roleName, disableFlag]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|分页查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("sys:user:UserInfoPage")
|
||||
public ResponseMessage<PageInfo<UserEO>> UserInfoPage(Integer pageNo, Integer pageSize, String orgId, String userType, String uname, String roleId, String disableFlag, String roleName, String account, String processFlag) throws Exception {
|
||||
UserEOPage page = new UserEOPage();
|
||||
if (pageNo != null) {
|
||||
page.setPage(pageNo);
|
||||
}
|
||||
if (pageSize != null) {
|
||||
page.setPageSize(pageSize);
|
||||
}else{
|
||||
page.setPageSize(Integer.MAX_VALUE);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(uname)) {
|
||||
page.setUname(uname);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(userType)) {
|
||||
page.setUserType(userType);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(disableFlag)) {
|
||||
page.setDisableFlag(disableFlag);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(orgId)) {
|
||||
page.setOrgId(orgId);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(roleId)) {
|
||||
page.setRoleId(roleId);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(roleName)) {
|
||||
page.setRoleName(roleName);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(account)) {
|
||||
page.setAccount(account);
|
||||
}
|
||||
// page.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue() + "");
|
||||
page.setPager(new Pager());
|
||||
List<UserEO> userEOs = userEOService.queryUserInfoByPage(page);
|
||||
// 根据用户id查找用户的多个角色并放到roleIdList中
|
||||
if(processFlag==null || processFlag.isEmpty()) {
|
||||
for (UserEO userEO : userEOs) {
|
||||
UserEO userWithRoles = userEOService.getUserWithRolesAll(userEO.getUsid());//查询用户及用户所对应的角色
|
||||
if (userWithRoles != null) {
|
||||
List<RoleEO> roleEOList = userWithRoles.getRoleEOList();
|
||||
for (RoleEO role : roleEOList) {
|
||||
String rolename = role.getName();
|
||||
String roleId1 = role.getId();
|
||||
userEO.getRoleNameList().add(rolename);
|
||||
userEO.getRoleIdList().add(roleId1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), userEOs));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|UserEO|新增")
|
||||
@PostMapping(value = "/addUser")
|
||||
// @RequiresPermissions("sys:user:save")
|
||||
public ResponseMessage<UserVO> create(String userStr) throws Exception {
|
||||
if (StringUtils.isNotEmpty(userStr)) {
|
||||
// 解密
|
||||
userStr = new StringBuilder(userStr).reverse().toString();
|
||||
userStr = new String(Base64.decodeBase64(userStr), StandardCharsets.UTF_8);
|
||||
System.out.println(userStr);
|
||||
// 转为对象
|
||||
// JSONObject jsonObject=JSONObject.fromObject(userStr);
|
||||
UserEO userEO = JSON.parseObject(userStr, UserEO.class);
|
||||
// 修改用户信息
|
||||
UserVO userVO= new UserVO();
|
||||
if(userEO!=null){
|
||||
userVO = BeanUtil.toBean(userEO,UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
userVO.setPassword(userEO.getPassword());
|
||||
}
|
||||
ResponseMessage<UserVO> userVOResponseMessage = userEOService.createOrModifyIf(userVO);
|
||||
if (userVOResponseMessage.getData() == null) {
|
||||
return userVOResponseMessage;
|
||||
}
|
||||
userEO.setOperUser(LoginUserUtil.getUserId());
|
||||
UserEO userEORes = userEOService.saveBean(userEO);
|
||||
if (userEORes == null) {
|
||||
return Result.error("操作失败");
|
||||
}
|
||||
//TODO 往个人板块插入数据失败
|
||||
// List<PersonConfEO> personConfEOS = personConfEOService.saveConfList(userEO.getUsid());
|
||||
return Result.success("true", "操作成功", null);
|
||||
} else {
|
||||
return Result.error("操作失败");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.vo.UserVO>
|
||||
* @Author liwenxuan
|
||||
* @Description 修改时同时对用户表、用户角色表关联表、用户组织机构关联表信息修改
|
||||
* 前台必传参数:usid、orgId、roleIdList
|
||||
* @Date Administrator 2018/9/26
|
||||
* @Param [userVO]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|修改")
|
||||
@PutMapping(value = "/updateUser")
|
||||
// @RequiresPermissions("sys:user:modifyUser")
|
||||
public ResponseMessage<UserVO> update(String userStr) throws Exception {
|
||||
if (StringUtils.isNotEmpty(userStr)) {
|
||||
// 解密
|
||||
userStr = new StringBuilder(userStr).reverse().toString();
|
||||
userStr = new String(Base64.decodeBase64(userStr), StandardCharsets.UTF_8);
|
||||
// 转为对象
|
||||
UserEO userEO = JSON.parseObject(userStr, UserEO.class);
|
||||
// 修改用户信息
|
||||
UserVO userVO= new UserVO();
|
||||
if(userEO!=null){
|
||||
userVO = BeanUtil.toBean(userEO,UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
userVO.setPassword(userEO.getPassword());
|
||||
}
|
||||
ResponseMessage<UserVO> userVOResponseMessage = userEOService.createOrModifyIf(userVO);
|
||||
if (userVOResponseMessage.getData() == null) {
|
||||
return userVOResponseMessage;
|
||||
} else {
|
||||
userEO.setRoleIdList(userEO.getRoleIdList());
|
||||
userEOService.updateUserEOInfo(userEO);
|
||||
return Result.success("true", "操作成功", null);
|
||||
}
|
||||
} else {
|
||||
return Result.error("操作失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserEO|删除")
|
||||
@DeleteMapping("/{ids}")
|
||||
@RequiresPermissions("sys:user:delete")
|
||||
public ResponseMessage delete(@NotNull @PathVariable("ids") String[] ids) throws Exception {
|
||||
int i = userEOService.delete(Arrays.asList(ids));
|
||||
if (i == 0) {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
return Result.success("true", "删除成功", "");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "配置用户角色|UserEO|")
|
||||
@PostMapping("/saveUserRole")
|
||||
/*@RequiresPermissions("sys:user:saveUserRole")*/
|
||||
public ResponseMessage<UserVO> saveUserRole(@RequestBody UserVO userVO) {
|
||||
//查询部门负责人id
|
||||
String mainRoleId="";
|
||||
String userIds = userVO.getUsid();
|
||||
String[] userIdList = userIds.split(",");
|
||||
List<RoleEO> getRoleId = roleEOService.selectByNameAndId(null,"部门负责人");
|
||||
if(getRoleId!=null && getRoleId.size()>0){
|
||||
mainRoleId = getRoleId.get(0).getId();
|
||||
if(userVO.getRoleIdList().contains(mainRoleId) && userIds != null && userIdList.length>1){
|
||||
return Result.error("同一部门下仅允许设置一个部门负责人");
|
||||
} else if (userVO.getRoleIdList().contains(mainRoleId) && userIds != null && userIdList.length>0 && userIdList.length<=1) {
|
||||
List<UserEO> getUser = userEOService.getUserEOBySpecRole(userVO.getOrgId(),userIdList[0]);
|
||||
if(getUser!=null && getUser.size()>0){
|
||||
return Result.error("此部门下,拥有部门负责人角色的用户已经存在");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (userIds != null && userIds.length() > 0 && userVO.getRoleIdList()!=null && !userVO.getRoleIdList().isEmpty()) {
|
||||
// 此处需要维护用户角色--单个用户可以拥有多个角色
|
||||
List<String> roleIdList = userVO.getRoleIdList();
|
||||
if(roleIdList!=null && !roleIdList.isEmpty()){
|
||||
for(String roleId:roleIdList){
|
||||
if (StringUtils.isNotEmpty(roleId)) {
|
||||
// 判断是否为科级负责人,科级负责人角色只能在科级部门
|
||||
int SectionFlag = StringUtils.equals(roleId,"YK5P33FZ29TPN2VPDP6E")?1:0;
|
||||
// int i1 = roleEOService.querySectionCount(roleId);
|
||||
// 判断是否为部门负责人,部门负责人角色只能在部级部门
|
||||
// int i2 = roleEOService.querySectionCount1(roleId);
|
||||
int SectionFlagOfB = StringUtils.equals(roleId,"GQSBB2N3KURYYC6AUFER")?1:0;
|
||||
if (SectionFlag == 1) {
|
||||
// 所选部门角色是否为科级负责人
|
||||
// for 循环判断每一个人的部门
|
||||
String[] orgIdList = userVO.getOrgId().split(",");
|
||||
for (int i = 0; i < orgIdList.length; i++) {
|
||||
String orgId = orgIdList[i];
|
||||
UserVO userParame = new UserVO();
|
||||
userParame.setOrgId(orgId);
|
||||
int orgNamebyOrgId = orgEOService.getOrgNamebyOrgId(userParame);
|
||||
if (orgNamebyOrgId != 1) {
|
||||
return Result.error("科级负责任人只能创建在科级部门");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SectionFlagOfB == 1) {
|
||||
// 所选部门角色是否为部门级
|
||||
String[] orgIdList = userVO.getOrgId().split(",");
|
||||
for (int i = 0; i < orgIdList.length; i++) {
|
||||
String orgId = orgIdList[i];
|
||||
UserVO userParame = new UserVO();
|
||||
userParame.setOrgId(orgId);
|
||||
int orgNamebyOrgId = orgEOService.getOrgNamebyOrgId(userParame);
|
||||
if (orgNamebyOrgId != 2) {
|
||||
return Result.error("部门负责任人只能创建在部门级部门");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* String roleIds = userVO.getRoleId();
|
||||
String[] roleIDs = roleIds.split(",");
|
||||
for (int ii = 0; ii < roleIDs.length; ii++) {
|
||||
if (StringUtils.isNotEmpty(roleIDs[ii])) {
|
||||
// 判断是否为科级负责人,科级负责人角色只能在科级部门
|
||||
int i1 = roleEOService.querySectionCount(roleIDs[ii]);
|
||||
// 判断是否为部门负责人,部门负责人角色只能在部级部门
|
||||
int i2 = roleEOService.querySectionCount1(roleIDs[ii]);
|
||||
if (i1 == 1) {
|
||||
// 所选部门角色是否为科级负责人
|
||||
// for 循环判断每一个人的部门
|
||||
String[] orgIdList = userVO.getOrgId().split(",");
|
||||
for (int i = 0; i < orgIdList.length; i++) {
|
||||
String orgId = orgIdList[i];
|
||||
UserVO userParame = new UserVO();
|
||||
userParame.setOrgId(orgId);
|
||||
int orgNamebyOrgId = orgEOService.getOrgNamebyOrgId(userParame);
|
||||
if (orgNamebyOrgId != 1) {
|
||||
return Result.error("科级负责任人只能创建在科级部门");
|
||||
}
|
||||
}
|
||||
} else if (i2 == 1) {
|
||||
// 所选部门角色是否为部门级
|
||||
String[] orgIdList = userVO.getOrgId().split(",");
|
||||
for (int i = 0; i < orgIdList.length; i++) {
|
||||
String orgId = orgIdList[i];
|
||||
UserVO userParame = new UserVO();
|
||||
userParame.setOrgId(orgId);
|
||||
int orgNamebyOrgId = orgEOService.getOrgNamebyOrgId(userParame);
|
||||
if (orgNamebyOrgId != 2) {
|
||||
return Result.error("部门负责任人只能创建在部门级部门");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
for (int i = 0; i < userIdList.length; i++) {
|
||||
String userId = userIdList[i];
|
||||
UserEO user=new UserEO();
|
||||
user.setUsid(userId);
|
||||
user.setRoleIdList(userVO.getRoleIdList());
|
||||
userEOService.saveUserRole(user);
|
||||
}
|
||||
} else {
|
||||
return Result.error("未设置角色信息");
|
||||
}
|
||||
return Result.success("", "操作成功", userVO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo < com.adc.da.sys.vo.UserVO>>
|
||||
* @Author liwenxuan
|
||||
* @Description //组织机构分页:
|
||||
* 根据组织机构和用户的关联表进行中orgId字段作为判断条件进行查询
|
||||
* @Date Administrator 2018/9/25
|
||||
* @Param [page]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|组织机构查询用户")
|
||||
@GetMapping("/findByOrg")
|
||||
// @RequiresPermissions("sys:user:queryByOrg")
|
||||
public ResponseMessage<PageInfo<UserVO>> queryByOrg(UserEOPage page) {
|
||||
/* if (StringUtils.isNotBlank(page.getUname()))
|
||||
page.setUname("%" + page.getUname() + "%");*/
|
||||
// page.setDisableFlag(UserDisableFlagEnum.disableFlag_TRUE.getValue());
|
||||
List<UserEO> userEOs = userEOService.queryUserInfoByPage(page);
|
||||
PageInfo<UserEO> pageInfo = getPageInfo(page.getPager(), userEOs);
|
||||
// 根据用户id查找用户的多个角色并放到roleIdList中
|
||||
List<UserVO> resultList =new ArrayList<>();
|
||||
for (UserEO userEO : userEOs) {
|
||||
UserEO userWithRoles = userEOService.getUserWithRolesAll(userEO.getUsid());//查询用户及用户所对应的角色
|
||||
if(userWithRoles != null){
|
||||
List<RoleEO> roleEOList = userWithRoles.getRoleEOList();
|
||||
for (RoleEO role : roleEOList) {
|
||||
String rolename = role.getName();
|
||||
String roleId1 = role.getId();
|
||||
userEO.getRoleNameList().add(rolename);
|
||||
userEO.getRoleIdList().add(roleId1);
|
||||
}
|
||||
}
|
||||
UserVO userVO = BeanUtil.toBean(userEO, UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
resultList.add(userVO);
|
||||
}
|
||||
PageInfo<UserVO> resultPage =new PageInfo<>();
|
||||
resultPage.setCount(pageInfo.getCount());
|
||||
resultPage.setList(resultList);
|
||||
resultPage.setOrderBy(pageInfo.getOrderBy());
|
||||
resultPage.setPageCount(pageInfo.getPageCount());
|
||||
resultPage.setPageNo(pageInfo.getPageNo());
|
||||
resultPage.setPageSize(pageInfo.getPageSize());
|
||||
// PageInfo<UserVO> mapPage = beanMapper.mapPage(getPageInfo(page.getPager(), userEOs), UserVO.class);
|
||||
return Result.success(resultPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo < com.adc.da.sys.entity.UserEO>>
|
||||
* @Author liwenxuan
|
||||
* @Description 查找未分配组织结构的用户的行数
|
||||
* @Date Administrator 2018/9/21
|
||||
* @Param [page]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|查询未配置组织机构的用户")
|
||||
@GetMapping("/findBySetOrg")
|
||||
// @RequiresPermissions("sys:user:findBySetOrg")
|
||||
public ResponseMessage<PageInfo<UserVO>> findBySetOrg(UserEOPage page) {
|
||||
page.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue() + "");
|
||||
// page.setPager(new Pager());
|
||||
List<UserEO> userInfoByPage = userEOService.findUserInfoByPage(page);
|
||||
PageInfo<UserEO> pageInfo = getPageInfo(page.getPager(), userInfoByPage);
|
||||
List<UserVO> resultList =new ArrayList<>();
|
||||
for (UserEO userEO : userInfoByPage) {
|
||||
UserEO userWithRoles = userEOService.getUserWithRolesAll(userEO.getUsid());//查询用户及用户所对应的角色
|
||||
if(userWithRoles != null){
|
||||
List<RoleEO> roleEOList = userWithRoles.getRoleEOList();
|
||||
for (RoleEO role : roleEOList) {
|
||||
String rolename = role.getName();
|
||||
String roleId1 = role.getId();
|
||||
userEO.getRoleNameList().add(rolename);
|
||||
userEO.getRoleIdList().add(roleId1);
|
||||
}
|
||||
UserVO userVO = BeanUtil.toBean(userEO, UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
resultList.add(userVO);
|
||||
}
|
||||
}
|
||||
PageInfo<UserVO> resultPage =new PageInfo<>();
|
||||
resultPage.setCount(pageInfo.getCount());
|
||||
resultPage.setList(resultList);
|
||||
resultPage.setOrderBy(pageInfo.getOrderBy());
|
||||
resultPage.setPageCount(pageInfo.getPageCount());
|
||||
resultPage.setPageNo(pageInfo.getPageNo());
|
||||
resultPage.setPageSize(pageInfo.getPageSize());
|
||||
// PageInfo<UserVO> mapPage = beanMapper.mapPage(getPageInfo(page.getPager(), userInfoByPage), UserVO.class);
|
||||
return Result.success(resultPage);
|
||||
|
||||
}
|
||||
|
||||
//通过userId查询关联表,没有orgId的就是没有组织结构的用户
|
||||
// 把这些用户对应的信息显示出来
|
||||
|
||||
/**
|
||||
* 功能描述: 查询所有用户信息
|
||||
*
|
||||
* @param: [page]
|
||||
* @return:
|
||||
* @auther: SYT
|
||||
* @date: 2018/10/16 8:44
|
||||
*/
|
||||
@ApiOperation(value = "|UserEO|查询")
|
||||
@GetMapping("/userEoList")
|
||||
//@RequiresPermissions("sys:user:userEoList")
|
||||
public ResponseMessage<List<UserEO>> userEoList(UserEOPage page) throws Exception {
|
||||
|
||||
List<UserEO> userInfoEOList = userEOService.queryUserEoList(page);
|
||||
return Result.success(userInfoEOList);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.util.http.PageInfo < com.adc.da.sys.vo.UserVO>>
|
||||
* @Author liwenxuan
|
||||
* @Description //查询院领导下面的用户:RoleName可传可不传
|
||||
* @Date Administrator 2018/10/31
|
||||
* @Param [RoleName]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|查询院领导下面的用户")
|
||||
@GetMapping("/findLeaderByOrgIdAndRoleName")
|
||||
//@RequiresPermissions("sys:user:findLeaderByOrgIdAndRoleName")
|
||||
public ResponseMessage<List<UserVO>> queryByOrgIdAndRoleName(String roleName) {
|
||||
UserEOPage page = new UserEOPage();
|
||||
page.setOrgId("669LUSZYJ99EZ5ZDU84U");
|
||||
page.setRoleName(roleName);
|
||||
List<UserEO> userEOs = userEOService.queryUserInfoByPage(page);
|
||||
List<UserVO> resultList =new ArrayList<>();
|
||||
if(userEOs!=null && !userEOs.isEmpty()){
|
||||
for(UserEO source: userEOs){
|
||||
UserVO userVO = BeanUtil.toBean(source, UserVO.class);
|
||||
userVO.setRoles(source.getRoleEOList());
|
||||
userVO.setOrgsstr(source.getOrgIdList());
|
||||
userVO.setOrgs(source.getOrgEOList());
|
||||
resultList.add(userVO);
|
||||
}
|
||||
}
|
||||
return Result.success(resultList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return com.adc.da.sys.entity.UserEO
|
||||
* @Author liwenxuan
|
||||
* @Description //根据roleName获取用户List
|
||||
* @Date Administrator 2018/11/12
|
||||
* @Param [RoleName]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|根据roleName获取用户List")
|
||||
@GetMapping("/getUserListByRoleName")
|
||||
public ResponseMessage<List<UserEO>> getUserListByRoleName(String RoleName) {
|
||||
|
||||
List<UserEO> userListByRoleName = userEOService.getUserListByRoleName(RoleName);
|
||||
if (userListByRoleName == null) {
|
||||
return Result.error();
|
||||
}
|
||||
return Result.success("", "true", userListByRoleName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return com.adc.da.util.http.ResponseMessage<java.util.List < java.lang.String>>
|
||||
* @Author liwenxuan
|
||||
* @Description //ceshi
|
||||
* @Date Administrator 2018/11/23
|
||||
* @Param [userId]
|
||||
**/
|
||||
@ApiOperation(value = "|UserEO|测试")
|
||||
@GetMapping("/ceshi")
|
||||
public ResponseMessage<List<String>> selectThatOrgUser(String userId) {
|
||||
List<String> list = userEOService.selectThatOrgUser(userId);
|
||||
return Result.success("", "", list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|UserEO|重置密码")
|
||||
@PostMapping(value = "/resetPassword")
|
||||
public ResponseMessage resetPassword(String userId) {
|
||||
//翻转
|
||||
userId = new StringBuilder(userId).reverse().toString();
|
||||
//解密
|
||||
userId = new String(Base64.decodeBase64(userId));
|
||||
|
||||
int line = userEOService.resetPassword(userId);
|
||||
if (line == 0) {
|
||||
return Result.error();
|
||||
} else {
|
||||
return Result.success("true","密码重置为:123456a","");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserEO|新增固定账号")
|
||||
@GetMapping(value = "/createSpecialUser")
|
||||
// @RequiresPermissions("sys:user:save")
|
||||
public ResponseMessage<UserVO> createSpecialUser(String account) throws Exception {
|
||||
UserVO userVO = new UserVO();
|
||||
userVO.setOperUser(LoginUserUtil.getUserId());
|
||||
userVO.setPassword("123456");
|
||||
userVO.setAccount(account);
|
||||
userVO.setOrgId("5W2J4AQ8KA");
|
||||
userVO.setDisableFlag(0);
|
||||
List<String> roleId = new ArrayList<>();
|
||||
roleId.add("ZVXUGCP56D");
|
||||
userVO.setRoleIdList(roleId);
|
||||
UserEO userEO=new UserEO();
|
||||
if(userVO!=null){
|
||||
userEO = BeanUtil.toBean(userVO,UserEO.class);
|
||||
userEO.setRoleEOList(userVO.getRoles());
|
||||
userEO.setOrgIdList(userVO.getOrgsstr());
|
||||
userEO.setOrgEOList(userVO.getOrgs());
|
||||
userEO.setPassword(userVO.getPassword());
|
||||
}
|
||||
userEO = userEOService.saveBean(userEO);
|
||||
if (userEO == null) {
|
||||
return Result.error("操作失败");
|
||||
}
|
||||
//TODO 往个人板块插入数据失败
|
||||
// List<PersonConfEO> personConfEOS = personConfEOService.saveConfList(userEO.getUsid());
|
||||
return Result.success("true", "操作成功", userVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ValidFlagEnum;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.entity.UserInfoEO;
|
||||
import com.adc.da.sys.page.UserInfoEOPage;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
import com.adc.da.sys.service.IUserInfoEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/person/userInfo")
|
||||
@Api(description = "|UserInfoEO|")
|
||||
public class UserInfoEOController extends BaseController<UserInfoEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserInfoEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IUserInfoEOService userInfoEOService;
|
||||
@Autowired
|
||||
private IUserEOService userEOService;
|
||||
|
||||
@ApiOperation(value = "|UserInfoEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//@RequiresPermissions("person:userInfo:page")
|
||||
public ResponseMessage<PageInfo<UserInfoEO>> page(UserInfoEOPage page) throws Exception {
|
||||
List<UserInfoEO> rows = userInfoEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|UserInfoEO|查询")
|
||||
@GetMapping("")
|
||||
@RequiresPermissions("person:userInfo:list")
|
||||
public ResponseMessage<List<UserInfoEO>> list(UserInfoEOPage page) throws Exception {
|
||||
return Result.success(userInfoEOService.queryByList(page));
|
||||
}
|
||||
|
||||
/**
|
||||
* 刘寅楠
|
||||
* @param
|
||||
* @return com.adc.da.person.entity.UserInfoEO
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "查找用户信息接口")
|
||||
@GetMapping("/getByUserInfoCode")
|
||||
//@RequiresPermissions("person:userInfo:getByUserInfoCode")
|
||||
public ResponseMessage<UserInfoEO> getByUserInfoCode() throws Exception {
|
||||
//获取当前登录人
|
||||
String userId= LoginUserUtil.getUserId();
|
||||
UserInfoEO userInfoEO =new UserInfoEO();
|
||||
userInfoEO.setUserId(userId);
|
||||
userInfoEO.setValidFlag(ValidFlagEnum.VALID_TRUE.getValue());
|
||||
UserInfoEO getInfo = userInfoEOService.getUserEOAndInfoEOByUserCode(userInfoEO);
|
||||
if(getInfo!=null){
|
||||
//开始获取用户角色信息
|
||||
UserEO user= userEOService.getUserWithRoles(userId);
|
||||
String userRoles = "";
|
||||
if (user!=null && user.getRoleEOList()!=null &&!user.getRoleEOList().isEmpty()) {
|
||||
for (RoleEO role : user.getRoleEOList()) {
|
||||
userRoles += role.getName() + ",";
|
||||
}
|
||||
// RoleEO role=user.getRoleEOList().get(0);
|
||||
getInfo.setUserRole(userRoles);
|
||||
}
|
||||
}
|
||||
return Result.success(getInfo);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 刘寅楠
|
||||
* @param userInfoEO
|
||||
* @param UserId
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ApiOperation(value = "|UserInfoEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("person:userInfo:save")
|
||||
public ResponseMessage<UserInfoEO> create(@RequestBody UserInfoEO userInfoEO, String UserId) throws Exception {
|
||||
// //判断用户必填信息是否为空
|
||||
// if(StringUtils.isBlank(userInfoEO.getOfficePhone())){
|
||||
// return Result.error("r0018","电话号码不能为空");
|
||||
// }
|
||||
// if(StringUtils.isBlank(userInfoEO.getAddress())){
|
||||
// return Result.error("r0019","个人邮箱地址不能为空");
|
||||
// }
|
||||
// if(StringUtils.isBlank(userInfoEO.getMobilePhone())){
|
||||
// return Result.error("r0020","手机号码不能为空");
|
||||
// }
|
||||
// if(StringUtils.isBlank(userInfoEO.getFaxAddress())){
|
||||
// return Result.error("r0021","传真地址不能为空");
|
||||
// }
|
||||
userInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
userInfoEO.setUserId(UserId);
|
||||
userInfoEOService.save(userInfoEO);
|
||||
return Result.success(userInfoEO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @Author liuyinnan
|
||||
* @Description //修改用户详细信息
|
||||
* @Date 19:33 2018/9/20
|
||||
* @Param [userInfoEO, restPath]
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
**/
|
||||
@ApiOperation(value = "保存修改用户信息")
|
||||
@PostMapping(value = "/updatePersonInfo")
|
||||
//@RequiresPermissions("person:userInfo:update")
|
||||
public ResponseMessage update(@RequestBody UserInfoEO userInfoEO) throws Exception {
|
||||
userInfoEO.setUserId(LoginUserUtil.getUserId());
|
||||
/* if(StringUtils.isBlank(userInfoEO.getOfficePhone())){
|
||||
return Result.error("r0018","电话号码不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(userInfoEO.getEmail())){
|
||||
return Result.error("r0019","个人邮箱不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(userInfoEO.getMobilePhone())){
|
||||
return Result.error("r0020","手机号码不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(userInfoEO.getFaxAddress())){
|
||||
return Result.error("r0021","传真地址不能为空");
|
||||
}*/
|
||||
return Result.success(userInfoEOService.updateByUserId(userInfoEO));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "|UserInfoEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("person:userInfo:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
userInfoEOService.removeById(id);
|
||||
logger.info("delete from TS_USER_INFO where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "保存用户信息")
|
||||
@PutMapping("/updateByUserInfo")
|
||||
public ResponseMessage updateByUserInfo(UserInfoEO userInfoEO)throws Exception{
|
||||
String userId= LoginUserUtil.getUserId();
|
||||
return userInfoEOService.updateByUserId(userInfoEO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package com.adc.da.sys.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.ResponseMessageCodeEnum;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.sys.entity.WarnTimeEO;
|
||||
import com.adc.da.sys.page.WarnTimeEOPage;
|
||||
import com.adc.da.sys.service.IWarnTimeEOService;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/warnTime")
|
||||
@Api(description = "|WarnTimeEO|")
|
||||
public class WarnTimeEOController extends BaseController<WarnTimeEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(WarnTimeEOController.class);
|
||||
|
||||
@Autowired
|
||||
private IWarnTimeEOService warnTimeEOService;
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
// @RequiresPermissions("sys:warnTime:page")
|
||||
public ResponseMessage<PageInfo<WarnTimeEO>> page(WarnTimeEOPage page) throws Exception {
|
||||
List<WarnTimeEO> rows = warnTimeEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|查询")
|
||||
@GetMapping("")
|
||||
//@RequiresPermissions("sys:warnTime:list")
|
||||
public ResponseMessage<List<WarnTimeEO>> list(WarnTimeEOPage page) throws Exception {
|
||||
return Result.success(warnTimeEOService.queryByList(page));
|
||||
}
|
||||
/**
|
||||
* @Author liwenxuan
|
||||
* @Description //用来
|
||||
* @Date Administrator 2018/10/14
|
||||
* @Param [id]
|
||||
* @return com.adc.da.util.http.ResponseMessage<com.adc.da.sys.entity.WarnTimeEO>
|
||||
**/
|
||||
@ApiOperation(value = "|WarnTimeEO|详情")
|
||||
@GetMapping("/find")
|
||||
//@RequiresPermissions("sys:warnTime:get")
|
||||
public ResponseMessage<WarnTimeEO> find(WarnTimeEOPage page) throws Exception {
|
||||
List<WarnTimeEO> getList = warnTimeEOService.queryByList(page);
|
||||
WarnTimeEO warnTimeEO = new WarnTimeEO();
|
||||
if (getList != null && getList.size()>0) {
|
||||
warnTimeEO = getList.get(0);
|
||||
}
|
||||
return Result.success("true","操作成功",warnTimeEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("sys:warnTime:save")
|
||||
public ResponseMessage<WarnTimeEO> create(@RequestBody WarnTimeEO warnTimeEO) throws Exception {
|
||||
warnTimeEOService.save(warnTimeEO);
|
||||
return Result.success(warnTimeEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("sys:warnTime:update")
|
||||
public ResponseMessage<WarnTimeEO> update(@RequestBody WarnTimeEO warnTimeEO) throws Exception {
|
||||
warnTimeEOService.updateById(warnTimeEO);
|
||||
return Result.success(warnTimeEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
// @RequiresPermissions("sys:warnTime:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
warnTimeEOService.removeById(id);
|
||||
logger.info("delete from TS_WARN_TIME where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|WarnTimeEO|修改")
|
||||
@PutMapping(value = "/updateSource",consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:warnTime:updateSource")
|
||||
public ResponseMessage<WarnTimeEO> updateSource(@NotNull @RequestBody WarnTimeEO warnTimeEO) throws Exception {
|
||||
WarnTimeEOPage page=new WarnTimeEOPage();
|
||||
List<WarnTimeEO> warnTimeEOList=warnTimeEOService.queryByList(page);
|
||||
if(warnTimeEOList!= null && !warnTimeEOList.isEmpty()){
|
||||
if(warnTimeEOList.size()>1){
|
||||
WarnTimeEO eo=warnTimeEOList.get(0);
|
||||
eo.setWarnType(warnTimeEO.getWarnType());
|
||||
warnTimeEOService.updateById(eo);
|
||||
//此处删除多余数据
|
||||
for(int i=1;i<warnTimeEOList.size();i++){
|
||||
WarnTimeEO e= warnTimeEOList.get(i);
|
||||
warnTimeEOService.removeById(e.getId());
|
||||
}
|
||||
}else{
|
||||
WarnTimeEO eo=warnTimeEOList.get(0);
|
||||
eo.setWarnType(warnTimeEO.getWarnType());
|
||||
warnTimeEOService.updateById(eo);
|
||||
}
|
||||
}else{
|
||||
WarnTimeEO time=new WarnTimeEO();
|
||||
time.setId(UUIDUtils.randomUUID20());
|
||||
time.setWarnType(warnTimeEO.getWarnType());
|
||||
warnTimeEOService.save(time);
|
||||
}
|
||||
return Result.success(ResponseMessageCodeEnum.SUCCESS.getCode(),"设置成功",null);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_FEEDBACK_INFO FeedbackInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class FeedbackInfoEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String userId;
|
||||
private String feedbackInfo;
|
||||
private Integer readFlag;
|
||||
private Integer validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
//新增字段
|
||||
private String duty;
|
||||
private String officePhone;
|
||||
private String mobilePhone;
|
||||
private String uname;
|
||||
private String orgName;
|
||||
private String contentText;
|
||||
|
||||
public String getContentText() {
|
||||
return contentText;
|
||||
}
|
||||
|
||||
public void setContentText(String contentText) {
|
||||
this.contentText = contentText;
|
||||
}
|
||||
|
||||
public String getDuty() {
|
||||
return duty;
|
||||
}
|
||||
|
||||
public void setDuty(String duty) {
|
||||
this.duty = duty;
|
||||
}
|
||||
|
||||
public String getOfficePhone() {
|
||||
return officePhone;
|
||||
}
|
||||
|
||||
public void setOfficePhone(String officePhone) {
|
||||
this.officePhone = officePhone;
|
||||
}
|
||||
|
||||
public String getMobilePhone() {
|
||||
return mobilePhone;
|
||||
}
|
||||
|
||||
public void setMobilePhone(String mobilePhone) {
|
||||
this.mobilePhone = mobilePhone;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFeedbackInfo() {
|
||||
return this.feedbackInfo;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFeedbackInfo(String feedbackInfo) {
|
||||
this.feedbackInfo = feedbackInfo;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReadFlag(Integer readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_LINK_INFO LinkInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-13 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class LinkInfoEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String webName;
|
||||
private String oldWebSite;
|
||||
private String newWebSite;
|
||||
private Integer displaySeq;
|
||||
private Integer isShow;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getWebName() {
|
||||
return this.webName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setWebName(String webName) {
|
||||
this.webName = webName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOldWebSite() {
|
||||
return this.oldWebSite;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOldWebSite(String oldWebSite) {
|
||||
this.oldWebSite = oldWebSite;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getNewWebSite() {
|
||||
return this.newWebSite;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setNewWebSite(String newWebSite) {
|
||||
this.newWebSite = newWebSite;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Integer displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_LOGIN_INFO LoginInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class LoginInfoEO extends BaseEntity {
|
||||
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private String loginAddress;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date loginTime;
|
||||
private String userId;
|
||||
private String id;
|
||||
private int countNum;
|
||||
private String maxCountDate;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>loginAddress -> login_address</li>
|
||||
* <li>loginTime -> login_time</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "loginAddress": return "login_address";
|
||||
case "loginTime": return "login_time";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>login_address -> loginAddress</li>
|
||||
* <li>login_time -> loginTime</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "login_address": return "loginAddress";
|
||||
case "login_time": return "loginTime";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getLoginAddress() {
|
||||
return this.loginAddress;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setLoginAddress(String loginAddress) {
|
||||
this.loginAddress = loginAddress;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getLoginTime() {
|
||||
return this.loginTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setLoginTime(Date loginTime) {
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getCountNum() {
|
||||
return countNum;
|
||||
}
|
||||
|
||||
public void setCountNum(int countNum) {
|
||||
this.countNum = countNum;
|
||||
}
|
||||
|
||||
public String getMaxCountDate() {
|
||||
return maxCountDate;
|
||||
}
|
||||
|
||||
public void setMaxCountDate(String maxCountDate) {
|
||||
this.maxCountDate = maxCountDate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.TreeEntity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_MENU MenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class MenuEO extends TreeEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 2497292638985614077L;
|
||||
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String remarks;
|
||||
private String permission;
|
||||
private Integer isShow;
|
||||
private String icon;
|
||||
private String href;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>permission -> permission</li>
|
||||
* <li>isShow -> is_show</li>
|
||||
* <li>icon -> icon</li>
|
||||
* <li>href -> href</li>
|
||||
* <li>parentIds -> parent_ids</li>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "remarks": return "remarks";
|
||||
case "permission": return "permission";
|
||||
case "isShow": return "is_show";
|
||||
case "icon": return "icon";
|
||||
case "href": return "href";
|
||||
case "parentIds": return "parent_ids";
|
||||
case "parentId": return "parent_id";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>permission -> permission</li>
|
||||
* <li>is_show -> isShow</li>
|
||||
* <li>icon -> icon</li>
|
||||
* <li>href -> href</li>
|
||||
* <li>parent_ids -> parentIds</li>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "remarks": return "remarks";
|
||||
case "permission": return "permission";
|
||||
case "is_show": return "isShow";
|
||||
case "icon": return "icon";
|
||||
case "href": return "href";
|
||||
case "parent_ids": return "parentIds";
|
||||
case "parent_id": return "parentId";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPermission() {
|
||||
return this.permission;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getIcon() {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getHref() {
|
||||
return this.href;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setHref(String href) {
|
||||
this.href = href;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,311 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ORG OrgEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OrgEO extends BaseEntity implements Serializable {
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer isShow;
|
||||
private String parentIds;
|
||||
private String pId;
|
||||
private String shotName;
|
||||
private String remarks;
|
||||
private Integer orgDesc;
|
||||
private String orgType;
|
||||
private String orgCode;
|
||||
private String orgName;
|
||||
private String id;
|
||||
|
||||
//补充字段
|
||||
private String ssoId;
|
||||
private String ssoOrgId;
|
||||
private String userName;
|
||||
private String usId;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
private List<String> parentIdsList;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>isShow -> is_show</li>
|
||||
* <li>parentIds -> parent_ids</li>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>shotName -> shot_name</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>orgDesc -> org_desc</li>
|
||||
* <li>orgType -> org_type</li>
|
||||
* <li>orgCode -> org_code</li>
|
||||
* <li>orgName -> org_name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "isShow": return "is_show";
|
||||
case "parentIds": return "parent_ids";
|
||||
case "parentId": return "parent_id";
|
||||
case "shotName": return "shot_name";
|
||||
case "remarks": return "remarks";
|
||||
case "orgDesc": return "org_desc";
|
||||
case "orgType": return "org_type";
|
||||
case "orgCode": return "org_code";
|
||||
case "orgName": return "org_name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>is_show -> isShow</li>
|
||||
* <li>parent_ids -> parentIds</li>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>shot_name -> shotName</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>org_desc -> orgDesc</li>
|
||||
* <li>org_type -> orgType</li>
|
||||
* <li>org_code -> orgCode</li>
|
||||
* <li>org_name -> orgName</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "is_show": return "isShow";
|
||||
case "parent_ids": return "parentIds";
|
||||
case "parent_id": return "parentId";
|
||||
case "shot_name": return "shotName";
|
||||
case "remarks": return "remarks";
|
||||
case "org_desc": return "orgDesc";
|
||||
case "org_type": return "orgType";
|
||||
case "org_code": return "orgCode";
|
||||
case "org_name": return "orgName";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
if(modifyTime==null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.modifyTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
if(creationTime == null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.creationTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getShotName() {
|
||||
return this.shotName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setShotName(String shotName) {
|
||||
this.shotName = shotName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getOrgDesc() {
|
||||
return this.orgDesc;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgDesc(Integer orgDesc) {
|
||||
this.orgDesc = orgDesc;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgType() {
|
||||
return this.orgType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgCode() {
|
||||
return this.orgCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgCode(String orgCode) {
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgName() {
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getSsoId() {
|
||||
return ssoId;
|
||||
}
|
||||
|
||||
public void setSsoId(String ssoId) {
|
||||
this.ssoId = ssoId;
|
||||
}
|
||||
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUsId() {
|
||||
return usId;
|
||||
}
|
||||
|
||||
public void setUsId(String usId) {
|
||||
this.usId = usId;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public String getSsoOrgId() {
|
||||
return ssoOrgId;
|
||||
}
|
||||
|
||||
public void setSsoOrgId(String ssoOrgId) {
|
||||
this.ssoOrgId = ssoOrgId;
|
||||
}
|
||||
|
||||
public List<String> getParentIdsList() {
|
||||
return parentIdsList;
|
||||
}
|
||||
|
||||
public void setParentIdsList(List<String> parentIdsList) {
|
||||
this.parentIdsList = parentIdsList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE RoleEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleEO extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1386892031737294731L;
|
||||
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String operUser;
|
||||
private String extInfo;
|
||||
private String remarks;
|
||||
private Integer isDefault;
|
||||
private Integer useFlag;
|
||||
private String roleType;
|
||||
private String name;
|
||||
private String id;
|
||||
|
||||
private String operUserName;
|
||||
|
||||
private List<MenuEO> menuEOList = new ArrayList<>();
|
||||
private List<String> menuEOIdList = new ArrayList<>();
|
||||
|
||||
private String orgUseName;
|
||||
|
||||
private Integer disableFlag;
|
||||
|
||||
private Integer unlockFlag;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>operUser -> oper_user</li>
|
||||
* <li>extInfo -> ext_info</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>isDefault -> is_default</li>
|
||||
* <li>useFlag -> use_flag</li>
|
||||
* <li>roleType -> role_type</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "disableFlag": return "disable_flag";
|
||||
case "unlockFlag": return "unlock_flag";
|
||||
case "operUser": return "oper_user";
|
||||
case "extInfo": return "ext_info";
|
||||
case "remarks": return "remarks";
|
||||
case "isDefault": return "is_default";
|
||||
case "useFlag": return "use_flag";
|
||||
case "roleType": return "role_type";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>oper_user -> operUser</li>
|
||||
* <li>ext_info -> extInfo</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>is_default -> isDefault</li>
|
||||
* <li>use_flag -> useFlag</li>
|
||||
* <li>role_type -> roleType</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "disable_flag": return "disableFlag";
|
||||
case "unlock_flag": return "unlockFlag";
|
||||
case "oper_user": return "operUser";
|
||||
case "ext_info": return "extInfo";
|
||||
case "remarks": return "remarks";
|
||||
case "is_default": return "isDefault";
|
||||
case "use_flag": return "useFlag";
|
||||
case "role_type": return "roleType";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
public RoleEO(){}
|
||||
public RoleEO(Date modifyTime, Date creationTime, Integer validFlag, String operUser, String extInfo, String remarks, Integer isDefault, Integer useFlag, String roleType, String name, String id, List<MenuEO> menuEOList, List<String> menuEOIdList, Integer disableFlag, Integer unlockFlag) {
|
||||
this.modifyTime = modifyTime;
|
||||
this.creationTime = creationTime;
|
||||
this.validFlag = validFlag;
|
||||
this.operUser = operUser;
|
||||
this.extInfo = extInfo;
|
||||
this.remarks = remarks;
|
||||
this.isDefault = isDefault;
|
||||
this.useFlag = useFlag;
|
||||
this.roleType = roleType;
|
||||
this.name = name;
|
||||
this.id = id;
|
||||
this.menuEOList = menuEOList;
|
||||
this.menuEOIdList = menuEOIdList;
|
||||
this.disableFlag=disableFlag;
|
||||
this.unlockFlag=unlockFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
if(modifyTime==null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.modifyTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
if(creationTime == null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.creationTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOperUser() {
|
||||
return this.operUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getUseFlag() {
|
||||
return this.useFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUseFlag(Integer useFlag) {
|
||||
this.useFlag = useFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRoleType() {
|
||||
return this.roleType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRoleType(String roleType) {
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<MenuEO> getMenuEOList() {
|
||||
return menuEOList;
|
||||
}
|
||||
|
||||
public void setMenuEOList(List<MenuEO> menuEOList) {
|
||||
this.menuEOList = menuEOList;
|
||||
}
|
||||
|
||||
public List<String> getMenuEOIdList() {
|
||||
return menuEOIdList;
|
||||
}
|
||||
|
||||
public void setMenuEOIdList(List<String> menuEOIdList) {
|
||||
this.menuEOIdList = menuEOIdList;
|
||||
}
|
||||
|
||||
public RoleEO(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getOperUserName() {
|
||||
return operUserName;
|
||||
}
|
||||
|
||||
public void setOperUserName(String operUserName) {
|
||||
this.operUserName = operUserName;
|
||||
}
|
||||
|
||||
public void setOrgUseName(String orgUseName) {
|
||||
this.orgUseName =orgUseName;
|
||||
}
|
||||
|
||||
public String getOrgUseName(){
|
||||
return this.orgUseName;
|
||||
}
|
||||
|
||||
public void setDisableFlag(Integer disableFlag){
|
||||
this.disableFlag=disableFlag;
|
||||
}
|
||||
|
||||
public Integer getDisableFlag(){
|
||||
return this.disableFlag;
|
||||
}
|
||||
|
||||
public void setUnlockFlag(Integer unlockFlag){
|
||||
this.unlockFlag=unlockFlag;
|
||||
}
|
||||
|
||||
public Integer getUnlockFlag(){
|
||||
return this.unlockFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE_MENU RoleMenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleMenuEO extends BaseEntity {
|
||||
|
||||
private String menuId;
|
||||
private String roleId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>menuId -> menu_id</li>
|
||||
* <li>roleId -> role_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "menuId": return "menu_id";
|
||||
case "roleId": return "role_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>menu_id -> menuId</li>
|
||||
* <li>role_id -> roleId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "menu_id": return "menuId";
|
||||
case "role_id": return "roleId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMenuId() {
|
||||
return this.menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE_SAR_MENU RoleSarMenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-02-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleSarMenuEO extends BaseEntity {
|
||||
|
||||
private String roleId;
|
||||
private String sarMenuId;
|
||||
private List<String> sarMenuIds;
|
||||
|
||||
private String id;
|
||||
private String parentId;
|
||||
private String menuName;
|
||||
private String sorDivide;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>roleId -> role_id</li>
|
||||
* <li>sarMenuId -> sar_menu_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "roleId": return "role_id";
|
||||
case "sarMenuId": return "sar_menu_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>role_id -> roleId</li>
|
||||
* <li>sar_menu_id -> sarMenuId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "role_id": return "roleId";
|
||||
case "sar_menu_id": return "sarMenuId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarMenuId() {
|
||||
return this.sarMenuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarMenuId(String sarMenuId) {
|
||||
this.sarMenuId = sarMenuId;
|
||||
}
|
||||
|
||||
public List<String> getSarMenuIds() {
|
||||
return sarMenuIds;
|
||||
}
|
||||
|
||||
public void setSarMenuIds(List<String> sarMenuIds) {
|
||||
this.sarMenuIds = sarMenuIds;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getMenuName() {
|
||||
return menuName;
|
||||
}
|
||||
|
||||
public void setMenuName(String menuName) {
|
||||
this.menuName = menuName;
|
||||
}
|
||||
|
||||
public String getSorDivide() {
|
||||
return sorDivide;
|
||||
}
|
||||
|
||||
public void setSorDivide(String sorDivide) {
|
||||
this.sorDivide = sorDivide;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_CONFIG UserConfigEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserConfigEO extends BaseEntity {
|
||||
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String configContent;
|
||||
private String configType;
|
||||
private String userId;
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>configContent -> config_content</li>
|
||||
* <li>configType -> config_type</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "configContent": return "config_content";
|
||||
case "configType": return "config_type";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>config_content -> configContent</li>
|
||||
* <li>config_type -> configType</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "config_content": return "configContent";
|
||||
case "config_type": return "configType";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getConfigContent() {
|
||||
return this.configContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setConfigContent(String configContent) {
|
||||
this.configContent = configContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getConfigType() {
|
||||
return this.configType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setConfigType(String configType) {
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,385 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER UserEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserEO extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3658632939727891047L;
|
||||
|
||||
private Integer validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private String operUser;
|
||||
private String extInfo;
|
||||
private String workNum;
|
||||
private String email;
|
||||
private String userSource;
|
||||
private String uname;
|
||||
private String password;
|
||||
private String account;
|
||||
private String usid;
|
||||
// 扩展字段
|
||||
private String userType;
|
||||
private String orgId;
|
||||
private String orgName;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
private List<String> roleIdList = new ArrayList<>();
|
||||
private List<String> roleNameList = new ArrayList<>();
|
||||
private List<RoleEO> roleEOList = new ArrayList<>();
|
||||
private List<String> orgIdList = new ArrayList<>();
|
||||
private List<OrgEO> orgEOList = new ArrayList<>();
|
||||
private String mobilePhone;
|
||||
private String officePhone;
|
||||
private String address;
|
||||
private String faxAddress;
|
||||
private Integer disableFlag;
|
||||
private Integer unlockFlag;
|
||||
private String userInfoId;
|
||||
private String orgType;
|
||||
|
||||
private String ssoId;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>operUser -> oper_user</li>
|
||||
* <li>extInfo -> ext_info</li>
|
||||
* <li>workNum -> work_num</li>
|
||||
* <li>email -> email</li>
|
||||
* <li>userSource -> user_source</li>
|
||||
* <li>uname -> uname</li>
|
||||
* <li>password -> password</li>
|
||||
* <li>account -> account</li>
|
||||
* <li>usid -> usid</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
switch (fieldName) {
|
||||
case "validFlag": return "valid_flag";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "operUser": return "oper_user";
|
||||
case "extInfo": return "ext_info";
|
||||
case "workNum": return "work_num";
|
||||
case "email": return "email";
|
||||
case "userSource": return "user_source";
|
||||
case "unlockFlag": return "unlock_flag";
|
||||
case "uname": return "uname";
|
||||
case "password": return "password";
|
||||
case "account": return "account";
|
||||
case "usid": return "usid";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>oper_user -> operUser</li>
|
||||
* <li>ext_info -> extInfo</li>
|
||||
* <li>work_num -> workNum</li>
|
||||
* <li>email -> email</li>
|
||||
* <li>user_source -> userSource</li>
|
||||
* <li>uname -> uname</li>
|
||||
* <li>password -> password</li>
|
||||
* <li>account -> account</li>
|
||||
* <li>usid -> usid</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
switch (columnName) {
|
||||
case "valid_flag": return "validFlag";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "oper_user": return "operUser";
|
||||
case "ext_info": return "extInfo";
|
||||
case "work_num": return "workNum";
|
||||
case "email": return "email";
|
||||
case "user_source": return "userSource";
|
||||
case "unlock_flag": return "unlockFlag";
|
||||
case "uname": return "uname";
|
||||
case "password": return "password";
|
||||
case "account": return "account";
|
||||
case "usid": return "usid";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
if(modifyTime==null){
|
||||
return new Date();
|
||||
}else{
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
if(creationTime == null){
|
||||
return new Date();
|
||||
}else{
|
||||
return creationTime;
|
||||
}
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getOperUser() {
|
||||
return operUser;
|
||||
}
|
||||
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
public String getWorkNum() {
|
||||
return workNum;
|
||||
}
|
||||
|
||||
public void setWorkNum(String workNum) {
|
||||
this.workNum = workNum;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getUserSource() {
|
||||
return userSource;
|
||||
}
|
||||
|
||||
public void setUserSource(String userSource) {
|
||||
this.userSource = userSource;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getUsid() {
|
||||
return usid;
|
||||
}
|
||||
|
||||
public void setUsid(String usid) {
|
||||
this.usid = usid;
|
||||
}
|
||||
|
||||
public List<String> getRoleIdList() {
|
||||
return roleIdList;
|
||||
}
|
||||
|
||||
public void setRoleIdList(List<String> roleIdList) {
|
||||
this.roleIdList = roleIdList;
|
||||
}
|
||||
|
||||
public List<RoleEO> getRoleEOList() {
|
||||
return roleEOList;
|
||||
}
|
||||
|
||||
public void setRoleEOList(List<RoleEO> roleEOList) {
|
||||
this.roleEOList = roleEOList;
|
||||
}
|
||||
|
||||
public List<String> getOrgIdList() {
|
||||
return orgIdList;
|
||||
}
|
||||
|
||||
public void setOrgIdList(List<String> orgIdList) {
|
||||
this.orgIdList = orgIdList;
|
||||
}
|
||||
|
||||
public List<OrgEO> getOrgEOList() {
|
||||
return orgEOList;
|
||||
}
|
||||
|
||||
public void setOrgEOList(List<OrgEO> orgEOList) {
|
||||
this.orgEOList = orgEOList;
|
||||
}
|
||||
|
||||
public void setUserType(String userType){
|
||||
this.userType=userType;
|
||||
}
|
||||
|
||||
public String getUserType(){
|
||||
return this.userType;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName){
|
||||
this.orgName=orgName;
|
||||
}
|
||||
|
||||
public String getOrgName(){
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId){
|
||||
this.orgId=orgId;
|
||||
}
|
||||
|
||||
public String getOrgId(){
|
||||
return orgId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId){
|
||||
this.roleId=roleId;
|
||||
}
|
||||
|
||||
public String getRoleId(){
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
public void setMobilePhone(String mobilePhone){
|
||||
this.mobilePhone=mobilePhone;
|
||||
}
|
||||
|
||||
public String getMobilePhone(){
|
||||
return this.mobilePhone;
|
||||
}
|
||||
|
||||
public void setOfficePhone(String officePhone){
|
||||
this.officePhone=officePhone;
|
||||
}
|
||||
public String getOfficePhone(){
|
||||
return this.officePhone;
|
||||
}
|
||||
|
||||
public Integer getDisableFlag() {
|
||||
return disableFlag;
|
||||
}
|
||||
|
||||
public void setDisableFlag(Integer disableFlag) {
|
||||
this.disableFlag = disableFlag;
|
||||
}
|
||||
|
||||
public Integer getUnlockFlag() {
|
||||
return unlockFlag;
|
||||
}
|
||||
|
||||
public void setUnlockFlag(Integer unlockFlag) {
|
||||
this.unlockFlag = unlockFlag;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName){
|
||||
this.roleName=roleName;
|
||||
}
|
||||
|
||||
public String getRoleName(){
|
||||
return this.roleName;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getFaxAddress() {
|
||||
return faxAddress;
|
||||
}
|
||||
|
||||
public void setFaxAddress(String faxAddress) {
|
||||
this.faxAddress = faxAddress;
|
||||
}
|
||||
|
||||
public String getUserInfoId() {
|
||||
return userInfoId;
|
||||
}
|
||||
|
||||
public void setUserInfoId(String userInfoId) {
|
||||
this.userInfoId = userInfoId;
|
||||
}
|
||||
|
||||
public String getSsoId() {
|
||||
return ssoId;
|
||||
}
|
||||
|
||||
public void setSsoId(String ssoId) {
|
||||
this.ssoId = ssoId;
|
||||
}
|
||||
|
||||
public List<String> getRoleNameList() {
|
||||
return roleNameList;
|
||||
}
|
||||
|
||||
public void setRoleNameList(List<String> roleNameList) {
|
||||
this.roleNameList = roleNameList;
|
||||
}
|
||||
|
||||
public String getOrgType() {
|
||||
return orgType;
|
||||
}
|
||||
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,389 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_INFO UserInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserInfoEO extends BaseEntity {
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String signature;
|
||||
private String faxAddress;
|
||||
private String address;
|
||||
private Integer gender;
|
||||
private String partPost;
|
||||
private String assistantPost;
|
||||
private String mainPost;
|
||||
private String mobilePhone;
|
||||
private String officePhone;
|
||||
private String userPic;
|
||||
private String duty;
|
||||
private String userId;
|
||||
private String id;
|
||||
// 追加字段
|
||||
private String account;
|
||||
private String uName;
|
||||
private String email;
|
||||
private String orgName;
|
||||
private String userInfoId;
|
||||
private String configType;
|
||||
private String configContent;
|
||||
// 追加
|
||||
private String userRole;
|
||||
|
||||
public String getUserRole() {
|
||||
return userRole;
|
||||
}
|
||||
|
||||
public void setUserRole(String userRole) {
|
||||
this.userRole = userRole;
|
||||
}
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>signature -> signature</li>
|
||||
* <li>faxAddress -> fax_address</li>
|
||||
* <li>address -> address</li>
|
||||
* <li>gender -> gender</li>
|
||||
* <li>partPost -> part_post</li>
|
||||
* <li>assistantPost -> assistant_post</li>
|
||||
* <li>mainPost -> main_post</li>
|
||||
* <li>mobilePhone -> mobile_phone</li>
|
||||
* <li>officePhone -> office_phone</li>
|
||||
* <li>userPic -> user_pic</li>
|
||||
* <li>duty -> duty</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime":
|
||||
return "modify_time";
|
||||
case "creationTime":
|
||||
return "creation_time";
|
||||
case "validFlag":
|
||||
return "valid_flag";
|
||||
case "signature":
|
||||
return "signature";
|
||||
case "faxAddress":
|
||||
return "fax_address";
|
||||
case "address":
|
||||
return "address";
|
||||
case "gender":
|
||||
return "gender";
|
||||
case "partPost":
|
||||
return "part_post";
|
||||
case "assistantPost":
|
||||
return "assistant_post";
|
||||
case "mainPost":
|
||||
return "main_post";
|
||||
case "mobilePhone":
|
||||
return "mobile_phone";
|
||||
case "officePhone":
|
||||
return "office_phone";
|
||||
case "userPic":
|
||||
return "user_pic";
|
||||
case "duty":
|
||||
return "duty";
|
||||
case "userId":
|
||||
return "user_id";
|
||||
case "id":
|
||||
return "id";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>signature -> signature</li>
|
||||
* <li>fax_address -> faxAddress</li>
|
||||
* <li>address -> address</li>
|
||||
* <li>gender -> gender</li>
|
||||
* <li>part_post -> partPost</li>
|
||||
* <li>assistant_post -> assistantPost</li>
|
||||
* <li>main_post -> mainPost</li>
|
||||
* <li>mobile_phone -> mobilePhone</li>
|
||||
* <li>office_phone -> officePhone</li>
|
||||
* <li>user_pic -> userPic</li>
|
||||
* <li>duty -> duty</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time":
|
||||
return "modifyTime";
|
||||
case "creation_time":
|
||||
return "creationTime";
|
||||
case "valid_flag":
|
||||
return "validFlag";
|
||||
case "signature":
|
||||
return "signature";
|
||||
case "fax_address":
|
||||
return "faxAddress";
|
||||
case "address":
|
||||
return "address";
|
||||
case "gender":
|
||||
return "gender";
|
||||
case "part_post":
|
||||
return "partPost";
|
||||
case "assistant_post":
|
||||
return "assistantPost";
|
||||
case "main_post":
|
||||
return "mainPost";
|
||||
case "mobile_phone":
|
||||
return "mobilePhone";
|
||||
case "office_phone":
|
||||
return "officePhone";
|
||||
case "user_pic":
|
||||
return "userPic";
|
||||
case "duty":
|
||||
return "duty";
|
||||
case "user_id":
|
||||
return "userId";
|
||||
case "id":
|
||||
return "id";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getSignature() {
|
||||
return signature;
|
||||
}
|
||||
|
||||
public void setSignature(String signature) {
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFaxAddress() {
|
||||
return this.faxAddress;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFaxAddress(String faxAddress) {
|
||||
this.faxAddress = faxAddress;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setGender(Integer gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPartPost() {
|
||||
return this.partPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPartPost(String partPost) {
|
||||
this.partPost = partPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAssistantPost() {
|
||||
return this.assistantPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAssistantPost(String assistantPost) {
|
||||
this.assistantPost = assistantPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMainPost() {
|
||||
return this.mainPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMainPost(String mainPost) {
|
||||
this.mainPost = mainPost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMobilePhone() {
|
||||
return this.mobilePhone;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMobilePhone(String mobilePhone) {
|
||||
this.mobilePhone = mobilePhone;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOfficePhone() {
|
||||
return this.officePhone;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOfficePhone(String officePhone) {
|
||||
this.officePhone = officePhone;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserPic() {
|
||||
return this.userPic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserPic(String userPic) {
|
||||
this.userPic = userPic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDuty() {
|
||||
return this.duty;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDuty(String duty) {
|
||||
this.duty = duty;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getuName() {
|
||||
return uName;
|
||||
}
|
||||
|
||||
public void setuName(String uName) {
|
||||
this.uName = uName;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getUserInfoId() {
|
||||
return userInfoId;
|
||||
}
|
||||
|
||||
public void setUserInfoId(String userInfoId) {
|
||||
this.userInfoId = userInfoId;
|
||||
}
|
||||
|
||||
public String getConfigType() {
|
||||
return configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType) {
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
public String getConfigContent() {
|
||||
return configContent;
|
||||
}
|
||||
|
||||
public void setConfigContent(String configContent) {
|
||||
this.configContent = configContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_ORG UserOrgEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserOrgEO extends BaseEntity {
|
||||
|
||||
private String orgId;
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>orgId -> org_id</li>
|
||||
* <li>userId -> user_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "orgId": return "org_id";
|
||||
case "userId": return "user_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>org_id -> orgId</li>
|
||||
* <li>user_id -> userId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "org_id": return "orgId";
|
||||
case "user_id": return "userId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_ROLE UserRoleEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserRoleEO extends BaseEntity {
|
||||
|
||||
private String roleId;
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>roleId -> role_id</li>
|
||||
* <li>userId -> user_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "roleId": return "role_id";
|
||||
case "userId": return "user_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>role_id -> roleId</li>
|
||||
* <li>user_id -> userId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "role_id": return "roleId";
|
||||
case "user_id": return "userId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.sys.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_WARN_TIME WarnTimeEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class WarnTimeEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String warnType;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>warnType -> warn_type</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "warnType": return "warn_type";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>warn_type -> warnType</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "warn_type": return "warnType";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getWarnType() {
|
||||
return this.warnType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setWarnType(String warnType) {
|
||||
this.warnType = warnType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,222 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_FEEDBACK_INFO FeedbackInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class FeedbackInfoEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String feedbackInfo;
|
||||
private String feedbackInfoOperator = "=";
|
||||
private String readFlag;
|
||||
private String readFlagOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
|
||||
// 附加字段
|
||||
private String uname;
|
||||
private String orgType;
|
||||
private String[] idlist;
|
||||
private String contentText;
|
||||
private String selfId;
|
||||
|
||||
public String getContentText() {
|
||||
return contentText;
|
||||
}
|
||||
|
||||
public void setContentText(String contentText) {
|
||||
this.contentText = contentText;
|
||||
}
|
||||
|
||||
public String[] getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(String[] idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getFeedbackInfo() {
|
||||
return this.feedbackInfo;
|
||||
}
|
||||
|
||||
public void setFeedbackInfo(String feedbackInfo) {
|
||||
this.feedbackInfo = feedbackInfo;
|
||||
}
|
||||
|
||||
public String getFeedbackInfoOperator() {
|
||||
return this.feedbackInfoOperator;
|
||||
}
|
||||
|
||||
public void setFeedbackInfoOperator(String feedbackInfoOperator) {
|
||||
this.feedbackInfoOperator = feedbackInfoOperator;
|
||||
}
|
||||
|
||||
public String getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
public void setReadFlag(String readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
public String getReadFlagOperator() {
|
||||
return this.readFlagOperator;
|
||||
}
|
||||
|
||||
public void setReadFlagOperator(String readFlagOperator) {
|
||||
this.readFlagOperator = readFlagOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getOrgType() {
|
||||
return orgType;
|
||||
}
|
||||
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
public String getSelfId() {
|
||||
return selfId;
|
||||
}
|
||||
|
||||
public void setSelfId(String selfId) {
|
||||
this.selfId = selfId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_LINK_INFO LinkInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-13 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class LinkInfoEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String webName;
|
||||
private String webNameOperator = "=";
|
||||
private String oldWebSite;
|
||||
private String oldWebSiteOperator = "=";
|
||||
private String newWebSite;
|
||||
private String newWebSiteOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
private String isShow;
|
||||
private String isShowOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getWebName() {
|
||||
return this.webName;
|
||||
}
|
||||
|
||||
public void setWebName(String webName) {
|
||||
this.webName = webName;
|
||||
}
|
||||
|
||||
public String getWebNameOperator() {
|
||||
return this.webNameOperator;
|
||||
}
|
||||
|
||||
public void setWebNameOperator(String webNameOperator) {
|
||||
this.webNameOperator = webNameOperator;
|
||||
}
|
||||
|
||||
public String getOldWebSite() {
|
||||
return this.oldWebSite;
|
||||
}
|
||||
|
||||
public void setOldWebSite(String oldWebSite) {
|
||||
this.oldWebSite = oldWebSite;
|
||||
}
|
||||
|
||||
public String getOldWebSiteOperator() {
|
||||
return this.oldWebSiteOperator;
|
||||
}
|
||||
|
||||
public void setOldWebSiteOperator(String oldWebSiteOperator) {
|
||||
this.oldWebSiteOperator = oldWebSiteOperator;
|
||||
}
|
||||
|
||||
public String getNewWebSite() {
|
||||
return this.newWebSite;
|
||||
}
|
||||
|
||||
public void setNewWebSite(String newWebSite) {
|
||||
this.newWebSite = newWebSite;
|
||||
}
|
||||
|
||||
public String getNewWebSiteOperator() {
|
||||
return this.newWebSiteOperator;
|
||||
}
|
||||
|
||||
public void setNewWebSiteOperator(String newWebSiteOperator) {
|
||||
this.newWebSiteOperator = newWebSiteOperator;
|
||||
}
|
||||
|
||||
public String getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
public void setDisplaySeq(String displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String getDisplaySeqOperator() {
|
||||
return this.displaySeqOperator;
|
||||
}
|
||||
|
||||
public void setDisplaySeqOperator(String displaySeqOperator) {
|
||||
this.displaySeqOperator = displaySeqOperator;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getIsShowOperator() {
|
||||
return this.isShowOperator;
|
||||
}
|
||||
|
||||
public void setIsShowOperator(String isShowOperator) {
|
||||
this.isShowOperator = isShowOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_LOGIN_INFO LoginInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class LoginInfoEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String loginAddress;
|
||||
private String loginAddressOperator = "=";
|
||||
private String loginTime;
|
||||
private String loginTime1;
|
||||
private String loginTime2;
|
||||
private String loginTimeOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getLoginAddress() {
|
||||
return this.loginAddress;
|
||||
}
|
||||
|
||||
public void setLoginAddress(String loginAddress) {
|
||||
this.loginAddress = loginAddress;
|
||||
}
|
||||
|
||||
public String getLoginAddressOperator() {
|
||||
return this.loginAddressOperator;
|
||||
}
|
||||
|
||||
public void setLoginAddressOperator(String loginAddressOperator) {
|
||||
this.loginAddressOperator = loginAddressOperator;
|
||||
}
|
||||
|
||||
public String getLoginTime() {
|
||||
return this.loginTime;
|
||||
}
|
||||
|
||||
public void setLoginTime(String loginTime) {
|
||||
this.loginTime = loginTime;
|
||||
}
|
||||
|
||||
public String getLoginTime1() {
|
||||
return this.loginTime1;
|
||||
}
|
||||
|
||||
public void setLoginTime1(String loginTime1) {
|
||||
this.loginTime1 = loginTime1;
|
||||
}
|
||||
|
||||
public String getLoginTime2() {
|
||||
return this.loginTime2;
|
||||
}
|
||||
|
||||
public void setLoginTime2(String loginTime2) {
|
||||
this.loginTime2 = loginTime2;
|
||||
}
|
||||
|
||||
public String getLoginTimeOperator() {
|
||||
return this.loginTimeOperator;
|
||||
}
|
||||
|
||||
public void setLoginTimeOperator(String loginTimeOperator) {
|
||||
this.loginTimeOperator = loginTimeOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE RoleEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String operUser;
|
||||
private String operUserOperator = "=";
|
||||
private String extInfo;
|
||||
private String extInfoOperator = "=";
|
||||
private String remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String isDefault;
|
||||
private String isDefaultOperator = "=";
|
||||
private String useFlag;
|
||||
private String useFlagOperator = "=";
|
||||
private String roleType;
|
||||
private String roleTypeOperator = "=";
|
||||
private String name;
|
||||
private String nameOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getOperUser() {
|
||||
return this.operUser;
|
||||
}
|
||||
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getOperUserOperator() {
|
||||
return this.operUserOperator;
|
||||
}
|
||||
|
||||
public void setOperUserOperator(String operUserOperator) {
|
||||
this.operUserOperator = operUserOperator;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
public String getExtInfoOperator() {
|
||||
return this.extInfoOperator;
|
||||
}
|
||||
|
||||
public void setExtInfoOperator(String extInfoOperator) {
|
||||
this.extInfoOperator = extInfoOperator;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarksOperator() {
|
||||
return this.remarksOperator;
|
||||
}
|
||||
|
||||
public void setRemarksOperator(String remarksOperator) {
|
||||
this.remarksOperator = remarksOperator;
|
||||
}
|
||||
|
||||
public String getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(String isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public String getIsDefaultOperator() {
|
||||
return this.isDefaultOperator;
|
||||
}
|
||||
|
||||
public void setIsDefaultOperator(String isDefaultOperator) {
|
||||
this.isDefaultOperator = isDefaultOperator;
|
||||
}
|
||||
|
||||
public String getUseFlag() {
|
||||
return this.useFlag;
|
||||
}
|
||||
|
||||
public void setUseFlag(String useFlag) {
|
||||
this.useFlag = useFlag;
|
||||
}
|
||||
|
||||
public String getUseFlagOperator() {
|
||||
return this.useFlagOperator;
|
||||
}
|
||||
|
||||
public void setUseFlagOperator(String useFlagOperator) {
|
||||
this.useFlagOperator = useFlagOperator;
|
||||
}
|
||||
|
||||
public String getRoleType() {
|
||||
return this.roleType;
|
||||
}
|
||||
|
||||
public void setRoleType(String roleType) {
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
public String getRoleTypeOperator() {
|
||||
return this.roleTypeOperator;
|
||||
}
|
||||
|
||||
public void setRoleTypeOperator(String roleTypeOperator) {
|
||||
this.roleTypeOperator = roleTypeOperator;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNameOperator() {
|
||||
return this.nameOperator;
|
||||
}
|
||||
|
||||
public void setNameOperator(String nameOperator) {
|
||||
this.nameOperator = nameOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE_MENU RoleMenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleMenuEOPage extends BasePage {
|
||||
|
||||
private String menuId;
|
||||
private String menuIdOperator = "=";
|
||||
private String roleId;
|
||||
private String roleIdOperator = "=";
|
||||
|
||||
public String getMenuId() {
|
||||
return this.menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getMenuIdOperator() {
|
||||
return this.menuIdOperator;
|
||||
}
|
||||
|
||||
public void setMenuIdOperator(String menuIdOperator) {
|
||||
this.menuIdOperator = menuIdOperator;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleIdOperator() {
|
||||
return this.roleIdOperator;
|
||||
}
|
||||
|
||||
public void setRoleIdOperator(String roleIdOperator) {
|
||||
this.roleIdOperator = roleIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE_SAR_MENU RoleSarMenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-02-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleSarMenuEOPage extends BasePage {
|
||||
|
||||
private String roleId;
|
||||
private String roleIdOperator = "=";
|
||||
private String sarMenuId;
|
||||
private String sarMenuIdOperator = "=";
|
||||
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleIdOperator() {
|
||||
return this.roleIdOperator;
|
||||
}
|
||||
|
||||
public void setRoleIdOperator(String roleIdOperator) {
|
||||
this.roleIdOperator = roleIdOperator;
|
||||
}
|
||||
|
||||
public String getSarMenuId() {
|
||||
return this.sarMenuId;
|
||||
}
|
||||
|
||||
public void setSarMenuId(String sarMenuId) {
|
||||
this.sarMenuId = sarMenuId;
|
||||
}
|
||||
|
||||
public String getSarMenuIdOperator() {
|
||||
return this.sarMenuIdOperator;
|
||||
}
|
||||
|
||||
public void setSarMenuIdOperator(String sarMenuIdOperator) {
|
||||
this.sarMenuIdOperator = sarMenuIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_CONFIG UserConfigEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserConfigEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String configContent;
|
||||
private String configContentOperator = "=";
|
||||
private String configType;
|
||||
private String configTypeOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getConfigContent() {
|
||||
return this.configContent;
|
||||
}
|
||||
|
||||
public void setConfigContent(String configContent) {
|
||||
this.configContent = configContent;
|
||||
}
|
||||
|
||||
public String getConfigContentOperator() {
|
||||
return this.configContentOperator;
|
||||
}
|
||||
|
||||
public void setConfigContentOperator(String configContentOperator) {
|
||||
this.configContentOperator = configContentOperator;
|
||||
}
|
||||
|
||||
public String getConfigType() {
|
||||
return this.configType;
|
||||
}
|
||||
|
||||
public void setConfigType(String configType) {
|
||||
this.configType = configType;
|
||||
}
|
||||
|
||||
public String getConfigTypeOperator() {
|
||||
return this.configTypeOperator;
|
||||
}
|
||||
|
||||
public void setConfigTypeOperator(String configTypeOperator) {
|
||||
this.configTypeOperator = configTypeOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,256 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER UserEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2017-11-06 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserEOPage extends BasePage {
|
||||
|
||||
private String usid;
|
||||
private String usidOperator = "=";
|
||||
private String account;
|
||||
private String accountOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String password;
|
||||
private String passwordOperator = "=";
|
||||
private String uname;
|
||||
private String unameOperator = "like";
|
||||
private String roleName;
|
||||
private String roleNameOperator = "like";
|
||||
private String roleId;
|
||||
private String roleIdOperator = "=";
|
||||
private String orgName;
|
||||
private String orgNameOperator = "=";
|
||||
private String workNum;
|
||||
private String workNumOperator ="=";
|
||||
private String orgId;
|
||||
private String orgIdOperator = "=";
|
||||
private String disableFlag;
|
||||
private String disableFlagOperator = "=";
|
||||
private String unlockFlag;
|
||||
private String unlockFLagOperator = "=";
|
||||
private String userType;
|
||||
private String userTypeOperator = "=";
|
||||
private boolean disAdmin=true;
|
||||
|
||||
|
||||
|
||||
public String getUsid() {
|
||||
return this.usid;
|
||||
}
|
||||
|
||||
public void setUsid(String usid) {
|
||||
this.usid = usid;
|
||||
}
|
||||
|
||||
public String getUsidOperator() {
|
||||
return this.usidOperator;
|
||||
}
|
||||
|
||||
public void setUsidOperator(String usidOperator) {
|
||||
this.usidOperator = usidOperator;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return this.account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getAccountOperator() {
|
||||
return this.accountOperator;
|
||||
}
|
||||
|
||||
public void setAccountOperator(String accountOperator) {
|
||||
this.accountOperator = accountOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return this.password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getPasswordOperator() {
|
||||
return this.passwordOperator;
|
||||
}
|
||||
|
||||
public void setPasswordOperator(String passwordOperator) {
|
||||
this.passwordOperator = passwordOperator;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getUnameOperator() {
|
||||
return this.unameOperator;
|
||||
}
|
||||
|
||||
public void setUnameOperator(String uameOperator) {
|
||||
this.unameOperator = unameOperator;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgNameOperator() {
|
||||
return orgNameOperator;
|
||||
}
|
||||
|
||||
public void setOrgNameOperator(String orgNameOperator) {
|
||||
this.orgNameOperator = orgNameOperator;
|
||||
}
|
||||
|
||||
public String getWorkNum() {
|
||||
return workNum;
|
||||
}
|
||||
|
||||
public void setWorkNum(String workNum) {
|
||||
this.workNum = workNum;
|
||||
}
|
||||
|
||||
public String getWorkNumOperator() {
|
||||
return workNumOperator;
|
||||
}
|
||||
|
||||
public void setWorkNumOperator(String workNumOperator) {
|
||||
this.workNumOperator = workNumOperator;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleIdOperator() {
|
||||
return roleIdOperator;
|
||||
}
|
||||
|
||||
public void setRoleIdOperator(String roleIdOperator) {
|
||||
this.roleIdOperator = roleIdOperator;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public void setDisableFlag(String disableFlag){
|
||||
this.disableFlag=disableFlag;
|
||||
}
|
||||
|
||||
public String getDisableFlag(){
|
||||
return this.disableFlag;
|
||||
}
|
||||
|
||||
public void setDisableFlagOperator(String disableFlagOperator){
|
||||
this.disableFlagOperator=disableFlagOperator;
|
||||
}
|
||||
|
||||
public String getDisableFlagOperator(){
|
||||
return this.disableFlagOperator;
|
||||
}
|
||||
|
||||
public void setUnlockFlag(String unlockFlag){
|
||||
this.unlockFlag = unlockFlag;
|
||||
}
|
||||
|
||||
public String getUnlockFlag(){
|
||||
return this.unlockFlag;
|
||||
}
|
||||
|
||||
public void setUnlockFLagOperator(String unlockFLagOperator){
|
||||
this.unlockFLagOperator =unlockFLagOperator;
|
||||
}
|
||||
|
||||
public String getUnlockFLagOperator(){
|
||||
return this.unlockFLagOperator;
|
||||
}
|
||||
|
||||
public void setUserType(String userType){
|
||||
this.userType=userType;
|
||||
}
|
||||
public String getUserType(){
|
||||
return this.userType;
|
||||
}
|
||||
|
||||
public String getUserTypeOperator(){
|
||||
return this.userTypeOperator;
|
||||
}
|
||||
public void setUserTypeOperator(String userTypeOperator){
|
||||
this.userTypeOperator=userTypeOperator;
|
||||
}
|
||||
|
||||
public void setRoleNameOperator(String roleNameOperator){
|
||||
this.roleNameOperator=roleNameOperator;
|
||||
}
|
||||
public String getRoleNameOperator(){
|
||||
return this.roleNameOperator;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId){
|
||||
this.orgId=orgId;
|
||||
}
|
||||
|
||||
public String getOrgId(){
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public String getOrgIdOperator() {
|
||||
return orgIdOperator;
|
||||
}
|
||||
|
||||
public void setOrgIdOperator(String orgIdOperator) {
|
||||
this.orgIdOperator = orgIdOperator;
|
||||
}
|
||||
|
||||
public boolean isDisAdmin() {
|
||||
return disAdmin;
|
||||
}
|
||||
|
||||
public void setDisAdmin(boolean disAdmin) {
|
||||
this.disAdmin = disAdmin;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,339 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_INFO UserInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserInfoEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String signature;
|
||||
private String signatureOperator = "=";
|
||||
private String faxAddress;
|
||||
private String faxAddressOperator = "=";
|
||||
private String address;
|
||||
private String addressOperator = "=";
|
||||
private String gender;
|
||||
private String genderOperator = "=";
|
||||
private String partPost;
|
||||
private String partPostOperator = "=";
|
||||
private String assistantPost;
|
||||
private String assistantPostOperator = "=";
|
||||
private String mainPost;
|
||||
private String mainPostOperator = "=";
|
||||
private String mobilePhone;
|
||||
private String mobilePhoneOperator = "=";
|
||||
private String officePhone;
|
||||
private String officePhoneOperator = "=";
|
||||
private String userPic;
|
||||
private String userPicOperator = "=";
|
||||
private String duty;
|
||||
private String dutyOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getSignature() {
|
||||
return this.signature;
|
||||
}
|
||||
|
||||
public void setSignature(String signature) {
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
public String getSignatureOperator() {
|
||||
return this.signatureOperator;
|
||||
}
|
||||
|
||||
public void setSignatureOperator(String signatureOperator) {
|
||||
this.signatureOperator = signatureOperator;
|
||||
}
|
||||
|
||||
public String getFaxAddress() {
|
||||
return this.faxAddress;
|
||||
}
|
||||
|
||||
public void setFaxAddress(String faxAddress) {
|
||||
this.faxAddress = faxAddress;
|
||||
}
|
||||
|
||||
public String getFaxAddressOperator() {
|
||||
return this.faxAddressOperator;
|
||||
}
|
||||
|
||||
public void setFaxAddressOperator(String faxAddressOperator) {
|
||||
this.faxAddressOperator = faxAddressOperator;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddressOperator() {
|
||||
return this.addressOperator;
|
||||
}
|
||||
|
||||
public void setAddressOperator(String addressOperator) {
|
||||
this.addressOperator = addressOperator;
|
||||
}
|
||||
|
||||
public String getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
public void setGender(String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
public String getGenderOperator() {
|
||||
return this.genderOperator;
|
||||
}
|
||||
|
||||
public void setGenderOperator(String genderOperator) {
|
||||
this.genderOperator = genderOperator;
|
||||
}
|
||||
|
||||
public String getPartPost() {
|
||||
return this.partPost;
|
||||
}
|
||||
|
||||
public void setPartPost(String partPost) {
|
||||
this.partPost = partPost;
|
||||
}
|
||||
|
||||
public String getPartPostOperator() {
|
||||
return this.partPostOperator;
|
||||
}
|
||||
|
||||
public void setPartPostOperator(String partPostOperator) {
|
||||
this.partPostOperator = partPostOperator;
|
||||
}
|
||||
|
||||
public String getAssistantPost() {
|
||||
return this.assistantPost;
|
||||
}
|
||||
|
||||
public void setAssistantPost(String assistantPost) {
|
||||
this.assistantPost = assistantPost;
|
||||
}
|
||||
|
||||
public String getAssistantPostOperator() {
|
||||
return this.assistantPostOperator;
|
||||
}
|
||||
|
||||
public void setAssistantPostOperator(String assistantPostOperator) {
|
||||
this.assistantPostOperator = assistantPostOperator;
|
||||
}
|
||||
|
||||
public String getMainPost() {
|
||||
return this.mainPost;
|
||||
}
|
||||
|
||||
public void setMainPost(String mainPost) {
|
||||
this.mainPost = mainPost;
|
||||
}
|
||||
|
||||
public String getMainPostOperator() {
|
||||
return this.mainPostOperator;
|
||||
}
|
||||
|
||||
public void setMainPostOperator(String mainPostOperator) {
|
||||
this.mainPostOperator = mainPostOperator;
|
||||
}
|
||||
|
||||
public String getMobilePhone() {
|
||||
return this.mobilePhone;
|
||||
}
|
||||
|
||||
public void setMobilePhone(String mobilePhone) {
|
||||
this.mobilePhone = mobilePhone;
|
||||
}
|
||||
|
||||
public String getMobilePhoneOperator() {
|
||||
return this.mobilePhoneOperator;
|
||||
}
|
||||
|
||||
public void setMobilePhoneOperator(String mobilePhoneOperator) {
|
||||
this.mobilePhoneOperator = mobilePhoneOperator;
|
||||
}
|
||||
|
||||
public String getOfficePhone() {
|
||||
return this.officePhone;
|
||||
}
|
||||
|
||||
public void setOfficePhone(String officePhone) {
|
||||
this.officePhone = officePhone;
|
||||
}
|
||||
|
||||
public String getOfficePhoneOperator() {
|
||||
return this.officePhoneOperator;
|
||||
}
|
||||
|
||||
public void setOfficePhoneOperator(String officePhoneOperator) {
|
||||
this.officePhoneOperator = officePhoneOperator;
|
||||
}
|
||||
|
||||
public String getUserPic() {
|
||||
return this.userPic;
|
||||
}
|
||||
|
||||
public void setUserPic(String userPic) {
|
||||
this.userPic = userPic;
|
||||
}
|
||||
|
||||
public String getUserPicOperator() {
|
||||
return this.userPicOperator;
|
||||
}
|
||||
|
||||
public void setUserPicOperator(String userPicOperator) {
|
||||
this.userPicOperator = userPicOperator;
|
||||
}
|
||||
|
||||
public String getDuty() {
|
||||
return this.duty;
|
||||
}
|
||||
|
||||
public void setDuty(String duty) {
|
||||
this.duty = duty;
|
||||
}
|
||||
|
||||
public String getDutyOperator() {
|
||||
return this.dutyOperator;
|
||||
}
|
||||
|
||||
public void setDutyOperator(String dutyOperator) {
|
||||
this.dutyOperator = dutyOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_ORG UserOrgEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserOrgEOPage extends BasePage {
|
||||
|
||||
private String orgId;
|
||||
private String orgIdOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getOrgIdOperator() {
|
||||
return this.orgIdOperator;
|
||||
}
|
||||
|
||||
public void setOrgIdOperator(String orgIdOperator) {
|
||||
this.orgIdOperator = orgIdOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_USER_ROLE UserRoleEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class UserRoleEOPage extends BasePage {
|
||||
|
||||
private String roleId;
|
||||
private String roleIdOperator = "=";
|
||||
private String userId;
|
||||
private String userIdOperator = "=";
|
||||
|
||||
public String getRoleId() {
|
||||
return this.roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleIdOperator() {
|
||||
return this.roleIdOperator;
|
||||
}
|
||||
|
||||
public void setRoleIdOperator(String roleIdOperator) {
|
||||
this.roleIdOperator = roleIdOperator;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserIdOperator() {
|
||||
return this.userIdOperator;
|
||||
}
|
||||
|
||||
public void setUserIdOperator(String userIdOperator) {
|
||||
this.userIdOperator = userIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.sys.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_WARN_TIME WarnTimeEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class WarnTimeEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String warnType;
|
||||
private String warnTypeOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getWarnType() {
|
||||
return this.warnType;
|
||||
}
|
||||
|
||||
public void setWarnType(String warnType) {
|
||||
this.warnType = warnType;
|
||||
}
|
||||
|
||||
public String getWarnTypeOperator() {
|
||||
return this.warnTypeOperator;
|
||||
}
|
||||
|
||||
public void setWarnTypeOperator(String warnTypeOperator) {
|
||||
this.warnTypeOperator = warnTypeOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.sys.entity.FeedbackInfoEO;
|
||||
import com.adc.da.sys.page.FeedbackInfoEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IFeedbackInfoEOService extends IService<FeedbackInfoEO> {
|
||||
|
||||
public List<FeedbackInfoEO> queryByPage(FeedbackInfoEOPage page);
|
||||
|
||||
public List<FeedbackInfoEO> queryByList(FeedbackInfoEOPage page);
|
||||
|
||||
public ResponseMessage<FeedbackInfoEO> deleteByPrimaryKeyList(FeedbackInfoEOPage page);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.LinkInfoEO;
|
||||
import com.adc.da.sys.page.LinkInfoEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ILinkInfoEOService extends IService<LinkInfoEO> {
|
||||
|
||||
public List<LinkInfoEO> queryByPage(LinkInfoEOPage page);
|
||||
|
||||
public List<LinkInfoEO> queryByList(LinkInfoEOPage page);
|
||||
|
||||
public int deleteByIds(List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.LoginInfoEO;
|
||||
import com.adc.da.sys.page.LoginInfoEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ILoginInfoEOService extends IService<LoginInfoEO> {
|
||||
|
||||
public List<LoginInfoEO> queryByPage(LoginInfoEOPage page);
|
||||
|
||||
public List<LoginInfoEO> queryByList(LoginInfoEOPage page);
|
||||
|
||||
public int saveBean(LoginInfoEO loginInfoEO);
|
||||
|
||||
public int count();
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.MenuEO;
|
||||
import com.adc.da.sys.page.MenuEOPage;
|
||||
import com.adc.da.sys.vo.MenuVO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IMenuEOService extends IService<MenuEO> {
|
||||
|
||||
public List<MenuEO> queryByList(MenuEOPage page);
|
||||
|
||||
public MenuEO insertMenu(MenuEO menuEO);
|
||||
|
||||
public void updateMenu(MenuVO menuVO);
|
||||
|
||||
public void delete(String[] ids);
|
||||
|
||||
public List<MenuEO> listMenuEOByUserId(String userId);
|
||||
|
||||
public List<MenuEO> findAll();
|
||||
|
||||
public boolean isBelong(String roleId, String menuId);
|
||||
|
||||
public List<MenuEO> listMenuEOByRoleId(String roleId);
|
||||
|
||||
public List<MenuEO> queryByAllMenu(MenuEOPage page);
|
||||
|
||||
public MenuEO creatMenu(MenuEO menuEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.sys.entity.OrgEO;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.OrgEOPage;
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public interface IOrgEOService extends IService<OrgEO> {
|
||||
|
||||
|
||||
public List<OrgEO> listOrgEOByOrgName(String orgName);
|
||||
|
||||
public OrgEO getOrgEOByNameAndPid(String orgName, String pId);
|
||||
|
||||
public List<OrgEO> getOrgEOByPid(String pId);
|
||||
|
||||
public ResponseMessage saveBean(OrgEO orgEO);
|
||||
|
||||
public OrgEO getOrgEOById(String id);
|
||||
|
||||
public ResponseMessage delete(String id);
|
||||
|
||||
public LinkedList<OrgEO> selectOrgAllNode();
|
||||
|
||||
public List<OrgEO> getChildDept(String orgId);
|
||||
|
||||
public LinkedList<OrgEO> getTree();
|
||||
|
||||
// public void addNodes(LinkedList<OrgEO> rootNodes, int i);
|
||||
|
||||
public ResponseMessage updateBeanById(OrgEO orgEO);
|
||||
|
||||
public ResponseMessage<Integer> delOrgRelatedUser(String userId, String orgId);
|
||||
|
||||
public ResponseMessage<Integer> addOrgRelatedUser(String userOrgs);
|
||||
|
||||
public int delOrgRelatedUserByUserId(String usId);
|
||||
|
||||
public List<OrgEO> findById(String id, String orgName);
|
||||
|
||||
public List<OrgEO> getTreeByRole(String roleName);
|
||||
|
||||
public List<OrgEO> getLeaderByUserId(String userId, String orgType, String roleName);
|
||||
|
||||
public List<OrgEO> getTreeByRoleAndOrgId(String roleName, String orgId);
|
||||
|
||||
public List<OrgEO> getTreeByRoleNameAndOrgId(String roleName, String orgId);
|
||||
|
||||
public List<OrgEO> getIdsByorgType();
|
||||
|
||||
public List<String> getAllOrgbyOrgId(String orgId);
|
||||
|
||||
public int getOrgNamebyOrgId(UserVO userVO);
|
||||
|
||||
public List<OrgEO> getTreeByRoleAndOrgId1(String roleName, String orgId);
|
||||
|
||||
public List<OrgEO> getTreeByRoleAndOrgId3(String roleName, UserEO userEO);
|
||||
|
||||
public int getOrgbyOrgId1(String orgId);
|
||||
|
||||
public List<OrgEO> getManagerByOrgId(String roleName, String orgId);
|
||||
|
||||
public List<OrgEO> queryOrgByList(String orgName);
|
||||
|
||||
public List<OrgEO> getTreeByRole2(String roleId);
|
||||
|
||||
public OrgEO getOrgInfoByOrgId(String OrgId);
|
||||
|
||||
public OrgEO getOrgParentInfoOrgId(OrgEO orgEO);
|
||||
|
||||
public List<OrgEO> getOrgRootTree();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.RoleEO;
|
||||
import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.adc.da.sys.page.RoleEOPage;
|
||||
import com.adc.da.sys.vo.RoleVO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IRoleEOService extends IService<RoleEO> {
|
||||
|
||||
public List<RoleEO> queryByPage(RoleEOPage page);
|
||||
|
||||
public List<RoleEO> queryByList(RoleEOPage page);
|
||||
|
||||
public int saveBean(RoleEO sysRoleEO);
|
||||
|
||||
public int updateByPrimaryKeySelective(RoleEO roleEO);
|
||||
|
||||
public RoleEO getRoleWithMenus(String id);
|
||||
|
||||
public List<RoleEO> getSysRoleListByUserId(String userId);
|
||||
|
||||
public void delete(String roleId);
|
||||
|
||||
public List<RoleEO> findAll(RoleVO setRole);
|
||||
|
||||
public List<UserRoleEO> getUserRoleListByRoleId(String roleId);
|
||||
|
||||
public RoleEO saveRoleMenu(RoleEO roleEO);
|
||||
|
||||
public boolean isBelong(String userId, String roleId);
|
||||
|
||||
public int querySectionCount(String roleId);
|
||||
|
||||
public int querySectionCount1(String roleId);
|
||||
|
||||
public List<RoleEO> selectByNameAndId(String id, String name);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.RoleSarMenuEO;
|
||||
import com.adc.da.sys.page.RoleSarMenuEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IRoleSarMenuEOService extends IService<RoleSarMenuEO> {
|
||||
|
||||
public List<RoleSarMenuEO> queryByPage(RoleSarMenuEOPage page);
|
||||
|
||||
public List<RoleSarMenuEO> queryByList(RoleSarMenuEOPage page);
|
||||
|
||||
public List<RoleSarMenuEO> findRoleSarMenu(String roleId);
|
||||
|
||||
public String queryBusinessStandRootId(String SOR_DIVIDE);
|
||||
|
||||
public List<RoleSarMenuEO> selectSarMenuRoots();
|
||||
|
||||
public int insertSubMenu (RoleSarMenuEO roleSarMenuEO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.sys.entity.UserConfigEO;
|
||||
import com.adc.da.sys.page.UserConfigEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IUserConfigEOService extends IService<UserConfigEO> {
|
||||
|
||||
public List<UserConfigEO> queryByPage(UserConfigEOPage page);
|
||||
|
||||
public List<UserConfigEO> queryByList(UserConfigEOPage page);
|
||||
|
||||
public int createPageConfig (String userId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.adc.da.sys.service;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.page.UserEOPage;
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IUserEOService extends IService<UserEO> {
|
||||
|
||||
public UserEO saveBean(UserEO userEO);
|
||||
|
||||
public UserEO getUserByLoginName(String userName, String usid);
|
||||
|
||||
public void updatePassword(String usid, String oldPassword, String newPassword);
|
||||
|
||||
public List<UserEO> queryUserInfoByPage(BasePage basePage);
|
||||
|
||||
public void updateUserEOInfo(UserEO userEO);
|
||||
|
||||
public int delete(List<String> ids);
|
||||
|
||||
public UserEO getUserWithRoles(String id);
|
||||
|
||||
public UserEO getUserWithRolesAll(String id);
|
||||
|
||||
public int saveUserRole(UserEO userEO);
|
||||
|
||||
public UserEO saveUserOrg(UserEO userEO);
|
||||
|
||||
public int updateUserOrg(UserEO userEO);
|
||||
|
||||
public UserEO selectOrgByPrimaryKey(String usid);
|
||||
|
||||
public UserEO selectRoleMessageByPrimaryKey(String usid);
|
||||
|
||||
|
||||
public int resetPassword(String userId);
|
||||
|
||||
public UserEO selectByUnameAndPwd(UserEO userEO);
|
||||
|
||||
public List<UserEO> queryByOrg(BasePage basePage);
|
||||
|
||||
public List<UserEO> queryByPageAndParams(UserEOPage page);
|
||||
|
||||
public List<UserEO> findUserInfoByPage(BasePage basePage);
|
||||
|
||||
public List<String> selectThatOrgUser(String userId);
|
||||
|
||||
public List<UserEO> queryUserEoList(UserEOPage page);
|
||||
|
||||
public List<UserEO> queryUserInfoByWordNum(String workNum);
|
||||
|
||||
public UserEO selectByPrimaryKey(String userId);
|
||||
|
||||
public List<UserEO> getUserListByRoleName(String RoleName);
|
||||
|
||||
public ResponseMessage<UserVO> createOrModifyIf(UserVO userVO);
|
||||
|
||||
|
||||
public List<UserEO> getUserEOBySpecRole(String orgId, String userId);
|
||||
|
||||
public List<UserEO> selectAllUserInfo();
|
||||
|
||||
public UserEO getOrgIdByUserId(String userId);
|
||||
|
||||
public UserEO getUserByLoginNameNotDeleted(String userName);
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user