Merge branch 'develop_master' of http://101.36.229.190:90/LiuChao/foton-slrs-system-rest into develop_2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.adc.da.main.config;
|
||||
|
||||
import org.dozer.DozerBeanMapper;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 各个模块的dozer配置文件
|
||||
*/
|
||||
@Configuration
|
||||
public class DozerConfig {
|
||||
|
||||
@Bean(name = "org.dozer.Mapper")
|
||||
public DozerBeanMapper dozer() {
|
||||
List<String> mappingFiles = Arrays.asList("dozer/dozer-mappings-sys.xml");
|
||||
DozerBeanMapper dozerBean = new DozerBeanMapper();
|
||||
dozerBean.setMappingFiles(mappingFiles);
|
||||
return dozerBean;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
# 数据库配置
|
||||
#=============================================
|
||||
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.url = jdbc:mysql://192.168.10.47:3306/foton_slrs_test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false
|
||||
spring.datasource.url = jdbc:mysql://39.100.23.127:3306/foton_slrs_test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false
|
||||
spring.datasource.username = root
|
||||
spring.datasource.password = root
|
||||
|
||||
@@ -50,4 +50,19 @@ spring.rabbitmq.password=cs986432
|
||||
# ==============================================
|
||||
# 文档存储路径指向
|
||||
# ==============================================
|
||||
file.path=/usr/laws/file/
|
||||
file.path=/usr/laws/file/
|
||||
|
||||
# 云端OCR识别集成配置参数
|
||||
#OCR请求识别URL地址
|
||||
OCR.handleFileUrl = http://61.136.1.103:8091/WebService.asmx/FileConversion
|
||||
# OCR回调接口地址 配置客户本地的IP及端口号
|
||||
OCR.callBackUrl = http://39.98.140.126:10001/api/ocr/OCRRestful/OcrHandleResult
|
||||
OCR.userId =dayuzhou1234
|
||||
OCR.authCode =123456
|
||||
OCR.publicKey =EC4KKA6ZDTCPAOCRBC5M
|
||||
# OCR文件存储路径
|
||||
OCR.ocrPath=D:/APPSOFT/LAWSOCRDEMO/OCRFILE/
|
||||
# OCR文件请求下载或在线预览时URL
|
||||
OCR.ocrDownPath=http://106.2.13.189:8089/downfile/
|
||||
OCR.times=20
|
||||
OCR.convertType=BOTH
|
||||
@@ -0,0 +1,282 @@
|
||||
package com.adc.da.common;
|
||||
|
||||
import com.adc.da.util.utils.StringUtils;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/26 10:10
|
||||
*/
|
||||
public class ConvertHtml2Excel {
|
||||
/**
|
||||
* html表格转excel
|
||||
*/
|
||||
public static HSSFWorkbook table2Excel(String tableHtml, HSSFWorkbook wb, String sheetName) throws Exception {
|
||||
// HSSFWorkbook wb = new HSSFWorkbook();
|
||||
HSSFSheet sheet = wb.createSheet(sheetName);
|
||||
List<Integer> moneyCols =new ArrayList<>();
|
||||
moneyCols.add(1);
|
||||
int headEndRow = 1;
|
||||
List<CrossRangeCellMeta> crossRowEleMetaLs = new ArrayList<CrossRangeCellMeta>();
|
||||
int rowIndex = 0;
|
||||
try {
|
||||
Document data = DocumentHelper.parseText(tableHtml);
|
||||
HSSFCellStyle contentStyle = getContentStyle(wb);
|
||||
// 生成表头
|
||||
Element thead = data.getRootElement().element("thead");
|
||||
HSSFCellStyle titleStyle = getTitleStyle(wb);
|
||||
int ls = 0;//列数
|
||||
if (thead != null) {
|
||||
List<Element> trLs = thead.elements("tr");
|
||||
for (Element trEle : trLs) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, true,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, true,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
// 生成表体
|
||||
Element tbody = data.getRootElement().element("tbody");
|
||||
if (tbody != null) {
|
||||
List<Element> trBody = tbody.elements("tr");
|
||||
for (Element trEle : trBody) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, false,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, false,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
// 生成表体
|
||||
Element tfoot = data.getRootElement().element("tfoot");
|
||||
if (tfoot != null) {
|
||||
List<Element> trFoot = tfoot.elements("tr");
|
||||
for (Element trEle : trFoot) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, false,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, false,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
// 合并表头
|
||||
for (CrossRangeCellMeta crcm : crossRowEleMetaLs) {
|
||||
sheet.addMergedRegion(new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()));
|
||||
HSSFCellStyle mergeStyle;
|
||||
if (crcm.isInHead()) {
|
||||
mergeStyle = titleStyle;
|
||||
} else {
|
||||
mergeStyle = contentStyle;
|
||||
}
|
||||
mergeStyle.setWrapText(true);
|
||||
setRegionStyle(sheet, new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()), mergeStyle);
|
||||
}
|
||||
for (int i = 0; i < ls; i++) {
|
||||
sheet.autoSizeColumn(i, true);//设置列宽
|
||||
sheet.setColumnWidth(i,30*256);
|
||||
// sheet.setColumnWidth(i,sheet.getColumnWidth(i)*15/10);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return wb;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生产行内容
|
||||
*
|
||||
* @return 最后一列的cell index
|
||||
*/
|
||||
/**
|
||||
* @param tdLs th或者td集合
|
||||
* @param rowIndex 行号
|
||||
* @param row POI行对象
|
||||
* @param startCellIndex
|
||||
* @param cellStyle 样式
|
||||
* @param crossRowEleMetaLs 跨行元数据集合
|
||||
* @return
|
||||
*/
|
||||
private static int makeRowCell(List<Element> tdLs, int rowIndex, HSSFRow row, int startCellIndex, HSSFCellStyle cellStyle,
|
||||
List<CrossRangeCellMeta> crossRowEleMetaLs, boolean inHead, List<Integer> moneyCols) {
|
||||
int i = startCellIndex;
|
||||
for (int eleIndex = 0; eleIndex < tdLs.size(); i++, eleIndex++) {
|
||||
int captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
|
||||
while (captureCellSize > 0) {
|
||||
for (int j = 0; j < captureCellSize; j++) {// 当前行跨列处理(补单元格)
|
||||
row.createCell(i);
|
||||
i++;
|
||||
}
|
||||
captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
|
||||
}
|
||||
Element thEle = tdLs.get(eleIndex);
|
||||
String val = thEle.getText();
|
||||
if (StringUtils.isEmpty(val)) {
|
||||
Element e = thEle.element("a");
|
||||
if (e != null) {
|
||||
val = e.getText();
|
||||
}
|
||||
}
|
||||
HSSFCell c = row.createCell(i);
|
||||
if (NumberUtils.isNumber(val)) {
|
||||
if (moneyCols != null && moneyCols.contains(i)) {
|
||||
c.setCellType(CellType.STRING);
|
||||
c.setCellValue(val);
|
||||
} else {
|
||||
c.setCellValue(Double.parseDouble(val));
|
||||
c.setCellType(CellType.STRING);
|
||||
}
|
||||
|
||||
} else {
|
||||
c.setCellType(CellType.STRING);
|
||||
c.setCellValue(new HSSFRichTextString(val));
|
||||
}
|
||||
int rowSpan = NumberUtils.toInt(thEle.attributeValue("rowspan"), 1);
|
||||
int colSpan = NumberUtils.toInt(thEle.attributeValue("colspan"), 1);
|
||||
c.setCellStyle(cellStyle);
|
||||
if (rowSpan > 1 || colSpan > 1) { // 存在跨行或跨列
|
||||
crossRowEleMetaLs.add(new CrossRangeCellMeta(rowIndex, i, rowSpan, colSpan, inHead));
|
||||
}
|
||||
if (colSpan > 1) {// 当前行跨列处理(补单元格)
|
||||
for (int j = 1; j < colSpan; j++) {
|
||||
i++;
|
||||
row.createCell(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置合并单元格的边框样式
|
||||
*
|
||||
* @param sheet
|
||||
* @param region
|
||||
* @param cs
|
||||
*/
|
||||
public static void setRegionStyle(HSSFSheet sheet, CellRangeAddress region, HSSFCellStyle cs) {
|
||||
for (int i = region.getFirstRow(); i <= region.getLastRow(); i++) {
|
||||
HSSFRow row = sheet.getRow(i);
|
||||
for (int j = region.getFirstColumn(); j <= region.getLastColumn(); j++) {
|
||||
HSSFCell cell = row.getCell(j);
|
||||
cell.setCellStyle(cs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得因rowSpan占据的单元格
|
||||
*
|
||||
* @param rowIndex 行号
|
||||
* @param colIndex 列号
|
||||
* @param crossRowEleMetaLs 跨行列元数据
|
||||
* @return 当前行在某列需要占据单元格
|
||||
*/
|
||||
private static int getCaptureCellSize(int rowIndex, int colIndex, List<CrossRangeCellMeta> crossRowEleMetaLs) {
|
||||
int captureCellSize = 0;
|
||||
for (CrossRangeCellMeta crossRangeCellMeta : crossRowEleMetaLs) {
|
||||
if (crossRangeCellMeta.getFirstRow() < rowIndex && crossRangeCellMeta.getLastRow() >= rowIndex) {
|
||||
if (crossRangeCellMeta.getFirstCol() <= colIndex && crossRangeCellMeta.getLastCol() >= colIndex) {
|
||||
captureCellSize = crossRangeCellMeta.getLastCol() - colIndex + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return captureCellSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得标题样式
|
||||
*
|
||||
* @param workbook
|
||||
* @return
|
||||
*/
|
||||
private static HSSFCellStyle getTitleStyle(HSSFWorkbook workbook) {
|
||||
short titlebackgroundcolor = HSSFColor.HSSFColorPredefined.WHITE.getIndex();
|
||||
short fontSize = 11;
|
||||
String fontName = "宋体";
|
||||
HSSFCellStyle style = workbook.createCellStyle();
|
||||
style.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
style.setAlignment(HorizontalAlignment.CENTER);
|
||||
style.setBorderBottom(BorderStyle.THIN); //下边框
|
||||
style.setBorderLeft(BorderStyle.THIN);//左边框
|
||||
style.setBorderTop(BorderStyle.THIN);//上边框
|
||||
style.setBorderRight(BorderStyle.THIN);//右边框
|
||||
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
||||
style.setFillForegroundColor(titlebackgroundcolor);// 背景色
|
||||
style.setWrapText(true);
|
||||
HSSFFont font = workbook.createFont();
|
||||
// font.setFontName(fontName);
|
||||
font.setFontHeightInPoints(fontSize);
|
||||
// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
|
||||
style.setFont(font);
|
||||
return style;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得内容样式
|
||||
*
|
||||
* @param wb
|
||||
* @return
|
||||
*/
|
||||
private static HSSFCellStyle getContentStyle(HSSFWorkbook wb) {
|
||||
short fontSize = 11;
|
||||
// String fontName = "宋体";
|
||||
HSSFCellStyle style = wb.createCellStyle();
|
||||
style.setBorderBottom(BorderStyle.THIN);
|
||||
style.setBorderTop(BorderStyle.THIN);
|
||||
style.setBorderLeft(BorderStyle.THIN);
|
||||
style.setBorderRight(BorderStyle.THIN);
|
||||
HSSFFont font = wb.createFont();
|
||||
// font.setFontName(fontName);
|
||||
font.setFontHeightInPoints(fontSize);
|
||||
style.setFont(font);
|
||||
style.setAlignment(HorizontalAlignment.CENTER);//水平居中
|
||||
style.setVerticalAlignment(VerticalAlignment.CENTER);//垂直居中
|
||||
style.setWrapText(true);
|
||||
return style;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
String cnt = "\n";
|
||||
List<Integer> c =new ArrayList<>();
|
||||
c.add(1);
|
||||
String tableHtml = "<table><tbody><tr><td colspan='2'>11111111</td><td rowspan='3'>3333333333</td><td>444444444</td></tr><tr><td>5555555</td><td>66666</td><td></td></tr><tr><td></td><td>324234</td><td></td></tr></tbody></table>";
|
||||
tableHtml = tableHtml.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt);
|
||||
// HSSFWorkbook hssfWorkbook = ConvertHtml2Excel.table2Excel(tableHtml,c,1);
|
||||
// hssfWorkbook.write(FileUtils.openOutputStream(new File("D:\\test\\test1.xls")));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.adc.da.common;
|
||||
|
||||
/**
|
||||
* @Description: table转excel 跨行元素元数据
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/26 10:14
|
||||
*/
|
||||
public class CrossRangeCellMeta {
|
||||
|
||||
public CrossRangeCellMeta(int firstRowIndex, int firstColIndex, int rowSpan, int colSpan, boolean inHead) {
|
||||
super();
|
||||
this.firstRowIndex = firstRowIndex;
|
||||
this.firstColIndex = firstColIndex;
|
||||
this.rowSpan = rowSpan;
|
||||
this.colSpan = colSpan;
|
||||
this.inHead = inHead;
|
||||
}
|
||||
|
||||
private int firstRowIndex;
|
||||
private int firstColIndex;
|
||||
private int rowSpan;// 跨越行数
|
||||
private int colSpan;// 跨越列数
|
||||
private boolean inHead;
|
||||
|
||||
public boolean isInHead() {
|
||||
return inHead;
|
||||
}
|
||||
|
||||
public CrossRangeCellMeta setInHead(boolean inHead) {
|
||||
this.inHead = inHead;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getFirstRow() {
|
||||
return firstRowIndex;
|
||||
}
|
||||
|
||||
public int getLastRow() {
|
||||
return firstRowIndex + rowSpan - 1;
|
||||
}
|
||||
|
||||
public int getFirstCol() {
|
||||
return firstColIndex;
|
||||
}
|
||||
|
||||
public int getLastCol() {
|
||||
return firstColIndex + colSpan - 1;
|
||||
}
|
||||
|
||||
public int getColSpan() {
|
||||
return colSpan;
|
||||
}
|
||||
}
|
||||
+25
-21
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import static com.adc.da.login.util.UserUtils.getUserName;
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
@@ -68,6 +69,7 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
||||
.updateTime(new Date())
|
||||
.updatePeople(addDetailedDto.getUpdatePeople())
|
||||
.remark(addDetailedDto.getRemark())
|
||||
.updatePeople(getUserName())
|
||||
.build();
|
||||
switch (addDetailedDto.getSortKey()) {
|
||||
case "1":
|
||||
@@ -113,34 +115,36 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
||||
wrapper.eq("sort_key",sortKey);
|
||||
Page<SarLawsDetailedList> page = new Page<>(pages, size);
|
||||
IPage<SarLawsDetailedList> userIPage = sarLawsDetailedListDao.selectPage(page, wrapper);
|
||||
Map<String,Object> map= iDicTypeEOService.getDicTypeListCode();
|
||||
List<SarLawsDetailedList> list= userIPage.getRecords();
|
||||
List<Map<String, String>> arr = (List<Map<String, String>>)map.get("COUNTRY");
|
||||
for (SarLawsDetailedList list1:list){
|
||||
if (list1.getCountryArea().contains(",")){
|
||||
String[] split = list1.getCountryArea().split(",");
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (String s:split){
|
||||
if ("1".equals(sortKey)){
|
||||
Map<String,Object> map= iDicTypeEOService.getDicTypeListCode();
|
||||
List<SarLawsDetailedList> list= userIPage.getRecords();
|
||||
List<Map<String, String>> arr = (List<Map<String, String>>)map.get("COUNTRY");
|
||||
for (SarLawsDetailedList list1:list){
|
||||
if (StringUtils.isNotBlank(list1.getCountryArea()) && list1.getCountryArea().contains(",")){
|
||||
String[] split = list1.getCountryArea().split(",");
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (String s:split){
|
||||
for (Map<String,String> map1:arr) {
|
||||
if (map1.get("value").equals(s)){
|
||||
s=map1.get("label");
|
||||
builder.append(s+",");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
String completedString = builder.delete(builder.length()-1,builder.length()).toString();
|
||||
list1.setCountryArea(completedString);
|
||||
}else {
|
||||
for (Map<String,String> map1:arr) {
|
||||
if (map1.get("value").equals(s)){
|
||||
s=map1.get("label");
|
||||
builder.append(s+",");
|
||||
if (map1.get("value").equals(list1.getCountryArea())){
|
||||
list1.setCountryArea(map1.get("label"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
String completedString = builder.delete(builder.length()-1,builder.length()).toString();
|
||||
list1.setCountryArea(completedString);
|
||||
}else {
|
||||
for (Map<String,String> map1:arr) {
|
||||
if (map1.get("value").equals(list1.getCountryArea())){
|
||||
list1.setCountryArea(map1.get("label"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
userIPage.setRecords(list);
|
||||
}
|
||||
userIPage.setRecords(list);
|
||||
System.out.println("总条数" + userIPage.getTotal());
|
||||
System.out.println("总页数" + userIPage.getPages());
|
||||
return userIPage;
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.adc.da.slrs.sarMenuStandard.controller;
|
||||
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarMenu.entity.SarMenu;
|
||||
import com.adc.da.slrs.sarMenu.service.ISarMenuService;
|
||||
import com.adc.da.slrs.sarMenuStandard.service.ISarMenuStandardService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.adc.da.slrs.sarMenuStandard.entity.SarMenuStandard;
|
||||
import io.swagger.annotations.Api;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "福田标准法规--标准法规库-菜单标准体系")
|
||||
@RequestMapping("/${restPath}/lawss/sarMenuStandard")
|
||||
public class SarMenuStandardController extends BaseController<SarMenuStandard> {
|
||||
|
||||
@Autowired
|
||||
private ISarMenuStandardService iSarMenuStandardService;
|
||||
|
||||
@ApiOperation("查询所有菜单")
|
||||
@GetMapping
|
||||
public ResponseMessage<List<SarMenuStandard>> getAll(@RequestParam String dicId){
|
||||
List<SarMenuStandard> sarMenus=iSarMenuStandardService.getAll(dicId);
|
||||
return Result.success(sarMenus);
|
||||
}
|
||||
|
||||
@ApiOperation("根据ID查询菜单")
|
||||
@GetMapping("/getSarMenuStandardById")
|
||||
public ResponseMessage<SarMenuStandard> getSarMenuStandardById(@RequestParam String menuId){
|
||||
SarMenuStandard sarMenus = iSarMenuStandardService.getById(menuId);
|
||||
if(sarMenus != null && sarMenus.getParentIds() != null && StringUtils.isNotBlank(sarMenus.getParentIds())){
|
||||
List<SarMenuStandard> menuStandards = iSarMenuStandardService.getMenuByIds(Arrays.asList(sarMenus.getParentIds().split(",")));
|
||||
if(!menuStandards.isEmpty()){
|
||||
String parentIdsName = menuStandards.stream().map(SarMenuStandard::getMenuName).collect(Collectors.joining(","));
|
||||
sarMenus.setParentIdsName(parentIdsName);
|
||||
}
|
||||
}
|
||||
return Result.success(sarMenus);
|
||||
}
|
||||
|
||||
@ApiOperation("添加菜单")
|
||||
@PostMapping("/add")
|
||||
public ResponseMessage<Object> addMenu(@RequestBody SarMenuStandard sarMenu){
|
||||
return iSarMenuStandardService.addMenu(sarMenu);
|
||||
}
|
||||
|
||||
@ApiOperation("编辑菜单")
|
||||
@PutMapping
|
||||
public ResponseMessage<Object> updateMenu(@Validated(SarMenuStandard.update.class) @RequestBody SarMenuStandard sarMenu){
|
||||
return iSarMenuStandardService.updateMenu(sarMenu);
|
||||
}
|
||||
|
||||
@ApiOperation("删除菜单")
|
||||
@DeleteMapping
|
||||
public ResponseMessage<Object> delMenu(@RequestParam String menuId){
|
||||
return iSarMenuStandardService.delMenu(menuId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.adc.da.slrs.sarMenuStandard.dao;
|
||||
|
||||
import com.adc.da.slrs.sarMenuStandard.entity.SarMenuStandard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
public interface SarMenuStandardDao extends BaseMapper<SarMenuStandard> {
|
||||
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
package com.adc.da.slrs.sarMenuStandard.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeName;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeParentId;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarMenuStandard对象", description="")
|
||||
public class SarMenuStandard extends BaseEntity {
|
||||
public interface update{
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotNull(message = "id不能为空",groups = {update.class})
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId(value = "ID",type = IdType.UUID)
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "标准法规划分")
|
||||
@TableField("SOR_DIVIDE")
|
||||
private String sorDivide;
|
||||
|
||||
@TreeNodeName
|
||||
@ApiModelProperty(value = "目录名称")
|
||||
@TableField("MENU_NAME")
|
||||
private String menuName;
|
||||
|
||||
@TreeNodeParentId
|
||||
@ApiModelProperty(value = "父级ID")
|
||||
@TableField("PARENT_ID")
|
||||
private String parentId;
|
||||
|
||||
@ApiModelProperty(value = "父级ID集合")
|
||||
@TableField("PARENT_IDS")
|
||||
private String parentIds;
|
||||
|
||||
@ApiModelProperty(value = "排序序号")
|
||||
@TableField("DISPLAY_SEQ")
|
||||
private Integer displaySeq;
|
||||
|
||||
@ApiModelProperty(value = "路径")
|
||||
@TableField("HREF")
|
||||
private String href;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private Integer validFlag;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
@TableField("REMARKS")
|
||||
private String remarks;
|
||||
|
||||
@ApiModelProperty(value = "数据字典ID")
|
||||
@TableField("DIC_ID")
|
||||
private String dicId;
|
||||
|
||||
@ApiModelProperty(value = "子菜单")
|
||||
@TableField(exist = false)
|
||||
private List<SarMenuStandard> children;
|
||||
|
||||
@TableField(exist=false)
|
||||
private List<String> roleIds;
|
||||
|
||||
@TableField(exist=false)
|
||||
private List<String> childMenuIds;
|
||||
|
||||
@TableField(exist=false)
|
||||
private String parentIdsName;
|
||||
|
||||
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package com.adc.da.slrs.sarMenuStandard.service;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.slrs.sarMenuStandard.entity.SarMenuStandard;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
public interface ISarMenuStandardService extends IService<SarMenuStandard> {
|
||||
|
||||
/**
|
||||
* 查询所有菜单
|
||||
*/
|
||||
List<SarMenuStandard> getAll(String dicId);
|
||||
|
||||
/**
|
||||
* 添加菜单
|
||||
* @param sarMenu:菜单信息
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
ResponseMessage<Object> addMenu(SarMenuStandard sarMenu);
|
||||
|
||||
/**
|
||||
* 编辑菜单
|
||||
* @param sarMenu:菜单信息
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
ResponseMessage<Object> updateMenu(SarMenuStandard sarMenu);
|
||||
|
||||
/**
|
||||
* 删除菜单
|
||||
* @param menuId :菜单ID
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
ResponseMessage<Object> delMenu(String menuId);
|
||||
|
||||
/**
|
||||
* 通过Ids查询menu
|
||||
* @param menuIds :菜单Ids
|
||||
* @return List<Menu>
|
||||
*/
|
||||
List<SarMenuStandard> getMenuByIds(List<String> menuIds);
|
||||
}
|
||||
+137
@@ -0,0 +1,137 @@
|
||||
package com.adc.da.slrs.sarMenuStandard.service.impl;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarMenu.entity.SarMenu;
|
||||
import com.adc.da.slrs.sarMenuStandard.entity.SarMenuStandard;
|
||||
import com.adc.da.slrs.sarMenuStandard.dao.SarMenuStandardDao;
|
||||
import com.adc.da.slrs.sarMenuStandard.service.ISarMenuStandardService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
@Service
|
||||
public class SarMenuStandardServiceImpl extends ServiceImpl<SarMenuStandardDao, SarMenuStandard> implements ISarMenuStandardService {
|
||||
|
||||
@Autowired
|
||||
private SarMenuStandardDao dao;
|
||||
|
||||
/**
|
||||
* 查询所有菜单
|
||||
*/
|
||||
@Override
|
||||
public List<SarMenuStandard> getAll(String dicId) {
|
||||
QueryWrapper sarMenuQueryWrapper=new QueryWrapper<>();
|
||||
sarMenuQueryWrapper.eq("DIC_ID",dicId);
|
||||
sarMenuQueryWrapper.orderByAsc("DISPLAY_SEQ");
|
||||
sarMenuQueryWrapper.isNull("PARENT_ID");
|
||||
List<SarMenuStandard> sarMenus=dao.selectList(sarMenuQueryWrapper);
|
||||
for(SarMenuStandard sarMenu:sarMenus){
|
||||
sarMenu.setChildren(recursionGetChildren((sarMenu)));
|
||||
}
|
||||
return sarMenus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加菜单
|
||||
* @param sarMenu:菜单信息
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
@Override
|
||||
public ResponseMessage<Object> addMenu(SarMenuStandard sarMenu) {
|
||||
SarMenuStandard save = new SarMenuStandard();
|
||||
if(sarMenu.getParentId() != null && StringUtils.isNotBlank(sarMenu.getParentId())){
|
||||
SarMenuStandard parent=dao.selectById(sarMenu.getParentId());
|
||||
if(parent==null){
|
||||
return Result.error("该父菜单不存在");
|
||||
}
|
||||
}
|
||||
sarMenu.setCreationTime(new Date());
|
||||
sarMenu.setModifyTime(new Date());
|
||||
dao.insert(sarMenu);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑菜单
|
||||
* @param sarMenu:菜单信息
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
@Override
|
||||
public ResponseMessage<Object> updateMenu(SarMenuStandard sarMenu) {
|
||||
SarMenuStandard oldMenu=dao.selectById(sarMenu.getId());
|
||||
if(oldMenu==null){
|
||||
return Result.error("该菜单不存在");
|
||||
}
|
||||
if(sarMenu.getParentId() != null && StringUtils.isNotBlank(sarMenu.getParentId())){
|
||||
SarMenuStandard parent=dao.selectById(sarMenu.getParentId());
|
||||
if(parent==null){
|
||||
return Result.error("父节点不存在");
|
||||
}
|
||||
}
|
||||
dao.updateById(sarMenu);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜单
|
||||
* @param menuId :菜单ID
|
||||
* @return ResponseMessage<Object>
|
||||
*/
|
||||
@Override
|
||||
public ResponseMessage<Object> delMenu(String menuId) {
|
||||
QueryWrapper<SarMenuStandard> sarMenuQueryWrapper=new QueryWrapper<>();
|
||||
sarMenuQueryWrapper.eq("parent_id",menuId);
|
||||
List<SarMenuStandard> children=dao.selectList(sarMenuQueryWrapper);
|
||||
if(children !=null && !children.isEmpty()){
|
||||
return Result.error("该菜单有子节点,无法删除");
|
||||
}
|
||||
dao.deleteById(menuId);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过Ids查询menu
|
||||
* @param menuIds :菜单Ids
|
||||
* @return List<Menu>
|
||||
*/
|
||||
@Override
|
||||
public List<SarMenuStandard> getMenuByIds(List<String> menuIds) {
|
||||
if(menuIds!=null&&menuIds.size()>0){
|
||||
QueryWrapper<SarMenuStandard> sarMenuQueryWrapper=new QueryWrapper<>();
|
||||
sarMenuQueryWrapper.in("id",menuIds);
|
||||
return dao.selectList(sarMenuQueryWrapper);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 递归调用获取子节点
|
||||
* @param parent:父节点
|
||||
* @return List<SarMenu>
|
||||
*/
|
||||
private List<SarMenuStandard> recursionGetChildren(SarMenuStandard parent){
|
||||
QueryWrapper<SarMenuStandard> sarMenuQueryWrapper=new QueryWrapper<>();
|
||||
sarMenuQueryWrapper.orderByAsc("DISPLAY_SEQ");
|
||||
sarMenuQueryWrapper.eq("PARENT_ID",parent.getId());
|
||||
List<SarMenuStandard> children=dao.selectList(sarMenuQueryWrapper);
|
||||
for(SarMenuStandard sarMenu:children){
|
||||
sarMenu.setChildren(recursionGetChildren((sarMenu)));
|
||||
}
|
||||
return children;
|
||||
}
|
||||
}
|
||||
+22
-3
@@ -4,6 +4,7 @@ package com.adc.da.slrs.sarStandProjectLibrary.controller;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibraryDto;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.productLineDto;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.service.impl.SarStandProjectLibraryServiceImpl;
|
||||
import com.adc.da.slrs.sarStandWarning.entity.EarlyWarningEO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -17,9 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -70,5 +69,25 @@ public class SarStandProjectLibraryController extends BaseController<SarStandPro
|
||||
return Result.success("200",list);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/queryProjectManager")
|
||||
@ApiOperation("查询产品线项目经理")
|
||||
public ResponseMessage queryProjectManager(){
|
||||
List<SarStandProjectLibrary> list1 = sarStandProjectLibraryService.queryProjectManager();
|
||||
// 创建一个新的list集合,用于存储去重后的元素
|
||||
List<productLineDto> listTemp = new ArrayList();
|
||||
for (SarStandProjectLibrary sarStandProjectLibrary:list1){
|
||||
productLineDto p = new productLineDto();
|
||||
p.setProductLine(sarStandProjectLibrary.getProductLine());
|
||||
p.setProjectManager(sarStandProjectLibrary.getProjectManager());
|
||||
List<SarStandProjectLibrary> list2 = sarStandProjectLibraryService.queryByProductLine(sarStandProjectLibrary.getProductLine());
|
||||
p.setSarStandProjectLibraries(list2);
|
||||
listTemp.add(p);
|
||||
}
|
||||
System.out.println(listTemp);
|
||||
|
||||
return Result.success("200",listTemp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -60,6 +60,9 @@ public class SarStandProjectLibrary extends BaseEntity {
|
||||
@ApiModelProperty(value = "项目级别")
|
||||
private String projectLevel;
|
||||
|
||||
@ApiModelProperty(value = "产品线")
|
||||
private String productLine;
|
||||
|
||||
private String projectManager;
|
||||
|
||||
|
||||
|
||||
+5
-1
@@ -3,7 +3,8 @@ package com.adc.da.slrs.sarStandProjectLibrary.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* //TODO
|
||||
@@ -35,4 +36,7 @@ public class SarStandProjectLibraryDto {
|
||||
private String projectLevel;
|
||||
|
||||
private String projectManager;
|
||||
|
||||
private String productLine;
|
||||
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.adc.da.slrs.sarStandProjectLibrary.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class productLineDto {
|
||||
|
||||
private String projectManager;
|
||||
|
||||
private String productLine;
|
||||
|
||||
private List<SarStandProjectLibrary> sarStandProjectLibraries;
|
||||
}
|
||||
+3
@@ -2,6 +2,7 @@ package com.adc.da.slrs.sarStandProjectLibrary.service;
|
||||
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibraryDto;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.productLineDto;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.util.List;
|
||||
@@ -10,4 +11,6 @@ public interface SarStandProjectLibraryService {
|
||||
IPage<SarStandProjectLibrary> queryMaintenanceProject(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
IPage<SarStandProjectLibrary> queryNotMaintenanceProject(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
List<SarStandProjectLibrary> queryById(String id);
|
||||
List<SarStandProjectLibrary> queryProjectManager();
|
||||
List<SarStandProjectLibrary> queryByProductLine(String productLine);
|
||||
}
|
||||
|
||||
+22
@@ -3,6 +3,7 @@ package com.adc.da.slrs.sarStandProjectLibrary.service.impl;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.dao.SarStandProjectLibraryDao;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibraryDto;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.productLineDto;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.service.SarStandProjectLibraryService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -43,6 +44,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
sar.setCurrentNode(sarDto.getCurrentNode());
|
||||
sar.setProjectLevel(sar.getProjectLevel());
|
||||
sar.setProjectManager(sarDto.getProjectManager());
|
||||
sar.setProductLine(sarDto.getProductLine());
|
||||
SimpleDateFormat formater = new SimpleDateFormat();
|
||||
formater.applyPattern("yyyy-MM-dd");
|
||||
try {
|
||||
@@ -66,6 +68,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
.like(StringUtils.isNotEmpty(sar.getCurrentNode()),"current_node",sar.getCurrentNode())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectLevel()),"project_level",sar.getProjectLevel())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectManager()),"project_manager",sar.getProjectManager())
|
||||
.like(StringUtils.isNotEmpty(sar.getProductLine()),"product_line",sar.getProductLine())
|
||||
.ge(sar.getProjectStartDate()!=null,"project_start_date",sar.getProjectStartDate())
|
||||
.le(sar.getProjectEndDate()!=null,"project_end_date",sar.getProjectEndDate());
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, wrapper);
|
||||
@@ -83,6 +86,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
sar.setCurrentNode(sarDto.getCurrentNode());
|
||||
sar.setProjectLevel(sar.getProjectLevel());
|
||||
sar.setProjectManager(sarDto.getProjectManager());
|
||||
sar.setProductLine(sarDto.getProductLine());
|
||||
SimpleDateFormat formater = new SimpleDateFormat();
|
||||
formater.applyPattern("yyyy-MM-dd");
|
||||
try {
|
||||
@@ -106,6 +110,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
.like(StringUtils.isNotEmpty(sar.getCurrentNode()),"current_node",sar.getCurrentNode())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectLevel()),"project_level",sar.getProjectLevel())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectManager()),"project_manager",sar.getProjectManager())
|
||||
.like(StringUtils.isNotEmpty(sar.getProductLine()),"product_line",sar.getProductLine())
|
||||
.ge(sar.getProjectStartDate()!=null,"project_start_date",sar.getProjectStartDate())
|
||||
.le(sar.getProjectEndDate()!=null,"project_end_date",sar.getProjectEndDate());
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, wrapper);
|
||||
@@ -119,6 +124,23 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandProjectLibrary> queryProjectManager() {
|
||||
QueryWrapper<SarStandProjectLibrary> wrapper = new QueryWrapper<>();
|
||||
wrapper.select("product_line","project_manager");
|
||||
wrapper.groupBy("product_line");
|
||||
List<SarStandProjectLibrary> list = sarStandProjectLibraryDao.selectList(wrapper);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandProjectLibrary> queryByProductLine(String productLine) {
|
||||
QueryWrapper<SarStandProjectLibrary> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("product_line",productLine);
|
||||
List<SarStandProjectLibrary> list = sarStandProjectLibraryDao.selectList(wrapper);
|
||||
return list;
|
||||
}
|
||||
|
||||
private IPage<SarStandProjectLibrary> getSarStandProjectLibraryIPage(int current, int pageSize, QueryWrapper<SarStandProjectLibrary> wrapper) {
|
||||
Page<SarStandProjectLibrary> page = new Page<>(current, pageSize);
|
||||
IPage<SarStandProjectLibrary> userIPage = sarStandProjectLibraryDao.selectPage(page, wrapper);
|
||||
|
||||
+2
@@ -14,6 +14,8 @@ public class SarStandardsInfoEO {
|
||||
@ApiModelProperty(value = "标准编号")
|
||||
private String standNumber;
|
||||
|
||||
private String standType;
|
||||
|
||||
@ApiModelProperty(value = "标准名称")
|
||||
private String standName;
|
||||
|
||||
|
||||
+294
@@ -0,0 +1,294 @@
|
||||
package com.adc.da.slrs.standardSplit.controller;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEOPage;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarLawsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.service.*;
|
||||
import com.adc.da.sys.util.LoginUserUtil;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import com.adc.da.sys.service.IUserEOService;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/sarFileSplitInfo")
|
||||
@Api(description = "|SarFileSplitInfoEO|")
|
||||
public class SarFileSplitInfoEOController extends BaseController<SarFileSplitInfoEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitInfoEOController.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitInfoEOService sarFileSplitInfoEOService;
|
||||
// @Autowired
|
||||
// private SarStandardsInfoEOService sarStandardsInfoEOService;
|
||||
// @Autowired
|
||||
// private PersonMsgEOService personMsgEOService;
|
||||
@Autowired
|
||||
private IUserEOService userService;
|
||||
@Autowired
|
||||
private SarLawsInfoEOService sarLawsInfoEOService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:page")
|
||||
public ResponseMessage<PageInfo<SarFileSplitInfoEO>> page(SarFileSplitInfoEOPage page) throws Exception {
|
||||
page.setOrderBy("modify_time desc");
|
||||
List<SarFileSplitInfoEO> rows = sarFileSplitInfoEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|查询")
|
||||
@GetMapping("")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:list")
|
||||
public ResponseMessage<List<SarFileSplitInfoEO>> list(SarFileSplitInfoEOPage page) throws Exception {
|
||||
return Result.success(sarFileSplitInfoEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:get")
|
||||
public ResponseMessage<SarFileSplitInfoEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(sarFileSplitInfoEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:save")
|
||||
public ResponseMessage<SarFileSplitInfoEO> create(@RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception {
|
||||
sarFileSplitInfoEOService.insertSelective(sarFileSplitInfoEO);
|
||||
return Result.success(sarFileSplitInfoEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:update")
|
||||
public ResponseMessage<SarFileSplitInfoEO> update(@RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception {
|
||||
sarFileSplitInfoEOService.updateByPrimaryKeySelective(sarFileSplitInfoEO);
|
||||
return Result.success(sarFileSplitInfoEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitInfo:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitInfoEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_INFO where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|文件拆分相关信息存储")
|
||||
@PostMapping("/fileSplit")
|
||||
public ResponseMessage<SarFileSplitInfoEO> fileSplit(@RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception {
|
||||
if (sarFileSplitInfoEO.getStopNumber()<=0){
|
||||
sarFileSplitInfoEO.setStopNumber(200);
|
||||
}
|
||||
if (sarFileSplitInfoEO.getStartNumber()<=0){
|
||||
sarFileSplitInfoEO.setStartNumber(1);
|
||||
}
|
||||
int i = sarFileSplitInfoEOService.fileAplit(sarFileSplitInfoEO);
|
||||
if (i>0){
|
||||
SarFileSplitInfoEO newinfo = new SarFileSplitInfoEO();
|
||||
newinfo.setResult("1");
|
||||
newinfo.setId(sarFileSplitInfoEO.getId());
|
||||
newinfo.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitInfoEOService.updateByPrimaryKeySelective(newinfo);
|
||||
return Result.success(sarFileSplitInfoEO);
|
||||
} else {
|
||||
SarFileSplitInfoEO newinfo = new SarFileSplitInfoEO();
|
||||
newinfo.setResult("2");
|
||||
newinfo.setId(sarFileSplitInfoEO.getId());
|
||||
newinfo.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitInfoEOService.updateByPrimaryKeySelective(newinfo);
|
||||
return Result.error("该文档不符合规范,无法拆分");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|自定义分页查询列表")
|
||||
@GetMapping("/getSarFileSplitInfoEOPage")
|
||||
//@RequiresPermissions("lawss:sarBussionessStand:getSarBussionStandPage")
|
||||
public ResponseMessage<PageInfo<SarFileSplitInfoEO>> getSarFileSplitInfoEOPage(SarFileSplitInfoEOPage page) throws Exception {
|
||||
if(StringUtils.isNotBlank(page.getPaixu())){
|
||||
page.setOrderBy("SAR_FILE_SPLIT_INFO."+page.getPaixu()+" "+page.getShunxu());
|
||||
}else{
|
||||
page.setOrderBy("SAR_FILE_SPLIT_INFO.creation_time desc,SAR_FILE_SPLIT_INFO.id");
|
||||
}
|
||||
List<SarFileSplitInfoEO> rows = sarFileSplitInfoEOService.queryByPageOwn(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
// @ApiOperation(value = "拆分审核完成回调接口")
|
||||
// @GetMapping("/changeSarFileSplitInfoStatusCallBack")
|
||||
// public ResponseMessage changeSarFileSplitInfoStatusCallBack(@RequestBody @Validated ChangeSarFileSplitInfoStatusDTO changeSarFileSplitInfoStatusDTO) throws Exception {
|
||||
// boolean flag = sarFileSplitInfoEOService.changeSarFileSplitInfoStatusCallBack(changeSarFileSplitInfoStatusDTO);
|
||||
// if(flag){
|
||||
// return Result.success();
|
||||
// }
|
||||
// return Result.error();
|
||||
// }
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|批量删除")
|
||||
@PostMapping("/batchDelete")
|
||||
public ResponseMessage batchDelete(String ids) throws Exception {
|
||||
if (StringUtils.isNotEmpty(ids)) {
|
||||
int result = sarFileSplitInfoEOService.deleteByIds(ids);
|
||||
if (result > 0) {
|
||||
return Result.success("0","删除成功",null);
|
||||
} else {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
|
||||
} else {
|
||||
return Result.error("请选择要删除的数据");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|关联")
|
||||
@PostMapping("/connectToStandItems")
|
||||
public ResponseMessage connectToStandItems(@RequestBody List<SarFileSplitInfoEO> sarFileSplitInfoEOList) throws Exception {
|
||||
for (SarFileSplitInfoEO sarFileSplitInfoEO:sarFileSplitInfoEOList) {
|
||||
List<SarStandardsInfoEO> getList = new ArrayList<>();
|
||||
List<SarLawsInfoEO> sarLawsInfoEOList = new ArrayList<>();
|
||||
//根据标准号查询标准是否存在
|
||||
String standNum="";
|
||||
if (StringUtils.isNotEmpty(sarFileSplitInfoEO.getStandId())) {
|
||||
standNum=sarFileSplitInfoEO.getShowNumber();
|
||||
} else if(StringUtils.isNotEmpty(sarFileSplitInfoEO.getStandNumSplit())){
|
||||
standNum=sarFileSplitInfoEO.getStandNumSplit();
|
||||
}else{
|
||||
return Result.error("标准号不能为空");
|
||||
}
|
||||
// if (sarFileSplitInfoEO.getFileType().equals("ZCWB") || sarFileSplitInfoEO.getFileType().equals("GCGJ")) {
|
||||
// SarLawsInfoEOPage page = new SarLawsInfoEOPage();
|
||||
// page.setLawsType("FOREIGN");
|
||||
// page.setLawsNumber(standNum);
|
||||
// sarLawsInfoEOList = sarLawsInfoEOService.getLawsInfoPage(page);
|
||||
// }else {
|
||||
// getList = sarStandardsInfoEOService.selectStandardsByStandnumber(standNum,null);
|
||||
// }
|
||||
//
|
||||
// SarStandardsInfoEO result = new SarStandardsInfoEO();
|
||||
// SarLawsInfoEO result1 = new SarLawsInfoEO();
|
||||
//
|
||||
// if(getList != null && getList.size()>0){
|
||||
// result = getList.get(0);
|
||||
// String msg = sarFileSplitInfoEOService.addToStandItems(sarFileSplitInfoEO,result);
|
||||
// return Result.success("0",msg,null);
|
||||
// } else if (sarLawsInfoEOList.size()>0) {
|
||||
// result1 = sarLawsInfoEOList.get(0);
|
||||
// String msg = sarFileSplitInfoEOService.addToStandItems1(sarFileSplitInfoEO,result1);
|
||||
// return Result.success("0",msg,null);
|
||||
// }else {
|
||||
// return Result.error("0", "该条数据标准号在标准库中不存在");
|
||||
// }
|
||||
}
|
||||
return Result.error("0","关联失败");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|标准拆分编辑")
|
||||
@PostMapping("/updateSarFileSplitInfo")
|
||||
public ResponseMessage updateSarFileSplitInfo(@RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception {
|
||||
|
||||
if(null!=sarFileSplitInfoEO){
|
||||
sarFileSplitInfoEO.setModifyTime(new Date());
|
||||
sarFileSplitInfoEO.setSplitStatus("0");
|
||||
sarFileSplitInfoEOService.updateByPrimaryKeySelective(sarFileSplitInfoEO);
|
||||
return Result.success("0","编辑成功",null);
|
||||
}else{
|
||||
return Result.error();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|标准拆分提交FO审核")
|
||||
@GetMapping("submitAndExamine")
|
||||
public ResponseMessage submitAndExamine(String id, String standNum, String standName,String standType) throws Exception {
|
||||
String standId = null;
|
||||
// if (standType.equals("POLICY")){
|
||||
// SarLawsInfoEOPage page = new SarLawsInfoEOPage();
|
||||
// page.setLawsType("FOREIGN");
|
||||
// page.setLawsNumber(standNum);
|
||||
// page.setLawsNumberOperator("=");
|
||||
// List<SarLawsInfoEO> sarLawsInfoEOList = sarLawsInfoEOService.getLawsInfoPage(page);
|
||||
// if (sarLawsInfoEOList.size() == 0){
|
||||
// return Result.error("政策号不存在");
|
||||
// }
|
||||
// standId = sarLawsInfoEOList.get(0).getId();
|
||||
// }else if(standType.equals("STAND")){
|
||||
// List<SarStandardsInfoEO> getList = sarStandardsInfoEOService.selectStandardsByStandnumber(StringUtils.trim(standNum),
|
||||
// null);
|
||||
// if (getList.size() == 0){
|
||||
// return Result.error("标准号不存在");
|
||||
// }
|
||||
// standId = getList.get(0).getId();
|
||||
// }else {
|
||||
// List<SarStandardsInfoEO> getList = sarStandardsInfoEOService.selectStandardsByStandnumber(StringUtils.trim(standNum),
|
||||
// standType);
|
||||
// if (getList.size() == 0){
|
||||
// return Result.error("标准号不存在");
|
||||
// }
|
||||
// standId = getList.get(0).getId();
|
||||
// }
|
||||
|
||||
SarFileSplitInfoEO sarFileSplitInfoEO = new SarFileSplitInfoEO();
|
||||
sarFileSplitInfoEO.setId(id);
|
||||
sarFileSplitInfoEO.setSplitStatus("1");
|
||||
sarFileSplitInfoEO.setStandId(standId);
|
||||
sarFileSplitInfoEO.setModifyTime(new Date());
|
||||
sarFileSplitInfoEOService.updateByPrimaryKeySelective(sarFileSplitInfoEO);
|
||||
String roleName = "国内标准法规FO";
|
||||
String stand = "国内标准法规";
|
||||
if (standType.equals("FOREIGN")){
|
||||
roleName = "海外标准法规FO";
|
||||
stand = "海外标准法规";
|
||||
}else if (standType.equals("POLICY")){
|
||||
roleName = "政策法规FO";
|
||||
stand = "国内外政策";
|
||||
}else if(standType.equals("STAND")){
|
||||
roleName = "国内标准法规FO,海外标准法规FO";
|
||||
stand = "国内外标准法规";
|
||||
}
|
||||
// List<RoleUserVO> userList = userService.getUserByRole(null,null,null,roleName);
|
||||
// for (RoleUserVO data:userList) {
|
||||
// PersonMsgEO personMsgEO = new PersonMsgEO();
|
||||
// personMsgEO.setUserIds(data.getUserId());
|
||||
// personMsgEO.setMsgTitle("确认【"+stand+"】标准拆分数据"+standNum);
|
||||
// personMsgEO.setMsgContent("【"+stand+"】标准拆分数据"+standNum+",请确认审核是否通过?");
|
||||
// personMsgEO.setMsgType("SPLIT");
|
||||
// personMsgEO.setBusiId(id);
|
||||
// personMsgEO.setSenderId(LoginUserUtil.getUserId());
|
||||
// personMsgEO.setReturnAddress("itemSplitInfo?infoId="+id+"&standNumSplit="+standNum+"&standNameSplit="+standName);
|
||||
// personMsgEOService.saveNew(personMsgEO);
|
||||
// }
|
||||
return Result.success("提交成功");
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|PersonMsgEO|修改新")
|
||||
@PostMapping("updateNew")
|
||||
//@RequiresPermissions("person:personMsg:update")
|
||||
public ResponseMessage<PersonMsgEO> updateNew(@RequestBody PersonMsgEO personMsgEO) throws Exception {
|
||||
return Result.success(sarFileSplitInfoEOService.updateNew(personMsgEO));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+569
@@ -0,0 +1,569 @@
|
||||
package com.adc.da.slrs.standardSplit.controller;
|
||||
|
||||
import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
||||
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.common.ConvertHtml2Excel;
|
||||
import com.adc.da.common.FileUnZip;
|
||||
import com.adc.da.common.SplitTableInfo;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.dto.*;
|
||||
import com.adc.da.slrs.standardSplit.entity.*;
|
||||
import com.adc.da.slrs.standardSplit.service.*;
|
||||
import com.adc.da.sys.util.UUIDUtils;
|
||||
import com.adc.da.util.exception.AdcDaBaseException;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
import com.adc.da.util.utils.IOUtils;
|
||||
import com.adc.da.utils.util.POIReadExcelToHtml;
|
||||
import com.adc.da.common.ReadExcel;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
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 javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.*;
|
||||
|
||||
import static com.adc.da.utils.util.ExcelUtil.checkObjAllFieldsIsNull;
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/sarFileSplitItems")
|
||||
@Api(description = "|SarFileSplitItemsEO|")
|
||||
public class SarFileSplitItemsEOController extends BaseController<SarFileSplitItemsEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsEOController.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsEOService sarFileSplitItemsEOService;
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEOService sarFileSplitItemsValEOService;
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEOService sarFileSplitItemsTableEOService;
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsEOService sarFileSplitItemsParamsEOService;
|
||||
@Autowired
|
||||
private SarFileSplitMenuEOService sarFileSplitMenuEOService;
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
@Autowired
|
||||
private SarFileSplitInfoEOService sarFileSplitInfoEOService;
|
||||
@Autowired
|
||||
private SarStandardsInfoEOService sarStandardsInfoEOService;
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePath;
|
||||
|
||||
@Value("${file.path}")
|
||||
private String uploadFilePath;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|分页查询")
|
||||
@GetMapping("/getSplitItemsByPage")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:page")
|
||||
public ResponseMessage<PageInfo<SarFileSplitItemsEO>> page(SarFileSplitItemsEOPage page) throws Exception {
|
||||
//6-18 端哥已做修改
|
||||
Map<String,Object> map = sarFileSplitItemsEOService.getByPage(page);
|
||||
page.getPager().setRowCount((Integer) map.get("count"));
|
||||
return Result.success(getPageInfo(page.getPager(), (List<SarFileSplitItemsEO>) map.get("list")));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|查询")
|
||||
@GetMapping("")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:list")
|
||||
public ResponseMessage<List<SarFileSplitItemsEO>> list(SarFileSplitItemsEOPage page) throws Exception {
|
||||
return Result.success(sarFileSplitItemsEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:get")
|
||||
public ResponseMessage<SarFileSplitItemsEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(sarFileSplitItemsEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:save")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
public ResponseMessage<SarFileSplitItemsEO> create(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
sarFileSplitItemsEOService.insertSelective(sarFileSplitItemsEO);
|
||||
return Result.success(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|修改")
|
||||
@PutMapping("/updateSplitItems")
|
||||
public ResponseMessage<SarFileSplitItemsEO> update(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
int resultCount = sarFileSplitItemsEOService.updateItemContent(sarFileSplitItemsEO);
|
||||
if (resultCount > 0) {
|
||||
return Result.success("0","修改成功",sarFileSplitItemsEO);
|
||||
} else {
|
||||
return Result.error("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|批量删除")
|
||||
@PostMapping("/batchDeleteItems")
|
||||
public ResponseMessage batchDeleteItems(String ids) throws Exception {
|
||||
if (StringUtils.isNotEmpty(ids)) {
|
||||
int result = sarFileSplitItemsEOService.batchDeleteItems(ids);
|
||||
if (result > 0) {
|
||||
return Result.success("0","删除成功",null);
|
||||
} else {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
|
||||
} else {
|
||||
return Result.error("请选择要删除的数据");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|根据id查询")
|
||||
@GetMapping("/getInfoById")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:get")
|
||||
public ResponseMessage<SarFileSplitItemsEO> getInfoById(String id) throws Exception {
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = sarFileSplitItemsEOService.selectByPrimaryKey(id);
|
||||
if (sarFileSplitItemsEO != null) {
|
||||
SarFileSplitItemsParamsEOPage paramPage = new SarFileSplitItemsParamsEOPage();
|
||||
paramPage.setItemId(id);
|
||||
List<SarFileSplitItemsParamsEO> paramList = sarFileSplitItemsParamsEOService.queryByList(paramPage);
|
||||
sarFileSplitItemsEO.setParamsList(paramList);
|
||||
}
|
||||
// 查询特殊参数要求信息
|
||||
return Result.success(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "判断包含子节点")
|
||||
@GetMapping("/judgeContaintChilds")
|
||||
/*@RequiresPermissions("lawss:sarMenu:judgequeryMenuByPid")*/
|
||||
public ResponseMessage<Boolean> judgeContaintChilds(String ids) throws Exception {
|
||||
boolean result = sarFileSplitItemsEOService.judgeContaintChilds(ids);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|导出zip")
|
||||
@GetMapping(value = "/exportSplitInfoZip")
|
||||
public void exportSplitInfoZip(String idList, String infoId, String exportName, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
OutputStream os = null;
|
||||
OutputStream excelOS = null;
|
||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||
String fileOriName = "拆分条款信息";
|
||||
if (StringUtils.isNotEmpty(exportName)) {
|
||||
fileOriName = exportName;
|
||||
}
|
||||
try{
|
||||
//创建临时文件夹
|
||||
String fileNowPath = uploadFilePath + "/tempZip/" + UUIDUtils.randomUUID20() + "/" + fileOriName;
|
||||
File nowFile = new File(fileNowPath);
|
||||
if (nowFile.exists()){
|
||||
nowFile.delete();
|
||||
}
|
||||
nowFile.mkdirs();
|
||||
String fileName = fileOriName + ".xls";
|
||||
HSSFSheet sheetItems = workbook.createSheet("条款内容");
|
||||
String[] headers = {"条款号","条款名称","内容简介","责任部门","FO","责任工程师","SVPPS","适用车辆类型","要求类型","企标覆盖关系"};
|
||||
HSSFCellStyle cellStyle =workbook.createCellStyle();
|
||||
cellStyle.setWrapText(true);
|
||||
// cellStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
||||
cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
HSSFCellStyle cellStyle1 =workbook.createCellStyle();
|
||||
cellStyle1.setAlignment(HorizontalAlignment.CENTER);
|
||||
HSSFCellStyle cellStyleLink =workbook.createCellStyle();
|
||||
HSSFFont font = workbook.createFont();
|
||||
font.setColor(IndexedColors.LIGHT_BLUE.index);
|
||||
cellStyleLink.setFont(font);
|
||||
cellStyleLink.setWrapText(true);
|
||||
List<String> itemIdList = new ArrayList<>();
|
||||
SarFileSplitItemsEOPage page = new SarFileSplitItemsEOPage();
|
||||
if (StringUtils.isNotEmpty(idList)) {
|
||||
String[] idArr = idList.split(",");
|
||||
itemIdList = Arrays.asList(idArr);
|
||||
page.setIdList(itemIdList);
|
||||
}
|
||||
//查询全部条款
|
||||
page.setInfoId(infoId);
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
List<FileSplitItemsExportDto> allItemsList = sarFileSplitItemsEOService.queryByOrdersForExport(page);
|
||||
List<FileSpiltValTableExportDto> allTableList = new ArrayList<>();
|
||||
List<FileSplitValImgExportDto> allImgList = new ArrayList<>();
|
||||
List<AttFileEO> allRelevFileList = new ArrayList<>();
|
||||
int countMaxFile = 1;
|
||||
if (allItemsList != null && !allItemsList.isEmpty()) {
|
||||
for (FileSplitItemsExportDto itemsExportDto : allItemsList) {
|
||||
SarFileSplitItemsValEOPage valEOPage = new SarFileSplitItemsValEOPage();
|
||||
valEOPage.setItemId(itemsExportDto.getId());
|
||||
valEOPage.setOrderBy("DISPLAY_SEQ,ID");
|
||||
List<SarFileSplitItemsValEO> getValList = sarFileSplitItemsValEOService.queryByList(valEOPage);
|
||||
List<FileSplitValExportDto> valContentList = sarFileSplitItemsEOService.combineItemValInfo(getValList,allTableList,allImgList,page);
|
||||
itemsExportDto.setItemValContent(valContentList);
|
||||
}
|
||||
}
|
||||
// 在excel表中添加表头
|
||||
HSSFRow row = sheetItems.createRow(0);
|
||||
sheetItems.setColumnWidth(0,10*256);
|
||||
sheetItems.setColumnWidth(1,20*256);
|
||||
sheetItems.setColumnWidth(2,100*256);
|
||||
sheetItems.setColumnWidth(3,20*256);
|
||||
sheetItems.setColumnWidth(4,20*256);
|
||||
sheetItems.setColumnWidth(5,20*256);
|
||||
sheetItems.setColumnWidth(6,20*256);
|
||||
sheetItems.setColumnWidth(7,20*256);
|
||||
sheetItems.setColumnWidth(8,20*256);
|
||||
sheetItems.setColumnWidth(9,20*256);
|
||||
|
||||
for (int i = 0; i < headers.length; i++) {
|
||||
HSSFCell cell = row.createCell(i);
|
||||
HSSFRichTextString text = new HSSFRichTextString(headers[i]);
|
||||
cell.setCellValue(text);
|
||||
cell.setCellStyle(cellStyle1);
|
||||
}
|
||||
//放文字内容
|
||||
int allRow = 0;
|
||||
for(int rowNum = 0;rowNum < allItemsList.size(); rowNum++){
|
||||
FileSplitItemsExportDto exportDto = allItemsList.get(rowNum);
|
||||
List<FileSplitValExportDto> valList = exportDto.getItemValContent();
|
||||
int countFile = 0;
|
||||
if(valList != null && !valList.isEmpty()){
|
||||
int startRow = allRow + 1;
|
||||
for (int valRow=0;valRow<valList.size();valRow++) {
|
||||
allRow++;
|
||||
HSSFRow row1 = sheetItems.createRow(allRow);
|
||||
row1.createCell(0).setCellValue(exportDto.getItemsNum());
|
||||
row1.getCell(0).setCellStyle(cellStyle);
|
||||
row1.createCell(1).setCellValue(exportDto.getItemsName());
|
||||
row1.getCell(1).setCellStyle(cellStyle);
|
||||
HSSFCell cell2 = row1.createCell(2);
|
||||
row1.getCell(2).setCellStyle(cellStyle);
|
||||
String content = valList.get(valRow).getValContent();
|
||||
if (StringUtils.isNotEmpty(content)) {
|
||||
content = content.replaceAll("null","");
|
||||
if (content.lastIndexOf("\n") > -1) {
|
||||
content = content.substring(0,content.lastIndexOf("\n"));
|
||||
}
|
||||
}
|
||||
if("TABLE".equals(valList.get(valRow).getValType())){
|
||||
/* 连接跳转*/
|
||||
CreationHelper createHelper = workbook.getCreationHelper();
|
||||
Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.DOCUMENT);
|
||||
String tableName = "#\'"+ content + "\'!A1";
|
||||
hyperlink1.setAddress(tableName);
|
||||
cell2.setHyperlink(hyperlink1);// 链接
|
||||
row1.getCell(2).setCellStyle(cellStyleLink);
|
||||
} else if ("IMG".equals(valList.get(valRow).getValType())) {
|
||||
/* 连接跳转*/
|
||||
CreationHelper createHelper = workbook.getCreationHelper();
|
||||
Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.FILE);
|
||||
String imgName = content;
|
||||
hyperlink1.setAddress(imgName);
|
||||
cell2.setHyperlink(hyperlink1);// 链接
|
||||
row1.getCell(2).setCellStyle(cellStyleLink);
|
||||
}
|
||||
cell2.setCellValue(content);
|
||||
|
||||
|
||||
row1.createCell(3).setCellValue(exportDto.getResponsibleUnitShow());
|
||||
row1.getCell(3).setCellStyle(cellStyle);
|
||||
row1.createCell(4).setCellValue(exportDto.getFoShow());
|
||||
row1.getCell(4).setCellStyle(cellStyle);
|
||||
row1.createCell(5).setCellValue(exportDto.getDutyEngineerShow());
|
||||
row1.getCell(5).setCellStyle(cellStyle);
|
||||
row1.createCell(6).setCellValue(exportDto.getSvpps());
|
||||
row1.getCell(6).setCellStyle(cellStyle);
|
||||
row1.createCell(7).setCellValue(exportDto.getApplyArctic());
|
||||
row1.getCell(7).setCellStyle(cellStyle);
|
||||
row1.createCell(8).setCellValue(exportDto.getClaimTypeShow());
|
||||
row1.getCell(8).setCellStyle(cellStyle);
|
||||
row1.createCell(9).setCellValue(exportDto.getBusStandCover());
|
||||
row1.getCell(9).setCellStyle(cellStyle);
|
||||
|
||||
}
|
||||
if (allRow > startRow) {
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,0,0));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,1,1));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,3,3));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,4,4));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,5,5));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,6,6));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,7,7));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,8,8));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,9,9));
|
||||
}
|
||||
} else {
|
||||
allRow++;
|
||||
HSSFRow row1 = sheetItems.createRow(allRow);
|
||||
row1.createCell(0).setCellValue(exportDto.getItemsNum());
|
||||
row1.getCell(0).setCellStyle(cellStyle);
|
||||
row1.createCell(1).setCellValue(exportDto.getItemsName());
|
||||
row1.getCell(1).setCellStyle(cellStyle);
|
||||
row1.createCell(2).setCellValue("");
|
||||
row1.getCell(2).setCellStyle(cellStyle);
|
||||
row1.createCell(3).setCellValue(exportDto.getResponsibleUnitShow());
|
||||
row1.getCell(3).setCellStyle(cellStyle);
|
||||
row1.createCell(4).setCellValue(exportDto.getFoShow());
|
||||
row1.getCell(4).setCellStyle(cellStyle);
|
||||
row1.createCell(5).setCellValue(exportDto.getDutyEngineerShow());
|
||||
row1.getCell(5).setCellStyle(cellStyle);
|
||||
row1.createCell(6).setCellValue(exportDto.getSvpps());
|
||||
row1.getCell(6).setCellStyle(cellStyle);
|
||||
row1.createCell(7).setCellValue(exportDto.getApplyArctic());
|
||||
row1.getCell(7).setCellStyle(cellStyle);
|
||||
row1.createCell(8).setCellValue(exportDto.getClaimTypeShow());
|
||||
row1.getCell(8).setCellStyle(cellStyle);
|
||||
row1.createCell(9).setCellValue(exportDto.getBusStandCover());
|
||||
row1.getCell(9).setCellStyle(cellStyle);
|
||||
}
|
||||
}
|
||||
if (countMaxFile > 1) {
|
||||
for (int i=1;i<countMaxFile;i++) {
|
||||
sheetItems.setColumnWidth(9+i,40*256);
|
||||
}
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(0,0,9,9+countMaxFile-1));
|
||||
}
|
||||
// 放表格内容
|
||||
if(allTableList!= null && !allTableList.isEmpty()){
|
||||
for(FileSpiltValTableExportDto tableExportDto : allTableList){
|
||||
// List<List<SarFileSplitItemsTableEO>> rowtableList = tableExportDto.getTableEOList();
|
||||
// HSSFSheet sheetTable = workbook.createSheet(tableExportDto.getTableName());
|
||||
String tableName = tableExportDto.getTableName();
|
||||
String tableHtml = tableExportDto.getTableHtCon();
|
||||
if (StringUtils.isNotEmpty(tableHtml) && tableHtml.indexOf("<tbody>") < 0) {
|
||||
if (tableHtml.indexOf("<thead>") < 0) {
|
||||
tableHtml = tableHtml.replaceFirst("<tr>","<tbody><tr>");
|
||||
tableHtml = tableHtml.replaceFirst("</table>","</tbody></table>");
|
||||
} else {
|
||||
tableHtml = tableHtml.replaceFirst("</thead>","</thead><tbody>");
|
||||
tableHtml = tableHtml.replaceFirst("</table>","</tbody></table>");
|
||||
}
|
||||
}
|
||||
String cnt = "\n";
|
||||
tableHtml = tableHtml.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt);
|
||||
workbook = ConvertHtml2Excel.table2Excel(tableHtml,workbook,tableName);
|
||||
// for (int r=0;r<rowtableList.size();r++) {
|
||||
// List<SarFileSplitItemsTableEO> colTableList = rowtableList.get(r);
|
||||
// HSSFRow tRow = sheetTable.createRow(colTableList.get(0).getRowNum()-1);
|
||||
// for(int c=0;c<colTableList.size();c++){
|
||||
// SarFileSplitItemsTableEO tableEO = colTableList.get(c);
|
||||
// tRow.createCell(tableEO.getColNum()-1).setCellValue(tableEO.getContent());
|
||||
// tRow.getCell(tableEO.getColNum()-1).setCellStyle(cellStyle);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
//下载图片内容
|
||||
if (allImgList != null && !allImgList.isEmpty()) {
|
||||
sarFileSplitItemsEOService.downLoadImgList(allImgList,fileNowPath);
|
||||
}
|
||||
//下载关联文件内容
|
||||
if (allRelevFileList != null && !allRelevFileList.isEmpty()) {
|
||||
sarFileSplitItemsEOService.downLoadFileList(allRelevFileList,fileNowPath);
|
||||
}
|
||||
String repFileName = fileName.replaceAll("/","_");
|
||||
excelOS = new FileOutputStream(fileNowPath + "/" + repFileName);
|
||||
response.setHeader("Content-Disposition",
|
||||
"attachment; filename=\""+ ReadExcel.encodeFileName(fileOriName+".zip", request) +"\"");
|
||||
response.setContentType("application/force-download");
|
||||
response.flushBuffer();
|
||||
os = response.getOutputStream();
|
||||
workbook.write(excelOS);
|
||||
excelOS.flush();
|
||||
excelOS.close();
|
||||
ZipUtil.zip(fileNowPath,fileNowPath+".zip");
|
||||
FileInputStream fis = new FileInputStream(fileNowPath+".zip");
|
||||
int len = 0;
|
||||
while ((len = fis.read()) != -1) {
|
||||
os.write(len);
|
||||
}
|
||||
os.flush();
|
||||
os.close(); // 后开先关
|
||||
fis.close(); // 先开后关
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
throw new AdcDaBaseException("下载文件失败,请重试");
|
||||
} finally {
|
||||
IOUtils.closeQuietly(os);
|
||||
IOUtils.closeQuietly(excelOS);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|导入")
|
||||
@PostMapping(value = "/importSplitItemsZip")
|
||||
public ResponseMessage<SarFileSplitItemsEO> importSplitItemsZip(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception {
|
||||
//验证文件名是否合格
|
||||
/* 截取后缀名 */
|
||||
sarFileSplitInfoEO.setFileName(file.getOriginalFilename());
|
||||
int pos = file.getOriginalFilename().lastIndexOf(".");
|
||||
String str = file.getOriginalFilename().substring(pos+1).toLowerCase();
|
||||
String filenameorg = file.getOriginalFilename().substring(0,pos);
|
||||
//判断上传文件必须是zip
|
||||
if (!str.equals("zip")) {
|
||||
return Result.error("fail", "请上传zip文件");
|
||||
}
|
||||
String path = filePath + "/modal/"+filenameorg;
|
||||
File saveDirectory = new File(path);
|
||||
if(!saveDirectory.isDirectory()){
|
||||
saveDirectory.mkdir();
|
||||
}
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(path +"/"+ file.getOriginalFilename()));
|
||||
try{
|
||||
//解压缩
|
||||
String zipEntryName = FileUnZip.unZipFiles(path +"/"+ file.getOriginalFilename(),path);
|
||||
// 数据相关处理,
|
||||
// 1.获取其中的Excel,
|
||||
List<File> excelfilelist = FileUnZip.readExcelFile(zipEntryName);
|
||||
if(excelfilelist.size()<1){
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "压缩包内没有上传Excel数据");
|
||||
} else if (excelfilelist.size()>1) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "压缩包内有多个Excel数据源");
|
||||
}
|
||||
File excelfile = excelfilelist.get(0);
|
||||
// 导入参数设置,默认即可
|
||||
ImportParams params = new ImportParams();
|
||||
try {
|
||||
String fields[] = {"条款号", "条款名称","内容简介","责任部门",
|
||||
"FO","责任工程师","SVPPS","适用车辆类型","要求类型","企标覆盖关系"};
|
||||
params.setImportFields(fields);
|
||||
List<SarFileSplitItemsImportDto> result = new ArrayList<>();
|
||||
// 解析excel,并返回校验信息
|
||||
result = ExcelImportUtil.importExcel(excelfile, SarFileSplitItemsImportDto.class, params);
|
||||
Long getExcelInfo = System.currentTimeMillis();
|
||||
//excel读取到的数据
|
||||
List<SarFileSplitItemsImportDto> datas = result;
|
||||
if(datas!=null &&!datas.isEmpty()){
|
||||
try {
|
||||
//获取全部sheet页中表格
|
||||
Workbook workbook = WorkbookFactory.create(new FileInputStream(excelfile));
|
||||
//XSSFWorkbook workbook=new XSSFWorkbook(new FileInputStream(excelfile));
|
||||
Sheet sheet=null;
|
||||
List<SplitTableInfo> getSheetTableList = new ArrayList();
|
||||
for (int i = 1; i < workbook.getNumberOfSheets(); i++) {//获取每个Sheet表
|
||||
sheet = workbook.getSheetAt(i);
|
||||
SplitTableInfo splitTableInfo = new SplitTableInfo();
|
||||
splitTableInfo.setTableName(sheet.getSheetName());
|
||||
String tableHtml = POIReadExcelToHtml.readExcelToHtml(workbook,i,false);
|
||||
splitTableInfo.setTableHtml(tableHtml);
|
||||
getSheetTableList.add(splitTableInfo);
|
||||
}
|
||||
int i = 0 ;
|
||||
List<SarFileSplitItemsImportDto> datasUpdate = new ArrayList<>();
|
||||
//2019.05.14 当读取exceL出现空行过多时,空行数为20以上时中断读取,将数据清洗为新的list
|
||||
for(SarFileSplitItemsImportDto sarStandImportDto :datas){
|
||||
if(i>20){
|
||||
break;
|
||||
}
|
||||
//判断此行数据是否全部为空
|
||||
if(checkObjAllFieldsIsNull(sarStandImportDto)){
|
||||
i++;
|
||||
//是则不读取
|
||||
continue;
|
||||
}
|
||||
i = 0;
|
||||
datasUpdate.add(sarStandImportDto);
|
||||
}
|
||||
String unzipfilepath = zipEntryName;
|
||||
ResponseMessage<SarFileSplitItemsEO> message = sarFileSplitItemsEOService.importSplitItems
|
||||
(datasUpdate,unzipfilepath,sarFileSplitInfoEO,getSheetTableList);
|
||||
workbook.close();
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return message;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", e.getMessage());
|
||||
}
|
||||
}else{
|
||||
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "没有可导入的数据,请检查!");
|
||||
}
|
||||
} catch (NoSuchElementException e){
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "没有可导入的数据,请检查!");
|
||||
} catch (Exception e) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "读取失败,请严格按照模板文件导入数据");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("fail", "读取失败,请严格按照模板文件导入数据");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "合并条款")
|
||||
@PostMapping("/combineItems")
|
||||
public ResponseMessage combineItems(String ids) throws Exception {
|
||||
if (StringUtils.isNotBlank(ids)) {
|
||||
sarFileSplitItemsEOService.combineItems(ids);
|
||||
return Result.success("0","合并条款成功",ids);
|
||||
} else {
|
||||
return Result.error("传入id不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取对应条款信息
|
||||
* @param standNum
|
||||
* @param fileType
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "|SarFileSplitInfoEO|获取所有对应的条款")
|
||||
@GetMapping("getClauseBySplitId")
|
||||
public ResponseMessage getClauseBySplitId(String standNum, String fileType, SarFileSplitItemsEOPage page) throws Exception{
|
||||
//根据标准号查询标准是否存在
|
||||
if (standNum == null) {
|
||||
return Result.error("标准号不能为空");
|
||||
}
|
||||
List<SarStandardsInfoEO> getList = sarStandardsInfoEOService.selectStandardsByStandnumber(standNum,null);
|
||||
if (getList.size()>0){
|
||||
//查询拆分中所有条款信息
|
||||
String getSplitItemsList = sarFileSplitInfoEOService.getClauseBySplitId(standNum,fileType);
|
||||
page.setInfoId(getSplitItemsList);
|
||||
Map<String,Object> map = sarFileSplitItemsEOService.getByPage(page);
|
||||
page.getPager().setRowCount((Integer) map.get("count"));
|
||||
return Result.success(getPageInfo(page.getPager(), (List<SarFileSplitItemsEO>) map.get("list")));
|
||||
}
|
||||
return Result.error("0", "该条数据标准号在标准库中不存在");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
package com.adc.da.slrs.standardSplit.controller;
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsEODao;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitMenuEOService;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
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.List;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEOPage;
|
||||
import com.adc.da.slrs.standardSplit.entity.DrageMenuEO;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/sarFileSplitMenu")
|
||||
@Api(description = "|SarFileSplitMenuEO|")
|
||||
public class SarFileSplitMenuEOController extends BaseController<SarFileSplitMenuEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitMenuEOController.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitMenuEOService sarFileSplitMenuEOService;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsEODao sarFileSplitItemsEODao;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:page")
|
||||
public ResponseMessage<PageInfo<SarFileSplitMenuEO>> page(SarFileSplitMenuEOPage page) throws Exception {
|
||||
page.setOrderBy("modify_time desc");
|
||||
List<SarFileSplitMenuEO> rows = sarFileSplitMenuEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|查询")
|
||||
@GetMapping("getSplitMenusByInfoId")
|
||||
//@RequiresPermissions("lawss:sarFileSplitMenu:list")
|
||||
public ResponseMessage<List<SarFileSplitMenuEO>> list(SarFileSplitMenuEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
// page.setOrderBy("regexp_replace(replace('.'||NAME, '.', '.00000000'), '0+([^\\.]{8})', '\\1')");
|
||||
page.setOrderBy("display_seq asc");
|
||||
List<SarFileSplitMenuEO> getList = sarFileSplitMenuEOService.queryByList(page);
|
||||
return Result.success(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:get")
|
||||
public ResponseMessage<SarFileSplitMenuEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(sarFileSplitMenuEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|新增")
|
||||
@PostMapping("/addMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:save")
|
||||
public ResponseMessage<SarFileSplitMenuEO> create(SarFileSplitMenuEO sarFileSplitMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.addMenu(sarFileSplitMenuEO);
|
||||
return Result.success("0","新增成功",sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|修改")
|
||||
@PutMapping("/updateMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:update")
|
||||
public ResponseMessage<SarFileSplitMenuEO> update(SarFileSplitMenuEO sarFileSplitMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
return Result.success("0","修改成功",sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|删除")
|
||||
@DeleteMapping("/deleteMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:delete")
|
||||
public ResponseMessage delete(String id) throws Exception {
|
||||
sarFileSplitMenuEOService.deleteMenu(id);
|
||||
return Result.success("0","删除成功",null);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|拖拽节点")
|
||||
@PostMapping("/dragMenu")
|
||||
public ResponseMessage dragMenu(@RequestBody DrageMenuEO drageMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.dragMenu(drageMenuEO);
|
||||
return Result.success("0","修改成功",drageMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询子节点")
|
||||
@PostMapping("/judgequeryMenuByPid")
|
||||
/*@RequiresPermissions("lawss:sarMenu:judgequeryMenuByPid")*/
|
||||
public ResponseMessage<Boolean> judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
return Result.success(sarFileSplitMenuEOService.judgequeryMenuByPid(sarMenuEO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|复制节点包括子节点")
|
||||
@PostMapping("/copyMenu")
|
||||
public ResponseMessage copyMenu(@RequestBody SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
int result = sarFileSplitMenuEOService.copyMenu(sarMenuEO);
|
||||
return Result.success("0","复制成功",sarMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|复制节点不包括子节点")
|
||||
@PostMapping("/copyMenuNotChildren")
|
||||
public ResponseMessage copyMenuNotChildren(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
return Result.success("0","复制成功",sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|批量复制节点不包括子节点")
|
||||
@PostMapping("/copyMenuNotChildrenall")
|
||||
public ResponseMessage<List<SarFileSplitItemsEO>> copyMenuNotChildrenall(String ids, String menuids, String infoIds) throws Exception {
|
||||
|
||||
/*int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
return Result.success("0","复制成功",sarFileSplitItemsEO);*/
|
||||
String idsl[] = ids.split(",");
|
||||
List<String> idlist =new ArrayList<>();
|
||||
idlist = Arrays.asList(idsl);
|
||||
|
||||
String menuidss[] = menuids.split(",");
|
||||
List<String> menuidslist =new ArrayList<>();
|
||||
menuidslist = Arrays.asList(menuidss);
|
||||
|
||||
|
||||
String infoIdss[] = infoIds.split(",");
|
||||
List<String> infoIdslist =new ArrayList<>();
|
||||
infoIdslist = Arrays.asList(infoIdss);
|
||||
List<SarFileSplitItemsEO> sarFileSplitItemsEOS = new ArrayList<>();
|
||||
for(int i=0;i<idlist.size();i++){
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = new SarFileSplitItemsEO();
|
||||
sarFileSplitItemsEO.setId(idlist.get(i));
|
||||
sarFileSplitItemsEO.setMenuId(menuidslist.get(i));
|
||||
sarFileSplitItemsEO.setInfoId(infoIdslist.get(i));
|
||||
int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
sarFileSplitItemsEO = sarFileSplitItemsEODao.selectByPrimaryKey(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsEOS.add(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
return Result.success("0","复制成功",sarFileSplitItemsEOS);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
package com.adc.da.slrs.standardSplit.controller;
|
||||
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.PageInfo;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandAttrDetailsEOService;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandFileEOService;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.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.List;
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/sarStandFile")
|
||||
@Api(description = "|SarStandFileEO|")
|
||||
public class SarStandFileEOController extends BaseController<SarStandFileEO> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarStandFileEOController.class);
|
||||
|
||||
@Autowired
|
||||
private SarStandFileEOService sarStandFileEOService;
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
@Autowired
|
||||
private SarStandAttrDetailsEOService sarStandAttrDetailsEOService;
|
||||
public static final String APPLICATION_JSON_UTF8_VALUE = "application/json;charset=UTF-8";
|
||||
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
// 401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:page")
|
||||
public ResponseMessage<PageInfo<SarStandFileEO>> page(SarStandFileEOPage page) throws Exception {
|
||||
List<SarStandFileEO> rows = sarStandFileEOService.queryByPage(page);
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|查询")
|
||||
@GetMapping("")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:list")
|
||||
public ResponseMessage<List<SarStandFileEO>> list(SarStandFileEOPage page) throws Exception {
|
||||
return Result.success(sarStandFileEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:get")
|
||||
public ResponseMessage<SarStandFileEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.success(sarStandFileEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:save")
|
||||
public ResponseMessage<SarStandFileEO> create(@RequestBody SarStandFileEO sarStandFileEO) throws Exception {
|
||||
sarStandFileEOService.insertSelective(sarStandFileEO);
|
||||
return Result.success(sarStandFileEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:update")
|
||||
public ResponseMessage<SarStandFileEO> update(@RequestBody SarStandFileEO sarStandFileEO) throws Exception {
|
||||
sarStandFileEOService.updateByPrimaryKeySelective(sarStandFileEO);
|
||||
return Result.success(sarStandFileEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
//401问题2021-03-31暂时注释掉 liuhuiwen
|
||||
// @RequiresPermissions("lawss:sarStandFile:delete")
|
||||
public ResponseMessage delete(@PathVariable String id) throws Exception {
|
||||
sarStandFileEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_STAND_FILE where id = {}", id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|查询转换后的文档详情")
|
||||
@GetMapping("/queryConvertAtt")
|
||||
/*@RequiresPermissions("lawss:sarLawsFile:list")*/
|
||||
public ResponseMessage<SarStandFileEO> queryConvertAtt(String attId) throws Exception {
|
||||
List<SarStandFileEO> getList = sarStandFileEOService.selectFileByAttId(attId);
|
||||
SarStandFileEO sarBussStandFileEO = new SarStandFileEO();
|
||||
if(getList != null && !getList.isEmpty()){
|
||||
sarBussStandFileEO = getList.get(0);
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(attId);
|
||||
if(attFileEO != null){
|
||||
sarBussStandFileEO.setFileOldName(attFileEO.getOldFileName());
|
||||
}
|
||||
// readStandOrLawsLogService.sendReadSOLLog("STAND",sarBussStandFileEO);
|
||||
return Result.success(sarBussStandFileEO);
|
||||
} else {
|
||||
return Result.success(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandFileEO|分页查询")
|
||||
@GetMapping("/getStandFileListByPage")
|
||||
// @RequiresPermissions("lawss:sarStandRes:page")
|
||||
public ResponseMessage<PageInfo<SarStandFileEO>> getStandFileListByPage(SarStandFileEOPage page) throws Exception {
|
||||
String suffix = page.getFileSuffix();
|
||||
if (StringUtils.isNotBlank(suffix)) {
|
||||
page.setFileSuffixList(suffix.split(","));
|
||||
}
|
||||
List<SarStandFileEO> rows = sarStandFileEOService.getStandFileListByPage(page);
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarStandFileEO sarStandFileEO : rows) {
|
||||
List<SelectionResult> getField = sarStandAttrDetailsEOService.selectFileFieldForSel(sarStandFileEO.getStandFileClassify());
|
||||
if (getField != null && !getField.isEmpty()) {
|
||||
sarStandFileEO.setStandFileClassifyShow(getField.get(0).getLabel());
|
||||
} else {
|
||||
sarStandFileEO.setStandFileClassifyShow(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import java.util.List;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEOPage;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>OCR_RECORD OcrRecordEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-03-25 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitInfoEODao extends BaseMapper<SarFileSplitInfoEO> {
|
||||
|
||||
List<SarFileSplitInfoEO> queryByPage(BasePage var1);
|
||||
|
||||
List<SarFileSplitInfoEO> queryByList(BasePage var1);
|
||||
|
||||
SarFileSplitInfoEO selectByPrimaryKey(String id);
|
||||
|
||||
int insertSelective(SarFileSplitInfoEO sarFileSplitInfoEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitInfoEO sarFileSplitInfoEO);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
List<SarFileSplitInfoEO> queryByPageOwn(SarFileSplitInfoEOPage page);
|
||||
|
||||
int queryByCountOwn(SarFileSplitInfoEOPage page);
|
||||
|
||||
int deleteByIds(SarFileSplitInfoEO sarFileSplitInfoEO);
|
||||
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.dto.FileSplitItemsExportDto;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitItemsEODao extends BaseMapper<SarFileSplitItemsEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsEO> list);
|
||||
|
||||
int deleteByIds(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int deleteByItemsIds(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int deleteByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByItemsIdList(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsEO> queryItemsByMenuId(@Param("menuId") String menuId);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByItemsIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<FileSplitItemsExportDto> queryByOrdersForExport(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList2(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList(SarFileSplitItemsEOPage page);
|
||||
|
||||
SarFileSplitItemsEO selectByPrimaryKey(String id);
|
||||
|
||||
int insertSelective(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int queryByCount(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByPage(SarFileSplitItemsEOPage page);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsEO page);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitItemsParamsEODao extends BaseMapper<SarFileSplitItemsParamsEO> {
|
||||
|
||||
int deleteByItemIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByInfoIds(@Param("idList") List<String> idList);
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsParamsEO> list);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryItemsParamsByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage paramPage);
|
||||
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitItemsTableEODao extends BaseMapper<SarFileSplitItemsTableEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsTableEO> list);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByRowNum(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
int deleteByitemValIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteTableByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByitemIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryItemsTableByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitItemsValEODao extends BaseMapper<SarFileSplitItemsValEO> {
|
||||
|
||||
int deleteByIds(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int deleteByitemId(String id);
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsValEO> list);
|
||||
|
||||
int updateForeach(List<SarFileSplitItemsValEO> list);
|
||||
|
||||
int deleteValByInfoIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteValByitemIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteValByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryItemsValByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage valEOPage);
|
||||
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarFileSplitMenuEODao extends BaseMapper<SarFileSplitMenuEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitMenuEO> list);
|
||||
|
||||
int deleteByIds(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateDisplaySeqAdd(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateDisplaySeqCut(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPidExcpetSelf(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int deleteByPId(@Param("id") List<String> id);
|
||||
|
||||
List<String> getChild(@Param("id") String id);
|
||||
|
||||
int getMaxDisplayByid(@Param("id") String id);
|
||||
|
||||
int getChildrenCountByParentId(@Param("id") String id);
|
||||
|
||||
int updateChildrenDisplaySeqByIDAdd(SarFileSplitMenuEO childrenUpdateEO);
|
||||
|
||||
int updateChildrenDisplaySeqByIDCut(SarFileSplitMenuEO childrenUpdateEO);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有的子节点包括父节点
|
||||
* @param sarFileSplitMenuEO
|
||||
* @return
|
||||
*/
|
||||
List<SarFileSplitMenuEO> queryAllChildrenByid(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
int insertSelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitMenuEO menu);
|
||||
|
||||
SarFileSplitMenuEO selectByPrimaryKey(String id);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPage(BasePage page);
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEOPage;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_STAND_ATTR_DETAILS SarStandAttrDetailsEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarStandAttrDetailsEODao extends BaseMapper<SarStandAttrDetailsEO> {
|
||||
|
||||
int deleteByIds(@Param("idList") List<String> idList);
|
||||
|
||||
String selectAllFieldToStr(SarStandAttrDetailsEOPage page);
|
||||
|
||||
SarStandAttrDetailsEO selectFieldByName(@Param("attrName") String attrName, @Param("sarType") String sarType);
|
||||
|
||||
String selectNameByField(@Param("attrField") String attrField, @Param("sarType") String sarType);
|
||||
|
||||
List<SelectionResult> selectFileFieldForSel(@Param("attrField") String attrField);
|
||||
|
||||
List<SelectionResult> selectFileFieldForSel1(@Param("attrField") String attrField);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_STAND_FILE SarStandFileEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarStandFileEODao extends BaseMapper<SarStandFileEO> {
|
||||
List<SarStandFileEO> selectFileByStandId(String lawsId);
|
||||
|
||||
List<SarStandFileEO> selectFileByAttId(String attId);
|
||||
|
||||
List<SarStandFileEO> selectFileByResId(SarStandFileEO sarStandFileEO);
|
||||
|
||||
List<SarStandFileEO> selectFileByStandIdAndId(SarStandFileEO sarStandFileEO);
|
||||
|
||||
List<SarStandFileEO> selectFileMsgByAttId(String attId);
|
||||
|
||||
int deleteByStandId(String standId);
|
||||
|
||||
int insertForeach(List<SarStandFileEO> list); //批量新增
|
||||
|
||||
List<SarStandFileEO> getStandFileListByPage(SarStandFileEOPage stand);
|
||||
|
||||
int queryStandFileListByCount(SarStandFileEOPage stand);
|
||||
|
||||
List<SarStandFileEO> queryByPage(SarStandFileEOPage page);
|
||||
|
||||
List<SarStandFileEO> queryByList(SarStandFileEOPage page);
|
||||
|
||||
SarStandFileEO selectByPrimaryKey(String id);
|
||||
|
||||
int insertSelective(SarStandFileEO sarStandFileEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarStandFileEO sarStandFileEO);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
package com.adc.da.slrs.standardSplit.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.RecommendVO;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_STANDARDS_INFO SarStandardsInfoEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface SarStandardsInfoEODao extends BaseMapper<SarStandardsInfoEO> {
|
||||
|
||||
List<SarStandardsInfoEO> getSarStandardsInfoPage(SarStandardsInfoEOPage page);
|
||||
|
||||
int getSarStandardsInfoCount(SarStandardsInfoEOPage page);
|
||||
|
||||
SarStandardsInfoEO selectByPrimaryKeyAndModifyTime(SarStandardsInfoEO page);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandardsByStandnumber(SarStandardsInfoEO sarStandardsInfoEO);
|
||||
|
||||
Integer selectStandColumn(@Param("columnName") String columnName);
|
||||
|
||||
Integer selectCounterStandardsCount(SarStandardsInfoEO sarStandardsInfoEO);
|
||||
|
||||
int deleteByPrimaryKeyFlag(String id);
|
||||
|
||||
int updateByStandNum(SarStandardsInfoEO standardsInfoEO);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandardsInfoByIdAndRole(SarStandardsInfoEOPage standEO);
|
||||
|
||||
int updateReplacedNumById(SarStandardsInfoEO sarStandardsInfoEO);
|
||||
|
||||
int updateCitedStandById(SarStandardsInfoEO sarStandardsInfoEO);
|
||||
|
||||
List<SarStandardsInfoEO> getSarStandardsExportInfo(SarStandardsInfoEOPage page);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandardsInfoByKey(String id);
|
||||
|
||||
List<RecommendVO> selectRecommendStand(SarStandardsInfoEOPage pagenew);
|
||||
|
||||
List<String> countReplaceMsg(@Param("standNum") String standNum);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandToUpState(@Param("stateName") String stateName);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandToUpRepState();
|
||||
|
||||
List<SarStandardsInfoEO> selectStandToUpRepAndTime();
|
||||
|
||||
int updateStateById(@Param("state") String state, @Param("list") List<String> list);
|
||||
|
||||
int selectIsExit(@Param("id") String id);
|
||||
|
||||
//添加一个查询标准,但是不判断标准是否删除
|
||||
List<SarStandardsInfoEO> selectStandardsInfoByIdAndRoleAll(SarStandardsInfoEOPage standEO);
|
||||
|
||||
List<SarStandardsInfoEO> selectStandardsInfoBynumber(SarStandardsInfoEOPage page);
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.adc.da.slrs.standardSplit.dto;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 10:06
|
||||
*/
|
||||
public class FileSpiltValTableExportDto {
|
||||
|
||||
private String tableName;
|
||||
|
||||
private List<List<SarFileSplitItemsTableEO>> tableEOList;
|
||||
|
||||
private String tableHtCon;
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public List<List<SarFileSplitItemsTableEO>> getTableEOList() {
|
||||
return tableEOList;
|
||||
}
|
||||
|
||||
public void setTableEOList(List<List<SarFileSplitItemsTableEO>> tableEOList) {
|
||||
this.tableEOList = tableEOList;
|
||||
}
|
||||
|
||||
public String getTableHtCon() {
|
||||
return tableHtCon;
|
||||
}
|
||||
|
||||
public void setTableHtCon(String tableHtCon) {
|
||||
this.tableHtCon = tableHtCon;
|
||||
}
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
package com.adc.da.slrs.standardSplit.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/13 9:48
|
||||
*/
|
||||
public class FileSplitItemsExportDto {
|
||||
private String id;
|
||||
|
||||
private String itemsNum;
|
||||
|
||||
private String itemsName;
|
||||
|
||||
private String itermsConditions;
|
||||
|
||||
private String type;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date newcarPutTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date productPutTime;
|
||||
private String svpps;
|
||||
private String applyArctic;
|
||||
private String referenceStand;
|
||||
private String remarks;
|
||||
private String relevanceFile;
|
||||
|
||||
//导出新加字段
|
||||
private String fo;
|
||||
private String dutyEngineer;
|
||||
private String claimType;
|
||||
private String claimTypeShow;
|
||||
private String busStandCover;
|
||||
private String fileType;
|
||||
private String responsibleUnit;//责任部门
|
||||
private String responsibleUnitShow;
|
||||
private String dutyEngineerShow;//责任工程师
|
||||
private String foShow;//fo
|
||||
|
||||
|
||||
private List<FileSplitValExportDto> itemValContent;
|
||||
|
||||
public String getItemsNum() {
|
||||
return itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public List<FileSplitValExportDto> getItemValContent() {
|
||||
return itemValContent;
|
||||
}
|
||||
|
||||
public void setItemValContent(List<FileSplitValExportDto> itemValContent) {
|
||||
this.itemValContent = itemValContent;
|
||||
}
|
||||
|
||||
public Date getNewcarPutTime() {
|
||||
return newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(Date newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public Date getProductPutTime() {
|
||||
return productPutTime;
|
||||
}
|
||||
|
||||
public void setProductPutTime(Date productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getReferenceStand() {
|
||||
return referenceStand;
|
||||
}
|
||||
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
public String getFo() {
|
||||
return fo;
|
||||
}
|
||||
|
||||
public void setFo(String fo) {
|
||||
this.fo = fo;
|
||||
}
|
||||
|
||||
public String getDutyEngineer() {
|
||||
return dutyEngineer;
|
||||
}
|
||||
|
||||
public void setDutyEngineer(String dutyEngineer) {
|
||||
this.dutyEngineer = dutyEngineer;
|
||||
}
|
||||
|
||||
public String getClaimType() {
|
||||
return claimType;
|
||||
}
|
||||
|
||||
public void setClaimType(String claimType) {
|
||||
this.claimType = claimType;
|
||||
}
|
||||
|
||||
public String getBusStandCover() {
|
||||
return busStandCover;
|
||||
}
|
||||
|
||||
public void setBusStandCover(String busStandCover) {
|
||||
this.busStandCover = busStandCover;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getResponsibleUnit() {
|
||||
return responsibleUnit;
|
||||
}
|
||||
|
||||
public void setResponsibleUnit(String responsibleUnit) {
|
||||
this.responsibleUnit = responsibleUnit;
|
||||
}
|
||||
|
||||
public String getResponsibleUnitShow() {
|
||||
return responsibleUnitShow;
|
||||
}
|
||||
|
||||
public void setResponsibleUnitShow(String responsibleUnitShow) {
|
||||
this.responsibleUnitShow = responsibleUnitShow;
|
||||
}
|
||||
|
||||
public String getClaimTypeShow() {
|
||||
return claimTypeShow;
|
||||
}
|
||||
|
||||
public void setClaimTypeShow(String claimTypeShow) {
|
||||
this.claimTypeShow = claimTypeShow;
|
||||
}
|
||||
|
||||
public String getDutyEngineerShow() {
|
||||
return dutyEngineerShow;
|
||||
}
|
||||
|
||||
public void setDutyEngineerShow(String dutyEngineerShow) {
|
||||
this.dutyEngineerShow = dutyEngineerShow;
|
||||
}
|
||||
|
||||
public String getFoShow() {
|
||||
return foShow;
|
||||
}
|
||||
|
||||
public void setFoShow(String foShow) {
|
||||
this.foShow = foShow;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.adc.da.slrs.standardSplit.dto;
|
||||
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 9:18
|
||||
*/
|
||||
public class FileSplitValExportDto {
|
||||
|
||||
private String valType;
|
||||
|
||||
private String valContent;
|
||||
|
||||
private List<SarFileSplitItemsTableEO> tableEOList;
|
||||
|
||||
public String getValType() {
|
||||
return valType;
|
||||
}
|
||||
|
||||
public void setValType(String valType) {
|
||||
this.valType = valType;
|
||||
}
|
||||
|
||||
public String getValContent() {
|
||||
return valContent;
|
||||
}
|
||||
|
||||
public void setValContent(String valContent) {
|
||||
this.valContent = valContent;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsTableEO> getTableEOList() {
|
||||
return tableEOList;
|
||||
}
|
||||
|
||||
public void setTableEOList(List<SarFileSplitItemsTableEO> tableEOList) {
|
||||
this.tableEOList = tableEOList;
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.slrs.standardSplit.dto;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 15:58
|
||||
*/
|
||||
public class FileSplitValImgExportDto {
|
||||
|
||||
private String imgName;
|
||||
|
||||
private String imgPath;
|
||||
|
||||
public String getImgName() {
|
||||
return imgName;
|
||||
}
|
||||
|
||||
public void setImgName(String imgName) {
|
||||
this.imgName = imgName;
|
||||
}
|
||||
|
||||
public String getImgPath() {
|
||||
return imgPath;
|
||||
}
|
||||
|
||||
public void setImgPath(String imgPath) {
|
||||
this.imgPath = imgPath;
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
package com.adc.da.slrs.standardSplit.dto;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/5/9 14:40
|
||||
*/
|
||||
public class SarFileSplitItemsImportDto {
|
||||
@Excel(name = "条款号", orderNum = "1")
|
||||
private String itemsNum;
|
||||
|
||||
@Excel(name = "条款名称", orderNum = "1")
|
||||
private String itemsName;
|
||||
|
||||
@Excel(name = "内容简介", orderNum = "1")
|
||||
private String itermsConditions;
|
||||
|
||||
@Excel(name = "责任部门", orderNum = "1")
|
||||
private String responsibleUnit;
|
||||
|
||||
// @Excel(name = "责任部门", orderNum = "1")
|
||||
private String newcarPutTime;
|
||||
|
||||
@Excel(name = "FO", orderNum = "1")
|
||||
private String fo;
|
||||
|
||||
@Excel(name = "责任工程师", orderNum = "1")
|
||||
private String dutyEngineer;
|
||||
|
||||
@Excel(name = "SVPPS", orderNum = "1")
|
||||
private String svpps;
|
||||
|
||||
@Excel(name = "适用车辆类型", orderNum = "1")
|
||||
private String applyArctic;
|
||||
|
||||
@Excel(name = "要求类型", orderNum = "1")
|
||||
private String claimType;
|
||||
|
||||
@Excel(name = "企标覆盖关系", orderNum = "1")
|
||||
private String busStandCover;
|
||||
|
||||
|
||||
|
||||
// @Excel(name = "在产车实施日期", orderNum = "1")
|
||||
// private Date productPutTime;
|
||||
//
|
||||
// @Excel(name = "引用标准", orderNum = "1")
|
||||
// private String referenceStand;
|
||||
//
|
||||
// @Excel(name = "备注", orderNum = "1")
|
||||
// private String remarks;
|
||||
//
|
||||
// @Excel(name = "关联文件", orderNum = "1")
|
||||
// private String relevanceFile;
|
||||
//
|
||||
// private String relevanceFileName;
|
||||
|
||||
|
||||
public String getItemsNum() {
|
||||
return itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getResponsibleUnit() {
|
||||
return responsibleUnit;
|
||||
}
|
||||
|
||||
public void setResponsibleUnit(String responsibleUnit) {
|
||||
this.responsibleUnit = responsibleUnit;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime() {
|
||||
return newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(String newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public String getFo() {
|
||||
return fo;
|
||||
}
|
||||
|
||||
public void setFo(String fo) {
|
||||
this.fo = fo;
|
||||
}
|
||||
|
||||
public String getDutyEngineer() {
|
||||
return dutyEngineer;
|
||||
}
|
||||
|
||||
public void setDutyEngineer(String dutyEngineer) {
|
||||
this.dutyEngineer = dutyEngineer;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getClaimType() {
|
||||
return claimType;
|
||||
}
|
||||
|
||||
public void setClaimType(String claimType) {
|
||||
this.claimType = claimType;
|
||||
}
|
||||
|
||||
public String getBusStandCover() {
|
||||
return busStandCover;
|
||||
}
|
||||
|
||||
public void setBusStandCover(String busStandCover) {
|
||||
this.busStandCover = busStandCover;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>MSG_BROWSE_INFO MsgBrowseInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DrageMenuEO extends BaseEntity {
|
||||
|
||||
private String menuId;
|
||||
private String menuParentId;
|
||||
private Long menuDisplay;
|
||||
private String targetMenuId;
|
||||
private String targetParentId;
|
||||
private Long targetMenuDisplay;
|
||||
private String infoId;
|
||||
private String moveType;
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getMenuParentId() {
|
||||
return menuParentId;
|
||||
}
|
||||
|
||||
public void setMenuParentId(String menuParentId) {
|
||||
this.menuParentId = menuParentId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getTargetMenuId() {
|
||||
return targetMenuId;
|
||||
}
|
||||
|
||||
public void setTargetMenuId(String targetMenuId) {
|
||||
this.targetMenuId = targetMenuId;
|
||||
}
|
||||
|
||||
public String getTargetParentId() {
|
||||
return targetParentId;
|
||||
}
|
||||
|
||||
public void setTargetParentId(String targetParentId) {
|
||||
this.targetParentId = targetParentId;
|
||||
}
|
||||
|
||||
public Long getMenuDisplay() {
|
||||
return menuDisplay;
|
||||
}
|
||||
|
||||
public void setMenuDisplay(Long menuDisplay) {
|
||||
this.menuDisplay = menuDisplay;
|
||||
}
|
||||
|
||||
public Long getTargetMenuDisplay() {
|
||||
return targetMenuDisplay;
|
||||
}
|
||||
|
||||
public void setTargetMenuDisplay(Long targetMenuDisplay) {
|
||||
this.targetMenuDisplay = targetMenuDisplay;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getMoveType() {
|
||||
return moveType;
|
||||
}
|
||||
|
||||
public void setMoveType(String moveType) {
|
||||
this.moveType = moveType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
public class PrcNumName {
|
||||
private String prcNum;
|
||||
private String prcName;
|
||||
|
||||
public String getPrcNum() {
|
||||
return prcNum;
|
||||
}
|
||||
|
||||
public void setPrcNum(String prcNum) {
|
||||
this.prcNum = prcNum;
|
||||
}
|
||||
|
||||
public String getPrcName() {
|
||||
return prcName;
|
||||
}
|
||||
|
||||
public void setPrcName(String prcName) {
|
||||
this.prcName = prcName;
|
||||
}
|
||||
}
|
||||
+423
@@ -0,0 +1,423 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_COMP_STATUS_INFO SarCompStatusInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2021-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarCompStatusInfoEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String sarType;
|
||||
private String sarId;
|
||||
private String sarItemId;
|
||||
private String sarState;
|
||||
private String sarItemState;
|
||||
private String prcNum;
|
||||
private String color;
|
||||
private String prcState;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
private String nonConfomity;
|
||||
private String current;//我司现状
|
||||
private String changeScheme;//更改方案
|
||||
private String estimatedChangeCycle;
|
||||
private String estimatedCost;
|
||||
private String riskPoint;
|
||||
private String verificationScheme;
|
||||
private String justified;
|
||||
private String compPerson;
|
||||
private String compPersonName;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date compTime;
|
||||
private String state;
|
||||
private String sarNumber;
|
||||
private String sarItemNumber;
|
||||
private String standId;
|
||||
private String standType;
|
||||
private String standCode;
|
||||
private String standName;
|
||||
private String createType;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>sarType -> sar_type</li>
|
||||
* <li>sarId -> sar_id</li>
|
||||
* <li>sarItemId -> sar_item_id</li>
|
||||
* <li>sarState -> sar_state</li>
|
||||
* <li>sarItemState -> sar_item_state</li>
|
||||
* <li>prcNum -> prc_num</li>
|
||||
* <li>color -> color</li>
|
||||
* <li>prcState -> prc_state</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>nonConfomity -> non_confomity</li>
|
||||
* <li>current -> current</li>
|
||||
* <li>changeScheme -> change_scheme</li>
|
||||
* <li>estimatedChangeCycle -> estimated_change_cycle</li>
|
||||
* <li>estimatedCost -> estimated_cost</li>
|
||||
* <li>riskPoint -> risk_point</li>
|
||||
* <li>verificationScheme -> verification_scheme</li>
|
||||
* <li>justified -> justified</li>
|
||||
* <li>compPerson -> comp_person</li>
|
||||
* <li>compTime -> comp_time</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "sarType": return "sar_type";
|
||||
case "sarId": return "sar_id";
|
||||
case "sarItemId": return "sar_item_id";
|
||||
case "sarState": return "sar_state";
|
||||
case "sarItemState": return "sar_item_state";
|
||||
case "prcNum": return "prc_num";
|
||||
case "color": return "color";
|
||||
case "prcState": return "prc_state";
|
||||
case "creationTime": return "creation_time";
|
||||
case "nonConfomity": return "non_confomity";
|
||||
case "current": return "current";
|
||||
case "changeScheme": return "change_scheme";
|
||||
case "estimatedChangeCycle": return "estimated_change_cycle";
|
||||
case "estimatedCost": return "estimated_cost";
|
||||
case "riskPoint": return "risk_point";
|
||||
case "verificationScheme": return "verification_scheme";
|
||||
case "justified": return "justified";
|
||||
case "compPerson": return "comp_person";
|
||||
case "compTime": return "comp_time";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>sar_type -> sarType</li>
|
||||
* <li>sar_id -> sarId</li>
|
||||
* <li>sar_item_id -> sarItemId</li>
|
||||
* <li>sar_state -> sarState</li>
|
||||
* <li>sar_item_state -> sarItemState</li>
|
||||
* <li>prc_num -> prcNum</li>
|
||||
* <li>color -> color</li>
|
||||
* <li>prc_state -> prcState</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>non_confomity -> nonConfomity</li>
|
||||
* <li>current -> current</li>
|
||||
* <li>change_scheme -> changeScheme</li>
|
||||
* <li>estimated_change_cycle -> estimatedChangeCycle</li>
|
||||
* <li>estimated_cost -> estimatedCost</li>
|
||||
* <li>risk_point -> riskPoint</li>
|
||||
* <li>verification_scheme -> verificationScheme</li>
|
||||
* <li>justified -> justified</li>
|
||||
* <li>comp_person -> compPerson</li>
|
||||
* <li>comp_time -> compTime</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "sar_type": return "sarType";
|
||||
case "sar_id": return "sarId";
|
||||
case "sar_item_id": return "sarItemId";
|
||||
case "sar_state": return "sarState";
|
||||
case "sar_item_state": return "sarItemState";
|
||||
case "prc_num": return "prcNum";
|
||||
case "color": return "color";
|
||||
case "prc_state": return "prcState";
|
||||
case "creation_time": return "creationTime";
|
||||
case "non_confomity": return "nonConfomity";
|
||||
case "current": return "current";
|
||||
case "change_scheme": return "changeScheme";
|
||||
case "estimated_change_cycle": return "estimatedChangeCycle";
|
||||
case "estimated_cost": return "estimatedCost";
|
||||
case "risk_point": return "riskPoint";
|
||||
case "verification_scheme": return "verificationScheme";
|
||||
case "justified": return "justified";
|
||||
case "comp_person": return "compPerson";
|
||||
case "comp_time": return "compTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarType() {
|
||||
return this.sarType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarId() {
|
||||
return this.sarId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarId(String sarId) {
|
||||
this.sarId = sarId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarItemId() {
|
||||
return this.sarItemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarItemId(String sarItemId) {
|
||||
this.sarItemId = sarItemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarState() {
|
||||
return this.sarState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarState(String sarState) {
|
||||
this.sarState = sarState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarItemState() {
|
||||
return this.sarItemState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarItemState(String sarItemState) {
|
||||
this.sarItemState = sarItemState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPrcNum() {
|
||||
return this.prcNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPrcNum(String prcNum) {
|
||||
this.prcNum = prcNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getColor() {
|
||||
return this.color;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPrcState() {
|
||||
return this.prcState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPrcState(String prcState) {
|
||||
this.prcState = prcState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getNonConfomity() {
|
||||
return this.nonConfomity;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setNonConfomity(String nonConfomity) {
|
||||
this.nonConfomity = nonConfomity;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCurrent() {
|
||||
return this.current;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCurrent(String current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getChangeScheme() {
|
||||
return this.changeScheme;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setChangeScheme(String changeScheme) {
|
||||
this.changeScheme = changeScheme;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getEstimatedChangeCycle() {
|
||||
return this.estimatedChangeCycle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setEstimatedChangeCycle(String estimatedChangeCycle) {
|
||||
this.estimatedChangeCycle = estimatedChangeCycle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getEstimatedCost() {
|
||||
return this.estimatedCost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setEstimatedCost(String estimatedCost) {
|
||||
this.estimatedCost = estimatedCost;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRiskPoint() {
|
||||
return this.riskPoint;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRiskPoint(String riskPoint) {
|
||||
this.riskPoint = riskPoint;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getVerificationScheme() {
|
||||
return this.verificationScheme;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setVerificationScheme(String verificationScheme) {
|
||||
this.verificationScheme = verificationScheme;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getJustified() {
|
||||
return this.justified;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setJustified(String justified) {
|
||||
this.justified = justified;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCompPerson() {
|
||||
return this.compPerson;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCompTime() {
|
||||
return this.compTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCompTime(Date compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getSarNumber() {
|
||||
return sarNumber;
|
||||
}
|
||||
|
||||
public void setSarNumber(String sarNumber) {
|
||||
this.sarNumber = sarNumber;
|
||||
}
|
||||
|
||||
public String getSarItemNumber() {
|
||||
return sarItemNumber;
|
||||
}
|
||||
|
||||
public void setSarItemNumber(String sarItemNumber) {
|
||||
this.sarItemNumber = sarItemNumber;
|
||||
}
|
||||
|
||||
public String getStandId() {
|
||||
return standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandType() {
|
||||
return standType;
|
||||
}
|
||||
|
||||
public void setStandType(String standType) {
|
||||
this.standType = standType;
|
||||
}
|
||||
|
||||
public String getStandCode() {
|
||||
return standCode;
|
||||
}
|
||||
|
||||
public void setStandCode(String standCode) {
|
||||
this.standCode = standCode;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getCompPersonName() {
|
||||
return compPersonName;
|
||||
}
|
||||
|
||||
public void setCompPersonName(String compPersonName) {
|
||||
this.compPersonName = compPersonName;
|
||||
}
|
||||
|
||||
public String getCreateType() {
|
||||
return createType;
|
||||
}
|
||||
|
||||
public void setCreateType(String createType) {
|
||||
this.createType = createType;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+324
@@ -0,0 +1,324 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_INFO SarFileSplitInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitInfoEO extends BaseEntity {
|
||||
|
||||
private String sarType;
|
||||
private String fileName;
|
||||
private String id;
|
||||
private String standId;
|
||||
private String fileType;
|
||||
private String fileTypeShow;
|
||||
private String attId;
|
||||
private Integer validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private String creationUser;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String modifyUser;
|
||||
private String standName;
|
||||
private String standNumSplit;
|
||||
private String standNameSplit;
|
||||
private String[] idList;
|
||||
private int startNumber;
|
||||
private int stopNumber;
|
||||
private String result;
|
||||
private String splitStatus;
|
||||
private String collectId;
|
||||
//用于拆分结果导入 by zj
|
||||
private String menuId;
|
||||
private String infoId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>sarType -> sar_type</li>
|
||||
* <li>fileName -> file_name</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>standId -> stand_id</li>
|
||||
* <li>fileType -> file_type</li>
|
||||
* <li>attId -> att_id</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "sarType": return "sar_type";
|
||||
case "fileName": return "file_name";
|
||||
case "id": return "id";
|
||||
case "standId": return "stand_id";
|
||||
case "fileType": return "file_type";
|
||||
case "attId": return "att_id";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "creationUser": return "creation_user";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>sar_type -> sarType</li>
|
||||
* <li>file_name -> fileName</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>stand_id -> standId</li>
|
||||
* <li>file_type -> fileType</li>
|
||||
* <li>att_id -> attId</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "sar_type": return "sarType";
|
||||
case "file_name": return "fileName";
|
||||
case "id": return "id";
|
||||
case "stand_id": return "standId";
|
||||
case "file_type": return "fileType";
|
||||
case "att_id": return "attId";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "creation_user": return "creationUser";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSarType() {
|
||||
return this.sarType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileType() {
|
||||
return this.fileType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
private String showNumber;
|
||||
|
||||
public String getShowNumber() {
|
||||
return showNumber;
|
||||
}
|
||||
|
||||
public void setShowNumber(String showNumber) {
|
||||
this.showNumber = showNumber;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public String getStandNumSplit() {
|
||||
return standNumSplit;
|
||||
}
|
||||
|
||||
public void setStandNumSplit(String standNumSplit) {
|
||||
this.standNumSplit = standNumSplit;
|
||||
}
|
||||
|
||||
public String getStandNameSplit() {
|
||||
return standNameSplit;
|
||||
}
|
||||
|
||||
public void setStandNameSplit(String standNameSplit) {
|
||||
this.standNameSplit = standNameSplit;
|
||||
}
|
||||
|
||||
public int getStartNumber() {
|
||||
return startNumber;
|
||||
}
|
||||
|
||||
public void setStartNumber(int startNumber) {
|
||||
this.startNumber = startNumber;
|
||||
}
|
||||
|
||||
public int getStopNumber() {
|
||||
return stopNumber;
|
||||
}
|
||||
|
||||
public void setStopNumber(int stopNumber) {
|
||||
this.stopNumber = stopNumber;
|
||||
}
|
||||
|
||||
public String getFileTypeShow() {
|
||||
return fileTypeShow;
|
||||
}
|
||||
|
||||
public void setFileTypeShow(String fileTypeShow) {
|
||||
this.fileTypeShow = fileTypeShow;
|
||||
}
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getSplitStatus() {
|
||||
return splitStatus;
|
||||
}
|
||||
|
||||
public void setSplitStatus(String splitStatus) {
|
||||
this.splitStatus = splitStatus;
|
||||
}
|
||||
|
||||
public String getCollectId() {
|
||||
return collectId;
|
||||
}
|
||||
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
}
|
||||
+307
@@ -0,0 +1,307 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_INFO SarFileSplitInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitInfoEOPage extends BasePage {
|
||||
|
||||
private String sarType;
|
||||
private String sarTypeOperator = "=";
|
||||
private String fileName;
|
||||
private String fileNameOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String standId;
|
||||
private String standIdOperator = "=";
|
||||
private String fileType;
|
||||
private String fileTypeOperator = "=";
|
||||
private String attId;
|
||||
private String attIdOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
private String numOrName;
|
||||
|
||||
private String splitStatus;
|
||||
|
||||
private String standNum;
|
||||
|
||||
private String result;
|
||||
|
||||
private String paixu;
|
||||
|
||||
private String shunxu;
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getStandNum() {
|
||||
return standNum;
|
||||
}
|
||||
|
||||
public void setStandNum(String standNum) {
|
||||
this.standNum = standNum;
|
||||
}
|
||||
|
||||
public String getSplitStatus() {
|
||||
return splitStatus;
|
||||
}
|
||||
|
||||
public void setSplitStatus(String splitStatus) {
|
||||
this.splitStatus = splitStatus;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return this.sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getSarTypeOperator() {
|
||||
return this.sarTypeOperator;
|
||||
}
|
||||
|
||||
public void setSarTypeOperator(String sarTypeOperator) {
|
||||
this.sarTypeOperator = sarTypeOperator;
|
||||
}
|
||||
|
||||
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 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 getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandIdOperator() {
|
||||
return this.standIdOperator;
|
||||
}
|
||||
|
||||
public void setStandIdOperator(String standIdOperator) {
|
||||
this.standIdOperator = standIdOperator;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return this.fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getFileTypeOperator() {
|
||||
return this.fileTypeOperator;
|
||||
}
|
||||
|
||||
public void setFileTypeOperator(String fileTypeOperator) {
|
||||
this.fileTypeOperator = fileTypeOperator;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getAttIdOperator() {
|
||||
return this.attIdOperator;
|
||||
}
|
||||
|
||||
public void setAttIdOperator(String attIdOperator) {
|
||||
this.attIdOperator = attIdOperator;
|
||||
}
|
||||
|
||||
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 getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
public String getNumOrName() {
|
||||
return numOrName;
|
||||
}
|
||||
|
||||
public void setNumOrName(String numOrName) {
|
||||
this.numOrName = numOrName;
|
||||
}
|
||||
|
||||
public String getPaixu() {
|
||||
return paixu;
|
||||
}
|
||||
|
||||
public void setPaixu(String paixu) {
|
||||
this.paixu = paixu;
|
||||
}
|
||||
|
||||
public String getShunxu() {
|
||||
return shunxu;
|
||||
}
|
||||
|
||||
public void setShunxu(String shunxu) {
|
||||
this.shunxu = shunxu;
|
||||
}
|
||||
}
|
||||
+523
@@ -0,0 +1,523 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String infoId;
|
||||
private String itemsNum;
|
||||
private String itemsName;
|
||||
private String itermsConditions;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date newcarPutTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date productPutTime;
|
||||
private String menuId;
|
||||
private String svpps;
|
||||
private String applyArctic;
|
||||
private String referenceStand;
|
||||
private String specialRequest;
|
||||
private String relevanceFile;
|
||||
private String remarks;
|
||||
private Integer validFlag;
|
||||
private String creationUser;
|
||||
@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 modifyUser;
|
||||
private String[] infoIdList;
|
||||
private String[] idList;
|
||||
private List<SarFileSplitItemsValEO> itemValEOList;
|
||||
// 前台删除的VAL表条目内容ID
|
||||
private String delItemIds;
|
||||
private String sMenuId;
|
||||
//特殊参数要求
|
||||
private List<SarFileSplitItemsParamsEO> paramsList;
|
||||
private String relevanceFileAttid;
|
||||
|
||||
//新加字段 SVPPS在前边已经存在
|
||||
private String fo;//FO
|
||||
private String dutyEngineer;//责任工程师
|
||||
private String claimType;//要求类型
|
||||
private String busStandCover;//企标覆盖关系
|
||||
private String fileType;//文件类型
|
||||
|
||||
//新加字段带show
|
||||
private String foShow;//FO
|
||||
private String dutyEngineerShow;//责任工程师
|
||||
private String svppsShow;//SVPPS
|
||||
private String claimTypeShow;//要求类型
|
||||
private String busStandCoverShow;//企标覆盖关系
|
||||
private String fileTypeShow;//文件类型
|
||||
|
||||
private String responsibleUnit;//责任部门
|
||||
private String responsibleUnitShow;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
* <li>itemsNum -> items_num</li>
|
||||
* <li>itemsName -> items_name</li>
|
||||
* <li>itermsConditions -> iterms_conditions</li>
|
||||
* <li>newcarPutTime -> newcar_put_time</li>
|
||||
* <li>productPutTime -> product_put_time</li>
|
||||
* <li>menuId -> menu_id</li>
|
||||
* <li>svpps -> svpps</li>
|
||||
* <li>applyArctic -> apply_arctic</li>
|
||||
* <li>referenceStand -> reference_stand</li>
|
||||
* <li>specialRequest -> special_request</li>
|
||||
* <li>relevanceFile -> relevance_file</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "infoId": return "info_id";
|
||||
case "itemsNum": return "items_num";
|
||||
case "itemsName": return "items_name";
|
||||
case "itermsConditions": return "iterms_conditions";
|
||||
case "newcarPutTime": return "newcar_put_time";
|
||||
case "productPutTime": return "product_put_time";
|
||||
case "menuId": return "menu_id";
|
||||
case "svpps": return "svpps";
|
||||
case "applyArctic": return "apply_arctic";
|
||||
case "referenceStand": return "reference_stand";
|
||||
case "specialRequest": return "special_request";
|
||||
case "relevanceFile": return "relevance_file";
|
||||
case "remarks": return "remarks";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationUser": return "creation_user";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
* <li>items_num -> itemsNum</li>
|
||||
* <li>items_name -> itemsName</li>
|
||||
* <li>iterms_conditions -> itermsConditions</li>
|
||||
* <li>newcar_put_time -> newcarPutTime</li>
|
||||
* <li>product_put_time -> productPutTime</li>
|
||||
* <li>menu_id -> menuId</li>
|
||||
* <li>svpps -> svpps</li>
|
||||
* <li>apply_arctic -> applyArctic</li>
|
||||
* <li>reference_stand -> referenceStand</li>
|
||||
* <li>special_request -> specialRequest</li>
|
||||
* <li>relevance_file -> relevanceFile</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "info_id": return "infoId";
|
||||
case "items_num": return "itemsNum";
|
||||
case "items_name": return "itemsName";
|
||||
case "iterms_conditions": return "itermsConditions";
|
||||
case "newcar_put_time": return "newcarPutTime";
|
||||
case "product_put_time": return "productPutTime";
|
||||
case "menu_id": return "menuId";
|
||||
case "svpps": return "svpps";
|
||||
case "apply_arctic": return "applyArctic";
|
||||
case "reference_stand": return "referenceStand";
|
||||
case "special_request": return "specialRequest";
|
||||
case "relevance_file": return "relevanceFile";
|
||||
case "remarks": return "remarks";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_user": return "creationUser";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsNum() {
|
||||
return this.itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsName() {
|
||||
return this.itemsName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getNewcarPutTime() {
|
||||
return this.newcarPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setNewcarPutTime(Date newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getProductPutTime() {
|
||||
return this.productPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setProductPutTime(Date productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMenuId() {
|
||||
return this.menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSvpps() {
|
||||
return this.svpps;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getApplyArctic() {
|
||||
return this.applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getReferenceStand() {
|
||||
return this.referenceStand;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSpecialRequest() {
|
||||
return this.specialRequest;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSpecialRequest(String specialRequest) {
|
||||
this.specialRequest = specialRequest;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRelevanceFile() {
|
||||
return this.relevanceFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
|
||||
List<String> itemsCondi;
|
||||
|
||||
public List<String> getItemsCondi() {
|
||||
return itemsCondi;
|
||||
}
|
||||
|
||||
public void setItemsCondi(List<String> itemsCondi) {
|
||||
this.itemsCondi = itemsCondi;
|
||||
}
|
||||
|
||||
public String[] getInfoIdList() {
|
||||
return infoIdList;
|
||||
}
|
||||
|
||||
public void setInfoIdList(String[] infoIdList) {
|
||||
this.infoIdList = infoIdList;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsValEO> getItemValEOList() {
|
||||
return itemValEOList;
|
||||
}
|
||||
|
||||
public void setItemValEOList(List<SarFileSplitItemsValEO> itemValEOList) {
|
||||
this.itemValEOList = itemValEOList;
|
||||
}
|
||||
|
||||
public String getDelItemIds() {
|
||||
return delItemIds;
|
||||
}
|
||||
|
||||
public void setDelItemIds(String delItemIds) {
|
||||
this.delItemIds = delItemIds;
|
||||
}
|
||||
|
||||
public String getsMenuId() {
|
||||
return sMenuId;
|
||||
}
|
||||
|
||||
public void setsMenuId(String sMenuId) {
|
||||
this.sMenuId = sMenuId;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsParamsEO> getParamsList() {
|
||||
return paramsList;
|
||||
}
|
||||
|
||||
public void setParamsList(List<SarFileSplitItemsParamsEO> paramsList) {
|
||||
this.paramsList = paramsList;
|
||||
}
|
||||
|
||||
public String getRelevanceFileAttid() {
|
||||
return relevanceFileAttid;
|
||||
}
|
||||
|
||||
public void setRelevanceFileAttid(String relevanceFileAttid) {
|
||||
this.relevanceFileAttid = relevanceFileAttid;
|
||||
}
|
||||
|
||||
public String getFo() {
|
||||
return fo;
|
||||
}
|
||||
|
||||
public void setFo(String fo) {
|
||||
this.fo = fo;
|
||||
}
|
||||
|
||||
public String getDutyEngineer() {
|
||||
return dutyEngineer;
|
||||
}
|
||||
|
||||
public void setDutyEngineer(String dutyEngineer) {
|
||||
this.dutyEngineer = dutyEngineer;
|
||||
}
|
||||
|
||||
public String getClaimType() {
|
||||
return claimType;
|
||||
}
|
||||
|
||||
public void setClaimType(String claimType) {
|
||||
this.claimType = claimType;
|
||||
}
|
||||
|
||||
public String getBusStandCover() {
|
||||
return busStandCover;
|
||||
}
|
||||
|
||||
public void setBusStandCover(String busStandCover) {
|
||||
this.busStandCover = busStandCover;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getFoShow() {
|
||||
return foShow;
|
||||
}
|
||||
|
||||
public void setFoShow(String foShow) {
|
||||
this.foShow = foShow;
|
||||
}
|
||||
|
||||
public String getDutyEngineerShow() {
|
||||
return dutyEngineerShow;
|
||||
}
|
||||
|
||||
public void setDutyEngineerShow(String dutyEngineerShow) {
|
||||
this.dutyEngineerShow = dutyEngineerShow;
|
||||
}
|
||||
|
||||
public String getSvppsShow() {
|
||||
return svppsShow;
|
||||
}
|
||||
|
||||
public void setSvppsShow(String svppsShow) {
|
||||
this.svppsShow = svppsShow;
|
||||
}
|
||||
|
||||
public String getClaimTypeShow() {
|
||||
return claimTypeShow;
|
||||
}
|
||||
|
||||
public void setClaimTypeShow(String claimTypeShow) {
|
||||
this.claimTypeShow = claimTypeShow;
|
||||
}
|
||||
|
||||
public String getBusStandCoverShow() {
|
||||
return busStandCoverShow;
|
||||
}
|
||||
|
||||
public void setBusStandCoverShow(String busStandCoverShow) {
|
||||
this.busStandCoverShow = busStandCoverShow;
|
||||
}
|
||||
|
||||
public String getFileTypeShow() {
|
||||
return fileTypeShow;
|
||||
}
|
||||
|
||||
public void setFileTypeShow(String fileTypeShow) {
|
||||
this.fileTypeShow = fileTypeShow;
|
||||
}
|
||||
|
||||
public String getResponsibleUnit() {
|
||||
return responsibleUnit;
|
||||
}
|
||||
|
||||
public void setResponsibleUnit(String responsibleUnit) {
|
||||
this.responsibleUnit = responsibleUnit;
|
||||
}
|
||||
|
||||
public String getResponsibleUnitShow() {
|
||||
return responsibleUnitShow;
|
||||
}
|
||||
|
||||
public void setResponsibleUnitShow(String responsibleUnitShow) {
|
||||
this.responsibleUnitShow = responsibleUnitShow;
|
||||
}
|
||||
}
|
||||
+475
@@ -0,0 +1,475 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String infoId;
|
||||
private String infoIdOperator = "=";
|
||||
private String itemsNum;
|
||||
private String itemsNumOperator = "=";
|
||||
private String itemsName;
|
||||
private String itemsNameOperator = "=";
|
||||
private String itermsConditions;
|
||||
private String itermsConditionsOperator = "=";
|
||||
private String newcarPutTime;
|
||||
private String newcarPutTime1;
|
||||
private String newcarPutTime2;
|
||||
private String newcarPutTimeOperator = "=";
|
||||
private String productPutTime;
|
||||
private String productPutTime1;
|
||||
private String productPutTime2;
|
||||
private String productPutTimeOperator = "=";
|
||||
private String menuId;
|
||||
private String menuIdOperator = "=";
|
||||
private String svpps;
|
||||
private String svppsOperator = "=";
|
||||
private String applyArctic;
|
||||
private String applyArcticOperator = "=";
|
||||
private String referenceStand;
|
||||
private String referenceStandOperator = "=";
|
||||
private String specialRequest;
|
||||
private String specialRequestOperator = "=";
|
||||
private String relevanceFile;
|
||||
private String relevanceFileOperator = "=";
|
||||
private String remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
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 modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
private String sMenuId;
|
||||
private List<String> idList;
|
||||
private List<String> menuIdList;
|
||||
|
||||
private int tableIndex = 1;
|
||||
private int imgIndex = 1;
|
||||
|
||||
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 getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
public String getItemsNum() {
|
||||
return this.itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsNumOperator() {
|
||||
return this.itemsNumOperator;
|
||||
}
|
||||
|
||||
public void setItemsNumOperator(String itemsNumOperator) {
|
||||
this.itemsNumOperator = itemsNumOperator;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return this.itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItemsNameOperator() {
|
||||
return this.itemsNameOperator;
|
||||
}
|
||||
|
||||
public void setItemsNameOperator(String itemsNameOperator) {
|
||||
this.itemsNameOperator = itemsNameOperator;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return this.itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getItermsConditionsOperator() {
|
||||
return this.itermsConditionsOperator;
|
||||
}
|
||||
|
||||
public void setItermsConditionsOperator(String itermsConditionsOperator) {
|
||||
this.itermsConditionsOperator = itermsConditionsOperator;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime() {
|
||||
return this.newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(String newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime1() {
|
||||
return this.newcarPutTime1;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime1(String newcarPutTime1) {
|
||||
this.newcarPutTime1 = newcarPutTime1;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime2() {
|
||||
return this.newcarPutTime2;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime2(String newcarPutTime2) {
|
||||
this.newcarPutTime2 = newcarPutTime2;
|
||||
}
|
||||
|
||||
public String getNewcarPutTimeOperator() {
|
||||
return this.newcarPutTimeOperator;
|
||||
}
|
||||
|
||||
public void setNewcarPutTimeOperator(String newcarPutTimeOperator) {
|
||||
this.newcarPutTimeOperator = newcarPutTimeOperator;
|
||||
}
|
||||
|
||||
public String getProductPutTime() {
|
||||
return this.productPutTime;
|
||||
}
|
||||
|
||||
public void setProductPutTime(String productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
public String getProductPutTime1() {
|
||||
return this.productPutTime1;
|
||||
}
|
||||
|
||||
public void setProductPutTime1(String productPutTime1) {
|
||||
this.productPutTime1 = productPutTime1;
|
||||
}
|
||||
|
||||
public String getProductPutTime2() {
|
||||
return this.productPutTime2;
|
||||
}
|
||||
|
||||
public void setProductPutTime2(String productPutTime2) {
|
||||
this.productPutTime2 = productPutTime2;
|
||||
}
|
||||
|
||||
public String getProductPutTimeOperator() {
|
||||
return this.productPutTimeOperator;
|
||||
}
|
||||
|
||||
public void setProductPutTimeOperator(String productPutTimeOperator) {
|
||||
this.productPutTimeOperator = productPutTimeOperator;
|
||||
}
|
||||
|
||||
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 getSvpps() {
|
||||
return this.svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getSvppsOperator() {
|
||||
return this.svppsOperator;
|
||||
}
|
||||
|
||||
public void setSvppsOperator(String svppsOperator) {
|
||||
this.svppsOperator = svppsOperator;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return this.applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getApplyArcticOperator() {
|
||||
return this.applyArcticOperator;
|
||||
}
|
||||
|
||||
public void setApplyArcticOperator(String applyArcticOperator) {
|
||||
this.applyArcticOperator = applyArcticOperator;
|
||||
}
|
||||
|
||||
public String getReferenceStand() {
|
||||
return this.referenceStand;
|
||||
}
|
||||
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
public String getReferenceStandOperator() {
|
||||
return this.referenceStandOperator;
|
||||
}
|
||||
|
||||
public void setReferenceStandOperator(String referenceStandOperator) {
|
||||
this.referenceStandOperator = referenceStandOperator;
|
||||
}
|
||||
|
||||
public String getSpecialRequest() {
|
||||
return this.specialRequest;
|
||||
}
|
||||
|
||||
public void setSpecialRequest(String specialRequest) {
|
||||
this.specialRequest = specialRequest;
|
||||
}
|
||||
|
||||
public String getSpecialRequestOperator() {
|
||||
return this.specialRequestOperator;
|
||||
}
|
||||
|
||||
public void setSpecialRequestOperator(String specialRequestOperator) {
|
||||
this.specialRequestOperator = specialRequestOperator;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return this.relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
public String getRelevanceFileOperator() {
|
||||
return this.relevanceFileOperator;
|
||||
}
|
||||
|
||||
public void setRelevanceFileOperator(String relevanceFileOperator) {
|
||||
this.relevanceFileOperator = relevanceFileOperator;
|
||||
}
|
||||
|
||||
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 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 getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
public String getsMenuId() {
|
||||
return sMenuId;
|
||||
}
|
||||
|
||||
public void setsMenuId(String sMenuId) {
|
||||
this.sMenuId = sMenuId;
|
||||
}
|
||||
|
||||
public List<String> getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(List<String> idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public int getTableIndex() {
|
||||
return tableIndex;
|
||||
}
|
||||
|
||||
public void setTableIndex(int tableIndex) {
|
||||
this.tableIndex = tableIndex;
|
||||
}
|
||||
|
||||
public int getImgIndex() {
|
||||
return imgIndex;
|
||||
}
|
||||
|
||||
public void setImgIndex(int imgIndex) {
|
||||
this.imgIndex = imgIndex;
|
||||
}
|
||||
|
||||
public List<String> getMenuIdList() {
|
||||
return menuIdList;
|
||||
}
|
||||
|
||||
public void setMenuIdList(List<String> menuIdList) {
|
||||
this.menuIdList = menuIdList;
|
||||
}
|
||||
}
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsParamsEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String itemId;
|
||||
private String description;
|
||||
private String figure;
|
||||
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 infoId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>itemId -> item_id</li>
|
||||
* <li>description -> description</li>
|
||||
* <li>figure -> figure</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "itemId": return "item_id";
|
||||
case "description": return "description";
|
||||
case "figure": return "figure";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "infoId": return "info_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>item_id -> itemId</li>
|
||||
* <li>description -> description</li>
|
||||
* <li>figure -> figure</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "item_id": return "itemId";
|
||||
case "description": return "description";
|
||||
case "figure": return "figure";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "info_id": return "infoId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFigure() {
|
||||
return this.figure;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFigure(String figure) {
|
||||
this.figure = figure;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsParamsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String itemId;
|
||||
private String itemIdOperator = "=";
|
||||
private String description;
|
||||
private String descriptionOperator = "=";
|
||||
private String figure;
|
||||
private String figureOperator = "=";
|
||||
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 infoId;
|
||||
private String infoIdOperator = "=";
|
||||
|
||||
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 getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public String getItemIdOperator() {
|
||||
return this.itemIdOperator;
|
||||
}
|
||||
|
||||
public void setItemIdOperator(String itemIdOperator) {
|
||||
this.itemIdOperator = itemIdOperator;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescriptionOperator() {
|
||||
return this.descriptionOperator;
|
||||
}
|
||||
|
||||
public void setDescriptionOperator(String descriptionOperator) {
|
||||
this.descriptionOperator = descriptionOperator;
|
||||
}
|
||||
|
||||
public String getFigure() {
|
||||
return this.figure;
|
||||
}
|
||||
|
||||
public void setFigure(String figure) {
|
||||
this.figure = figure;
|
||||
}
|
||||
|
||||
public String getFigureOperator() {
|
||||
return this.figureOperator;
|
||||
}
|
||||
|
||||
public void setFigureOperator(String figureOperator) {
|
||||
this.figureOperator = figureOperator;
|
||||
}
|
||||
|
||||
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 getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsTableEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String itemsValId;
|
||||
private String itemsId;
|
||||
private Integer rowNum;
|
||||
private Integer colNum;
|
||||
private String content;
|
||||
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 modifyUser;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>itemsValId -> items_val_id</li>
|
||||
* <li>itemsId -> items_id</li>
|
||||
* <li>rowNum -> row_num</li>
|
||||
* <li>colNum -> col_num</li>
|
||||
* <li>content -> content</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "itemsValId": return "items_val_id";
|
||||
case "itemsId": return "items_id";
|
||||
case "rowNum": return "row_num";
|
||||
case "colNum": return "col_num";
|
||||
case "content": return "content";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>items_val_id -> itemsValId</li>
|
||||
* <li>items_id -> itemsId</li>
|
||||
* <li>row_num -> rowNum</li>
|
||||
* <li>col_num -> colNum</li>
|
||||
* <li>content -> content</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "items_val_id": return "itemsValId";
|
||||
case "items_id": return "itemsId";
|
||||
case "row_num": return "rowNum";
|
||||
case "col_num": return "colNum";
|
||||
case "content": return "content";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsValId() {
|
||||
return this.itemsValId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsValId(String itemsValId) {
|
||||
this.itemsValId = itemsValId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsId() {
|
||||
return this.itemsId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsId(String itemsId) {
|
||||
this.itemsId = itemsId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getRowNum() {
|
||||
return this.rowNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRowNum(Integer rowNum) {
|
||||
this.rowNum = rowNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getColNum() {
|
||||
return this.colNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setColNum(Integer colNum) {
|
||||
this.colNum = colNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsTableEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String itemsValId;
|
||||
private String itemsValIdOperator = "=";
|
||||
private String itemsId;
|
||||
private String itemsIdOperator = "=";
|
||||
private String rowNum;
|
||||
private String rowNumOperator = "=";
|
||||
private String colNum;
|
||||
private String colNumOperator = "=";
|
||||
private String content;
|
||||
private String contentOperator = "=";
|
||||
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 modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
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 getItemsValId() {
|
||||
return this.itemsValId;
|
||||
}
|
||||
|
||||
public void setItemsValId(String itemsValId) {
|
||||
this.itemsValId = itemsValId;
|
||||
}
|
||||
|
||||
public String getItemsValIdOperator() {
|
||||
return this.itemsValIdOperator;
|
||||
}
|
||||
|
||||
public void setItemsValIdOperator(String itemsValIdOperator) {
|
||||
this.itemsValIdOperator = itemsValIdOperator;
|
||||
}
|
||||
|
||||
public String getItemsId() {
|
||||
return this.itemsId;
|
||||
}
|
||||
|
||||
public void setItemsId(String itemsId) {
|
||||
this.itemsId = itemsId;
|
||||
}
|
||||
|
||||
public String getItemsIdOperator() {
|
||||
return this.itemsIdOperator;
|
||||
}
|
||||
|
||||
public void setItemsIdOperator(String itemsIdOperator) {
|
||||
this.itemsIdOperator = itemsIdOperator;
|
||||
}
|
||||
|
||||
public String getRowNum() {
|
||||
return this.rowNum;
|
||||
}
|
||||
|
||||
public void setRowNum(String rowNum) {
|
||||
this.rowNum = rowNum;
|
||||
}
|
||||
|
||||
public String getRowNumOperator() {
|
||||
return this.rowNumOperator;
|
||||
}
|
||||
|
||||
public void setRowNumOperator(String rowNumOperator) {
|
||||
this.rowNumOperator = rowNumOperator;
|
||||
}
|
||||
|
||||
public String getColNum() {
|
||||
return this.colNum;
|
||||
}
|
||||
|
||||
public void setColNum(String colNum) {
|
||||
this.colNum = colNum;
|
||||
}
|
||||
|
||||
public String getColNumOperator() {
|
||||
return this.colNumOperator;
|
||||
}
|
||||
|
||||
public void setColNumOperator(String colNumOperator) {
|
||||
this.colNumOperator = colNumOperator;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContentOperator() {
|
||||
return this.contentOperator;
|
||||
}
|
||||
|
||||
public void setContentOperator(String contentOperator) {
|
||||
this.contentOperator = contentOperator;
|
||||
}
|
||||
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+244
@@ -0,0 +1,244 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.common.UploadFileInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsValEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String type;
|
||||
private String itemId;
|
||||
private String itemContent;
|
||||
private Integer validFlag;
|
||||
private String creationUser;
|
||||
@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 modifyUser;
|
||||
private Integer displaySeq;
|
||||
private String[] idList;
|
||||
private List<UploadFileInfo> defaultFileList;
|
||||
private String imgName;
|
||||
private List<SarFileSplitItemsTableEO> tableList;
|
||||
private List<List<SarFileSplitItemsTableEO>> tableListShow;
|
||||
private int rowCount;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>type -> type</li>
|
||||
* <li>itemId -> item_id</li>
|
||||
* <li>itemContent -> item_content</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "type": return "type";
|
||||
case "itemId": return "item_id";
|
||||
case "itemContent": return "item_content";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationUser": return "creation_user";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
case "displaySeq": return "display_seq";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>type -> type</li>
|
||||
* <li>item_id -> itemId</li>
|
||||
* <li>item_content -> itemContent</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "type": return "type";
|
||||
case "item_id": return "itemId";
|
||||
case "item_content": return "itemContent";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_user": return "creationUser";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
case "display_seq": return "displaySeq";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemContent() {
|
||||
return itemContent;
|
||||
}
|
||||
|
||||
public void setItemContent(String itemContent) {
|
||||
this.itemContent = itemContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Integer displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public List<UploadFileInfo> getDefaultFileList() {
|
||||
return defaultFileList;
|
||||
}
|
||||
|
||||
public void setDefaultFileList(List<UploadFileInfo> defaultFileList) {
|
||||
this.defaultFileList = defaultFileList;
|
||||
}
|
||||
|
||||
public String getImgName() {
|
||||
return imgName;
|
||||
}
|
||||
|
||||
public void setImgName(String imgName) {
|
||||
this.imgName = imgName;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsTableEO> getTableList() {
|
||||
return tableList;
|
||||
}
|
||||
|
||||
public void setTableList(List<SarFileSplitItemsTableEO> tableList) {
|
||||
this.tableList = tableList;
|
||||
}
|
||||
|
||||
public int getRowCount() {
|
||||
return rowCount;
|
||||
}
|
||||
|
||||
public void setRowCount(int rowCount) {
|
||||
this.rowCount = rowCount;
|
||||
}
|
||||
|
||||
public List<List<SarFileSplitItemsTableEO>> getTableListShow() {
|
||||
return tableListShow;
|
||||
}
|
||||
|
||||
public void setTableListShow(List<List<SarFileSplitItemsTableEO>> tableListShow) {
|
||||
this.tableListShow = tableListShow;
|
||||
}
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsValEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String type;
|
||||
private String typeOperator = "=";
|
||||
private String itemId;
|
||||
private String itemIdOperator = "=";
|
||||
private String itemContent;
|
||||
private String itemContentOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
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 modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
|
||||
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 getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTypeOperator() {
|
||||
return this.typeOperator;
|
||||
}
|
||||
|
||||
public void setTypeOperator(String typeOperator) {
|
||||
this.typeOperator = typeOperator;
|
||||
}
|
||||
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public String getItemIdOperator() {
|
||||
return this.itemIdOperator;
|
||||
}
|
||||
|
||||
public void setItemIdOperator(String itemIdOperator) {
|
||||
this.itemIdOperator = itemIdOperator;
|
||||
}
|
||||
|
||||
public String getItemContent() {
|
||||
return this.itemContent;
|
||||
}
|
||||
|
||||
public void setItemContent(String itemContent) {
|
||||
this.itemContent = itemContent;
|
||||
}
|
||||
|
||||
public String getItemContentOperator() {
|
||||
return this.itemContentOperator;
|
||||
}
|
||||
|
||||
public void setItemContentOperator(String itemContentOperator) {
|
||||
this.itemContentOperator = itemContentOperator;
|
||||
}
|
||||
|
||||
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 getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
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 getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.sys.util.LoginUserUtil;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeId;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeName;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeParentId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitMenuEO extends BaseEntity {
|
||||
|
||||
@TreeNodeId
|
||||
private String id;
|
||||
private String infoId;
|
||||
@TreeNodeName
|
||||
private String name;
|
||||
@TreeNodeParentId
|
||||
private String pId;
|
||||
private Long displaySeq;
|
||||
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 remarks;
|
||||
private String creationUser;
|
||||
private String modifyUser;
|
||||
private String itemName;
|
||||
private String[] infoIdList;
|
||||
|
||||
private Long displaySeqStart;
|
||||
private Long displaySeqEnd;
|
||||
private Long childrenCount;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>pId -> p_id</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "infoId": return "info_id";
|
||||
case "name": return "name";
|
||||
case "pId": return "p_id";
|
||||
case "displaySeq": return "display_seq";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "remarks": return "remarks";
|
||||
case "creationUser": return "creation_user";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>p_id -> pId</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "info_id": return "infoId";
|
||||
case "name": return "name";
|
||||
case "p_id": return "pId";
|
||||
case "display_seq": return "displaySeq";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "remarks": return "remarks";
|
||||
case "creation_user": return "creationUser";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPId() {
|
||||
return this.pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Long displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
|
||||
public String[] getInfoIdList() {
|
||||
return infoIdList;
|
||||
}
|
||||
|
||||
public void setInfoIdList(String[] infoIdList) {
|
||||
this.infoIdList = infoIdList;
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(){
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(String id, String name, String parentId, String infoId, Long displaySeq,String itemName) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.pId = parentId;
|
||||
this.infoId = infoId;
|
||||
this.displaySeq = displaySeq;
|
||||
this.validFlag = 0;
|
||||
this.creationTime = new Date();
|
||||
this.creationUser = LoginUserUtil.getUserId();
|
||||
this.modifyTime = new Date();
|
||||
this.modifyUser = LoginUserUtil.getUserId();
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(String id, String name, String infoId,Long displaySeq,String itemName) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.infoId = infoId;
|
||||
this.displaySeq = displaySeq;
|
||||
this.validFlag = 0;
|
||||
this.creationTime = new Date();
|
||||
this.creationUser = LoginUserUtil.getUserId();
|
||||
this.modifyTime = new Date();
|
||||
this.modifyUser = LoginUserUtil.getUserId();
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public Long getDisplaySeqStart() {
|
||||
return displaySeqStart;
|
||||
}
|
||||
|
||||
public void setDisplaySeqStart(Long displaySeqStart) {
|
||||
this.displaySeqStart = displaySeqStart;
|
||||
}
|
||||
|
||||
public Long getDisplaySeqEnd() {
|
||||
return displaySeqEnd;
|
||||
}
|
||||
|
||||
public void setDisplaySeqEnd(Long displaySeqEnd) {
|
||||
this.displaySeqEnd = displaySeqEnd;
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public void setItemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public Long getChildrenCount() {
|
||||
return childrenCount;
|
||||
}
|
||||
|
||||
public void setChildrenCount(Long childrenCount) {
|
||||
this.childrenCount = childrenCount;
|
||||
}
|
||||
}
|
||||
+248
@@ -0,0 +1,248 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitMenuEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String infoId;
|
||||
private String infoIdOperator = "=";
|
||||
private String name;
|
||||
private String nameOperator = "=";
|
||||
private String pId;
|
||||
private String pIdOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
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 remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
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 getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
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 getPId() {
|
||||
return this.pId;
|
||||
}
|
||||
|
||||
public void setPId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
public String getPIdOperator() {
|
||||
return this.pIdOperator;
|
||||
}
|
||||
|
||||
public void setPIdOperator(String pIdOperator) {
|
||||
this.pIdOperator = pIdOperator;
|
||||
}
|
||||
|
||||
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 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 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 getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 法规信息
|
||||
* Date 2018/9/3 16:37
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
public class SarLawsInfoEO 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 creationUser;
|
||||
private String replaceLawsNum;
|
||||
private String replacedLawsNum;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date putTime;
|
||||
private String issueTime;
|
||||
private String lawsState;
|
||||
private String lawsName;
|
||||
private String lawsNumber;
|
||||
private String lawsProperty;
|
||||
private String country;
|
||||
private String lawsType;
|
||||
private String id;
|
||||
private String menuId;
|
||||
private String stateName;
|
||||
private String countryName;
|
||||
private String propertyName;
|
||||
//记录收藏id
|
||||
private String collectId;
|
||||
//记录是否修改了替代文件号
|
||||
private int upReplaceNumFlag;
|
||||
//记录是否修改了文件号
|
||||
private int upNumFlag;
|
||||
//新增字段
|
||||
private String synopsis;
|
||||
private String lawsEnName;
|
||||
private String sychronId;
|
||||
private Map<String, Object> attrInfoMap; //属性表字段与值
|
||||
private List<DicTypeEO> dicTypeList;
|
||||
private String sarLawsAttrEOStr; //新增修改时属性表信息
|
||||
private String fileIds; //全部文件ID
|
||||
private List<SarStandAttrDetailsEO> attrInfoList = new ArrayList<>();
|
||||
private String accessCountry;//纳入清单的国家
|
||||
private String citeStand;//引用标准
|
||||
private String citedStand;//被引用标准
|
||||
private String prcNum;//流程编号
|
||||
private String textStatus;//文本状态
|
||||
private String isRelateAccess;
|
||||
private String allPutTime;
|
||||
private List<PrcNumName> prcNumAndName;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>relevanceFile -> relevance_file</li>
|
||||
* <li>opinionFile -> opinion_file</li>
|
||||
* <li>lawsFile -> laws_file</li>
|
||||
* <li>linkUri -> link_uri</li>
|
||||
* <li>responsibleUnit -> responsible_unit</li>
|
||||
* <li>applyAuth -> apply_auth</li>
|
||||
* <li>energyKind -> energy_kind</li>
|
||||
* <li>applyArctic -> apply_arctic</li>
|
||||
* <li>replaceLawsNum -> replace_laws_num</li>
|
||||
* <li>putTime -> put_time</li>
|
||||
* <li>issueTime -> issue_time</li>
|
||||
* <li>lawsState -> laws_state</li>
|
||||
* <li>issueUnit -> issue_unit</li>
|
||||
* <li>lawsName -> laws_name</li>
|
||||
* <li>lawsNumber -> laws_number</li>
|
||||
* <li>lawsProperty -> laws_property</li>
|
||||
* <li>country -> country</li>
|
||||
* <li>lawsType -> laws_type</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "lawsEnName": return "laws_en_name";
|
||||
case "synopsis": return "synopsis";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationUser": return "creation_user";
|
||||
case "replaceLawsNum": return "replace_laws_num";
|
||||
case "replacedLawsNum": return "replaced_laws_num";
|
||||
case "putTime": return "put_time";
|
||||
case "issueTime": return "issue_time";
|
||||
case "lawsState": return "laws_state";
|
||||
case "lawsName": return "laws_name";
|
||||
case "lawsNumber": return "laws_number";
|
||||
case "lawsProperty": return "laws_property";
|
||||
case "country": return "country";
|
||||
case "lawsType": return "laws_type";
|
||||
case "id": return "id";
|
||||
case "menuId": return "menu_id";
|
||||
case "stateName": return "stateName";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "laws_en_name": return "lawsEnName";
|
||||
case "synopsis": return "synopsis";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_user": return "creationUser";
|
||||
case "replace_laws_num": return "replaceLawsNum";
|
||||
case "replaced_laws_num": return "replacedLawsNum";
|
||||
case "put_time": return "putTime";
|
||||
case "issue_time": return "issueTime";
|
||||
case "laws_state": return "lawsState";
|
||||
case "laws_name": return "lawsName";
|
||||
case "laws_number": return "lawsNumber";
|
||||
case "laws_property": return "lawsProperty";
|
||||
case "country": return "country";
|
||||
case "laws_type": return "lawsType";
|
||||
case "id": return "id";
|
||||
case "menu_id": return "menuId";
|
||||
case "stateName": return "stateName";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getReplaceLawsNum() {
|
||||
return replaceLawsNum;
|
||||
}
|
||||
|
||||
public void setReplaceLawsNum(String replaceLawsNum) {
|
||||
this.replaceLawsNum = replaceLawsNum;
|
||||
}
|
||||
|
||||
public String getReplacedLawsNum() {
|
||||
return replacedLawsNum;
|
||||
}
|
||||
|
||||
public void setReplacedLawsNum(String replacedLawsNum) {
|
||||
this.replacedLawsNum = replacedLawsNum;
|
||||
}
|
||||
|
||||
public Date getPutTime() {
|
||||
return putTime;
|
||||
}
|
||||
|
||||
public void setPutTime(Date putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
public String getIssueTime() {
|
||||
return issueTime;
|
||||
}
|
||||
|
||||
public void setIssueTime(String issueTime) {
|
||||
this.issueTime = issueTime;
|
||||
}
|
||||
|
||||
public String getLawsState() {
|
||||
return lawsState;
|
||||
}
|
||||
|
||||
public void setLawsState(String lawsState) {
|
||||
this.lawsState = lawsState;
|
||||
}
|
||||
|
||||
public String getLawsName() {
|
||||
return lawsName;
|
||||
}
|
||||
|
||||
public void setLawsName(String lawsName) {
|
||||
this.lawsName = lawsName;
|
||||
}
|
||||
|
||||
public String getLawsNumber() {
|
||||
return lawsNumber;
|
||||
}
|
||||
|
||||
public void setLawsNumber(String lawsNumber) {
|
||||
this.lawsNumber = lawsNumber;
|
||||
}
|
||||
|
||||
public String getLawsProperty() {
|
||||
return lawsProperty;
|
||||
}
|
||||
|
||||
public void setLawsProperty(String lawsProperty) {
|
||||
this.lawsProperty = lawsProperty;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getLawsType() {
|
||||
return lawsType;
|
||||
}
|
||||
|
||||
public void setLawsType(String lawsType) {
|
||||
this.lawsType = lawsType;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getStateName() {
|
||||
return stateName;
|
||||
}
|
||||
|
||||
public void setStateName(String stateName) {
|
||||
this.stateName = stateName;
|
||||
}
|
||||
|
||||
public String getCountryName() {
|
||||
return countryName;
|
||||
}
|
||||
|
||||
public void setCountryName(String countryName) {
|
||||
this.countryName = countryName;
|
||||
}
|
||||
|
||||
public String getCollectId() {
|
||||
return collectId;
|
||||
}
|
||||
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
public int getUpReplaceNumFlag() {
|
||||
return upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public void setUpReplaceNumFlag(int upReplaceNumFlag) {
|
||||
this.upReplaceNumFlag = upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public int getUpNumFlag() {
|
||||
return upNumFlag;
|
||||
}
|
||||
|
||||
public void setUpNumFlag(int upNumFlag) {
|
||||
this.upNumFlag = upNumFlag;
|
||||
}
|
||||
|
||||
public String getSynopsis() {
|
||||
return synopsis;
|
||||
}
|
||||
|
||||
public void setSynopsis(String synopsis) {
|
||||
this.synopsis = synopsis;
|
||||
}
|
||||
|
||||
public String getLawsEnName() {
|
||||
return lawsEnName;
|
||||
}
|
||||
|
||||
public void setLawsEnName(String lawsEnName) {
|
||||
this.lawsEnName = lawsEnName;
|
||||
}
|
||||
|
||||
public String getSychronId() {
|
||||
return sychronId;
|
||||
}
|
||||
|
||||
public void setSychronId(String sychronId) {
|
||||
this.sychronId = sychronId;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAttrInfoMap() {
|
||||
return attrInfoMap;
|
||||
}
|
||||
|
||||
public void setAttrInfoMap(Map<String, Object> attrInfoMap) {
|
||||
this.attrInfoMap = attrInfoMap;
|
||||
}
|
||||
|
||||
public List<DicTypeEO> getDicTypeList() {
|
||||
return dicTypeList;
|
||||
}
|
||||
|
||||
public void setDicTypeList(List<DicTypeEO> dicTypeList) {
|
||||
this.dicTypeList = dicTypeList;
|
||||
}
|
||||
|
||||
public String getFileIds() {
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
public void setFileIds(String fileIds) {
|
||||
this.fileIds = fileIds;
|
||||
}
|
||||
|
||||
public List<SarStandAttrDetailsEO> getAttrInfoList() {
|
||||
return attrInfoList;
|
||||
}
|
||||
|
||||
public void setAttrInfoList(List<SarStandAttrDetailsEO> attrInfoList) {
|
||||
this.attrInfoList = attrInfoList;
|
||||
}
|
||||
|
||||
public String getPropertyName() {
|
||||
return propertyName;
|
||||
}
|
||||
|
||||
public void setPropertyName(String propertyName) {
|
||||
this.propertyName = propertyName;
|
||||
}
|
||||
|
||||
public String getSarLawsAttrEOStr() {
|
||||
return sarLawsAttrEOStr;
|
||||
}
|
||||
|
||||
public void setSarLawsAttrEOStr(String sarLawsAttrEOStr) {
|
||||
this.sarLawsAttrEOStr = sarLawsAttrEOStr;
|
||||
}
|
||||
|
||||
public String getCiteStand() {
|
||||
return citeStand;
|
||||
}
|
||||
|
||||
public void setCiteStand(String citeStand) {
|
||||
this.citeStand = citeStand;
|
||||
}
|
||||
|
||||
public String getCitedStand() {
|
||||
return citedStand;
|
||||
}
|
||||
|
||||
public void setCitedStand(String citedStand) {
|
||||
this.citedStand = citedStand;
|
||||
}
|
||||
|
||||
public String getPrcNum() {
|
||||
return prcNum;
|
||||
}
|
||||
|
||||
public void setPrcNum(String prcNum) {
|
||||
this.prcNum = prcNum;
|
||||
}
|
||||
|
||||
public String getTextStatus() {
|
||||
return textStatus;
|
||||
}
|
||||
|
||||
public void setTextStatus(String textStatus) {
|
||||
this.textStatus = textStatus;
|
||||
}
|
||||
|
||||
public String getIsRelateAccess() {
|
||||
return isRelateAccess;
|
||||
}
|
||||
|
||||
public void setIsRelateAccess(String isRelateAccess) {
|
||||
this.isRelateAccess = isRelateAccess;
|
||||
}
|
||||
|
||||
public String getAccessCountry() {
|
||||
return accessCountry;
|
||||
}
|
||||
|
||||
public void setAccessCountry(String accessCountry) {
|
||||
this.accessCountry = accessCountry;
|
||||
}
|
||||
|
||||
public List<PrcNumName> getPrcNumAndName() {
|
||||
return prcNumAndName;
|
||||
}
|
||||
|
||||
public void setPrcNumAndName(List<PrcNumName> prcNumAndName) {
|
||||
this.prcNumAndName = prcNumAndName;
|
||||
}
|
||||
|
||||
public String getAllPutTime() {
|
||||
return allPutTime;
|
||||
}
|
||||
|
||||
public void setAllPutTime(String allPutTime) {
|
||||
this.allPutTime = allPutTime;
|
||||
}
|
||||
}
|
||||
+754
@@ -0,0 +1,754 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 法规信息
|
||||
* Date 2018/9/3 16:37
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
public class SarLawsInfoEOPage extends BasePage {
|
||||
|
||||
private Date modifyTime;
|
||||
private Date modifyTime1;
|
||||
private Date modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private Date creationTime;
|
||||
private Date creationTime1;
|
||||
private Date creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String relevanceFile;
|
||||
private String relevanceFileOperator = "=";
|
||||
private String opinionFile;
|
||||
private String opinionFileOperator = "=";
|
||||
private String lawsFile;
|
||||
private String lawsFileOperator = "=";
|
||||
private String linkUri;
|
||||
private String linkUriOperator = "=";
|
||||
private String responsibleUnit;
|
||||
private String responsibleUnitOperator = "=";
|
||||
private String applyAuth;
|
||||
private String applyAuthOperator = "like";
|
||||
private String energyKind;
|
||||
private String energyKindOperator = "like";
|
||||
private String applyArctic;
|
||||
private String applyArcticOperator = "like";
|
||||
private String replaceLawsNum;
|
||||
private String replacedLawsNum;
|
||||
//需求变动,特此修改(byl),原 private String replaceLawsNumOperator = "=";
|
||||
private String replaceLawsNumOperator = "like";
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date putTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date putTime1;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date putTime2;
|
||||
private String putTimeOperator = "=";
|
||||
private String issueTime;
|
||||
private String issueTime1;
|
||||
private String issueTime2;
|
||||
private String issueTimeOperator = "=";
|
||||
private String lawsState;
|
||||
private String lawsStateOperator = "=";
|
||||
private String issueUnit;
|
||||
private String issueUnitOperator = "=";
|
||||
private String lawsName;
|
||||
private String lawsNameOperator = "like";
|
||||
private String lawsNumber;
|
||||
private String lawsNumberOperator = "like";
|
||||
private String lawsProperty;
|
||||
private String lawsPropertyOperator = "=";
|
||||
private String country;
|
||||
private String countryOperator = "=";
|
||||
private String lawsType;
|
||||
private String lawsTypeOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String menuId;
|
||||
private List<String> menuIdList;
|
||||
//为了在sql中区分修改操作
|
||||
private String updateFlag;
|
||||
//新加字段
|
||||
private String synopsis;
|
||||
private String lawsEnName;
|
||||
private String category;
|
||||
private String[] replaceLawsNumList;
|
||||
private String[] applyArcticList;
|
||||
private String[] energyKindList;
|
||||
private String[] applyAuthList;
|
||||
private List<String> menuRoleList;
|
||||
private String numberName;
|
||||
private String synchronId;
|
||||
private String[] idlist;
|
||||
// 树结构增加搜索条件
|
||||
private String collectMenuId;
|
||||
private String labelMenuId;
|
||||
private String advanceSearchVOStr;
|
||||
private String advanceSearchStr;
|
||||
private String isRelateAccess;
|
||||
private String ids;
|
||||
private String proType;
|
||||
private String userId;
|
||||
private Integer nowOrder;
|
||||
private Integer nowOrderBy;
|
||||
private String orderBy1 = "SAR_LAWS_INFO.modify_time";
|
||||
private String order1 = "desc";
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime1() {
|
||||
return modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(Date modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public Date getModifyTime2() {
|
||||
return modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(Date modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime1() {
|
||||
return creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(Date creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public Date getCreationTime2() {
|
||||
return creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(Date creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
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 getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
public String getRelevanceFileOperator() {
|
||||
return relevanceFileOperator;
|
||||
}
|
||||
|
||||
public void setRelevanceFileOperator(String relevanceFileOperator) {
|
||||
this.relevanceFileOperator = relevanceFileOperator;
|
||||
}
|
||||
|
||||
public String getOpinionFile() {
|
||||
return opinionFile;
|
||||
}
|
||||
|
||||
public void setOpinionFile(String opinionFile) {
|
||||
this.opinionFile = opinionFile;
|
||||
}
|
||||
|
||||
public String getOpinionFileOperator() {
|
||||
return opinionFileOperator;
|
||||
}
|
||||
|
||||
public void setOpinionFileOperator(String opinionFileOperator) {
|
||||
this.opinionFileOperator = opinionFileOperator;
|
||||
}
|
||||
|
||||
public String getLawsFile() {
|
||||
return lawsFile;
|
||||
}
|
||||
|
||||
public void setLawsFile(String lawsFile) {
|
||||
this.lawsFile = lawsFile;
|
||||
}
|
||||
|
||||
public String getLawsFileOperator() {
|
||||
return lawsFileOperator;
|
||||
}
|
||||
|
||||
public void setLawsFileOperator(String lawsFileOperator) {
|
||||
this.lawsFileOperator = lawsFileOperator;
|
||||
}
|
||||
|
||||
public String getLinkUri() {
|
||||
return linkUri;
|
||||
}
|
||||
|
||||
public void setLinkUri(String linkUri) {
|
||||
this.linkUri = linkUri;
|
||||
}
|
||||
|
||||
public String getLinkUriOperator() {
|
||||
return linkUriOperator;
|
||||
}
|
||||
|
||||
public void setLinkUriOperator(String linkUriOperator) {
|
||||
this.linkUriOperator = linkUriOperator;
|
||||
}
|
||||
|
||||
public String getResponsibleUnit() {
|
||||
return responsibleUnit;
|
||||
}
|
||||
|
||||
public void setResponsibleUnit(String responsibleUnit) {
|
||||
this.responsibleUnit = responsibleUnit;
|
||||
}
|
||||
|
||||
public String getResponsibleUnitOperator() {
|
||||
return responsibleUnitOperator;
|
||||
}
|
||||
|
||||
public void setResponsibleUnitOperator(String responsibleUnitOperator) {
|
||||
this.responsibleUnitOperator = responsibleUnitOperator;
|
||||
}
|
||||
|
||||
public String getApplyAuth() {
|
||||
return applyAuth;
|
||||
}
|
||||
|
||||
public void setApplyAuth(String applyAuth) {
|
||||
this.applyAuth = applyAuth;
|
||||
}
|
||||
|
||||
public String getApplyAuthOperator() {
|
||||
return applyAuthOperator;
|
||||
}
|
||||
|
||||
public void setApplyAuthOperator(String applyAuthOperator) {
|
||||
this.applyAuthOperator = applyAuthOperator;
|
||||
}
|
||||
|
||||
public String getEnergyKind() {
|
||||
return energyKind;
|
||||
}
|
||||
|
||||
public void setEnergyKind(String energyKind) {
|
||||
this.energyKind = energyKind;
|
||||
}
|
||||
|
||||
public String getEnergyKindOperator() {
|
||||
return energyKindOperator;
|
||||
}
|
||||
|
||||
public void setEnergyKindOperator(String energyKindOperator) {
|
||||
this.energyKindOperator = energyKindOperator;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getApplyArcticOperator() {
|
||||
return applyArcticOperator;
|
||||
}
|
||||
|
||||
public void setApplyArcticOperator(String applyArcticOperator) {
|
||||
this.applyArcticOperator = applyArcticOperator;
|
||||
}
|
||||
|
||||
public String getReplaceLawsNum() {
|
||||
return replaceLawsNum;
|
||||
}
|
||||
|
||||
public void setReplaceLawsNum(String replaceLawsNum) {
|
||||
this.replaceLawsNum = replaceLawsNum;
|
||||
}
|
||||
|
||||
public String getReplaceLawsNumOperator() {
|
||||
return replaceLawsNumOperator;
|
||||
}
|
||||
|
||||
public void setReplaceLawsNumOperator(String replaceLawsNumOperator) {
|
||||
this.replaceLawsNumOperator = replaceLawsNumOperator;
|
||||
}
|
||||
|
||||
public Date getPutTime() {
|
||||
return putTime;
|
||||
}
|
||||
|
||||
public void setPutTime(Date putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
public Date getPutTime1() {
|
||||
return putTime1;
|
||||
}
|
||||
|
||||
public void setPutTime1(Date putTime1) {
|
||||
this.putTime1 = putTime1;
|
||||
}
|
||||
|
||||
public Date getPutTime2() {
|
||||
return putTime2;
|
||||
}
|
||||
|
||||
public void setPutTime2(Date putTime2) {
|
||||
this.putTime2 = putTime2;
|
||||
}
|
||||
|
||||
public String getPutTimeOperator() {
|
||||
return putTimeOperator;
|
||||
}
|
||||
|
||||
public void setPutTimeOperator(String putTimeOperator) {
|
||||
this.putTimeOperator = putTimeOperator;
|
||||
}
|
||||
|
||||
public String getIssueTime() {
|
||||
return issueTime;
|
||||
}
|
||||
|
||||
public void setIssueTime(String issueTime) {
|
||||
this.issueTime = issueTime;
|
||||
}
|
||||
|
||||
public String getIssueTime1() {
|
||||
return issueTime1;
|
||||
}
|
||||
|
||||
public void setIssueTime1(String issueTime1) {
|
||||
this.issueTime1 = issueTime1;
|
||||
}
|
||||
|
||||
public String getIssueTime2() {
|
||||
return issueTime2;
|
||||
}
|
||||
|
||||
public void setIssueTime2(String issueTime2) {
|
||||
this.issueTime2 = issueTime2;
|
||||
}
|
||||
|
||||
public String getIssueTimeOperator() {
|
||||
return issueTimeOperator;
|
||||
}
|
||||
|
||||
public void setIssueTimeOperator(String issueTimeOperator) {
|
||||
this.issueTimeOperator = issueTimeOperator;
|
||||
}
|
||||
|
||||
public String getLawsState() {
|
||||
return lawsState;
|
||||
}
|
||||
|
||||
public void setLawsState(String lawsState) {
|
||||
this.lawsState = lawsState;
|
||||
}
|
||||
|
||||
public String getLawsStateOperator() {
|
||||
return lawsStateOperator;
|
||||
}
|
||||
|
||||
public void setLawsStateOperator(String lawsStateOperator) {
|
||||
this.lawsStateOperator = lawsStateOperator;
|
||||
}
|
||||
|
||||
public String getIssueUnit() {
|
||||
return issueUnit;
|
||||
}
|
||||
|
||||
public void setIssueUnit(String issueUnit) {
|
||||
this.issueUnit = issueUnit;
|
||||
}
|
||||
|
||||
public String getIssueUnitOperator() {
|
||||
return issueUnitOperator;
|
||||
}
|
||||
|
||||
public void setIssueUnitOperator(String issueUnitOperator) {
|
||||
this.issueUnitOperator = issueUnitOperator;
|
||||
}
|
||||
|
||||
public String getLawsName() {
|
||||
return lawsName;
|
||||
}
|
||||
|
||||
public void setLawsName(String lawsName) {
|
||||
this.lawsName = lawsName;
|
||||
}
|
||||
|
||||
public String getLawsNameOperator() {
|
||||
return lawsNameOperator;
|
||||
}
|
||||
|
||||
public void setLawsNameOperator(String lawsNameOperator) {
|
||||
this.lawsNameOperator = lawsNameOperator;
|
||||
}
|
||||
|
||||
public String getLawsNumber() {
|
||||
return lawsNumber;
|
||||
}
|
||||
|
||||
public List<String> getMenuIdList() {
|
||||
return menuIdList;
|
||||
}
|
||||
|
||||
public void setMenuIdList(List<String> menuIdList) {
|
||||
this.menuIdList = menuIdList;
|
||||
}
|
||||
|
||||
public void setLawsNumber(String lawsNumber) {
|
||||
this.lawsNumber = lawsNumber;
|
||||
}
|
||||
|
||||
public String getLawsNumberOperator() {
|
||||
return lawsNumberOperator;
|
||||
}
|
||||
|
||||
public void setLawsNumberOperator(String lawsNumberOperator) {
|
||||
this.lawsNumberOperator = lawsNumberOperator;
|
||||
}
|
||||
|
||||
public String getLawsProperty() {
|
||||
return lawsProperty;
|
||||
}
|
||||
|
||||
public void setLawsProperty(String lawsProperty) {
|
||||
this.lawsProperty = lawsProperty;
|
||||
}
|
||||
|
||||
public String getLawsPropertyOperator() {
|
||||
return lawsPropertyOperator;
|
||||
}
|
||||
|
||||
public void setLawsPropertyOperator(String lawsPropertyOperator) {
|
||||
this.lawsPropertyOperator = lawsPropertyOperator;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getCountryOperator() {
|
||||
return countryOperator;
|
||||
}
|
||||
|
||||
public void setCountryOperator(String countryOperator) {
|
||||
this.countryOperator = countryOperator;
|
||||
}
|
||||
|
||||
public String getLawsType() {
|
||||
return lawsType;
|
||||
}
|
||||
|
||||
public void setLawsType(String lawsType) {
|
||||
this.lawsType = lawsType;
|
||||
}
|
||||
|
||||
public String getLawsTypeOperator() {
|
||||
return lawsTypeOperator;
|
||||
}
|
||||
|
||||
public void setLawsTypeOperator(String lawsTypeOperator) {
|
||||
this.lawsTypeOperator = lawsTypeOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getUpdateFlag() {
|
||||
return updateFlag;
|
||||
}
|
||||
|
||||
public void setUpdateFlag(String updateFlag) {
|
||||
this.updateFlag = updateFlag;
|
||||
}
|
||||
|
||||
public String[] getApplyArcticList() {
|
||||
return applyArcticList;
|
||||
}
|
||||
|
||||
public void setApplyArcticList(String[] applyArcticList) {
|
||||
this.applyArcticList = applyArcticList;
|
||||
}
|
||||
|
||||
public String[] getEnergyKindList() {
|
||||
return energyKindList;
|
||||
}
|
||||
|
||||
public void setEnergyKindList(String[] energyKindList) {
|
||||
this.energyKindList = energyKindList;
|
||||
}
|
||||
|
||||
public String[] getApplyAuthList() {
|
||||
return applyAuthList;
|
||||
}
|
||||
|
||||
public void setApplyAuthList(String[] applyAuthList) {
|
||||
this.applyAuthList = applyAuthList;
|
||||
}
|
||||
|
||||
public String getSynopsis() {
|
||||
return synopsis;
|
||||
}
|
||||
|
||||
public void setSynopsis(String synopsis) {
|
||||
this.synopsis = synopsis;
|
||||
}
|
||||
|
||||
public String getLawsEnName() {
|
||||
return lawsEnName;
|
||||
}
|
||||
|
||||
public void setLawsEnName(String lawsEnName) {
|
||||
this.lawsEnName = lawsEnName;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String[] getReplaceLawsNumList() {
|
||||
return replaceLawsNumList;
|
||||
}
|
||||
|
||||
public void setReplaceLawsNumList(String[] replaceLawsNumList) {
|
||||
this.replaceLawsNumList = replaceLawsNumList;
|
||||
}
|
||||
|
||||
public String getReplacedLawsNum() {
|
||||
return replacedLawsNum;
|
||||
}
|
||||
|
||||
public void setReplacedLawsNum(String replacedLawsNum) {
|
||||
this.replacedLawsNum = replacedLawsNum;
|
||||
}
|
||||
|
||||
public List<String> getMenuRoleList() {
|
||||
return menuRoleList;
|
||||
}
|
||||
|
||||
public void setMenuRoleList(List<String> menuRoleList) {
|
||||
this.menuRoleList = menuRoleList;
|
||||
}
|
||||
|
||||
public String getNumberName() {
|
||||
return numberName;
|
||||
}
|
||||
|
||||
public void setNumberName(String numberName) {
|
||||
this.numberName = numberName;
|
||||
}
|
||||
|
||||
public String getSynchronId() {
|
||||
return synchronId;
|
||||
}
|
||||
|
||||
public void setSynchronId(String synchronId) {
|
||||
this.synchronId = synchronId;
|
||||
}
|
||||
|
||||
public String[] getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(String[] idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
|
||||
public String getCollectMenuId() {
|
||||
return collectMenuId;
|
||||
}
|
||||
|
||||
public void setCollectMenuId(String collectMenuId) {
|
||||
this.collectMenuId = collectMenuId;
|
||||
}
|
||||
|
||||
public String getLabelMenuId() {
|
||||
return labelMenuId;
|
||||
}
|
||||
|
||||
public void setLabelMenuId(String labelMenuId) {
|
||||
this.labelMenuId = labelMenuId;
|
||||
}
|
||||
|
||||
public String getAdvanceSearchVOStr() {
|
||||
return advanceSearchVOStr;
|
||||
}
|
||||
|
||||
public void setAdvanceSearchVOStr(String advanceSearchVOStr) {
|
||||
this.advanceSearchVOStr = advanceSearchVOStr;
|
||||
}
|
||||
|
||||
public String getAdvanceSearchStr() {
|
||||
return advanceSearchStr;
|
||||
}
|
||||
|
||||
public void setAdvanceSearchStr(String advanceSearchStr) {
|
||||
this.advanceSearchStr = advanceSearchStr;
|
||||
}
|
||||
|
||||
public String getIsRelateAccess() {
|
||||
return isRelateAccess;
|
||||
}
|
||||
|
||||
public void setIsRelateAccess(String isRelateAccess) {
|
||||
this.isRelateAccess = isRelateAccess;
|
||||
}
|
||||
|
||||
public String getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getProType() {
|
||||
return proType;
|
||||
}
|
||||
|
||||
public void setProType(String proType) {
|
||||
this.proType = proType;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
public String getOrderBy1() {
|
||||
return orderBy1;
|
||||
}
|
||||
|
||||
public void setOrderBy1(String orderBy1) {
|
||||
this.orderBy1 = orderBy1;
|
||||
}
|
||||
|
||||
public String getOrder1() {
|
||||
return order1;
|
||||
}
|
||||
|
||||
public void setOrder1(String order1) {
|
||||
this.order1 = order1;
|
||||
}
|
||||
|
||||
public Integer getNowOrder() {
|
||||
return nowOrder;
|
||||
}
|
||||
|
||||
public void setNowOrder(Integer nowOrder) {
|
||||
this.nowOrder = nowOrder;
|
||||
}
|
||||
|
||||
public Integer getNowOrderBy() {
|
||||
return nowOrderBy;
|
||||
}
|
||||
|
||||
public void setNowOrderBy(Integer nowOrderBy) {
|
||||
this.nowOrderBy = nowOrderBy;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeId;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeName;
|
||||
import com.adc.da.utils.treetool.annotation.TreeNodeParentId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_MENU SarMenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarMenuEO extends BaseEntity {
|
||||
|
||||
@TreeNodeParentId
|
||||
private String parentId;
|
||||
@TreeNodeName
|
||||
private String menuName;
|
||||
private String sorDivide;
|
||||
@TreeNodeId
|
||||
private String id;
|
||||
@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 displaySeq;
|
||||
private String parentIds;
|
||||
private String remarks;
|
||||
private List<String> roleIds;
|
||||
private List<String> childMenuIds;
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>menuName -> menu_name</li>
|
||||
* <li>sorDivide -> sor_divide</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
* <li>parentIds -> parent_ids</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "parentId":
|
||||
return "parent_id";
|
||||
case "menuName":
|
||||
return "menu_name";
|
||||
case "sorDivide":
|
||||
return "sor_divide";
|
||||
case "id":
|
||||
return "id";
|
||||
case "modifyTime":
|
||||
return "modify_time";
|
||||
case "creationTime":
|
||||
return "creation_time";
|
||||
case "validFlag":
|
||||
return "valid_flag";
|
||||
case "displaySeq":
|
||||
return "display_seq";
|
||||
case "parentIds":
|
||||
return "parent_ids";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>menu_name -> menuName</li>
|
||||
* <li>sor_divide -> sorDivide</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
* <li>parent_ids -> parentIds</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "parent_id":
|
||||
return "parentId";
|
||||
case "menu_name":
|
||||
return "menuName";
|
||||
case "sor_divide":
|
||||
return "sorDivide";
|
||||
case "id":
|
||||
return "id";
|
||||
case "modify_time":
|
||||
return "modifyTime";
|
||||
case "creation_time":
|
||||
return "creationTime";
|
||||
case "valid_flag":
|
||||
return "validFlag";
|
||||
case "display_seq":
|
||||
return "displaySeq";
|
||||
case "parent_ids":
|
||||
return "parentIds";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMenuName() {
|
||||
return this.menuName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMenuName(String menuName) {
|
||||
this.menuName = menuName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSorDivide() {
|
||||
return this.sorDivide;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSorDivide(String sorDivide) {
|
||||
this.sorDivide = sorDivide;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
public List<String> getRoleIds() {
|
||||
return roleIds;
|
||||
}
|
||||
|
||||
public void setRoleIds(List<String> roleIds) {
|
||||
this.roleIds = roleIds;
|
||||
}
|
||||
|
||||
public List<String> getChildMenuIds() {
|
||||
return childMenuIds;
|
||||
}
|
||||
|
||||
public void setChildMenuIds(List<String> childMenuIds) {
|
||||
this.childMenuIds = childMenuIds;
|
||||
}
|
||||
}
|
||||
+286
@@ -0,0 +1,286 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_ATTR_DETAILS SarStandAttrDetailsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandAttrDetailsEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String attrField;
|
||||
private String attrName;
|
||||
private String attrType;
|
||||
private Long orderNum;
|
||||
private String isEdit;
|
||||
private String creationUser;
|
||||
private String validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
private Long attrLen;
|
||||
private String attrValue;
|
||||
private String isMust;
|
||||
private String isShowImp;
|
||||
private String showRegionId;
|
||||
private String selVal;
|
||||
private String sarType;
|
||||
private String isSearch;
|
||||
private String isWarn;
|
||||
private String areaName;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>attrField -> attr_field</li>
|
||||
* <li>attrName -> attr_name</li>
|
||||
* <li>attrType -> attr_type</li>
|
||||
* <li>orderNum -> order_num</li>
|
||||
* <li>isEdit -> is_edit</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>attrLen -> attr_len</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "attrField": return "attr_field";
|
||||
case "attrName": return "attr_name";
|
||||
case "attrType": return "attr_type";
|
||||
case "orderNum": return "order_num";
|
||||
case "isEdit": return "is_edit";
|
||||
case "creationUser": return "creation_user";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "attrLen": return "attr_len";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>attr_field -> attrField</li>
|
||||
* <li>attr_name -> attrName</li>
|
||||
* <li>attr_type -> attrType</li>
|
||||
* <li>order_num -> orderNum</li>
|
||||
* <li>is_edit -> isEdit</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>attr_len -> attrLen</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "attr_field": return "attrField";
|
||||
case "attr_name": return "attrName";
|
||||
case "attr_type": return "attrType";
|
||||
case "order_num": return "orderNum";
|
||||
case "is_edit": return "isEdit";
|
||||
case "creation_user": return "creationUser";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "attr_len": return "attrLen";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrField() {
|
||||
return this.attrField;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrField(String attrField) {
|
||||
this.attrField = attrField;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrName() {
|
||||
return this.attrName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrName(String attrName) {
|
||||
this.attrName = attrName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrType() {
|
||||
return this.attrType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrType(String attrType) {
|
||||
this.attrType = attrType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getOrderNum() {
|
||||
return this.orderNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrderNum(Long orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getIsEdit() {
|
||||
return this.isEdit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsEdit(String isEdit) {
|
||||
this.isEdit = isEdit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(String 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 Long getAttrLen() {
|
||||
return this.attrLen;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrLen(Long attrLen) {
|
||||
this.attrLen = attrLen;
|
||||
}
|
||||
|
||||
public String getAttrValue() {
|
||||
return attrValue;
|
||||
}
|
||||
|
||||
public void setAttrValue(String attrValue) {
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public String getIsMust() {
|
||||
return isMust;
|
||||
}
|
||||
|
||||
public void setIsMust(String isMust) {
|
||||
this.isMust = isMust;
|
||||
}
|
||||
|
||||
public String getIsShowImp() {
|
||||
return isShowImp;
|
||||
}
|
||||
|
||||
public void setIsShowImp(String isShowImp) {
|
||||
this.isShowImp = isShowImp;
|
||||
}
|
||||
|
||||
public String getShowRegionId() {
|
||||
return showRegionId;
|
||||
}
|
||||
|
||||
public void setShowRegionId(String showRegionId) {
|
||||
this.showRegionId = showRegionId;
|
||||
}
|
||||
|
||||
public String getSelVal() {
|
||||
return selVal;
|
||||
}
|
||||
|
||||
public void setSelVal(String selVal) {
|
||||
this.selVal = selVal;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getIsSearch() {
|
||||
return isSearch;
|
||||
}
|
||||
|
||||
public void setIsSearch(String isSearch) {
|
||||
this.isSearch = isSearch;
|
||||
}
|
||||
|
||||
public String getIsWarn() {
|
||||
return isWarn;
|
||||
}
|
||||
|
||||
public void setIsWarn(String isWarn) {
|
||||
this.isWarn = isWarn;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
}
|
||||
+301
@@ -0,0 +1,301 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_ATTR_DETAILS SarStandAttrDetailsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandAttrDetailsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String attrField;
|
||||
private String attrFieldOperator = "=";
|
||||
private String attrName;
|
||||
private String attrNameOperator = "=";
|
||||
private String attrType;
|
||||
private String attrTypeOperator = "=";
|
||||
private String orderNum;
|
||||
private String orderNumOperator = "=";
|
||||
private String isEdit;
|
||||
private String isEditOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
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 attrLen;
|
||||
private String attrLenOperator = "=";
|
||||
private String[] idList;
|
||||
private String notId;
|
||||
private String sarType;
|
||||
private String isSearch;
|
||||
private String isWarn;
|
||||
private String isShow;
|
||||
|
||||
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 getAttrField() {
|
||||
return this.attrField;
|
||||
}
|
||||
|
||||
public void setAttrField(String attrField) {
|
||||
this.attrField = attrField;
|
||||
}
|
||||
|
||||
public String getAttrFieldOperator() {
|
||||
return this.attrFieldOperator;
|
||||
}
|
||||
|
||||
public void setAttrFieldOperator(String attrFieldOperator) {
|
||||
this.attrFieldOperator = attrFieldOperator;
|
||||
}
|
||||
|
||||
public String getAttrName() {
|
||||
return this.attrName;
|
||||
}
|
||||
|
||||
public void setAttrName(String attrName) {
|
||||
this.attrName = attrName;
|
||||
}
|
||||
|
||||
public String getAttrNameOperator() {
|
||||
return this.attrNameOperator;
|
||||
}
|
||||
|
||||
public void setAttrNameOperator(String attrNameOperator) {
|
||||
this.attrNameOperator = attrNameOperator;
|
||||
}
|
||||
|
||||
public String getAttrType() {
|
||||
return this.attrType;
|
||||
}
|
||||
|
||||
public void setAttrType(String attrType) {
|
||||
this.attrType = attrType;
|
||||
}
|
||||
|
||||
public String getAttrTypeOperator() {
|
||||
return this.attrTypeOperator;
|
||||
}
|
||||
|
||||
public void setAttrTypeOperator(String attrTypeOperator) {
|
||||
this.attrTypeOperator = attrTypeOperator;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return this.orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getOrderNumOperator() {
|
||||
return this.orderNumOperator;
|
||||
}
|
||||
|
||||
public void setOrderNumOperator(String orderNumOperator) {
|
||||
this.orderNumOperator = orderNumOperator;
|
||||
}
|
||||
|
||||
public String getIsEdit() {
|
||||
return this.isEdit;
|
||||
}
|
||||
|
||||
public void setIsEdit(String isEdit) {
|
||||
this.isEdit = isEdit;
|
||||
}
|
||||
|
||||
public String getIsEditOperator() {
|
||||
return this.isEditOperator;
|
||||
}
|
||||
|
||||
public void setIsEditOperator(String isEditOperator) {
|
||||
this.isEditOperator = isEditOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
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 getAttrLen() {
|
||||
return this.attrLen;
|
||||
}
|
||||
|
||||
public void setAttrLen(String attrLen) {
|
||||
this.attrLen = attrLen;
|
||||
}
|
||||
|
||||
public String getAttrLenOperator() {
|
||||
return this.attrLenOperator;
|
||||
}
|
||||
|
||||
public void setAttrLenOperator(String attrLenOperator) {
|
||||
this.attrLenOperator = attrLenOperator;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public String getNotId() {
|
||||
return notId;
|
||||
}
|
||||
|
||||
public void setNotId(String notId) {
|
||||
this.notId = notId;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getIsSearch() {
|
||||
return isSearch;
|
||||
}
|
||||
|
||||
public void setIsSearch(String isSearch) {
|
||||
this.isSearch = isSearch;
|
||||
}
|
||||
|
||||
public String getIsWarn() {
|
||||
return isWarn;
|
||||
}
|
||||
|
||||
public void setIsWarn(String isWarn) {
|
||||
this.isWarn = isWarn;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,279 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_FILE SarStandFileEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandFileEO 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 validFlag;
|
||||
private String useModel;
|
||||
private String attId;
|
||||
private String resId;
|
||||
private String standId;
|
||||
private String id;
|
||||
private Integer pageCount;
|
||||
private String fileOldName;
|
||||
private List<String> idlist = new ArrayList<>();
|
||||
private String standFileClassify;
|
||||
private String standFileClassifyShow;
|
||||
private String fileSuffix;
|
||||
private String fileName;
|
||||
private String password;
|
||||
private String creationUser;
|
||||
private String standNumber;
|
||||
private String standName;
|
||||
private String sarType;
|
||||
private String oriAttId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>useModel -> use_model</li>
|
||||
* <li>attId -> att_id</li>
|
||||
* <li>resId -> res_id</li>
|
||||
* <li>standId -> stand_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "pageCount": return "page_count";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "useModel": return "use_model";
|
||||
case "attId": return "att_id";
|
||||
case "resId": return "res_id";
|
||||
case "standId": return "stand_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>use_model -> useModel</li>
|
||||
* <li>att_id -> attId</li>
|
||||
* <li>res_id -> resId</li>
|
||||
* <li>stand_id -> standId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "page_count": return "pageCount";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "use_model": return "useModel";
|
||||
case "att_id": return "attId";
|
||||
case "res_id": return "resId";
|
||||
case "stand_id": return "standId";
|
||||
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 getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUseModel() {
|
||||
return this.useModel;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUseModel(String useModel) {
|
||||
this.useModel = useModel;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getPageCount() {
|
||||
return pageCount;
|
||||
}
|
||||
|
||||
public void setPageCount(Integer pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
|
||||
public List<String> getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(List<String> idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
|
||||
public String getFileOldName() {
|
||||
return fileOldName;
|
||||
}
|
||||
|
||||
public void setFileOldName(String fileOldName) {
|
||||
this.fileOldName = fileOldName;
|
||||
}
|
||||
|
||||
public String getStandFileClassify() {
|
||||
return standFileClassify;
|
||||
}
|
||||
|
||||
public void setStandFileClassify(String standFileClassify) {
|
||||
this.standFileClassify = standFileClassify;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getStandNumber() {
|
||||
return standNumber;
|
||||
}
|
||||
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getStandFileClassifyShow() {
|
||||
return standFileClassifyShow;
|
||||
}
|
||||
|
||||
public void setStandFileClassifyShow(String standFileClassifyShow) {
|
||||
this.standFileClassifyShow = standFileClassifyShow;
|
||||
}
|
||||
|
||||
public String getOriAttId() {
|
||||
return oriAttId;
|
||||
}
|
||||
|
||||
public void setOriAttId(String oriAttId) {
|
||||
this.oriAttId = oriAttId;
|
||||
}
|
||||
}
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_FILE SarStandFileEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandFileEOPage 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 useModel;
|
||||
private String useModelOperator = "=";
|
||||
private String attId;
|
||||
private String attIdOperator = "=";
|
||||
private String resId;
|
||||
private String resIdOperator = "=";
|
||||
private String standId;
|
||||
private String standIdOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String[] fileSuffixList;
|
||||
private String fileSuffix;
|
||||
private String standNumber;
|
||||
private String standName;
|
||||
private String fileType;
|
||||
private String standFileClassify;
|
||||
|
||||
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 getUseModel() {
|
||||
return this.useModel;
|
||||
}
|
||||
|
||||
public void setUseModel(String useModel) {
|
||||
this.useModel = useModel;
|
||||
}
|
||||
|
||||
public String getUseModelOperator() {
|
||||
return this.useModelOperator;
|
||||
}
|
||||
|
||||
public void setUseModelOperator(String useModelOperator) {
|
||||
this.useModelOperator = useModelOperator;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getAttIdOperator() {
|
||||
return this.attIdOperator;
|
||||
}
|
||||
|
||||
public void setAttIdOperator(String attIdOperator) {
|
||||
this.attIdOperator = attIdOperator;
|
||||
}
|
||||
|
||||
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 getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandIdOperator() {
|
||||
return this.standIdOperator;
|
||||
}
|
||||
|
||||
public void setStandIdOperator(String standIdOperator) {
|
||||
this.standIdOperator = standIdOperator;
|
||||
}
|
||||
|
||||
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[] getFileSuffixList() {
|
||||
return fileSuffixList;
|
||||
}
|
||||
|
||||
public void setFileSuffixList(String[] fileSuffixList) {
|
||||
this.fileSuffixList = fileSuffixList;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getStandNumber() {
|
||||
return standNumber;
|
||||
}
|
||||
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getStandFileClassify() {
|
||||
return standFileClassify;
|
||||
}
|
||||
|
||||
public void setStandFileClassify(String standFileClassify) {
|
||||
this.standFileClassify = standFileClassify;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,486 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_ITEMS SarStandItemsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandItemsEO 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 String creationUser;
|
||||
private Integer validFlag;
|
||||
private String remarks;
|
||||
private String responsibleUnit;
|
||||
private String energyKind;
|
||||
private String applyArctic;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date tackTime;
|
||||
private String parts;
|
||||
private String itemsName;
|
||||
private String itemsNum;
|
||||
private String standId;
|
||||
private String id;
|
||||
private String emergyKindShow;
|
||||
private String applyArcticShow;
|
||||
private String responsibleUnitShow;
|
||||
private String termsConditions; //条款要求
|
||||
private String mainPointImplementation; //实施要点
|
||||
//新加字段
|
||||
private String fo;//FO
|
||||
private String foUser;//FO
|
||||
private String dutyEngineer;//责任工程师
|
||||
private String svpps;//SVPPS
|
||||
private String claimType;//要求类型
|
||||
private String busStandCover;//企标覆盖关系
|
||||
private String fileType;//文件类型
|
||||
//新加字段带show
|
||||
private String foShow;//FO
|
||||
private String dutyEngineerShow;//责任工程师
|
||||
private String svppsShow;//SVPPS
|
||||
private String claimTypeShow;//要求类型
|
||||
private String busStandCoverShow;//企标覆盖关系
|
||||
private String fileTypeShow;//文件类型
|
||||
private String itemState;//条款状态
|
||||
private List<String> idList;
|
||||
private String oldId;
|
||||
private String jspg;
|
||||
private SarCompStatusInfoEO pgForm;
|
||||
|
||||
private String menuId;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>responsibleUnit -> responsible_unit</li>
|
||||
* <li>energyKind -> energy_kind</li>
|
||||
* <li>applyArctic -> apply_arctic</li>
|
||||
* <li>tackTime -> tack_time</li>
|
||||
* <li>parts -> parts</li>
|
||||
* <li>itemsName -> items_name</li>
|
||||
* <li>itemsNum -> items_num</li>
|
||||
* <li>standId -> stand_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 "creationUser": return "creation_user";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "remarks": return "remarks";
|
||||
case "responsibleUnit": return "responsible_unit";
|
||||
case "energyKind": return "energy_kind";
|
||||
case "applyArctic": return "apply_arctic";
|
||||
case "tackTime": return "tack_time";
|
||||
case "parts": return "parts";
|
||||
case "itemsName": return "items_name";
|
||||
case "itemsNum": return "items_num";
|
||||
case "standId": return "stand_id";
|
||||
case "id": return "id";
|
||||
case "termsConditions": return "terms_conditions";
|
||||
case "mainPointImplementation": return "MAINPOINTS_IMPEMENTATION";
|
||||
case "fo": return "fo";
|
||||
case "dutyEngineer": return "duty_engineer";
|
||||
case "svpps": return "svpps";
|
||||
case "claimType": return "claim_type";
|
||||
case "busStandCover": return "bus_stand_cover";
|
||||
case "fileType": return "file_type";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>responsible_unit -> responsibleUnit</li>
|
||||
* <li>energy_kind -> energyKind</li>
|
||||
* <li>apply_arctic -> applyArctic</li>
|
||||
* <li>tack_time -> tackTime</li>
|
||||
* <li>parts -> parts</li>
|
||||
* <li>items_name -> itemsName</li>
|
||||
* <li>items_num -> itemsNum</li>
|
||||
* <li>stand_id -> standId</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 "creation_user": return "creationUser";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "remarks": return "remarks";
|
||||
case "responsible_unit": return "responsibleUnit";
|
||||
case "energy_kind": return "energyKind";
|
||||
case "apply_arctic": return "applyArctic";
|
||||
case "tack_time": return "tackTime";
|
||||
case "parts": return "parts";
|
||||
case "items_name": return "itemsName";
|
||||
case "items_num": return "itemsNum";
|
||||
case "stand_id": return "standId";
|
||||
case "id": return "id";
|
||||
case "terms_conditions": return "termsConditions";
|
||||
case "MAINPOINTS_IMPEMENTATION": return "mainPointImplementation";
|
||||
case "fo": return "fo";
|
||||
case "duty_engineer": return "dutyEngineer";
|
||||
case "svpps": return "svpps";
|
||||
case "claim_type": return "claimType";
|
||||
case "bus_stand_cover": return "busStandCover";
|
||||
case "file_type": return "fileType";
|
||||
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 getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getResponsibleUnit() {
|
||||
return this.responsibleUnit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResponsibleUnit(String responsibleUnit) {
|
||||
this.responsibleUnit = responsibleUnit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getEnergyKind() {
|
||||
return this.energyKind;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setEnergyKind(String energyKind) {
|
||||
this.energyKind = energyKind;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getApplyArctic() {
|
||||
return this.applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getTackTime() {
|
||||
return this.tackTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setTackTime(Date tackTime) {
|
||||
this.tackTime = tackTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParts() {
|
||||
return this.parts;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParts(String parts) {
|
||||
this.parts = parts;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsName() {
|
||||
return this.itemsName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsNum() {
|
||||
return this.itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getResponsibleUnitShow() {
|
||||
return responsibleUnitShow;
|
||||
}
|
||||
|
||||
public void setResponsibleUnitShow(String responsibleUnitShow) {
|
||||
this.responsibleUnitShow = responsibleUnitShow;
|
||||
}
|
||||
|
||||
public String getEmergyKindShow() {
|
||||
return emergyKindShow;
|
||||
}
|
||||
|
||||
public void setEmergyKindShow(String emergyKindShow) {
|
||||
this.emergyKindShow = emergyKindShow;
|
||||
}
|
||||
|
||||
public String getApplyArcticShow() {
|
||||
return applyArcticShow;
|
||||
}
|
||||
|
||||
public void setApplyArcticShow(String applyArcticShow) {
|
||||
this.applyArcticShow = applyArcticShow;
|
||||
}
|
||||
|
||||
public String getTermsConditions() {
|
||||
return termsConditions;
|
||||
}
|
||||
|
||||
public void setTermsConditions(String termsConditions) {
|
||||
this.termsConditions = termsConditions;
|
||||
}
|
||||
|
||||
public String getMainPointImplementation() {
|
||||
return mainPointImplementation;
|
||||
}
|
||||
|
||||
public void setMainPointImplementation(String mainPointImplementation) {
|
||||
this.mainPointImplementation = mainPointImplementation;
|
||||
}
|
||||
|
||||
public String getFo() {
|
||||
return fo;
|
||||
}
|
||||
|
||||
public void setFo(String fo) {
|
||||
this.fo = fo;
|
||||
}
|
||||
|
||||
public String getDutyEngineer() {
|
||||
return dutyEngineer;
|
||||
}
|
||||
|
||||
public void setDutyEngineer(String dutyEngineer) {
|
||||
this.dutyEngineer = dutyEngineer;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getClaimType() {
|
||||
return claimType;
|
||||
}
|
||||
|
||||
public void setClaimType(String claimType) {
|
||||
this.claimType = claimType;
|
||||
}
|
||||
|
||||
public String getBusStandCover() {
|
||||
return busStandCover;
|
||||
}
|
||||
|
||||
public void setBusStandCover(String busStandCover) {
|
||||
this.busStandCover = busStandCover;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getFoShow() {
|
||||
return foShow;
|
||||
}
|
||||
|
||||
public void setFoShow(String foShow) {
|
||||
this.foShow = foShow;
|
||||
}
|
||||
|
||||
public String getDutyEngineerShow() {
|
||||
return dutyEngineerShow;
|
||||
}
|
||||
|
||||
public void setDutyEngineerShow(String dutyEngineerShow) {
|
||||
this.dutyEngineerShow = dutyEngineerShow;
|
||||
}
|
||||
|
||||
public String getSvppsShow() {
|
||||
return svppsShow;
|
||||
}
|
||||
|
||||
public void setSvppsShow(String svppsShow) {
|
||||
this.svppsShow = svppsShow;
|
||||
}
|
||||
|
||||
public String getClaimTypeShow() {
|
||||
return claimTypeShow;
|
||||
}
|
||||
|
||||
public void setClaimTypeShow(String claimTypeShow) {
|
||||
this.claimTypeShow = claimTypeShow;
|
||||
}
|
||||
|
||||
public String getBusStandCoverShow() {
|
||||
return busStandCoverShow;
|
||||
}
|
||||
|
||||
public void setBusStandCoverShow(String busStandCoverShow) {
|
||||
this.busStandCoverShow = busStandCoverShow;
|
||||
}
|
||||
|
||||
public String getFileTypeShow() {
|
||||
return fileTypeShow;
|
||||
}
|
||||
|
||||
public void setFileTypeShow(String fileTypeShow) {
|
||||
this.fileTypeShow = fileTypeShow;
|
||||
}
|
||||
|
||||
public List<String> getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(List<String> idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public String getItemState() {
|
||||
return itemState;
|
||||
}
|
||||
|
||||
public void setItemState(String itemState) {
|
||||
this.itemState = itemState;
|
||||
}
|
||||
|
||||
public String getJspg() {
|
||||
return jspg;
|
||||
}
|
||||
|
||||
public void setJspg(String jspg) {
|
||||
this.jspg = jspg;
|
||||
}
|
||||
|
||||
public SarCompStatusInfoEO getPgForm() {
|
||||
return pgForm;
|
||||
}
|
||||
|
||||
public void setPgForm(SarCompStatusInfoEO pgForm) {
|
||||
this.pgForm = pgForm;
|
||||
}
|
||||
|
||||
public String getOldId() {
|
||||
return oldId;
|
||||
}
|
||||
|
||||
public void setOldId(String oldId) {
|
||||
this.oldId = oldId;
|
||||
}
|
||||
|
||||
public String getFoUser() {
|
||||
return foUser;
|
||||
}
|
||||
|
||||
public void setFoUser(String foUser) {
|
||||
this.foUser = foUser;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
}
|
||||
+588
@@ -0,0 +1,588 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STANDARDS_INFO SarStandardsInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandardsInfoEO extends BaseEntity {
|
||||
|
||||
private String id;
|
||||
private String standType;
|
||||
private String country;
|
||||
private String standSort;
|
||||
private String standNumber;
|
||||
private String standYear;
|
||||
private String standName;
|
||||
private String standEnName;
|
||||
private String standState;
|
||||
private String standNature;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private String issueTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date putTime;
|
||||
private String synopsis;
|
||||
private String replaceStandNum;
|
||||
private String replacedStandNum;
|
||||
private String creationUser;
|
||||
private String validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
private String isRelateAccess;
|
||||
// 以下为非表中字段
|
||||
private String collectId; // 收藏表ID
|
||||
private String countryShow; //国家地区显示名称
|
||||
private String standSortShow; // 标准类别显示名称
|
||||
private String standStateShow; // 标准状态显示名称
|
||||
private String standNatureShow; // 标准性质显示名称
|
||||
private String sychronId; // 同步数据ID
|
||||
private List<DicTypeEO> dicTypeList = new ArrayList(); // 记录标准涉及到的所有数据字典数据
|
||||
private Map<String, Object> attrInfoMap = new LinkedHashMap<>(); //属性表字段与值
|
||||
private String sarStandAttrEOStr; //新增修改时属性表信息
|
||||
private String menuId; //目录ID
|
||||
private int upReplaceNumFlag; //记录是否修改了替代文件号
|
||||
private int upNumFlag; //记录是否修改了文件号
|
||||
private List<SarStandAttrDetailsEO> attrInfoList = new ArrayList<>();
|
||||
private String fileIds; //全部文件ID
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date newCarPutTime;
|
||||
private List<SarStandItemsEO> itemsList = new ArrayList<>();
|
||||
private String citeStand;//引用标准
|
||||
private String citedStand;//被引用标准
|
||||
private String relateStand;//对应其他标准
|
||||
private String accessCountry;//纳入清单的国家
|
||||
private String processNum;//流程编号
|
||||
private String textStatus;//文本状态
|
||||
// 在库里的标准节点类型(工作组)
|
||||
private String menuType;
|
||||
private String allPutTime;
|
||||
private String jspg;
|
||||
private SarCompStatusInfoEO pgForm;
|
||||
private String CHJL;
|
||||
private String puttime;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>standType -> stand_type</li>
|
||||
* <li>country -> country</li>
|
||||
* <li>standSort -> stand_sort</li>
|
||||
* <li>standNumber -> stand_number</li>
|
||||
* <li>standYear -> stand_year</li>
|
||||
* <li>standName -> stand_name</li>
|
||||
* <li>standEnName -> stand_en_name</li>
|
||||
* <li>standState -> stand_state</li>
|
||||
* <li>standNature -> stand_nature</li>
|
||||
* <li>issueTime -> issue_time</li>
|
||||
* <li>putTime -> put_time</li>
|
||||
* <li>synopsis -> synopsis</li>
|
||||
* <li>replaceStandNum -> replace_stand_num</li>
|
||||
* <li>replacedStandNum -> replaced_stand_num</li>
|
||||
* <li>creationUser -> creation_user</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 "standType": return "stand_type";
|
||||
case "country": return "country";
|
||||
case "standSort": return "stand_sort";
|
||||
case "standNumber": return "stand_number";
|
||||
case "standYear": return "stand_year";
|
||||
case "standName": return "stand_name";
|
||||
case "standEnName": return "stand_en_name";
|
||||
case "standState": return "stand_state";
|
||||
case "standNature": return "stand_nature";
|
||||
case "issueTime": return "issue_time";
|
||||
case "putTime": return "put_time";
|
||||
case "synopsis": return "synopsis";
|
||||
case "replaceStandNum": return "replace_stand_num";
|
||||
case "replacedStandNum": return "replaced_stand_num";
|
||||
case "creationUser": return "creation_user";
|
||||
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>stand_type -> standType</li>
|
||||
* <li>country -> country</li>
|
||||
* <li>stand_sort -> standSort</li>
|
||||
* <li>stand_number -> standNumber</li>
|
||||
* <li>stand_year -> standYear</li>
|
||||
* <li>stand_name -> standName</li>
|
||||
* <li>stand_en_name -> standEnName</li>
|
||||
* <li>stand_state -> standState</li>
|
||||
* <li>stand_nature -> standNature</li>
|
||||
* <li>issue_time -> issueTime</li>
|
||||
* <li>put_time -> putTime</li>
|
||||
* <li>synopsis -> synopsis</li>
|
||||
* <li>replace_stand_num -> replaceStandNum</li>
|
||||
* <li>replaced_stand_num -> replacedStandNum</li>
|
||||
* <li>creation_user -> creationUser</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 "stand_type": return "standType";
|
||||
case "country": return "country";
|
||||
case "stand_sort": return "standSort";
|
||||
case "stand_number": return "standNumber";
|
||||
case "stand_year": return "standYear";
|
||||
case "stand_name": return "standName";
|
||||
case "stand_en_name": return "standEnName";
|
||||
case "stand_state": return "standState";
|
||||
case "stand_nature": return "standNature";
|
||||
case "issue_time": return "issueTime";
|
||||
case "put_time": return "putTime";
|
||||
case "synopsis": return "synopsis";
|
||||
case "replace_stand_num": return "replaceStandNum";
|
||||
case "replaced_stand_num": return "replacedStandNum";
|
||||
case "creation_user": return "creationUser";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandType() {
|
||||
return this.standType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandType(String standType) {
|
||||
this.standType = standType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCountry() {
|
||||
return this.country;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandSort() {
|
||||
return this.standSort;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandSort(String standSort) {
|
||||
this.standSort = standSort;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandNumber() {
|
||||
return this.standNumber;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandYear() {
|
||||
return this.standYear;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandYear(String standYear) {
|
||||
this.standYear = standYear;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandName() {
|
||||
return this.standName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandEnName() {
|
||||
return this.standEnName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandEnName(String standEnName) {
|
||||
this.standEnName = standEnName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandState() {
|
||||
return this.standState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandState(String standState) {
|
||||
this.standState = standState;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandNature() {
|
||||
return this.standNature;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandNature(String standNature) {
|
||||
this.standNature = standNature;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getIssueTime() {
|
||||
return this.issueTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIssueTime(String issueTime) {
|
||||
this.issueTime = issueTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getPutTime() {
|
||||
return this.putTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPutTime(Date putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
public String getSynopsis() {
|
||||
return synopsis;
|
||||
}
|
||||
|
||||
public void setSynopsis(String synopsis) {
|
||||
this.synopsis = synopsis;
|
||||
}
|
||||
|
||||
public String getReplaceStandNum() {
|
||||
return replaceStandNum;
|
||||
}
|
||||
|
||||
public void setReplaceStandNum(String replaceStandNum) {
|
||||
this.replaceStandNum = replaceStandNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getReplacedStandNum() {
|
||||
return this.replacedStandNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReplacedStandNum(String replacedStandNum) {
|
||||
this.replacedStandNum = replacedStandNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(String 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 getCollectId() {
|
||||
return collectId;
|
||||
}
|
||||
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
public String getCountryShow() {
|
||||
return countryShow;
|
||||
}
|
||||
|
||||
public void setCountryShow(String countryShow) {
|
||||
this.countryShow = countryShow;
|
||||
}
|
||||
|
||||
public String getStandSortShow() {
|
||||
return standSortShow;
|
||||
}
|
||||
|
||||
public void setStandSortShow(String standSortShow) {
|
||||
this.standSortShow = standSortShow;
|
||||
}
|
||||
|
||||
public String getStandStateShow() {
|
||||
return standStateShow;
|
||||
}
|
||||
|
||||
public void setStandStateShow(String standStateShow) {
|
||||
this.standStateShow = standStateShow;
|
||||
}
|
||||
|
||||
public String getStandNatureShow() {
|
||||
return standNatureShow;
|
||||
}
|
||||
|
||||
public void setStandNatureShow(String standNatureShow) {
|
||||
this.standNatureShow = standNatureShow;
|
||||
}
|
||||
|
||||
public String getSychronId() {
|
||||
return sychronId;
|
||||
}
|
||||
|
||||
public void setSychronId(String sychronId) {
|
||||
this.sychronId = sychronId;
|
||||
}
|
||||
|
||||
public List<DicTypeEO> getDicTypeList() {
|
||||
return dicTypeList;
|
||||
}
|
||||
|
||||
public void setDicTypeList(List<DicTypeEO> dicTypeList) {
|
||||
this.dicTypeList = dicTypeList;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAttrInfoMap() {
|
||||
return attrInfoMap;
|
||||
}
|
||||
|
||||
public void setAttrInfoMap(Map<String, Object> attrInfoMap) {
|
||||
this.attrInfoMap = attrInfoMap;
|
||||
}
|
||||
|
||||
public String getSarStandAttrEOStr() {
|
||||
return sarStandAttrEOStr;
|
||||
}
|
||||
|
||||
public void setSarStandAttrEOStr(String sarStandAttrEOStr) {
|
||||
this.sarStandAttrEOStr = sarStandAttrEOStr;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public int getUpReplaceNumFlag() {
|
||||
return upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public void setUpReplaceNumFlag(int upReplaceNumFlag) {
|
||||
this.upReplaceNumFlag = upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public int getUpNumFlag() {
|
||||
return upNumFlag;
|
||||
}
|
||||
|
||||
public void setUpNumFlag(int upNumFlag) {
|
||||
this.upNumFlag = upNumFlag;
|
||||
}
|
||||
|
||||
public List<SarStandAttrDetailsEO> getAttrInfoList() {
|
||||
return attrInfoList;
|
||||
}
|
||||
|
||||
public void setAttrInfoList(List<SarStandAttrDetailsEO> attrInfoList) {
|
||||
this.attrInfoList = attrInfoList;
|
||||
}
|
||||
|
||||
public String getFileIds() {
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
public void setFileIds(String fileIds) {
|
||||
this.fileIds = fileIds;
|
||||
}
|
||||
|
||||
public Date getNewCarPutTime() {
|
||||
return newCarPutTime;
|
||||
}
|
||||
|
||||
public void setNewCarPutTime(Date newCarPutTime) {
|
||||
this.newCarPutTime = newCarPutTime;
|
||||
}
|
||||
|
||||
public String getIsRelateAccess() {
|
||||
return isRelateAccess;
|
||||
}
|
||||
|
||||
public void setIsRelateAccess(String isRelateAccess) {
|
||||
this.isRelateAccess = isRelateAccess;
|
||||
}
|
||||
|
||||
public List<SarStandItemsEO> getItemsList() {
|
||||
return itemsList;
|
||||
}
|
||||
|
||||
public void setItemsList(List<SarStandItemsEO> itemsList) {
|
||||
this.itemsList = itemsList;
|
||||
}
|
||||
|
||||
public String getCiteStand() {
|
||||
return citeStand;
|
||||
}
|
||||
|
||||
public void setCiteStand(String citeStand) {
|
||||
this.citeStand = citeStand;
|
||||
}
|
||||
|
||||
public String getCitedStand() {
|
||||
return citedStand;
|
||||
}
|
||||
|
||||
public void setCitedStand(String citedStand) {
|
||||
this.citedStand = citedStand;
|
||||
}
|
||||
|
||||
public String getAccessCountry() {
|
||||
return accessCountry;
|
||||
}
|
||||
|
||||
public void setAccessCountry(String accessCountry) {
|
||||
this.accessCountry = accessCountry;
|
||||
}
|
||||
|
||||
public String getProcessNum() {
|
||||
return processNum;
|
||||
}
|
||||
|
||||
public void setProcessNum(String processNum) {
|
||||
this.processNum = processNum;
|
||||
}
|
||||
|
||||
public String getTextStatus() {
|
||||
return textStatus;
|
||||
}
|
||||
|
||||
public void setTextStatus(String textStatus) {
|
||||
this.textStatus = textStatus;
|
||||
}
|
||||
|
||||
public String getMenuType() {
|
||||
return menuType;
|
||||
}
|
||||
|
||||
public void setMenuType(String menuType) {
|
||||
this.menuType = menuType;
|
||||
}
|
||||
|
||||
public String getRelateStand() {
|
||||
return relateStand;
|
||||
}
|
||||
|
||||
public void setRelateStand(String relateStand) {
|
||||
this.relateStand = relateStand;
|
||||
}
|
||||
|
||||
public String getAllPutTime() {
|
||||
return allPutTime;
|
||||
}
|
||||
|
||||
public void setAllPutTime(String allPutTime) {
|
||||
this.allPutTime = allPutTime;
|
||||
}
|
||||
|
||||
public String getJspg() {
|
||||
return jspg;
|
||||
}
|
||||
|
||||
public void setJspg(String jspg) {
|
||||
this.jspg = jspg;
|
||||
}
|
||||
|
||||
public SarCompStatusInfoEO getPgForm() {
|
||||
return pgForm;
|
||||
}
|
||||
|
||||
public void setPgForm(SarCompStatusInfoEO pgForm) {
|
||||
this.pgForm = pgForm;
|
||||
}
|
||||
|
||||
public String getCHJL() {
|
||||
return CHJL;
|
||||
}
|
||||
|
||||
public void setCHJL(String CHJL) {
|
||||
this.CHJL = CHJL;
|
||||
}
|
||||
|
||||
public String getPuttime() {
|
||||
return puttime;
|
||||
}
|
||||
|
||||
public void setPuttime(String puttime) {
|
||||
this.puttime = puttime;
|
||||
}
|
||||
}
|
||||
+651
@@ -0,0 +1,651 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarAdvanceSearchVO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STANDARDS_INFO SarStandardsInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-19 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandardsInfoEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String standType;
|
||||
private String standTypeOperator = "=";
|
||||
private String country;
|
||||
private String countryOperator = "=";
|
||||
private String standSort;
|
||||
private String standSortOperator = "=";
|
||||
private String standNumber;
|
||||
private String standNumberOperator = "=";
|
||||
private String standYear;
|
||||
private String standYearOperator = "=";
|
||||
private String standName;
|
||||
private String standNameOperator = "=";
|
||||
private String standEnName;
|
||||
private String standEnNameOperator = "=";
|
||||
private String standState;
|
||||
private String standStateOperator = "=";
|
||||
private String standNature;
|
||||
private String standNatureOperator = "=";
|
||||
private String issueTime;
|
||||
private String issueTime1;
|
||||
private String issueTime2;
|
||||
private String issueTimeOperator = "=";
|
||||
private String putTime;
|
||||
private String putTime1;
|
||||
private String putTime2;
|
||||
private String putTimeOperator = "=";
|
||||
private String synopsis;
|
||||
private String synopsisOperator = "=";
|
||||
private String replaceStandNum;
|
||||
private String replaceStandNumOperator = "=";
|
||||
private String replacedStandNum;
|
||||
private String replacedStandNumOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String isRelateAccess;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private List<String> menuRoleList; //有权限的目录
|
||||
private String[] idlist; //多个id
|
||||
private String menuId; //目录ID
|
||||
private String rootMenuId;
|
||||
private String attrSearchStr;
|
||||
private String advanceSearchStr;
|
||||
private Map<String,String> attrSearchMap; //属性表数据条件查询
|
||||
// 树结构增加搜索条件
|
||||
private String collectMenuId;
|
||||
private String labelMenuId;
|
||||
private String applyArctic;
|
||||
private String ids;
|
||||
private List<String> replaceStandNumList;
|
||||
private List<String> menuAllChildrenIdList;
|
||||
private List<SarAdvanceSearchVO> advanceSearchVOList;
|
||||
private String advanceSearchVOStr;
|
||||
private String proType; // 请求的流程类型
|
||||
private String userId;
|
||||
private String productId;
|
||||
private Integer nowOrder;
|
||||
private Integer nowOrderBy;
|
||||
private String orderBy1 = "SAR_STANDARDS_INFO.issue_time";
|
||||
private String order1 = "desc";
|
||||
private String isNumYear;
|
||||
|
||||
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 getStandType() {
|
||||
return this.standType;
|
||||
}
|
||||
|
||||
public void setStandType(String standType) {
|
||||
this.standType = standType;
|
||||
}
|
||||
|
||||
public String getStandTypeOperator() {
|
||||
return this.standTypeOperator;
|
||||
}
|
||||
|
||||
public void setStandTypeOperator(String standTypeOperator) {
|
||||
this.standTypeOperator = standTypeOperator;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return this.country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getCountryOperator() {
|
||||
return this.countryOperator;
|
||||
}
|
||||
|
||||
public void setCountryOperator(String countryOperator) {
|
||||
this.countryOperator = countryOperator;
|
||||
}
|
||||
|
||||
public String getStandSort() {
|
||||
return this.standSort;
|
||||
}
|
||||
|
||||
public void setStandSort(String standSort) {
|
||||
this.standSort = standSort;
|
||||
}
|
||||
|
||||
public String getStandSortOperator() {
|
||||
return this.standSortOperator;
|
||||
}
|
||||
|
||||
public void setStandSortOperator(String standSortOperator) {
|
||||
this.standSortOperator = standSortOperator;
|
||||
}
|
||||
|
||||
public String getStandNumber() {
|
||||
return this.standNumber;
|
||||
}
|
||||
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
|
||||
public String getStandNumberOperator() {
|
||||
return this.standNumberOperator;
|
||||
}
|
||||
|
||||
public void setStandNumberOperator(String standNumberOperator) {
|
||||
this.standNumberOperator = standNumberOperator;
|
||||
}
|
||||
|
||||
public String getStandYear() {
|
||||
return this.standYear;
|
||||
}
|
||||
|
||||
public void setStandYear(String standYear) {
|
||||
this.standYear = standYear;
|
||||
}
|
||||
|
||||
public String getStandYearOperator() {
|
||||
return this.standYearOperator;
|
||||
}
|
||||
|
||||
public void setStandYearOperator(String standYearOperator) {
|
||||
this.standYearOperator = standYearOperator;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return this.standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getStandNameOperator() {
|
||||
return this.standNameOperator;
|
||||
}
|
||||
|
||||
public void setStandNameOperator(String standNameOperator) {
|
||||
this.standNameOperator = standNameOperator;
|
||||
}
|
||||
|
||||
public String getStandEnName() {
|
||||
return this.standEnName;
|
||||
}
|
||||
|
||||
public void setStandEnName(String standEnName) {
|
||||
this.standEnName = standEnName;
|
||||
}
|
||||
|
||||
public String getStandEnNameOperator() {
|
||||
return this.standEnNameOperator;
|
||||
}
|
||||
|
||||
public void setStandEnNameOperator(String standEnNameOperator) {
|
||||
this.standEnNameOperator = standEnNameOperator;
|
||||
}
|
||||
|
||||
public String getStandState() {
|
||||
return this.standState;
|
||||
}
|
||||
|
||||
public void setStandState(String standState) {
|
||||
this.standState = standState;
|
||||
}
|
||||
|
||||
public String getStandStateOperator() {
|
||||
return this.standStateOperator;
|
||||
}
|
||||
|
||||
public void setStandStateOperator(String standStateOperator) {
|
||||
this.standStateOperator = standStateOperator;
|
||||
}
|
||||
|
||||
public String getStandNature() {
|
||||
return this.standNature;
|
||||
}
|
||||
|
||||
public void setStandNature(String standNature) {
|
||||
this.standNature = standNature;
|
||||
}
|
||||
|
||||
public String getStandNatureOperator() {
|
||||
return this.standNatureOperator;
|
||||
}
|
||||
|
||||
public void setStandNatureOperator(String standNatureOperator) {
|
||||
this.standNatureOperator = standNatureOperator;
|
||||
}
|
||||
|
||||
public String getIssueTime() {
|
||||
return this.issueTime;
|
||||
}
|
||||
|
||||
public void setIssueTime(String issueTime) {
|
||||
this.issueTime = issueTime;
|
||||
}
|
||||
|
||||
public String getIssueTime1() {
|
||||
return this.issueTime1;
|
||||
}
|
||||
|
||||
public void setIssueTime1(String issueTime1) {
|
||||
this.issueTime1 = issueTime1;
|
||||
}
|
||||
|
||||
public String getIssueTime2() {
|
||||
return this.issueTime2;
|
||||
}
|
||||
|
||||
public void setIssueTime2(String issueTime2) {
|
||||
this.issueTime2 = issueTime2;
|
||||
}
|
||||
|
||||
public String getIssueTimeOperator() {
|
||||
return this.issueTimeOperator;
|
||||
}
|
||||
|
||||
public void setIssueTimeOperator(String issueTimeOperator) {
|
||||
this.issueTimeOperator = issueTimeOperator;
|
||||
}
|
||||
|
||||
public String getPutTime() {
|
||||
return this.putTime;
|
||||
}
|
||||
|
||||
public void setPutTime(String putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
public String getPutTime1() {
|
||||
return this.putTime1;
|
||||
}
|
||||
|
||||
public void setPutTime1(String putTime1) {
|
||||
this.putTime1 = putTime1;
|
||||
}
|
||||
|
||||
public String getPutTime2() {
|
||||
return this.putTime2;
|
||||
}
|
||||
|
||||
public void setPutTime2(String putTime2) {
|
||||
this.putTime2 = putTime2;
|
||||
}
|
||||
|
||||
public String getPutTimeOperator() {
|
||||
return this.putTimeOperator;
|
||||
}
|
||||
|
||||
public void setPutTimeOperator(String putTimeOperator) {
|
||||
this.putTimeOperator = putTimeOperator;
|
||||
}
|
||||
|
||||
public String getSynopsis() {
|
||||
return this.synopsis;
|
||||
}
|
||||
|
||||
public void setSynopsis(String synopsis) {
|
||||
this.synopsis = synopsis;
|
||||
}
|
||||
|
||||
public String getSynopsisOperator() {
|
||||
return this.synopsisOperator;
|
||||
}
|
||||
|
||||
public void setSynopsisOperator(String synopsisOperator) {
|
||||
this.synopsisOperator = synopsisOperator;
|
||||
}
|
||||
|
||||
public String getReplaceStandNum() {
|
||||
return this.replaceStandNum;
|
||||
}
|
||||
|
||||
public void setReplaceStandNum(String replaceStandNum) {
|
||||
this.replaceStandNum = replaceStandNum;
|
||||
}
|
||||
|
||||
public String getReplaceStandNumOperator() {
|
||||
return this.replaceStandNumOperator;
|
||||
}
|
||||
|
||||
public void setReplaceStandNumOperator(String replaceStandNumOperator) {
|
||||
this.replaceStandNumOperator = replaceStandNumOperator;
|
||||
}
|
||||
|
||||
public String getReplacedStandNum() {
|
||||
return this.replacedStandNum;
|
||||
}
|
||||
|
||||
public void setReplacedStandNum(String replacedStandNum) {
|
||||
this.replacedStandNum = replacedStandNum;
|
||||
}
|
||||
|
||||
public String getReplacedStandNumOperator() {
|
||||
return this.replacedStandNumOperator;
|
||||
}
|
||||
|
||||
public void setReplacedStandNumOperator(String replacedStandNumOperator) {
|
||||
this.replacedStandNumOperator = replacedStandNumOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
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 List<String> getMenuRoleList() {
|
||||
return menuRoleList;
|
||||
}
|
||||
|
||||
public void setMenuRoleList(List<String> menuRoleList) {
|
||||
this.menuRoleList = menuRoleList;
|
||||
}
|
||||
|
||||
public String[] getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(String[] idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getRootMenuId() {
|
||||
return rootMenuId;
|
||||
}
|
||||
|
||||
public void setRootMenuId(String rootMenuId) {
|
||||
this.rootMenuId = rootMenuId;
|
||||
}
|
||||
|
||||
public Map<String, String> getAttrSearchMap() {
|
||||
return attrSearchMap;
|
||||
}
|
||||
|
||||
public void setAttrSearchMap(Map<String, String> attrSearchMap) {
|
||||
this.attrSearchMap = attrSearchMap;
|
||||
}
|
||||
|
||||
public String getCollectMenuId() {
|
||||
return collectMenuId;
|
||||
}
|
||||
|
||||
public void setCollectMenuId(String collectMenuId) {
|
||||
this.collectMenuId = collectMenuId;
|
||||
}
|
||||
|
||||
public String getLabelMenuId() {
|
||||
return labelMenuId;
|
||||
}
|
||||
|
||||
public void setLabelMenuId(String labelMenuId) {
|
||||
this.labelMenuId = labelMenuId;
|
||||
}
|
||||
|
||||
public String getAttrSearchStr() {
|
||||
return attrSearchStr;
|
||||
}
|
||||
|
||||
public void setAttrSearchStr(String attrSearchStr) {
|
||||
this.attrSearchStr = attrSearchStr;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public List<String> getReplaceStandNumList() {
|
||||
return replaceStandNumList;
|
||||
}
|
||||
|
||||
public void setReplaceStandNumList(List<String> replaceStandNumList) {
|
||||
this.replaceStandNumList = replaceStandNumList;
|
||||
}
|
||||
|
||||
public String getIsRelateAccess() {
|
||||
return isRelateAccess;
|
||||
}
|
||||
|
||||
public void setIsRelateAccess(String isRelateAccess) {
|
||||
this.isRelateAccess = isRelateAccess;
|
||||
}
|
||||
|
||||
public String getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getAdvanceSearchStr() {
|
||||
return advanceSearchStr;
|
||||
}
|
||||
|
||||
public void setAdvanceSearchStr(String advanceSearchStr) {
|
||||
this.advanceSearchStr = advanceSearchStr;
|
||||
}
|
||||
|
||||
public List<SarAdvanceSearchVO> getAdvanceSearchVOList() {
|
||||
return advanceSearchVOList;
|
||||
}
|
||||
|
||||
public void setAdvanceSearchVOList(List<SarAdvanceSearchVO> advanceSearchVOList) {
|
||||
this.advanceSearchVOList = advanceSearchVOList;
|
||||
}
|
||||
|
||||
public String getAdvanceSearchVOStr() {
|
||||
return advanceSearchVOStr;
|
||||
}
|
||||
|
||||
public void setAdvanceSearchVOStr(String advanceSearchVOStr) {
|
||||
this.advanceSearchVOStr = advanceSearchVOStr;
|
||||
}
|
||||
|
||||
public List<String> getMenuAllChildrenIdList() {
|
||||
return menuAllChildrenIdList;
|
||||
}
|
||||
|
||||
public void setMenuAllChildrenIdList(List<String> menuAllChildrenIdList) {
|
||||
this.menuAllChildrenIdList = menuAllChildrenIdList;
|
||||
}
|
||||
|
||||
public String getProType() {
|
||||
return proType;
|
||||
}
|
||||
|
||||
public void setProType(String proType) {
|
||||
this.proType = proType;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(String productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
|
||||
public String getOrderBy1() {
|
||||
return orderBy1;
|
||||
}
|
||||
|
||||
public void setOrderBy1(String orderBy1) {
|
||||
this.orderBy1 = orderBy1;
|
||||
}
|
||||
|
||||
|
||||
public String getOrder1() {
|
||||
return order1;
|
||||
}
|
||||
|
||||
public void setOrder1(String order1) {
|
||||
this.order1 = order1;
|
||||
}
|
||||
|
||||
public Integer getNowOrder() {
|
||||
return nowOrder;
|
||||
}
|
||||
|
||||
public void setNowOrder(Integer nowOrder) {
|
||||
this.nowOrder = nowOrder;
|
||||
}
|
||||
|
||||
|
||||
public void setNowOrderBy(Integer nowOrderBy) {
|
||||
this.nowOrderBy = nowOrderBy;
|
||||
}
|
||||
|
||||
public Integer getNowOrderBy() {
|
||||
return nowOrderBy;
|
||||
}
|
||||
|
||||
public String getIsNumYear() {
|
||||
return isNumYear;
|
||||
}
|
||||
|
||||
public void setIsNumYear(String isNumYear) {
|
||||
this.isNumYear = isNumYear;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
public interface MenuService {
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SarFileSplitInfoEOService {
|
||||
|
||||
List<SarFileSplitInfoEO> queryByPage(BasePage page) throws Exception;
|
||||
|
||||
List<SarFileSplitInfoEO> queryByList(BasePage page) throws Exception;
|
||||
|
||||
SarFileSplitInfoEO selectByPrimaryKey(String id) throws Exception;
|
||||
|
||||
int insertSelective(SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception;
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception;
|
||||
|
||||
int deleteByPrimaryKey(String id) throws Exception;
|
||||
|
||||
int fileAplit(SarFileSplitInfoEO sarFileSplitInfoEO);
|
||||
|
||||
List<SarFileSplitInfoEO> queryByPageOwn(SarFileSplitInfoEOPage page);
|
||||
|
||||
int deleteByIds(String ids);
|
||||
|
||||
PersonMsgEO updateNew(PersonMsgEO val) throws Exception;
|
||||
|
||||
String getClauseBySplitId(String standNum, String fileType);
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.common.SplitTableInfo;
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.dto.*;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEOPage;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface SarFileSplitItemsEOService {
|
||||
|
||||
Map<String,Object> getByPage(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList(SarFileSplitItemsEOPage page);
|
||||
|
||||
SarFileSplitItemsEO selectByPrimaryKey(String id);
|
||||
|
||||
int insertSelective(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int updateItemContent(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int batchDeleteItems(String ids);
|
||||
|
||||
boolean judgeContaintChilds(String ids);
|
||||
|
||||
List<FileSplitItemsExportDto> queryByOrdersForExport(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<FileSplitValExportDto> combineItemValInfo(List<SarFileSplitItemsValEO> getValList,List<FileSpiltValTableExportDto>
|
||||
allTableList,List<FileSplitValImgExportDto> allImgList,SarFileSplitItemsEOPage page);
|
||||
|
||||
void downLoadImgList(List<FileSplitValImgExportDto> allImgList,String fileNowPath) throws IOException;
|
||||
|
||||
void downLoadFileList(List<AttFileEO> attfileEo, String fileNowPath) throws IOException ;
|
||||
|
||||
ResponseMessage<SarFileSplitItemsEO> importSplitItems(List<SarFileSplitItemsImportDto> datasUpdate,
|
||||
String unzipfilepath, SarFileSplitInfoEO sarFileSplitInfoEO,
|
||||
List<SplitTableInfo> getSheetTableList);
|
||||
|
||||
void combineItems(String ids);
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SarFileSplitItemsParamsEOService {
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage paramPage);
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
public interface SarFileSplitItemsTableEOService {
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SarFileSplitItemsValEOService {
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage valEOPage);
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.standardSplit.entity.DrageMenuEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEOPage;
|
||||
import java.util.List;
|
||||
|
||||
public interface SarFileSplitMenuEOService {
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPage(BasePage page);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page);
|
||||
|
||||
SarFileSplitMenuEO selectByPrimaryKey(String id);
|
||||
|
||||
int addMenu(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
void deleteMenu(String id);
|
||||
|
||||
int dragMenu(DrageMenuEO drageMenuEO);
|
||||
|
||||
boolean judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception;
|
||||
|
||||
int copyMenu (SarFileSplitMenuEO sarMenuEO);
|
||||
|
||||
int copyMenuNotChildren(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
String addMenuForImport(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarLawsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarLawsInfoEOPage;
|
||||
import java.util.List;
|
||||
|
||||
public interface SarLawsInfoEOService {
|
||||
|
||||
List<SarLawsInfoEO> getLawsInfoPage(SarLawsInfoEOPage page) throws Exception;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SarStandAttrDetailsEOService {
|
||||
|
||||
List<SelectionResult> selectFileFieldForSel(String attrField);
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||
import java.util.List;
|
||||
|
||||
public interface SarStandFileEOService {
|
||||
|
||||
List<SarStandFileEO> getStandFileListByPage(SarStandFileEOPage stand);
|
||||
|
||||
List<SarStandFileEO> queryByPage(SarStandFileEOPage page);
|
||||
|
||||
List<SarStandFileEO> queryByList(SarStandFileEOPage page);
|
||||
|
||||
SarStandFileEO selectByPrimaryKey(String id) throws Exception;
|
||||
|
||||
int insertSelective(SarStandFileEO sarStandFileEO) throws Exception;
|
||||
|
||||
int updateByPrimaryKeySelective(SarStandFileEO sarStandFileEO) throws Exception;
|
||||
|
||||
int deleteByPrimaryKey(String id) throws Exception;
|
||||
|
||||
List<SarStandFileEO> selectFileByAttId(String attId) throws Exception;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.adc.da.slrs.standardSplit.service;
|
||||
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SarStandardsInfoEOService {
|
||||
|
||||
List<SarStandardsInfoEO> selectStandardsByStandnumber(String standNum, String val);
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.service.MenuService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class MenuServiceImpl implements MenuService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(MenuServiceImpl.class);
|
||||
|
||||
}
|
||||
+674
@@ -0,0 +1,674 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
import com.adc.da.person.entity.PersonMsgEO;
|
||||
import com.adc.da.slrs.standardSplit.dao.*;
|
||||
import com.adc.da.slrs.standardSplit.service.SarLawsInfoEOService;
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.common.ReadWordTable;
|
||||
import com.adc.da.slrs.standardSplit.entity.*;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitInfoEOService;
|
||||
import com.adc.da.sys.util.LoginUserUtil;
|
||||
import com.adc.da.sys.util.UUIDUtils;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.poi.xwpf.usermodel.*;
|
||||
import org.apache.xmlbeans.XmlCursor;
|
||||
import org.apache.xmlbeans.XmlObject;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTAnchor;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.CTInline;
|
||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDrawing;
|
||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLevelText;
|
||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR;
|
||||
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.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import com.adc.da.common.SplitFilePragraTypeEnum;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import com.adc.da.person.dao.PersonShareEODao;
|
||||
import com.adc.da.person.dao.PersonCollectEODao;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitInfoEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
/**
|
||||
* 文件下载路径
|
||||
*/
|
||||
@Value("${file.downloadUrl}")
|
||||
private String downloadUrl;
|
||||
@Autowired
|
||||
private PersonShareEODao personShareEODao;
|
||||
@Autowired
|
||||
private SarFileSplitInfoEODao sarFileSplitInfoEODao;
|
||||
@Autowired
|
||||
private SarFileSplitMenuEODao sarFileSplitMenuEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsEODao sarFileSplitItemsEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEODao sarFileSplitItemsValEODao;
|
||||
@Autowired
|
||||
private SarLawsInfoEOService sarLawsInfoEOService;
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEODao sarFileSplitItemsTableEODao;
|
||||
@Autowired
|
||||
private PersonCollectEODao personCollectEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsEODao sarFileSplitItemsParamsEODao;
|
||||
@Autowired
|
||||
private SarFileSplitInfoEODao dao;
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitInfoEO> queryByPage(BasePage page) throws Exception{
|
||||
return sarFileSplitInfoEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitInfoEO> queryByList(BasePage page) throws Exception{
|
||||
return sarFileSplitInfoEODao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitInfoEO selectByPrimaryKey(String id) throws Exception{
|
||||
return sarFileSplitInfoEODao.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception{
|
||||
return sarFileSplitInfoEODao.insertSelective(sarFileSplitInfoEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitInfoEO sarFileSplitInfoEO) throws Exception{
|
||||
return sarFileSplitInfoEODao.updateByPrimaryKeySelective(sarFileSplitInfoEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String id) throws Exception{
|
||||
return sarFileSplitInfoEODao.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int fileAplit(SarFileSplitInfoEO sarFileSplitInfoEO){
|
||||
// 拆分文件主表中插入数据
|
||||
sarFileSplitInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitInfoEO.setValidFlag(0);
|
||||
sarFileSplitInfoEO.setCreationTime(new Date());
|
||||
sarFileSplitInfoEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitInfoEO.setModifyTime(new Date());
|
||||
sarFileSplitInfoEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitInfoEODao.insertSelective(sarFileSplitInfoEO);
|
||||
|
||||
// 拆分文件条款表中最终插入数据
|
||||
List<SarFileSplitItemsEO> messageList = new ArrayList<>();
|
||||
int messageNumber = 0;
|
||||
// 拆分文件目录表中最终插入数据
|
||||
List<SarFileSplitMenuEO> treeList = new ArrayList<>();
|
||||
// 拆分文件条款详情表中最终插入数据
|
||||
List<SarFileSplitItemsValEO> itemValList = new ArrayList<>();
|
||||
Long treeListDisplay = 1L;
|
||||
|
||||
String generalCatalogueId = UUIDUtils.randomUUID20();
|
||||
SarFileSplitMenuEO documentTreeEO = new SarFileSplitMenuEO(generalCatalogueId,"总目录","",sarFileSplitInfoEO.getId(),treeListDisplay++,"");
|
||||
treeList.add(documentTreeEO);
|
||||
|
||||
List<String> nowStart = new ArrayList<>();
|
||||
if (sarFileSplitInfoEO.getStartNumber()<4){
|
||||
nowStart.add("4");
|
||||
} else {
|
||||
nowStart.add(String.valueOf(sarFileSplitInfoEO.getStartNumber()));
|
||||
}
|
||||
try {
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(sarFileSplitInfoEO.getAttId());
|
||||
String readFilePath = filePath + "/" + attFileEO.getFilePath() + attFileEO.getFileName();
|
||||
|
||||
InputStream is = new FileInputStream(readFilePath); //需要将文件路更改为word文档所在路径。
|
||||
XWPFDocument doc = new XWPFDocument(is);
|
||||
|
||||
Pattern ptest = Pattern.compile("^1范围");
|
||||
Matcher matcher;
|
||||
|
||||
// 记录拆分后的每一段文字
|
||||
List<IBodyElement> elements = doc.getBodyElements();
|
||||
// 记录word自动生成的编号数据
|
||||
Map numberMap = new HashMap<String,Integer>();
|
||||
boolean menuCanAdd = false; // 判断当前目录下是否可以正常填写数据
|
||||
for (IBodyElement element : elements) {
|
||||
// 段落
|
||||
if (element instanceof XWPFParagraph) {
|
||||
XWPFParagraph p = (XWPFParagraph)element;
|
||||
|
||||
// 处理段落生成编号不识别问题
|
||||
String paragraphString = p.getText();
|
||||
if (StringUtils.isNotBlank(paragraphString)) {
|
||||
paragraphString = paragraphString.replace((char) 12288, ' ');
|
||||
paragraphString = paragraphString.trim();
|
||||
}
|
||||
if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
||||
String numberParent = p.getNumLevelText().substring(0,p.getNumLevelText().lastIndexOf("."));
|
||||
if (numberMap.containsKey(numberParent)){
|
||||
Integer numbernow =(Integer)numberMap.get(numberParent)+1;
|
||||
if (messageList != null && !messageList.isEmpty() && messageList.get(messageList.size()-1).getItemsNum().equals(numberParent + "." + String.valueOf(numbernow))){
|
||||
numberMap.put(numberParent,numbernow+1);
|
||||
paragraphString = numberParent + "." + String.valueOf(numbernow+1)+ p.getText();
|
||||
} else {
|
||||
numberMap.put(numberParent,numbernow);
|
||||
paragraphString = numberParent + "." + String.valueOf(numbernow)+ p.getText();
|
||||
}
|
||||
} else {
|
||||
numberMap.put(numberParent,1);
|
||||
paragraphString = numberParent+".1"+ p.getText();
|
||||
}
|
||||
}
|
||||
if (messageNumber == 0) {
|
||||
ptest= Pattern.compile("^1\\s{0,3}范围");
|
||||
matcher=ptest.matcher(paragraphString);
|
||||
while(matcher.find()){
|
||||
List<String> clauseContent = new ArrayList<>();
|
||||
SarFileSplitItemsEO message = getSarFileSplitItemsEO(sarFileSplitInfoEO.getId(),"1","范围",clauseContent);
|
||||
SarFileSplitMenuEO documentTreeEO1 = new SarFileSplitMenuEO(UUIDUtils.randomUUID20(),message.getItemsNum(),generalCatalogueId,sarFileSplitInfoEO.getId(),treeListDisplay++,"范围");
|
||||
message.setMenuId(documentTreeEO1.getId());
|
||||
if(sarFileSplitInfoEO.getStartNumber()<=1 && sarFileSplitInfoEO.getStopNumber()>=1){
|
||||
messageList.add(message);
|
||||
treeList.add(documentTreeEO1);
|
||||
menuCanAdd = true;
|
||||
} else {
|
||||
menuCanAdd = false;
|
||||
}
|
||||
messageNumber++;
|
||||
}
|
||||
}
|
||||
else if (messageNumber == 1){
|
||||
ptest= Pattern.compile("^2\\s{0,3}规范性引用文件");
|
||||
matcher=ptest.matcher(paragraphString);
|
||||
if(matcher.find()){
|
||||
List<String> clauseContent = new ArrayList<>();
|
||||
SarFileSplitItemsEO message = getSarFileSplitItemsEO(sarFileSplitInfoEO.getId(),"2","规范性引用文件",clauseContent);
|
||||
SarFileSplitMenuEO documentTreeEO1 = new SarFileSplitMenuEO(UUIDUtils.randomUUID20(),message.getItemsNum(),generalCatalogueId,sarFileSplitInfoEO.getId(),treeListDisplay++,"规范性引用文件");
|
||||
message.setMenuId(documentTreeEO1.getId());
|
||||
if(sarFileSplitInfoEO.getStartNumber()<=2 && sarFileSplitInfoEO.getStopNumber()>=2){
|
||||
messageList.add(message);
|
||||
treeList.add(documentTreeEO1);
|
||||
menuCanAdd = true;
|
||||
} else {
|
||||
menuCanAdd = false;
|
||||
}
|
||||
messageNumber++;
|
||||
} else if(menuCanAdd){
|
||||
List<String> imageBundleList = readImageInParagraph((XWPFParagraph)p);
|
||||
if(CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||
addItermsConditionsImage(messageList.get(messageList.size()-1),itemValList, p,imageBundleList);
|
||||
} else {
|
||||
addItermsConditionsText(messageList.get(messageList.size()-1),itemValList, p.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (messageNumber == 2){
|
||||
ptest= Pattern.compile("^3\\s{0,3}术语(和|与)定义");
|
||||
matcher=ptest.matcher(paragraphString);
|
||||
if(matcher.find()){
|
||||
List<String> clauseContent = new ArrayList<>();
|
||||
SarFileSplitItemsEO message = getSarFileSplitItemsEO(sarFileSplitInfoEO.getId(),"3","术语与定义",clauseContent);
|
||||
SarFileSplitMenuEO documentTreeEO1 = new SarFileSplitMenuEO(UUIDUtils.randomUUID20(),message.getItemsNum(),generalCatalogueId,sarFileSplitInfoEO.getId(),treeListDisplay++,"术语与定义");
|
||||
message.setMenuId(documentTreeEO1.getId());
|
||||
if(sarFileSplitInfoEO.getStartNumber()<=3 && sarFileSplitInfoEO.getStopNumber()>=3){
|
||||
messageList.add(message);
|
||||
treeList.add(documentTreeEO1);
|
||||
menuCanAdd = true;
|
||||
} else {
|
||||
menuCanAdd = false;
|
||||
}
|
||||
messageNumber++;
|
||||
} else if(menuCanAdd){
|
||||
List<String> imageBundleList = readImageInParagraph((XWPFParagraph)p);
|
||||
if(CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||
addItermsConditionsImage(messageList.get(messageList.size()-1),itemValList, p,imageBundleList);
|
||||
} else {
|
||||
addItermsConditionsText(messageList.get(messageList.size()-1),itemValList, p.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (messageNumber>=3){
|
||||
ptest = Pattern.compile("^[\\d.]*$");
|
||||
boolean hasGoIf = false;
|
||||
for (int i=0;i<nowStart.size();i++){
|
||||
if(paragraphString.startsWith(nowStart.get(i)) && !ptest.matcher(paragraphString.substring(nowStart.get(i).length(),nowStart.get(i).length()+1)).matches()){
|
||||
// 判断名称,如果大于10位,取十位,
|
||||
String itemName = paragraphString.substring(nowStart.get(i).length()).length()>10?paragraphString.substring(nowStart.get(i).length(),nowStart.get(i).length()+10):paragraphString.substring(nowStart.get(i).length());
|
||||
List<String> clauseContent = new ArrayList<>();
|
||||
clauseContent.add(paragraphString);
|
||||
SarFileSplitItemsEO message = getSarFileSplitItemsEO(sarFileSplitInfoEO.getId(),nowStart.get(i),itemName,clauseContent);
|
||||
|
||||
String[] numberStr = nowStart.get(i).split("\\.");
|
||||
if (Integer.valueOf(numberStr[0]) > sarFileSplitInfoEO.getStopNumber()){
|
||||
menuCanAdd = false;
|
||||
} else {
|
||||
// 增加一条数据,需要在数结构中加一条数据
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = getTreeList(nowStart.get(i),treeList,generalCatalogueId,sarFileSplitInfoEO ,treeListDisplay++,itemName);
|
||||
treeList.add(sarFileSplitMenuEO) ;
|
||||
message.setMenuId(sarFileSplitMenuEO.getId());
|
||||
addItermsConditionsText(message,itemValList,paragraphString.substring(nowStart.get(i).length()));
|
||||
messageList.add(message);
|
||||
nowStart = getNewNowStart(nowStart.get(i));
|
||||
menuCanAdd = true;
|
||||
}
|
||||
hasGoIf = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!hasGoIf && menuCanAdd) {
|
||||
// 判断是否是附录
|
||||
ptest= Pattern.compile("^附录\\s{0,3}[A-Z]{1}");
|
||||
matcher=ptest.matcher(paragraphString);
|
||||
// 获取当前最后一项num
|
||||
String appendixNum = messageList.get(messageList.size()-1).getItemsNum().split("\\.")[0];
|
||||
if(matcher.find() && !messageList.get(messageList.size()-1).getItemsNum().equals("附录") ){
|
||||
if ( Integer.valueOf(appendixNum)+1 <= sarFileSplitInfoEO.getStopNumber()) {
|
||||
String itemName = "附录";
|
||||
List<String> clauseContent = new ArrayList<>();
|
||||
clauseContent.add(paragraphString);
|
||||
SarFileSplitItemsEO message = getSarFileSplitItemsEO(sarFileSplitInfoEO.getId(),"附录",itemName,clauseContent);
|
||||
// 增加一条数据,需要在数结构中加一条数据
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = getTreeList("附录",treeList,generalCatalogueId,sarFileSplitInfoEO ,treeListDisplay++,"");
|
||||
addItermsConditionsText(message,itemValList,paragraphString);
|
||||
treeList.add(sarFileSplitMenuEO) ;
|
||||
message.setMenuId(sarFileSplitMenuEO.getId());
|
||||
messageList.add(message);
|
||||
nowStart = new ArrayList<>();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (!p.getText().equals("") ){
|
||||
addItermsConditionsText(messageList.get(messageList.size()-1),itemValList,p.getText());
|
||||
}
|
||||
List<String> imageBundleList = readImageInParagraph((XWPFParagraph)p);
|
||||
if(CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||
addItermsConditionsImage(messageList.get(messageList.size()-1),itemValList, p,imageBundleList);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 判断是否直接跳出所有循环
|
||||
if (!menuCanAdd && messageList.size()>0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (element instanceof XWPFTable){
|
||||
if(messageList != null && !messageList.isEmpty()){
|
||||
addItermsConditionsOfTable(messageList.get(messageList.size()-1),itemValList,(XWPFTable)element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return -1;
|
||||
}
|
||||
if(treeList.size()>0 && messageList.size() > 0){
|
||||
sarFileSplitMenuEODao.insertForeach(treeList);
|
||||
sarFileSplitItemsEODao.insertForeach(messageList);
|
||||
sarFileSplitItemsValEODao.insertForeach(itemValList);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
return treeList.size();
|
||||
}
|
||||
|
||||
private SarFileSplitItemsEO getSarFileSplitItemsEO(String infoId,String itemsNum,String itemsName,List<String> itemsCondi) {
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = new SarFileSplitItemsEO();
|
||||
sarFileSplitItemsEO.setInfoId(infoId);
|
||||
sarFileSplitItemsEO.setItemsNum(itemsNum);
|
||||
sarFileSplitItemsEO.setItemsName(itemsName);
|
||||
sarFileSplitItemsEO.setItemsCondi(itemsCondi);
|
||||
sarFileSplitItemsEO.setItermsConditions("");
|
||||
sarFileSplitItemsEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsEO.setValidFlag(0);
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
return sarFileSplitItemsEO;
|
||||
}
|
||||
|
||||
//获取某一个段落中的所有图片索引
|
||||
private List<String> readImageInParagraph(XWPFParagraph paragraph) {
|
||||
//图片索引List
|
||||
List<String> imageBundleList = new ArrayList<String>();
|
||||
|
||||
//段落中所有XWPFRun
|
||||
List<XWPFRun> runList = paragraph.getRuns();
|
||||
for (XWPFRun run : runList) {
|
||||
//XWPFRun是POI对xml元素解析后生成的自己的属性,无法通过xml解析,需要先转化成CTR
|
||||
CTR ctr = run.getCTR();
|
||||
//对子元素进行遍历
|
||||
XmlCursor c = ctr.newCursor();
|
||||
//这个就是拿到所有的子元素:
|
||||
c.selectPath("./*");
|
||||
while (c.toNextSelection()) {
|
||||
XmlObject o = c.getObject();
|
||||
//如果子元素是<w:drawing>这样的形式,使用CTDrawing保存图片
|
||||
if (o instanceof CTDrawing) {
|
||||
CTDrawing drawing = (CTDrawing) o;
|
||||
CTInline[] ctInlines = drawing.getInlineArray();
|
||||
CTAnchor[] ctAnchors = drawing.getAnchorArray();
|
||||
for (CTInline ctInline : ctInlines) {
|
||||
CTGraphicalObject graphic = ctInline.getGraphic();
|
||||
//
|
||||
XmlCursor cursor = graphic.getGraphicData().newCursor();
|
||||
cursor.selectPath("./*");
|
||||
while (cursor.toNextSelection()) {
|
||||
XmlObject xmlObject = cursor.getObject();
|
||||
// 如果子元素是<pic:pic>这样的形式
|
||||
if (xmlObject instanceof CTPicture) {
|
||||
CTPicture picture = (CTPicture) xmlObject;
|
||||
//拿到元素的属性
|
||||
imageBundleList.add(picture.getBlipFill().getBlip().getEmbed());
|
||||
}
|
||||
}
|
||||
}
|
||||
for (CTAnchor ctAnchor : ctAnchors) {
|
||||
CTGraphicalObject graphic = ctAnchor.getGraphic();
|
||||
XmlCursor cursor = graphic.getGraphicData().newCursor();
|
||||
cursor.selectPath("./*");
|
||||
while (cursor.toNextSelection()) {
|
||||
XmlObject xmlObject = cursor.getObject();
|
||||
// 如果子元素是<pic:pic>这样的形式
|
||||
if (xmlObject instanceof CTPicture) {
|
||||
CTPicture picture = (CTPicture) xmlObject;
|
||||
//拿到元素的属性
|
||||
imageBundleList.add(picture.getBlipFill().getBlip().getEmbed());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (o instanceof CTLevelText){
|
||||
logger.info(((CTLevelText) o).getVal());
|
||||
}
|
||||
}
|
||||
}
|
||||
return imageBundleList;
|
||||
}
|
||||
|
||||
// 像每个条款中依次插入每一段的内容
|
||||
private void addItermsConditionsImage(SarFileSplitItemsEO message,List<SarFileSplitItemsValEO> itemsValList,XWPFParagraph p,List<String> imageBundleList) {
|
||||
for (String pictureId : imageBundleList) {
|
||||
XWPFPictureData pictureData = p.getDocument().getPictureDataByID(pictureId);
|
||||
String imageName = UUIDUtils.randomUUID10() + pictureData.getFileName();
|
||||
byte[] bytev = pictureData.getData();
|
||||
String outPath = filePath + "/img/";
|
||||
File file1 = new File(outPath);
|
||||
if(!file1.exists()){
|
||||
file1.mkdirs();
|
||||
}
|
||||
String filepathandname = filePath + "/img/" + imageName;
|
||||
try {
|
||||
FileOutputStream fos = new FileOutputStream(filepathandname);
|
||||
fos.write(bytev);
|
||||
String path = "uploadPath/img/" + imageName;
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
message.getItemsCondi().add(imgCon);
|
||||
message.setItermsConditions(message.getItermsConditions() + imgCon);
|
||||
itemsValList.add(getSplitItemsValObject(message.getId(),SplitFilePragraTypeEnum.IMG.getValue(),imgCon,message.getItemsCondi().size(),null));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private SarFileSplitItemsValEO getSplitItemsValObject (String itemId,String type,String itemContent,int disPlaySql,List<SarFileSplitItemsTableEO> tableList) {
|
||||
SarFileSplitItemsValEO sarFileSplitItemsValEO = new SarFileSplitItemsValEO();
|
||||
sarFileSplitItemsValEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsValEO.setValidFlag(0);
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsValEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsValEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsValEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsValEO.setItemId(itemId);
|
||||
sarFileSplitItemsValEO.setType(type);
|
||||
sarFileSplitItemsValEO.setDisplaySeq(disPlaySql);
|
||||
sarFileSplitItemsValEO.setItemContent(itemContent);
|
||||
return sarFileSplitItemsValEO;
|
||||
}
|
||||
|
||||
// 像每个条款中依次插入每一段的内容
|
||||
private void addItermsConditionsText(SarFileSplitItemsEO message,List<SarFileSplitItemsValEO> itemsValList,String p) {
|
||||
message.getItemsCondi().add(p);
|
||||
message.setItermsConditions(message.getItermsConditions() + "<p>"+p+ "<p>");
|
||||
// 判断message中是否引用到其他标准
|
||||
// String testString = p;
|
||||
// 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 matcher = ptest2.matcher(testString);
|
||||
// while (matcher.find()){
|
||||
// String standNumber = matcher.group();
|
||||
// if (StringUtils.isNotEmpty(message.getReferenceStand()) && message.getReferenceStand()!=""){
|
||||
// message.setReferenceStand(message.getReferenceStand() + ","+standNumber);
|
||||
// } else {
|
||||
// message.setReferenceStand(standNumber);
|
||||
// }
|
||||
// testString = testString.replaceAll(standNumber," ");
|
||||
// }
|
||||
// matcher = ptest.matcher(testString);
|
||||
// while (matcher.find()){
|
||||
// if (StringUtils.isNotEmpty(message.getReferenceStand()) && message.getReferenceStand()!=""){
|
||||
// message.setReferenceStand(message.getReferenceStand() + ","+matcher.group());
|
||||
// } else {
|
||||
// message.setReferenceStand(matcher.group());
|
||||
// }
|
||||
// }
|
||||
itemsValList.add(getSplitItemsValObject(message.getId(),SplitFilePragraTypeEnum.TEXT.getValue(),p,message.getItemsCondi().size(),null));
|
||||
}
|
||||
|
||||
private SarFileSplitMenuEO getTreeList(String name, List<SarFileSplitMenuEO> treeList,String generalCatalogueId,SarFileSplitInfoEO sarFileSplitInfoEO ,Long treeListDisplay,String itemName){
|
||||
SarFileSplitMenuEO documentTreeEO = new SarFileSplitMenuEO(UUIDUtils.randomUUID20(),name,sarFileSplitInfoEO.getId(),treeListDisplay,itemName);
|
||||
// 用现在得name 和之前得name 做比较,确定,parentId
|
||||
if (name.indexOf(".")>=0) {
|
||||
for (SarFileSplitMenuEO forDocumentTree : treeList) {
|
||||
if (name.substring(0, name.lastIndexOf(".")).equals(forDocumentTree.getName())) {
|
||||
documentTreeEO.setPId(forDocumentTree.getId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}else {
|
||||
documentTreeEO.setPId(generalCatalogueId);
|
||||
}
|
||||
return documentTreeEO;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过传递过来的编号,得出下次可能出现的编号
|
||||
* @param nowStart
|
||||
* @return
|
||||
*/
|
||||
private List<String> getNewNowStart(String nowStart){
|
||||
List<String> nowStartList = new ArrayList<>();
|
||||
List<String> nowResultStartList = new ArrayList<>();
|
||||
String[] numberStr = nowStart.split("\\.");
|
||||
String startnumber = "";
|
||||
for(int i=0;i<numberStr.length;i++) {
|
||||
if (i==0) {
|
||||
startnumber = "";
|
||||
} else if (i==1) {
|
||||
startnumber = numberStr[0];
|
||||
} else {
|
||||
startnumber = startnumber +"." +numberStr[i-1];
|
||||
}
|
||||
Integer lastnumber = Integer.valueOf(numberStr[i])+1;
|
||||
nowResultStartList.add((startnumber.equals("")?"":(startnumber+".")) + lastnumber);
|
||||
}
|
||||
nowResultStartList.add(nowStart+".1");
|
||||
return nowResultStartList;
|
||||
}
|
||||
|
||||
private void addItermsConditionsOfTable(SarFileSplitItemsEO message,List<SarFileSplitItemsValEO> itemsValList,XWPFTable table) throws IOException {
|
||||
StringBuilder tabaleStringNew = new StringBuilder("");
|
||||
//将表格转为html字符串
|
||||
ReadWordTable readWordTable = new ReadWordTable();
|
||||
String tableStr = readWordTable.readTable(table);
|
||||
tabaleStringNew.append(tableStr);
|
||||
message.getItemsCondi().add(table.getText());
|
||||
message.setItermsConditions(message.getItermsConditions() + tabaleStringNew);
|
||||
itemsValList.add(getSplitItemsValObject(message.getId(),SplitFilePragraTypeEnum.TABLE.getValue(),tabaleStringNew.toString(),message.getItemsCondi().size(),null));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitInfoEO> queryByPageOwn(SarFileSplitInfoEOPage page){
|
||||
int rowCount = sarFileSplitInfoEODao.queryByCountOwn(page);
|
||||
page.getPager().setRowCount(rowCount);
|
||||
List<SarFileSplitInfoEO> rows = sarFileSplitInfoEODao.queryByPageOwn(page);
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarFileSplitInfoEO infoEO : rows) {
|
||||
// if (!infoEO.getSplitStatus().equals("0") && infoEO.getShowNumber() == null){
|
||||
// SarLawsInfoEOPage sarLawsInfoEOPage = new SarLawsInfoEOPage();
|
||||
// sarLawsInfoEOPage.setId(infoEO.getStandId());
|
||||
// sarLawsInfoEOPage.setLawsType("FOREIGN");
|
||||
// List<SarLawsInfoEO> sarLawsInfoEOList = sarLawsInfoEOService.getLawsInfoPage(sarLawsInfoEOPage);
|
||||
// if (sarLawsInfoEOList.size()>0){
|
||||
// infoEO.setShowNumber(sarLawsInfoEOList.get(0).getLawsNumber());
|
||||
// infoEO.setStandName(sarLawsInfoEOList.get(0).getLawsName());
|
||||
// }
|
||||
// }
|
||||
// String collectId = personCollectEOService.queryCollectByUserAndId(infoEO.getId());
|
||||
// infoEO.setCollectId(collectId);
|
||||
// if (StringUtils.isNotBlank(infoEO.getFileType())) {
|
||||
// List<SelectionResult> getList =
|
||||
// sarStandAttrDetailsEODao.selectFileFieldForSel1(infoEO.getFileType());
|
||||
// if (getList != null && !getList.isEmpty()) {
|
||||
// infoEO.setFileTypeShow(getList.get(0).getLabel());
|
||||
// } else {
|
||||
// infoEO.setFileTypeShow(null);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByIds(String ids){
|
||||
String[] infoIds = ids.split(",");
|
||||
// 删除info表数据
|
||||
SarFileSplitInfoEO sarFileSplitInfoEO = new SarFileSplitInfoEO();
|
||||
sarFileSplitInfoEO.setIdList(infoIds);
|
||||
int result = sarFileSplitInfoEODao.deleteByIds(sarFileSplitInfoEO);
|
||||
|
||||
//删除menu表数据
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setInfoIdList(infoIds);
|
||||
sarFileSplitMenuEODao.deleteByIds(sarFileSplitMenuEO);
|
||||
// 删除val表数据
|
||||
List<String> idList = Arrays.asList(infoIds);
|
||||
sarFileSplitItemsValEODao.deleteValByInfoIds(idList);
|
||||
// 删除table表数据
|
||||
sarFileSplitItemsTableEODao.deleteTableByMenuIds(idList);
|
||||
//删除items表数据
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = new SarFileSplitItemsEO();
|
||||
sarFileSplitItemsEO.setInfoIdList(infoIds);
|
||||
sarFileSplitItemsEODao.deleteByIds(sarFileSplitItemsEO);
|
||||
//删除params表数据
|
||||
sarFileSplitItemsParamsEODao.deleteByInfoIds(idList);
|
||||
//删除收藏表中数据
|
||||
personCollectEODao.deleteByResIdList(idList);
|
||||
// 删除分享表中数据
|
||||
personShareEODao.deleteByResIdList(idList);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PersonMsgEO updateNew(PersonMsgEO val) throws Exception {
|
||||
// PersonMsgEO personMsgEO = personMsgEOService.selectByPrimaryKey(val.getId());
|
||||
// personMsgEO.setMsgResult(val.getMsgResult());
|
||||
// personMsgEOService.updateByPrimaryKeySelective(personMsgEO);
|
||||
// if (personMsgEO.getMsgType().equals("SPLIT")){
|
||||
// PersonMsgEOPage page = new PersonMsgEOPage();
|
||||
// page.setMsgType("SPLIT");
|
||||
// page.setBusiId(personMsgEO.getBusiId());
|
||||
// page.setMsgTitle(personMsgEO.getMsgTitle());
|
||||
// List<PersonMsgEO> list = personMsgEOService.queryByList(page);
|
||||
// for (PersonMsgEO item:list) {
|
||||
// item.setMsgResult(personMsgEO.getMsgResult());
|
||||
// personMsgEOService.updateByPrimaryKeySelective(item);
|
||||
// }
|
||||
// SarFileSplitInfoEO sarFileSplitInfoEO = new SarFileSplitInfoEO();
|
||||
// sarFileSplitInfoEO.setId(personMsgEO.getBusiId());
|
||||
// if (personMsgEO.getMsgResult().equals("0")){
|
||||
// sarFileSplitInfoEO.setSplitStatus("2");
|
||||
// }else {
|
||||
// sarFileSplitInfoEO.setSplitStatus("0");
|
||||
// }
|
||||
// sarFileSplitInfoEO.setModifyTime(new Date());
|
||||
// this.updateByPrimaryKeySelective(sarFileSplitInfoEO);
|
||||
// if (list.size() > 0 && list.get(0).getSenderId() != null){
|
||||
// PersonMsgEO personMsgEO1 = new PersonMsgEO();
|
||||
// personMsgEO1.setUserIds(list.get(0).getSenderId());
|
||||
// personMsgEO1.setMsgTitle(list.get(0).getMsgTitle().replace("确认","")+"审核结果");
|
||||
// personMsgEO1.setMsgContent(list.get(0).getMsgTitle().replace("确认","") + (personMsgEO.getMsgResult().equals("0")?"已审核通过":"未审核通过"));
|
||||
// personMsgEO1.setMsgType("TEXT");
|
||||
// personMsgEOService.saveNew(personMsgEO1);
|
||||
// List<String> emailList = new ArrayList<>();
|
||||
// UserEO userEO = userEOService.selectByPrimaryKey(list.get(0).getSenderId());
|
||||
// if(userEO!=null){
|
||||
// emailList.add(userEO.getEmail());
|
||||
// String[] array=emailList.toArray(new String[0]);
|
||||
// mailUtil.sendMsg(array,personMsgEO1.getMsgContent());
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// SarFileSplitInfoEOPage sarFileSplitInfoEOPage = new SarFileSplitInfoEOPage();
|
||||
// sarFileSplitInfoEOPage.setId(personMsgEO.getBusiId());
|
||||
// sarFileSplitInfoEOPage.setSplitStatus("2");
|
||||
// List<SarFileSplitInfoEO> list1 =this.queryByPageOwn(sarFileSplitInfoEOPage);
|
||||
// for (SarFileSplitInfoEO data:list1) {
|
||||
// //根据标准号查询标准是否存在
|
||||
// String standNum="";
|
||||
// if (StringUtils.isNotEmpty(data.getStandId())) {
|
||||
// standNum=data.getShowNumber();
|
||||
// } else if(StringUtils.isNotEmpty(data.getStandNumSplit())){
|
||||
// standNum=data.getStandNumSplit();
|
||||
// }
|
||||
// List<SarStandardsInfoEO> getList = sarStandardsInfoEOService.selectStandardsByStandnumber(standNum,null);
|
||||
// SarStandardsInfoEO result = new SarStandardsInfoEO();
|
||||
// if(getList != null && getList.size()>0){
|
||||
// result = getList.get(0);
|
||||
// SarStandItemsEOPage itemPage = new SarStandItemsEOPage();
|
||||
// String standId = data.getStandId();
|
||||
// itemPage.setStandId(standId);
|
||||
// itemPage.setValidFlag("0");
|
||||
// itemPage.setFileType(data.getFileType());
|
||||
// List<SarStandItemsEO> getItemsIds = sarStandItemsEODao.queryIdsByList(itemPage);
|
||||
// if (getItemsIds.size()>0){
|
||||
// this.addToStandItems(data,result);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return personMsgEO;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClauseBySplitId(String standNum, String fileType) {
|
||||
SarFileSplitInfoEOPage sarFileSplitInfoEOPage = new SarFileSplitInfoEOPage();
|
||||
sarFileSplitInfoEOPage.setNumOrName(standNum);
|
||||
sarFileSplitInfoEOPage.setFileType(fileType);
|
||||
sarFileSplitInfoEOPage.setSplitStatus("2");
|
||||
List<SarFileSplitInfoEO> rows = dao.queryByPageOwn(sarFileSplitInfoEOPage);
|
||||
return rows.get(0).getId();
|
||||
}
|
||||
|
||||
}
|
||||
+988
@@ -0,0 +1,988 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
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.FileUnZip;
|
||||
import com.adc.da.common.SplitTableInfo;
|
||||
import com.adc.da.login.util.UserUtils;
|
||||
import com.adc.da.slrs.standardSplit.dao.*;
|
||||
import com.adc.da.slrs.standardSplit.dto.*;
|
||||
import com.adc.da.slrs.standardSplit.entity.*;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitInfoEOService;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitItemsEOService;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitMenuEOService;
|
||||
import com.adc.da.slrs.sysInfo.service.SysInfoEOService;
|
||||
import com.adc.da.sys.dao.DicTypeEODao;
|
||||
import com.adc.da.sys.dao.RoleEODao;
|
||||
import com.adc.da.sys.entity.DicTypeEO;
|
||||
import com.adc.da.sys.util.LoginUserUtil;
|
||||
import com.adc.da.sys.util.UUIDUtils;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
import com.adc.da.utils.treetool.Tree;
|
||||
import com.adc.da.utils.treetool.TreeNode;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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 java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
import static com.adc.da.utils.util.ExcelUtil.checkObjAllFieldsIsNull;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsEOServiceImpl implements SarFileSplitItemsEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitMenuEOService sarFileSplitMenuEOService;
|
||||
@Autowired
|
||||
private SarFileSplitItemsEODao dao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsEODao sarFileSplitItemsParamsEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEODao sarFileSplitItemsValEODao;
|
||||
@Autowired
|
||||
private SysInfoEOService sysInfoEOService;
|
||||
@Autowired
|
||||
private SarFileSplitMenuEODao sarFileSplitMenuEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEODao sarFileSplitItemsTableEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsEODao sarFileSplitItemsEODao;
|
||||
@Autowired
|
||||
private DicTypeEODao dicTypeEODao;
|
||||
@Value("${file.path}")
|
||||
private String uploadFilePath;
|
||||
@Autowired
|
||||
private RoleEODao roleEODao;
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
@Autowired
|
||||
private SarFileSplitInfoEOService sarFileSplitInfoEOService;
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getByPage(SarFileSplitItemsEOPage page) {
|
||||
page.setValidFlag("0");
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
if (com.adc.da.util.utils.StringUtils.isNotEmpty(page.getMenuId())) {
|
||||
List<SarFileSplitMenuEO> sarFileSplitMenuEOList = sarFileSplitMenuEOService.queryByList(new SarFileSplitMenuEOPage());
|
||||
Tree tree = new Tree<>(sarFileSplitMenuEOList);
|
||||
TreeNode treeNode = tree.getTreeNode(page.getMenuId());
|
||||
|
||||
List<String> menuIds = new ArrayList<>();
|
||||
menuIds.add(treeNode.getNodeId());
|
||||
for (TreeNode node : treeNode.getAllChildren()) {
|
||||
menuIds.add(node.getNodeId());
|
||||
}
|
||||
page.setMenuIdList(menuIds);
|
||||
}
|
||||
int count = dao.queryByCount(page);
|
||||
List<SarFileSplitItemsEO> rows = dao.queryByPage(page);
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarFileSplitItemsEO sarFileSplitItemsEO : rows) {
|
||||
//查询svpps
|
||||
String svppsShow = sysInfoEOService.getSvppsNamesByIds(sarFileSplitItemsEO.getSvpps());
|
||||
sarFileSplitItemsEO.setSvppsShow(svppsShow);
|
||||
SarFileSplitItemsParamsEOPage paramPage = new SarFileSplitItemsParamsEOPage();
|
||||
paramPage.setItemId(sarFileSplitItemsEO.getId());
|
||||
List<SarFileSplitItemsParamsEO> paramList = sarFileSplitItemsParamsEODao.queryByList(paramPage);
|
||||
sarFileSplitItemsEO.setParamsList(paramList);
|
||||
String foName = sysInfoEOService.getRoleNamesByIds(sarFileSplitItemsEO.getFo());
|
||||
sarFileSplitItemsEO.setFoShow(foName);
|
||||
//TODO 2021年6月17日 补充责任部门和项目评估角色回显时如果时多个时回显为空的情况
|
||||
String dutyEngineerName = sysInfoEOService.getRoleNamesByIds(sarFileSplitItemsEO.getDutyEngineer());
|
||||
sarFileSplitItemsEO.setDutyEngineerShow(dutyEngineerName);
|
||||
//责任部门多个时
|
||||
String orgNames = sysInfoEOService.getOrgNamesByIds(sarFileSplitItemsEO.getResponsibleUnit());
|
||||
sarFileSplitItemsEO.setResponsibleUnitShow(orgNames);
|
||||
}
|
||||
|
||||
}
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("list",rows);
|
||||
map.put("count",count);
|
||||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsEO> queryByList(SarFileSplitItemsEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsEO selectByPrimaryKey(String id) {
|
||||
return dao.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsEO sarFileSplitItemsEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateItemContent(SarFileSplitItemsEO sarFileSplitItemsEO) {
|
||||
List<SarFileSplitItemsValEO> getValList = sarFileSplitItemsEO.getItemValEOList();
|
||||
String itemConditions = "";
|
||||
String userId = UserUtils.getUserId();
|
||||
int resultCount = 0;
|
||||
//修改特殊参数要求信息
|
||||
updateParamsContent(sarFileSplitItemsEO);
|
||||
//修改条款要求内容
|
||||
if (getValList != null && !getValList.isEmpty()) {
|
||||
String delIds = sarFileSplitItemsEO.getDelItemIds();
|
||||
List<String> itemValIds = new ArrayList<>();
|
||||
//删除VAL表前台删掉的条目信息
|
||||
if (StringUtils.isNotEmpty(delIds)) {
|
||||
String[] delArr = delIds.split(",");
|
||||
SarFileSplitItemsValEO delEO = new SarFileSplitItemsValEO();
|
||||
delEO.setIdList(delArr);
|
||||
if (delArr != null && delArr.length > 0) {
|
||||
sarFileSplitItemsValEODao.deleteByIds(delEO);
|
||||
//删除table表数据
|
||||
itemValIds = new ArrayList<>(Arrays.asList(delArr));
|
||||
}
|
||||
}
|
||||
//向val表更新数据
|
||||
int ind = 1;
|
||||
List<SarFileSplitItemsValEO> addValList = new ArrayList<>();
|
||||
List<SarFileSplitItemsValEO> updateValList = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO valEO : getValList) {
|
||||
// 当前段内容
|
||||
String valContent = "";
|
||||
if ("TEXT".equals(valEO.getType())) {
|
||||
valContent = "<p>" + valEO.getItemContent() + "</p>";
|
||||
} else if ("IMG".equals(valEO.getType())) {
|
||||
valContent = valEO.getItemContent() ;
|
||||
//\"<img class=\\'wordImg\\' src=\\'\"++"\'>
|
||||
} else if ("TABLE".equals(valEO.getType())) {
|
||||
valContent = valEO.getItemContent();
|
||||
}
|
||||
itemConditions += valContent;
|
||||
// val表信息
|
||||
if (StringUtils.isNotEmpty(valEO.getId())) {
|
||||
valEO.setDisplaySeq(ind);
|
||||
valEO.setModifyTime(new Date());
|
||||
valEO.setModifyUser(userId);
|
||||
updateValList.add(valEO);
|
||||
itemValIds.add(valEO.getId());
|
||||
// sarFileSplitItemsValEODao.updateByPrimaryKeySelective(valEO);
|
||||
} else {
|
||||
valEO.setId(UUIDUtils.randomUUID20());
|
||||
valEO.setDisplaySeq(ind);
|
||||
valEO.setValidFlag(0);
|
||||
valEO.setCreationTime(new Date());
|
||||
valEO.setModifyTime(new Date());
|
||||
valEO.setCreationUser(userId);
|
||||
valEO.setModifyUser(userId);
|
||||
addValList.add(valEO);
|
||||
}
|
||||
ind++;
|
||||
}
|
||||
if (addValList != null && !addValList.isEmpty()) {
|
||||
sarFileSplitItemsValEODao.insertForeach(addValList);
|
||||
}
|
||||
if (updateValList != null && !updateValList.isEmpty()) {
|
||||
for(SarFileSplitItemsValEO s : updateValList){
|
||||
sarFileSplitItemsValEODao.updateForeach(Arrays.asList(s));
|
||||
}
|
||||
}
|
||||
sarFileSplitItemsEO.setItermsConditions(itemConditions);
|
||||
resultCount = dao.updateByPrimaryKeySelective(sarFileSplitItemsEO);
|
||||
} else {
|
||||
sarFileSplitItemsEO.setItermsConditions("");
|
||||
resultCount = dao.updateByPrimaryKeySelective(sarFileSplitItemsEO);
|
||||
// 删除val表全部信息
|
||||
sarFileSplitItemsValEODao.deleteByitemId(sarFileSplitItemsEO.getId());
|
||||
}
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 修改特殊参数要求内容
|
||||
* Date 2020/2/4 15:56
|
||||
* @Param [sarFileSplitItemsEO]
|
||||
* @return void
|
||||
**/
|
||||
public void updateParamsContent(SarFileSplitItemsEO sarFileSplitItemsEO){
|
||||
List<String> itemList = new ArrayList<>();
|
||||
itemList.add(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsParamsEODao.deleteByItemIds(itemList);
|
||||
List<SarFileSplitItemsParamsEO> paramList = sarFileSplitItemsEO.getParamsList();
|
||||
if(paramList != null && !paramList.isEmpty()){
|
||||
for(SarFileSplitItemsParamsEO paramsEO : paramList){
|
||||
paramsEO.setId(UUIDUtils.randomUUID20());
|
||||
paramsEO.setItemId(sarFileSplitItemsEO.getId());
|
||||
paramsEO.setInfoId(sarFileSplitItemsEO.getInfoId());
|
||||
paramsEO.setValidFlag(0);
|
||||
paramsEO.setCreationTime(new Date());
|
||||
paramsEO.setModifyTime(new Date());
|
||||
}
|
||||
sarFileSplitItemsParamsEODao.insertForeach(paramList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String id) {
|
||||
return dao.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchDeleteItems(String ids) {
|
||||
String[] itemIds = ids.split(",");
|
||||
List<String> idList = Arrays.asList(itemIds);
|
||||
// 查到对应menu
|
||||
List<SarFileSplitItemsEO> getMenuList = dao.queryByItemsIds(idList);
|
||||
List<SarFileSplitItemsEO> getAllItemList = new ArrayList<>();
|
||||
List<String> menuIdList = new ArrayList<>();
|
||||
List<String> allItemIdList = new ArrayList<>();
|
||||
int result = 0;
|
||||
if (getMenuList != null && !getMenuList.isEmpty()) {
|
||||
for(SarFileSplitItemsEO splitItemsEO : getMenuList){
|
||||
menuIdList.add(splitItemsEO.getMenuId());
|
||||
List<String> menuList = sarFileSplitMenuEODao.getChild(splitItemsEO.getMenuId());
|
||||
menuIdList.addAll(menuList);
|
||||
}
|
||||
if(!menuIdList.isEmpty()){
|
||||
for(String menuId:menuIdList){
|
||||
List<SarFileSplitItemsEO> rows = dao.queryItemsByMenuId(menuId);
|
||||
getAllItemList.addAll(rows);
|
||||
}
|
||||
}
|
||||
if (!getAllItemList.isEmpty()) {
|
||||
for (SarFileSplitItemsEO itemsEO : getAllItemList) {
|
||||
if (!allItemIdList.contains(itemsEO.getId())) {
|
||||
allItemIdList.add(itemsEO.getId());
|
||||
}
|
||||
}
|
||||
// 删除menu表数据
|
||||
sarFileSplitMenuEODao.deleteByIdList(menuIdList);
|
||||
// 删除val表数据
|
||||
sarFileSplitItemsValEODao.deleteValByitemIds(allItemIdList);
|
||||
//删除table数据
|
||||
sarFileSplitItemsTableEODao.deleteByitemIds(allItemIdList);
|
||||
//删除特殊参数要求params表数据
|
||||
sarFileSplitItemsParamsEODao.deleteByItemIds(allItemIdList);
|
||||
//删除res表数据
|
||||
// sarFileSplitItemsResEODao.deleteByItemIds(allItemIdList);
|
||||
//删除file表数据
|
||||
// sarFileSplitItemsFileEODao.deleteByItemIds(allItemIdList);
|
||||
result = dao.deleteByItemsIdList(allItemIdList);
|
||||
}else if(!idList.isEmpty()){//菜单被删掉了,数据当时被保留下来的
|
||||
allItemIdList.clear();
|
||||
allItemIdList.addAll(idList);
|
||||
// 删除val表数据
|
||||
sarFileSplitItemsValEODao.deleteValByitemIds(allItemIdList);
|
||||
//删除table数据
|
||||
sarFileSplitItemsTableEODao.deleteByitemIds(allItemIdList);
|
||||
//删除特殊参数要求params表数据
|
||||
sarFileSplitItemsParamsEODao.deleteByItemIds(allItemIdList);
|
||||
result = dao.deleteByItemsIdList(allItemIdList);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean judgeContaintChilds(String ids) {
|
||||
String[] itemIds = ids.split(",");
|
||||
List<String> idList = Arrays.asList(itemIds);
|
||||
// 查到对应menu
|
||||
List<SarFileSplitItemsEO> getMenuList = dao.queryByItemsIds(idList);
|
||||
if (getMenuList != null && !getMenuList.isEmpty()) {
|
||||
for (SarFileSplitItemsEO splitItemsEO : getMenuList) {
|
||||
SarFileSplitMenuEO sarMenuEO = new SarFileSplitMenuEO();
|
||||
sarMenuEO.setId(splitItemsEO.getMenuId());
|
||||
List<SarFileSplitMenuEO> list = sarFileSplitMenuEODao.queryByPidExcpetSelf(sarMenuEO);
|
||||
if(list != null && !list.isEmpty()){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FileSplitItemsExportDto> queryByOrdersForExport(SarFileSplitItemsEOPage page) {
|
||||
List<FileSplitItemsExportDto> list = sarFileSplitItemsEODao.queryByOrdersForExport(page);
|
||||
|
||||
for (FileSplitItemsExportDto data:list) {
|
||||
//查询svpps
|
||||
String svppsShow = sysInfoEOService.getSvppsNamesByIds(data.getSvpps());
|
||||
data.setSvpps(svppsShow);
|
||||
List<DicTypeEO> getDicType = dicTypeEODao.getDicTypeByDicCode("ENERGYTYPES");
|
||||
List<DicTypeEO> getDicType1 = dicTypeEODao.getDicTypeByDicCode("BZFGGXOUIUJ");
|
||||
getDicType.addAll(getDicType1);
|
||||
for (DicTypeEO dicTypeEO:getDicType) {
|
||||
if (dicTypeEO.getDicTypeCode().equals(data.getApplyArctic())){
|
||||
data.setApplyArctic(dicTypeEO.getDicTypeName());
|
||||
}
|
||||
if (dicTypeEO.getDicTypeCode().equals(data.getBusStandCover())){
|
||||
data.setBusStandCover(dicTypeEO.getDicTypeName());
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FileSplitValExportDto> combineItemValInfo(List<SarFileSplitItemsValEO> getValList, List<FileSpiltValTableExportDto> allTableList, List<FileSplitValImgExportDto> allImgList, SarFileSplitItemsEOPage page) {
|
||||
int tableIndex = page.getTableIndex();
|
||||
int imgIndex = page.getImgIndex();
|
||||
List<FileSplitValExportDto> valContent = new ArrayList<>();
|
||||
if (getValList != null && !getValList.isEmpty()) {
|
||||
String preType = "";
|
||||
for(SarFileSplitItemsValEO itemsValEO : getValList){
|
||||
String type = itemsValEO.getType();
|
||||
FileSplitValExportDto lastOne = new FileSplitValExportDto();
|
||||
lastOne.setValType(type);
|
||||
if(preType.equals(type) && "TEXT".equals(type)) {
|
||||
lastOne = valContent.get(valContent.size() - 1);
|
||||
lastOne.setValContent(lastOne.getValContent()+itemsValEO.getItemContent() + "\n");
|
||||
valContent.set(valContent.size() - 1, lastOne);
|
||||
} else if ("TEXT".equals(type)) {
|
||||
lastOne.setValContent(lastOne.getValContent()+itemsValEO.getItemContent() + "\n");
|
||||
valContent.add(lastOne);
|
||||
} else if ("TABLE".equals(type)) {
|
||||
String tableName = String.valueOf(tableIndex);
|
||||
lastOne.setValContent("tableSheet" + tableName);
|
||||
//查询table信息
|
||||
SarFileSplitItemsTableEOPage tablePage = new SarFileSplitItemsTableEOPage();
|
||||
tablePage.setItemsValId(itemsValEO.getId());
|
||||
valContent.add(lastOne);
|
||||
// List<List<SarFileSplitItemsTableEO>> tableList = combineTableList(itemsValEO);
|
||||
FileSpiltValTableExportDto tableExportDto = new FileSpiltValTableExportDto();
|
||||
tableExportDto.setTableName("tableSheet" + tableName);
|
||||
// tableExportDto.setTableEOList(tableList);
|
||||
tableExportDto.setTableHtCon(itemsValEO.getItemContent());
|
||||
allTableList.add(tableExportDto);
|
||||
tableIndex++;
|
||||
page.setTableIndex(tableIndex);
|
||||
} else if ("IMG".equals(type)) {
|
||||
String imgContent = itemsValEO.getItemContent();
|
||||
String imgUUIndex = "img" + String.valueOf(imgIndex);
|
||||
if (StringUtils.isNotEmpty(imgContent)){
|
||||
int pathIndex = imgContent.indexOf("src='uploadPath");
|
||||
if (pathIndex > -1 && imgContent.length()>(pathIndex+16)) {
|
||||
String imgPath = imgContent.substring(pathIndex+16,imgContent.length()-2);
|
||||
String imgName = imgUUIndex + "-" +imgPath.substring(imgPath.lastIndexOf("/")+1,imgPath.length());
|
||||
lastOne.setValContent(imgUUIndex+".png");
|
||||
valContent.add(lastOne);
|
||||
FileSplitValImgExportDto fileSplitValImgExportDto = new FileSplitValImgExportDto();
|
||||
fileSplitValImgExportDto.setImgName(imgUUIndex+".png");
|
||||
if (StringUtils.isNotEmpty(itemsValEO.getImgName())) {
|
||||
fileSplitValImgExportDto.setImgPath(itemsValEO.getImgName());
|
||||
} else {
|
||||
fileSplitValImgExportDto.setImgPath(imgPath);
|
||||
}
|
||||
allImgList.add(fileSplitValImgExportDto);
|
||||
imgIndex++;
|
||||
page.setImgIndex(imgIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
preType = itemsValEO.getType();
|
||||
}
|
||||
}
|
||||
return valContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downLoadImgList(List<FileSplitValImgExportDto> allImgList, String fileNowPath) throws IOException {
|
||||
for(FileSplitValImgExportDto imgExportDto : allImgList){
|
||||
String oldPath = uploadFilePath+ "/" + imgExportDto.getImgPath();
|
||||
String newPath = fileNowPath + "/" + imgExportDto.getImgName();
|
||||
File oldFile = new File(oldPath);
|
||||
if (oldFile.exists()){
|
||||
copyFile1(oldPath, newPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downLoadFileList(List<AttFileEO> attfileEo, String fileNowPath) throws IOException {
|
||||
for(AttFileEO fileExportDto : attfileEo){
|
||||
String oldPath = uploadFilePath+ "/" + fileExportDto.getFilePath() + fileExportDto.getFileName();
|
||||
String newPath = fileNowPath + "/" + fileExportDto.getOldFileName();
|
||||
File oldFile = new File(oldPath);
|
||||
if (oldFile.exists()){
|
||||
copyFile1(oldPath, newPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public ResponseMessage<SarFileSplitItemsEO> importSplitItems(List<SarFileSplitItemsImportDto> list, String filepath,
|
||||
SarFileSplitInfoEO sarFileSplitInfoEO, List<SplitTableInfo> getSheetTableList) {
|
||||
//此处需要做各种验证,数据库操作
|
||||
try {
|
||||
String infoId = null;
|
||||
if (StringUtils.isNotBlank(sarFileSplitInfoEO.getInfoId())){
|
||||
infoId = sarFileSplitInfoEO.getInfoId();
|
||||
sarFileSplitInfoEO.setInfoId(null);
|
||||
}else {
|
||||
infoId = UUIDUtils.randomUUID20();
|
||||
}
|
||||
//验证导入数据是否符合规则
|
||||
Map map = validateImportDatas(list,filepath);
|
||||
boolean isOk = (boolean) map.get("result");
|
||||
if (!isOk) {
|
||||
//验证没有通过
|
||||
String message = (String) map.get("message");
|
||||
return Result.error("fail", message);
|
||||
}
|
||||
//将导入数据循环合并整理后 新增至相应表
|
||||
list = (List<SarFileSplitItemsImportDto>) map.get("resultList");
|
||||
int countSuccess = 0;
|
||||
// 最终添加的数据
|
||||
List<SarFileSplitItemsEO> addItemsEOList = new ArrayList<>();
|
||||
int itemNum = 0;
|
||||
String firstId = UUIDUtils.randomUUID20();
|
||||
String menuid = sarFileSplitInfoEO.getMenuId();
|
||||
if (null == menuid) {
|
||||
SarFileSplitItemsEO firstItem = new SarFileSplitItemsEO();
|
||||
firstItem.setId(firstId);
|
||||
firstItem.setItemsNum("总目录");
|
||||
firstItem.setValidFlag(0);
|
||||
firstItem.setCreationTime(new Date());
|
||||
firstItem.setModifyTime(new Date());
|
||||
addItemsEOList.add(firstItem); //新的总目录家在了添加的list中 当前仅一条
|
||||
}
|
||||
|
||||
for (SarFileSplitItemsImportDto importDto : list) { //遍历传入的值
|
||||
//判断此行数据是否全部为空,是则不读取
|
||||
if(checkObjAllFieldsIsNull(importDto)){
|
||||
continue;
|
||||
}
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = new SarFileSplitItemsEO();
|
||||
BeanUtils.copyProperties(importDto, sarFileSplitItemsEO);
|
||||
sarFileSplitItemsEO.setInfoId(infoId);
|
||||
List<SarFileSplitItemsValEO> addItemValList = new ArrayList<>();
|
||||
if (addItemsEOList != null && !addItemsEOList.isEmpty()) {
|
||||
SarFileSplitItemsEO oldItems = addItemsEOList.get(addItemsEOList.size()-1);
|
||||
if (itemNum > 0 && sarFileSplitItemsEO.getItemsNum().equals(oldItems.getItemsNum())
|
||||
&& sarFileSplitItemsEO.getItemsName().equals(oldItems.getItemsName())) {
|
||||
addItemValList = oldItems.getItemValEOList();
|
||||
String itemContent = oldItems.getItermsConditions()+sarFileSplitItemsEO.getItermsConditions();
|
||||
oldItems.setItermsConditions(itemContent);
|
||||
if(StringUtils.isBlank(sarFileSplitItemsEO.getItermsConditions())){
|
||||
continue;
|
||||
}
|
||||
String[] valArr = sarFileSplitItemsEO.getItermsConditions().split("\n");
|
||||
if (valArr != null && valArr.length > 0) {
|
||||
for (int i=0;i<valArr.length;i++) {
|
||||
SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO();
|
||||
boolean isText = true;
|
||||
if (getSheetTableList != null && !getSheetTableList.isEmpty()) {
|
||||
for (SplitTableInfo splitTableInfo : getSheetTableList) {
|
||||
if (splitTableInfo.getTableName().equals(valArr[i])) {
|
||||
isText = false;
|
||||
valEO.setType("TABLE");
|
||||
valEO.setItemContent(splitTableInfo.getTableHtml());
|
||||
}
|
||||
}
|
||||
}
|
||||
List<File> nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]);
|
||||
if (nowfilelist != null && !nowfilelist.isEmpty()) {
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
}
|
||||
}
|
||||
if (isText) {
|
||||
valEO.setType("TEXT");
|
||||
valEO.setItemContent(valArr[i]);
|
||||
}
|
||||
addItemValList.add(valEO);
|
||||
}
|
||||
}
|
||||
oldItems.setItemValEOList(addItemValList);
|
||||
}else {
|
||||
String[] valArr = sarFileSplitItemsEO.getItermsConditions().split("\n");
|
||||
if (valArr != null && valArr.length > 0) {
|
||||
for (int i=0;i<valArr.length;i++) {
|
||||
SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO();
|
||||
boolean isText = true;
|
||||
if (getSheetTableList != null && !getSheetTableList.isEmpty()) {
|
||||
for (SplitTableInfo splitTableInfo : getSheetTableList) {
|
||||
if (splitTableInfo.getTableName().equals(valArr[i])) {
|
||||
isText = false;
|
||||
valEO.setType("TABLE");
|
||||
valEO.setItemContent(splitTableInfo.getTableHtml());
|
||||
}
|
||||
}
|
||||
}
|
||||
List<File> nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]);
|
||||
if (nowfilelist != null && !nowfilelist.isEmpty()) {
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
}
|
||||
}
|
||||
if (isText) {
|
||||
valEO.setType("TEXT");
|
||||
valEO.setItemContent(valArr[i]);
|
||||
}
|
||||
addItemValList.add(valEO);
|
||||
}
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(addItemValList);
|
||||
addItemsEOList.add(sarFileSplitItemsEO);
|
||||
}
|
||||
} else {
|
||||
String[] valArr = sarFileSplitItemsEO.getItermsConditions().split("\n");
|
||||
if (valArr != null && valArr.length > 0) {
|
||||
for (int i=0;i<valArr.length;i++) {
|
||||
SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO();
|
||||
boolean isText = true;
|
||||
if (getSheetTableList != null && !getSheetTableList.isEmpty()) {
|
||||
for (SplitTableInfo splitTableInfo : getSheetTableList) {
|
||||
if (splitTableInfo.getTableName().equals(valArr[i])) {
|
||||
isText = false;
|
||||
valEO.setType("TABLE");
|
||||
valEO.setItemContent(splitTableInfo.getTableHtml());
|
||||
}
|
||||
}
|
||||
}
|
||||
List<File> nowfilelist = FileUnZip.readFileByFilename(filepath, valArr[i]);
|
||||
if (nowfilelist != null && !nowfilelist.isEmpty()) {
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
}
|
||||
}
|
||||
if (isText) {
|
||||
valEO.setType("TEXT");
|
||||
valEO.setItemContent(valArr[i]);
|
||||
}
|
||||
addItemValList.add(valEO);
|
||||
}
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(addItemValList);
|
||||
addItemsEOList.add(sarFileSplitItemsEO);
|
||||
}
|
||||
itemNum++;
|
||||
}
|
||||
|
||||
//导入拆分结果前首先新增拆分条目
|
||||
if (StringUtils.isBlank(menuid)) {
|
||||
sarFileSplitInfoEO.setCreationTime(new Date());
|
||||
sarFileSplitInfoEO.setModifyTime(new Date());
|
||||
sarFileSplitInfoEO.setId(infoId);
|
||||
sarFileSplitInfoEO.setValidFlag(0);
|
||||
sarFileSplitInfoEO.setResult("1");
|
||||
sarFileSplitInfoEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitInfoEOService.insertSelective(sarFileSplitInfoEO);
|
||||
}
|
||||
|
||||
Map<String, String> menuPidMap = new HashMap<>();
|
||||
//默认为总目录了
|
||||
if (StringUtils.isBlank(menuid)) {
|
||||
menuPidMap.put("总目录", firstId);
|
||||
}else{
|
||||
menuPidMap.put("总目录",menuid );
|
||||
}
|
||||
for (SarFileSplitItemsEO itemsEO : addItemsEOList) {
|
||||
String menuIdT = createItemsInfo(itemsEO,infoId,countSuccess,menuPidMap);
|
||||
menuPidMap.put(itemsEO.getItemsNum(),menuIdT);
|
||||
countSuccess++;
|
||||
}
|
||||
//统计成功结果需要去掉总目录这条数据
|
||||
String msg = "成功导入" + (countSuccess-1) + "条";
|
||||
return Result.success("0", msg, null);
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(),e);
|
||||
return Result.error("导入失败");
|
||||
}
|
||||
}
|
||||
|
||||
public String createItemsInfo(SarFileSplitItemsEO sarFileSplitItemsEO,String infoId,int countNum,Map<String,String> menuPMap){
|
||||
String userId = LoginUserUtil.getUserId();
|
||||
//创建菜单
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setInfoId(infoId);
|
||||
sarFileSplitMenuEO.setName(sarFileSplitItemsEO.getItemsNum());
|
||||
sarFileSplitMenuEO.setItemName(sarFileSplitItemsEO.getItemsName());
|
||||
//获取父节点id
|
||||
String menuNm = sarFileSplitItemsEO.getItemsNum();
|
||||
if(menuNm.indexOf(".") > 0){
|
||||
menuNm = menuNm.substring(0,menuNm.lastIndexOf("."));
|
||||
sarFileSplitMenuEO.setpId(menuPMap.get(menuNm));
|
||||
}else if("总目录".equalsIgnoreCase(menuNm)){
|
||||
sarFileSplitMenuEO.setPId("");
|
||||
}else{
|
||||
sarFileSplitMenuEO.setpId(menuPMap.get("总目录"));
|
||||
}
|
||||
|
||||
sarFileSplitMenuEO.setDisplaySeq(countNum+1L);
|
||||
sarFileSplitMenuEO.setCreationUser(userId);
|
||||
sarFileSplitMenuEO.setModifyUser(userId);
|
||||
String menuId = sarFileSplitMenuEOService.addMenuForImport(sarFileSplitMenuEO);
|
||||
//添加items表数据
|
||||
String itemsId = UUIDUtils.randomUUID20();
|
||||
sarFileSplitItemsEO.setId(itemsId);
|
||||
sarFileSplitItemsEO.setMenuId(menuId);
|
||||
sarFileSplitItemsEO.setValidFlag(0);
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(userId);
|
||||
dao.insertSelective(sarFileSplitItemsEO);
|
||||
//添加val表数据
|
||||
List<SarFileSplitItemsValEO> getValList = sarFileSplitItemsEO.getItemValEOList();
|
||||
int ind = 1;
|
||||
if (getValList != null && !getValList.isEmpty()) {
|
||||
for (SarFileSplitItemsValEO valEO : getValList) {
|
||||
// 当前段内容
|
||||
String valContent = "";
|
||||
if ("TEXT".equals(valEO.getType())) {
|
||||
valContent = "<p>" + valEO.getItemContent() + "</p>";
|
||||
} else if ("IMG".equals(valEO.getType())) {
|
||||
valContent = "<img class=\'wordImg\' src=\''+ valEO.getItemContent() +'\'>";
|
||||
} else if ("TABLE".equals(valEO.getType())) {
|
||||
valContent = valEO.getItemContent();
|
||||
}
|
||||
// val表信息
|
||||
valEO.setId(UUIDUtils.randomUUID20());
|
||||
valEO.setItemId(itemsId);
|
||||
valEO.setDisplaySeq(ind);
|
||||
valEO.setValidFlag(0);
|
||||
valEO.setCreationTime(new Date());
|
||||
valEO.setModifyTime(new Date());
|
||||
valEO.setCreationUser(userId);
|
||||
valEO.setModifyUser(userId);
|
||||
ind++;
|
||||
}
|
||||
sarFileSplitItemsValEODao.insertForeach(getValList);
|
||||
}
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public Map validateImportDatas(List<SarFileSplitItemsImportDto> datas, String filepath) throws Exception {
|
||||
//存放数据验证结果信息
|
||||
List<String> stringMessage = new ArrayList<>();
|
||||
List<String> claimStypelist = new ArrayList<>();
|
||||
List<String> foList=new ArrayList<>();
|
||||
List<String> dutyEngineerList=new ArrayList<>();
|
||||
int i = 1; //记录行号
|
||||
int num = 0; //记录是第几条数据
|
||||
//循环验证数据
|
||||
for (SarFileSplitItemsImportDto dto : datas) {
|
||||
i++;
|
||||
int countError = 0; //记录失败数据数量
|
||||
DicTypeEO dic = new DicTypeEO();
|
||||
List<DicTypeEO> getDic = new ArrayList<>();
|
||||
String errorMsg = "第" + i + "行:";
|
||||
//关联文件已经删除了
|
||||
// dto.setRelevanceFileName(dto.getRelevanceFile());
|
||||
if (num > 0 && StringUtils.isEmpty(dto.getItemsNum()) && StringUtils.isEmpty(dto.getItemsName())) {
|
||||
String nowItemContent = dto.getItermsConditions();
|
||||
BeanUtils.copyProperties(datas.get(num-1), dto);
|
||||
dto.setItermsConditions(nowItemContent);
|
||||
// dto.setRelevanceFile(dto.getRelevanceFileName());
|
||||
}
|
||||
if (StringUtils.isEmpty(dto.getItemsNum())) {
|
||||
errorMsg += "条款号不能为空;";
|
||||
countError++;
|
||||
} else {
|
||||
if (dto.getItemsNum().length()>100) {
|
||||
errorMsg += "条款号不能超过100个字符;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
if (StringUtils.isEmpty(dto.getItemsName())) {
|
||||
errorMsg += "条款名称不能为空;";
|
||||
countError++;
|
||||
} else {
|
||||
if (dto.getItemsName().length()>100) {
|
||||
errorMsg += "条款名称不能超过100个字符;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
String saveApplyCode = "";
|
||||
if (StringUtils.isNotEmpty(dto.getApplyArctic())) {
|
||||
dto.setApplyArctic(dto.getApplyArctic().replace(",", ","));
|
||||
String applys[] = dto.getApplyArctic().split(",");
|
||||
if(applys.length>20){
|
||||
errorMsg += "适用车型选项不能超过20个;";
|
||||
countError++;
|
||||
} else if (dto.getApplyArctic().length() > 500) {
|
||||
errorMsg += "适用车型不能超过500个字符;";
|
||||
countError++;
|
||||
} else {
|
||||
Set set = new HashSet();
|
||||
for (int a = 0; a < applys.length; a++) {
|
||||
dic.setDicTypeName(applys[a]);
|
||||
dic.setDicTypeCode("ENERGYTYPES");
|
||||
getDic = dicTypeEODao.getDicTypeByDicTypeName(dic);
|
||||
if (getDic.size() == 1) {
|
||||
saveApplyCode += getDic.get(0).getDicTypeCode() + ",";
|
||||
} else if (getDic.size() > 0) {
|
||||
errorMsg += "适用车型" + applys[a] + "不明确;";
|
||||
countError++;
|
||||
break;
|
||||
} else {
|
||||
errorMsg += "适用车型" + applys[a] + "不存在;";
|
||||
countError++;
|
||||
break;
|
||||
}
|
||||
set.add(applys[a]);
|
||||
if (a==applys.length-1 && applys.length != set.size()){
|
||||
errorMsg += "适用车型存在重复数据;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
if (!saveApplyCode.equals("")){
|
||||
dto.setApplyArctic(saveApplyCode.substring(0,saveApplyCode.length()-1));
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!claimStypelist.contains(dto.getClaimType())) {
|
||||
if (StringUtils.isNotEmpty(dto.getClaimType())) {
|
||||
dic.setDicTypeName(dto.getClaimType());
|
||||
dic.setDicTypeCode("REQUESTTYPE");
|
||||
if (dto.getClaimType().length() > 500) {
|
||||
errorMsg += "要求类型不能超过500个字符;";
|
||||
countError++;
|
||||
} else {
|
||||
getDic = dicTypeEODao.getDicTypeByDicTypeName(dic);
|
||||
Set set = new HashSet();
|
||||
if (getDic != null) {
|
||||
if (getDic.size() == 1) {
|
||||
dto.setClaimType(getDic.get(0).getDicTypeCode());
|
||||
claimStypelist.add(getDic.get(0).getDicTypeCode());
|
||||
} else if (getDic.size() > 0) {
|
||||
errorMsg += "要求类型不明确;";
|
||||
countError++;
|
||||
} else {
|
||||
errorMsg += "要求类型不存在;";
|
||||
countError++;
|
||||
}
|
||||
} else {
|
||||
errorMsg += "要求类型不存在;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotEmpty(dto.getItermsConditions())){
|
||||
if(dto.getItermsConditions().length() > 50000){
|
||||
errorMsg += "内容简介不能超过50000个字符;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
if(!foList.contains(dto.getFo())) {
|
||||
if (StringUtils.isNotEmpty(dto.getFo())) {
|
||||
if (dto.getFo().length() > 200) {
|
||||
errorMsg += "FO不能超过200个字符;";
|
||||
countError++;
|
||||
} else {
|
||||
String uname = roleEODao.getIdsByNames(dto.getFo().split(","));
|
||||
if (StringUtils.isNotBlank(uname)) {
|
||||
dto.setFo(uname);
|
||||
foList.addAll(Arrays.asList(uname.split(",")));
|
||||
} else {
|
||||
errorMsg += "FO不存在;";
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!dutyEngineerList.contains(dto.getDutyEngineer())) {
|
||||
if (StringUtils.isNotEmpty(dto.getDutyEngineer())) {
|
||||
if (dto.getDutyEngineer().length() > 100) {
|
||||
errorMsg += "责任工程师不能超过100个字符;";
|
||||
countError++;
|
||||
} else {
|
||||
String emList = roleEODao.getIdsByNames(dto.getDutyEngineer().split(","));
|
||||
if (StringUtils.isNotBlank(emList)) {
|
||||
dto.setDutyEngineer(emList);
|
||||
dutyEngineerList.addAll(Arrays.asList(dto.getDutyEngineer().split(",")));
|
||||
} else {
|
||||
errorMsg += "系统中没有用户:" + dto.getDutyEngineer();
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotEmpty(dto.getSvpps())){
|
||||
if(dto.getSvpps().length() > 200){
|
||||
errorMsg += "SVPPS不能超过200个字符;";
|
||||
countError++;
|
||||
}else {
|
||||
String svppsShow = sysInfoEOService.getSvppsIdByName(dto.getSvpps());
|
||||
dto.setSvpps(svppsShow);
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotEmpty(dto.getBusStandCover())){
|
||||
if(dto.getBusStandCover().length() > 200){
|
||||
errorMsg += "企标覆盖关系不能超过200个字符;";
|
||||
countError++;
|
||||
}else {
|
||||
List<DicTypeEO> getDicType = dicTypeEODao.getDicTypeByDicCode("BZFGGXOUIUJ");
|
||||
for (DicTypeEO dicTypeEO:getDicType) {
|
||||
if (dicTypeEO.getDicTypeName().equals(dto.getBusStandCover())){
|
||||
dto.setBusStandCover(dicTypeEO.getDicTypeCode());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotBlank(dto.getResponsibleUnit())){
|
||||
if(dto.getResponsibleUnit().length() > 100){
|
||||
errorMsg += "责任部门不能超过100个字符;";
|
||||
countError++;
|
||||
}else {
|
||||
String id = sysInfoEOService.getOrgIdByName(dto.getResponsibleUnit(),"DEPART");
|
||||
if(StringUtils.isNotBlank(id)){
|
||||
dto.setResponsibleUnit(id);
|
||||
} else {
|
||||
errorMsg += "系统中没有部门"+dto.getResponsibleUnit();
|
||||
countError++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (countError > 0) {
|
||||
stringMessage.add(errorMsg);
|
||||
}
|
||||
num++;
|
||||
}
|
||||
Map map = new HashMap();
|
||||
if (stringMessage.isEmpty()) {
|
||||
map.put("result", true);
|
||||
map.put("resultList", datas);
|
||||
map.put("message", "");
|
||||
} else {
|
||||
map.put("result", false);
|
||||
String html = "";
|
||||
if (stringMessage.size()>0){
|
||||
html = StringUtils.join(stringMessage,"</br>");
|
||||
}
|
||||
map.put("message", html);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void combineItems(String ids) {
|
||||
String userId = UserUtils.getUserId();
|
||||
String[] idArr = ids.split(",");
|
||||
SarFileSplitItemsEOPage page = new SarFileSplitItemsEOPage();
|
||||
page.setIdList(Arrays.asList(idArr));
|
||||
page.setValidFlag("0");
|
||||
page.setPageSize(1000);
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
List<SarFileSplitItemsEO> getList = dao.queryByPage(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
// 最终合并后的条款
|
||||
SarFileSplitItemsEO resultItem = getList.get(0);
|
||||
String reaultItemId = resultItem.getId();
|
||||
// 合并所有条款内容
|
||||
StringBuilder resultContent = new StringBuilder();
|
||||
resultContent.append(resultItem.getItermsConditions());
|
||||
// 合并所有val表内容
|
||||
List<SarFileSplitItemsValEO> resultValList = new ArrayList<>();
|
||||
SarFileSplitItemsValEOPage valEOPage = new SarFileSplitItemsValEOPage();
|
||||
valEOPage.setItemId(reaultItemId);
|
||||
List<SarFileSplitItemsValEO> valList = sarFileSplitItemsValEODao.queryByList(valEOPage);
|
||||
resultValList.addAll(valList);
|
||||
// 保存所有合并后需要删掉的条款id
|
||||
List<String> delIds = new ArrayList<>();
|
||||
List<String> delMenuIds = new ArrayList<>();
|
||||
for (int i = 1; i < getList.size(); i++) {
|
||||
SarFileSplitItemsEO itemsEO = getList.get(i);
|
||||
delIds.add(itemsEO.getId());
|
||||
delMenuIds.add(itemsEO.getMenuId());
|
||||
String itemContent = "<p>" + itemsEO.getItemsNum() + "</p>" + itemsEO.getItermsConditions();
|
||||
resultContent.append(itemContent);
|
||||
SarFileSplitItemsValEO valEO = new SarFileSplitItemsValEO();
|
||||
valEO.setItemId(reaultItemId);
|
||||
valEO.setType("TEXT");
|
||||
valEO.setItemContent(itemsEO.getItemsNum());
|
||||
valEO.setId(UUIDUtils.randomUUID20());
|
||||
valEO.setValidFlag(0);
|
||||
valEO.setCreationTime(new Date());
|
||||
valEO.setModifyTime(new Date());
|
||||
valEO.setCreationUser(userId);
|
||||
valEO.setModifyUser(userId);
|
||||
resultValList.add(valEO);
|
||||
SarFileSplitItemsValEOPage valEOPage1 = new SarFileSplitItemsValEOPage();
|
||||
valEOPage1.setItemId(itemsEO.getId());
|
||||
List<SarFileSplitItemsValEO> valList1 = sarFileSplitItemsValEODao.queryByList(valEOPage1);
|
||||
resultValList.addAll(valList1);
|
||||
}
|
||||
// 开始进行合并数据处理
|
||||
changeInfos(resultContent, reaultItemId, delMenuIds, delIds, resultValList);
|
||||
}
|
||||
}
|
||||
|
||||
public void changeInfos (StringBuilder resultContent,String reaultItemId,List<String> delMenuIds,List<String> delIds,List<SarFileSplitItemsValEO> resultValList) {
|
||||
//1.更新最终合并的条款内容
|
||||
if (resultContent != null) {
|
||||
SarFileSplitItemsEO newItems = new SarFileSplitItemsEO();
|
||||
newItems.setId(reaultItemId);
|
||||
newItems.setItermsConditions(resultContent.toString());
|
||||
dao.updateByPrimaryKeySelective(newItems);
|
||||
}
|
||||
// 2.删除多余节点数据
|
||||
if (delMenuIds != null && !delMenuIds.isEmpty()) {
|
||||
sarFileSplitMenuEODao.deleteByIdList(delMenuIds);
|
||||
}
|
||||
// 3.删除多余条款及val表数据
|
||||
if (delIds != null && !delIds.isEmpty()) {
|
||||
dao.deleteByItemsIdList(delIds);
|
||||
delIds.add(reaultItemId);
|
||||
sarFileSplitItemsValEODao.deleteValByitemIds(delIds);
|
||||
}
|
||||
// 4.保存新的val表数据
|
||||
if (resultValList != null && !resultValList.isEmpty()) {
|
||||
int ind = 0;
|
||||
for (SarFileSplitItemsValEO valEO : resultValList) {
|
||||
ind++;
|
||||
valEO.setItemId(reaultItemId);
|
||||
valEO.setDisplaySeq(ind);
|
||||
}
|
||||
sarFileSplitItemsValEODao.insertForeach(resultValList);
|
||||
}
|
||||
}
|
||||
|
||||
public static void copyFile1(String srcPath, String destPath) throws IOException {
|
||||
// 打开输入流
|
||||
FileInputStream fis = new FileInputStream(srcPath);
|
||||
// 打开输出流
|
||||
FileOutputStream fos = new FileOutputStream(destPath);
|
||||
// 读取和写入信息
|
||||
int len = 0;
|
||||
while ((len = fis.read()) != -1) {
|
||||
fos.write(len);
|
||||
}
|
||||
// 关闭流 先开后关 后开先关
|
||||
fos.close(); // 后开先关
|
||||
fis.close(); // 先开后关
|
||||
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsParamsEODao;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitItemsParamsEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsParamsEOServiceImpl implements SarFileSplitItemsParamsEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsParamsEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsEODao sarFileSplitItemsParamsEODao;
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage paramPage) {
|
||||
return sarFileSplitItemsParamsEODao.queryByList(paramPage);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitItemsTableEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsTableEOServiceImpl implements SarFileSplitItemsTableEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsTableEOServiceImpl.class);
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsValEODao;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitItemsValEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsValEOServiceImpl implements SarFileSplitItemsValEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsValEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEODao sarFileSplitItemsValEODao;
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage valEOPage) {
|
||||
return sarFileSplitItemsValEODao.queryByList(valEOPage);
|
||||
}
|
||||
}
|
||||
+452
@@ -0,0 +1,452 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.slrs.standardSplit.dao.*;
|
||||
import com.adc.da.slrs.standardSplit.entity.*;
|
||||
import com.adc.da.slrs.standardSplit.service.SarFileSplitMenuEOService;
|
||||
import com.adc.da.sys.util.LoginUserUtil;
|
||||
import com.adc.da.sys.util.UUIDUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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.*;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitMenuEOServiceImpl implements SarFileSplitMenuEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitMenuEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitMenuEODao dao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsEODao sarFileSplitItemsEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEODao sarFileSplitItemsValEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEODao sarFileSplitItemsTableEODao;
|
||||
@Autowired
|
||||
private SarFileSplitMenuEODao SarFileSplitMenuEODao;
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsEODao sarFileSplitItemsParamsEODao;
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitMenuEO> queryByPage(BasePage page){
|
||||
return SarFileSplitMenuEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page){
|
||||
return SarFileSplitMenuEODao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitMenuEO selectByPrimaryKey(String id){
|
||||
return SarFileSplitMenuEODao.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int addMenu(SarFileSplitMenuEO sarFileSplitMenuEO){
|
||||
sarFileSplitMenuEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitMenuEO.setValidFlag(0);
|
||||
sarFileSplitMenuEO.setCreationTime(new Date());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
int count = dao.insertSelective(sarFileSplitMenuEO);
|
||||
// 之后的所有节点序号增加
|
||||
SarFileSplitMenuEOPage page = new SarFileSplitMenuEOPage();
|
||||
page.setPId(sarFileSplitMenuEO.getPId());
|
||||
List<SarFileSplitMenuEO> getList = dao.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for(SarFileSplitMenuEO menu : getList){
|
||||
Long olgSeq = menu.getDisplaySeq();
|
||||
if (olgSeq >= sarFileSplitMenuEO.getDisplaySeq()) {
|
||||
menu.setDisplaySeq(olgSeq + 1);
|
||||
dao.updateByPrimaryKeySelective(menu);
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitMenuEO sarFileSplitMenuEO){
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMenu(String id) {
|
||||
List<String> menuIds = new ArrayList<>();
|
||||
menuIds.add(id);
|
||||
// 删除节点及子节点
|
||||
List<String> ids = dao.getChild(id);
|
||||
if(ids!=null && !ids.isEmpty()){
|
||||
dao.deleteByPId(ids);
|
||||
sarFileSplitItemsValEODao.deleteValByMenuIds(ids);
|
||||
sarFileSplitItemsTableEODao.deleteTableByMenuIds(ids);
|
||||
sarFileSplitItemsEODao.deleteByMenuIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int dragMenu(DrageMenuEO drageMenuEO) {
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setInfoId(drageMenuEO.getInfoId());
|
||||
sarFileSplitMenuEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setId(drageMenuEO.getMenuId());
|
||||
int result = 0;
|
||||
if (drageMenuEO.getMoveType().equals("inner")) {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetMenuId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getTargetMenuDisplay()+1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-drageMenuEO.getTargetMenuDisplay()-1;
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()+1);
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getMenuDisplay()+childrenCount-1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getTargetMenuDisplay());
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getTargetMenuDisplay()-childrenCount+1- drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()-childrenCount+1);
|
||||
}
|
||||
} else if (drageMenuEO.getMoveType().equals("prev")) {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetParentId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getTargetMenuDisplay());
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-drageMenuEO.getTargetMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay());
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getMenuDisplay()+childrenCount-1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getTargetMenuDisplay()-1);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getTargetMenuDisplay()- childrenCount - drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()-childrenCount);
|
||||
}
|
||||
|
||||
} else {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetParentId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人 往上移动
|
||||
// 查询目标最大的排序
|
||||
long targetDisplay = getMaxDisplayByid(drageMenuEO.getTargetMenuId());
|
||||
// 查询移动节点包括子节点一共有多少个
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(targetDisplay+1);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-targetDisplay-1;
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(targetDisplay+1);
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人 往下移动
|
||||
// 如果该节点下有字节点,寻找该节点包括所有子节点的最大排序
|
||||
// 查询目标最大的排序
|
||||
long targetDisplay = getMaxDisplayByid(drageMenuEO.getTargetMenuId());
|
||||
long menuMaxDisplay = getMaxDisplayByid(drageMenuEO.getMenuId());
|
||||
// 查询移动节点包括子节点一共有多少个
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(menuMaxDisplay);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(targetDisplay);
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = targetDisplay-childrenCount+1 - drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(targetDisplay-childrenCount+1);
|
||||
// 修改字节的的排序
|
||||
}
|
||||
}
|
||||
// 修改当前节点,父亲Id,排序,修改时间,修改人
|
||||
result += dao.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
return result;
|
||||
}
|
||||
|
||||
// 通过ID查询该结点及结点下所有的节点排序的最大值
|
||||
public int getMaxDisplayByid(String menuID) {
|
||||
return dao.getMaxDisplayByid(menuID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
boolean result = false; //true 表示有记录,false表示无记录
|
||||
//先判断目录下是否有子节点
|
||||
List<SarFileSplitMenuEO> list = dao.queryByPidExcpetSelf(sarMenuEO);
|
||||
if(list.size()<=0){
|
||||
//再查节点下是否有标准,法规,企业标准记录
|
||||
SarFileSplitItemsEOPage itemEO = new SarFileSplitItemsEOPage();
|
||||
itemEO.setMenuId(sarMenuEO.getId());
|
||||
itemEO.setValidFlag("0");
|
||||
List<SarFileSplitItemsEO> listresult = sarFileSplitItemsEODao.queryByList(itemEO);
|
||||
if(listresult !=null && listresult.size()>0){
|
||||
result=true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
result=true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int copyMenu (SarFileSplitMenuEO sarMenuEO) {
|
||||
int result = 0;
|
||||
// 用来存放item的新旧ID,key:旧ID,value:新ID
|
||||
Map itemIdMap = new HashMap<>();
|
||||
List<String> oldItemIdList = new ArrayList<>();
|
||||
Map itemValIdMap = new HashMap<>();
|
||||
Map menuIdMap = new HashMap<>();
|
||||
// 根据目录ID查询相关信息
|
||||
sarMenuEO = dao.selectByPrimaryKey(sarMenuEO.getId());
|
||||
// 查询该节点下所有的 子节点 并修改排序
|
||||
List<SarFileSplitMenuEO> sarFileSplitMenuEOList = dao.queryAllChildrenByid(sarMenuEO);
|
||||
int maxDisplay = dao.getMaxDisplayByid(sarMenuEO.getId());
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(Long.valueOf(maxDisplay + 1));
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(10000L);
|
||||
sarFileSplitMenuEO.setChildrenCount(Long.valueOf(sarFileSplitMenuEOList.size()));
|
||||
sarFileSplitMenuEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setInfoId(sarMenuEO.getInfoId());
|
||||
dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
for (SarFileSplitMenuEO sarFileSplitMenuEOfor : sarFileSplitMenuEOList) {
|
||||
menuIdMap.put(sarFileSplitMenuEOfor.getId(),UUIDUtils.randomUUID20());
|
||||
}
|
||||
for (SarFileSplitMenuEO sarFileSplitMenuEOfor : sarFileSplitMenuEOList) {
|
||||
sarFileSplitMenuEOfor.setId(menuIdMap.get(sarFileSplitMenuEOfor.getId()).toString());
|
||||
if (menuIdMap.containsKey(sarFileSplitMenuEOfor.getpId())){
|
||||
sarFileSplitMenuEOfor.setpId(menuIdMap.get(sarFileSplitMenuEOfor.getpId()).toString());
|
||||
}
|
||||
sarFileSplitMenuEOfor.setDisplaySeq(sarFileSplitMenuEOfor.getDisplaySeq() + sarFileSplitMenuEOList.size());
|
||||
sarFileSplitMenuEOfor.setCreationTime(new Date());
|
||||
sarFileSplitMenuEOfor.setModifyTime(new Date());
|
||||
sarFileSplitMenuEOfor.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitMenuEOfor.setModifyUser(LoginUserUtil.getUserId());
|
||||
}
|
||||
// SAR_FILE_ITEMS_MENU 添加数据,
|
||||
result = dao.insertForeach(sarFileSplitMenuEOList);
|
||||
// SAR_FILE_ITEMS 添加数据,
|
||||
List<SarFileSplitItemsEO> sarFileSplitItemsEOList = sarFileSplitItemsEODao.queryItemsByMenuId(sarMenuEO.getId());
|
||||
for (SarFileSplitItemsEO sarFileSplitItemsEO : sarFileSplitItemsEOList) {
|
||||
String newItemId = UUIDUtils.randomUUID20();
|
||||
oldItemIdList.add(sarFileSplitItemsEO.getId());
|
||||
itemIdMap.put(sarFileSplitItemsEO.getId(), newItemId);
|
||||
sarFileSplitItemsEO.setId(newItemId);
|
||||
sarFileSplitItemsEO.setMenuId(menuIdMap.get(sarFileSplitItemsEO.getMenuId()).toString());
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
}
|
||||
result += sarFileSplitItemsEODao.insertForeach(sarFileSplitItemsEOList);
|
||||
// SAR_FILE_ITEMS_VAL 添加数据,
|
||||
List<SarFileSplitItemsValEO> sarFileSplitItemsValEOList = sarFileSplitItemsValEODao.queryItemsValByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : sarFileSplitItemsValEOList) {
|
||||
String newItemValId = UUIDUtils.randomUUID20();
|
||||
itemValIdMap.put(sarFileSplitItemsValEO.getId(), newItemValId);
|
||||
sarFileSplitItemsValEO.setId(newItemValId);
|
||||
sarFileSplitItemsValEO.setItemId(itemIdMap.get(sarFileSplitItemsValEO.getItemId()).toString());
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsValEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsValEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsValEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsValEOList.size()>0) {
|
||||
result += sarFileSplitItemsValEODao.insertForeach(sarFileSplitItemsValEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_PARAMS 添加数据,
|
||||
List<SarFileSplitItemsParamsEO> sarFileSplitItemsParamsEOList = sarFileSplitItemsParamsEODao.queryItemsParamsByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO : sarFileSplitItemsParamsEOList) {
|
||||
sarFileSplitItemsParamsEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsParamsEO.setItemId(itemIdMap.get(sarFileSplitItemsParamsEO.getItemId()).toString());
|
||||
sarFileSplitItemsParamsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsParamsEO.setModifyTime(new Date());
|
||||
}
|
||||
if (sarFileSplitItemsParamsEOList.size()>0){
|
||||
result += sarFileSplitItemsParamsEODao.insertForeach(sarFileSplitItemsParamsEOList);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int copyMenuNotChildren(SarFileSplitItemsEO sarFileSplitItemsEO) {
|
||||
int result =0;
|
||||
List<String> oldItemIdList = new ArrayList<>();
|
||||
Map itemValIdMap = new HashMap<>();
|
||||
oldItemIdList.add(sarFileSplitItemsEO.getId());
|
||||
|
||||
sarFileSplitItemsEO = sarFileSplitItemsEODao.selectByPrimaryKey(sarFileSplitItemsEO.getId());
|
||||
|
||||
// 查询该节点下所有的 子节点 并修改排序
|
||||
SarFileSplitMenuEO sarMenuEO = new SarFileSplitMenuEO();
|
||||
sarMenuEO.setId(sarFileSplitItemsEO.getMenuId());
|
||||
List<SarFileSplitMenuEO> sarFileSplitMenuEOList = dao.queryAllChildrenByid(sarMenuEO);
|
||||
sarMenuEO = dao.selectByPrimaryKey(sarMenuEO.getId());
|
||||
int maxDisplay = dao.getMaxDisplayByid(sarMenuEO.getId());
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(Long.valueOf(maxDisplay + 1));
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(10000L);
|
||||
sarFileSplitMenuEO.setChildrenCount(1L);
|
||||
sarFileSplitMenuEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setInfoId(sarFileSplitItemsEO.getInfoId());
|
||||
dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
|
||||
// SAR_FILE_ITEMS_MENU 添加数据,
|
||||
sarMenuEO.setId(UUIDUtils.randomUUID20());
|
||||
sarMenuEO.setDisplaySeq(Long.valueOf(maxDisplay + 1));
|
||||
sarMenuEO.setCreationTime(new Date());
|
||||
sarMenuEO.setModifyTime(new Date());
|
||||
sarMenuEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarMenuEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result = dao.insertSelective(sarMenuEO);
|
||||
|
||||
// SAR_FILE_ITEMS 添加数据,
|
||||
sarFileSplitItemsEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsEO.setMenuId(sarMenuEO.getId());
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
result += sarFileSplitItemsEODao.insertSelective(sarFileSplitItemsEO);
|
||||
|
||||
// SAR_FILE_ITEMS_VAL 添加数据,
|
||||
List<SarFileSplitItemsValEO> sarFileSplitItemsValEOList = sarFileSplitItemsValEODao.queryItemsValByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : sarFileSplitItemsValEOList) {
|
||||
String newItemValId = UUIDUtils.randomUUID20();
|
||||
itemValIdMap.put(sarFileSplitItemsValEO.getId(), newItemValId);
|
||||
sarFileSplitItemsValEO.setId(newItemValId);
|
||||
sarFileSplitItemsValEO.setItemId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsValEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsValEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
sarFileSplitItemsValEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsValEOList.size()>0) {
|
||||
result += sarFileSplitItemsValEODao.insertForeach(sarFileSplitItemsValEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_PARAMS 添加数据,
|
||||
List<SarFileSplitItemsParamsEO> sarFileSplitItemsParamsEOList = sarFileSplitItemsParamsEODao.queryItemsParamsByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO : sarFileSplitItemsParamsEOList) {
|
||||
sarFileSplitItemsParamsEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsParamsEO.setItemId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsParamsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsParamsEO.setModifyTime(new Date());
|
||||
}
|
||||
if (sarFileSplitItemsParamsEOList.size()>0){
|
||||
result += sarFileSplitItemsParamsEODao.insertForeach(sarFileSplitItemsParamsEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_TABLE 添加数据,
|
||||
List<SarFileSplitItemsTableEO> sarFileSplitItemsTableEOList = sarFileSplitItemsTableEODao.queryItemsTableByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsTableEO sarFileSplitItemsTableEO : sarFileSplitItemsTableEOList) {
|
||||
sarFileSplitItemsTableEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitItemsTableEO.setItemsId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsTableEO.setItemsValId(itemValIdMap.get(sarFileSplitItemsTableEO.getItemsValId()).toString());
|
||||
sarFileSplitItemsTableEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsTableEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsTableEO.setModifyUser(LoginUserUtil.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsTableEOList.size()>0){
|
||||
result += sarFileSplitItemsTableEODao.insertForeach(sarFileSplitItemsTableEOList);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String addMenuForImport(SarFileSplitMenuEO sarFileSplitMenuEO) {
|
||||
sarFileSplitMenuEO.setId(UUIDUtils.randomUUID20());
|
||||
sarFileSplitMenuEO.setValidFlag(0);
|
||||
sarFileSplitMenuEO.setCreationTime(new Date());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
int count = dao.insertSelective(sarFileSplitMenuEO);
|
||||
// 之后的所有节点序号增加
|
||||
/*SarFileSplitMenuEOPage page = new SarFileSplitMenuEOPage();
|
||||
page.setPId(sarFileSplitMenuEO.getPId());
|
||||
List<SarFileSplitMenuEO> getList = dao.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for(SarFileSplitMenuEO menu : getList){
|
||||
Long olgSeq = menu.getDisplaySeq();
|
||||
if (olgSeq >= sarFileSplitMenuEO.getDisplaySeq()) {
|
||||
menu.setDisplaySeq(olgSeq + 1);
|
||||
dao.updateByPrimaryKeySelective(menu);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
return sarFileSplitMenuEO.getId();
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.entity.SarLawsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarLawsInfoEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarLawsInfoEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarLawsInfoEOServiceImpl implements SarLawsInfoEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarLawsInfoEOServiceImpl.class);
|
||||
|
||||
// @Autowired
|
||||
// private SarMenuEOService sarMenuEOService;
|
||||
|
||||
public List<SarLawsInfoEO> getLawsInfoPage(SarLawsInfoEOPage page) throws Exception {
|
||||
//查询当前登录人角色拥有权限的菜单
|
||||
// List<String> getMenuIdList = sarMenuEOService.queryRoleMenuIdList(page.getLawsType()+"_LAWS",null);
|
||||
// if(getMenuIdList != null && !getMenuIdList.isEmpty()){
|
||||
// page.setMenuRoleList(getMenuIdList);
|
||||
// } else {
|
||||
// page.setMenuRoleList(null);
|
||||
// }
|
||||
// if (page.getMenuId() != null){
|
||||
// List<SarMenuEO> sarMenuEOList = sarMenuEODao.queryByList(new SarMenuEOPage());
|
||||
// Tree tree = new Tree<>(sarMenuEOList);
|
||||
// TreeNode treeNode = tree.getTreeNode(page.getMenuId());
|
||||
// List<String> menuIds = new ArrayList<>();
|
||||
// menuIds.add(treeNode.getNodeId());
|
||||
// for (TreeNode node: treeNode.getAllChildren()) {
|
||||
// menuIds.add(node.getNodeId());
|
||||
// }
|
||||
// page.setMenuIdList(menuIds);
|
||||
// }
|
||||
// Integer rowCount = dao.queryByCount(page);
|
||||
// page.getPager().setRowCount(rowCount);
|
||||
// List<SarLawsInfoEO> sarlist = dao.queryByPage(page);
|
||||
// attrInfo(sarlist);
|
||||
// return sarlist;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.dao.SarStandAttrDetailsEODao;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandAttrDetailsEOService;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarStandAttrDetailsEOServiceImpl implements SarStandAttrDetailsEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarStandAttrDetailsEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarStandAttrDetailsEODao sarStandAttrDetailsEODao;
|
||||
|
||||
@Override
|
||||
public List<SelectionResult> selectFileFieldForSel(String attrField){
|
||||
return sarStandAttrDetailsEODao.selectFileFieldForSel(attrField);
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.standardSplit.dao.SarStandAttrDetailsEODao;
|
||||
import com.adc.da.slrs.standardSplit.dao.SarStandFileEODao;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEO;
|
||||
import com.adc.da.slrs.standardSplit.entity.SarStandFileEOPage;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandFileEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarStandFileEOServiceImpl implements SarStandFileEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarStandFileEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarStandFileEODao sarStandFileEODao;
|
||||
@Autowired
|
||||
private SarStandAttrDetailsEODao sarStandAttrDetailsEODao;
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> getStandFileListByPage(SarStandFileEOPage stand){
|
||||
return sarStandFileEODao.getStandFileListByPage(stand);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> queryByPage(SarStandFileEOPage page){
|
||||
return sarStandFileEODao.queryByPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> queryByList(SarStandFileEOPage page){
|
||||
return sarStandFileEODao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarStandFileEO selectByPrimaryKey(String id) throws Exception{
|
||||
return sarStandFileEODao.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarStandFileEO sarStandFileEO) throws Exception {
|
||||
return sarStandFileEODao.insertSelective(sarStandFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarStandFileEO sarStandFileEO) throws Exception{
|
||||
return sarStandFileEODao.updateByPrimaryKeySelective(sarStandFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String id) throws Exception{
|
||||
return sarStandFileEODao.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> selectFileByAttId(String attId) throws Exception{
|
||||
return sarStandFileEODao.selectFileByAttId(attId);
|
||||
}
|
||||
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.adc.da.slrs.standardSplit.service.impl;
|
||||
|
||||
import com.adc.da.slrs.sarStandardComplianceAssessResult.entity.SarStandardsInfoEO;
|
||||
import com.adc.da.slrs.standardSplit.dao.SarStandardsInfoEODao;
|
||||
import com.adc.da.slrs.standardSplit.service.SarStandardsInfoEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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;
|
||||
|
||||
@Service
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarStandardsInfoEOServiceImpl implements SarStandardsInfoEOService {
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarStandardsInfoEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarStandardsInfoEODao dao;
|
||||
|
||||
@Override
|
||||
public List<SarStandardsInfoEO> selectStandardsByStandnumber(String standNum, String val) {
|
||||
SarStandardsInfoEO sarStandardsInfoEO = new SarStandardsInfoEO();
|
||||
sarStandardsInfoEO.setStandNumber(standNum);
|
||||
sarStandardsInfoEO.setStandType(val);
|
||||
return dao.selectStandardsByStandnumber(sarStandardsInfoEO);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.adc.da.slrs.standardSplit.vo;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* Created by gaoayn on 2018/9/13 19:29
|
||||
* 用于搜索中心的推荐
|
||||
*/
|
||||
public class RecommendVO extends BaseEntity {
|
||||
|
||||
private String nameShow;
|
||||
private String numberShow;
|
||||
private String typeShow;
|
||||
private String id;
|
||||
private String module;
|
||||
|
||||
public String getNameShow() {
|
||||
return nameShow;
|
||||
}
|
||||
|
||||
public void setNameShow(String nameShow) {
|
||||
this.nameShow = nameShow;
|
||||
}
|
||||
|
||||
public String getNumberShow() {
|
||||
return numberShow;
|
||||
}
|
||||
|
||||
public void setNumberShow(String numberShow) {
|
||||
this.numberShow = numberShow;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTypeShow() {
|
||||
return typeShow;
|
||||
}
|
||||
|
||||
public void setTypeShow(String typeShow) {
|
||||
this.typeShow = typeShow;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
//package com.adc.da.utils.util;
|
||||
//
|
||||
//import com.adc.da.slrs.standardSplit.service.UserEOService;
|
||||
//import com.adc.da.sys.entity.MenuEO;
|
||||
//import com.adc.da.sys.entity.RoleEO;
|
||||
//import com.adc.da.sys.entity.UserEO;
|
||||
//import com.adc.da.util.utils.CollectionUtils;
|
||||
//import com.adc.da.util.utils.SpringContextHolder;
|
||||
//import com.google.common.collect.Maps;
|
||||
//import org.apache.commons.lang3.SerializationUtils;
|
||||
//import org.apache.commons.lang3.StringUtils;
|
||||
//import org.apache.shiro.SecurityUtils;
|
||||
//import org.apache.shiro.UnavailableSecurityManagerException;
|
||||
//import org.apache.shiro.authz.SimpleAuthorizationInfo;
|
||||
//import org.apache.shiro.session.InvalidSessionException;
|
||||
//import org.apache.shiro.subject.Subject;
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
//public class UserUtils {
|
||||
//
|
||||
// public static final String CURRENT_USER = "currentUser";
|
||||
// public static final String CACHE_ROLE_LIST = "roleList";
|
||||
// public static final String CACHE_MENU_LIST = "menuList";
|
||||
// public static final String CACHE_MENU_TREE = "menuTree";
|
||||
// public static final String CACHE_AREA_LIST = "areaList";
|
||||
// public static final String CACHE_OFFICE_LIST = "officeList";
|
||||
//
|
||||
// private static UserEOService userService = SpringContextHolder.getBean(UserEOService.class);
|
||||
//// private static MenuEOService menuService = SpringContextHolder.getBean(MenuEOService.class);
|
||||
//// private static RoleEOService roleEOService = SpringContextHolder.getBean(RoleEOService.class);
|
||||
////
|
||||
//// /**
|
||||
//// * 退出
|
||||
//// */
|
||||
//// public static void logout() {
|
||||
//// try {
|
||||
//// SecurityUtils.getSubject().logout();
|
||||
//// } catch (UnavailableSecurityManagerException e) {
|
||||
//// e.printStackTrace();
|
||||
//// } catch (InvalidSessionException e) {
|
||||
//// e.printStackTrace();
|
||||
//// }
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 获取当前登录用户ID
|
||||
//// *
|
||||
//// */
|
||||
//// public static String getUserId() {
|
||||
//// String userId = null;
|
||||
//// try {
|
||||
//// Subject subject = SecurityUtils.getSubject();
|
||||
//// SystemAuthorizingRealm.Principal principal = (SystemAuthorizingRealm.Principal) subject.getPrincipal();
|
||||
//// if (principal != null) {
|
||||
//// userId = principal.getId();
|
||||
//// }
|
||||
//// } catch (UnavailableSecurityManagerException e) {
|
||||
//// } catch (InvalidSessionException e) {
|
||||
//// }
|
||||
//// return userId;
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 获取当前登录用户信息
|
||||
//// */
|
||||
//// public static UserEO getUser() throws NumberFormatException, Exception {
|
||||
//// UserEO user = (UserEO) CacheUtils.getCache(CURRENT_USER);
|
||||
//// if (user == null) {
|
||||
//// String userId = getUserId();
|
||||
////
|
||||
//// if(StringUtils.isNotEmpty(userId)) {
|
||||
////// UserEO userInDb = userService.selectByPrimaryKey(userId);
|
||||
////// liwenxuan:上面的方法不能查出组织机构
|
||||
//// UserEO userInDb = userService.getUserWithRoles(userId);
|
||||
//// user= SerializationUtils.clone(userInDb);
|
||||
////// user = ObjectUtils.clone(userInDb);
|
||||
//// user.setPassword(null);
|
||||
//// CacheUtils.putCache(CURRENT_USER, user);
|
||||
//// }
|
||||
//// }
|
||||
//// return user;
|
||||
//// }
|
||||
////
|
||||
//// public static void updateUserInfo(UserEO userVo) throws NumberFormatException, Exception {
|
||||
//// UserEO user = (UserEO) CacheUtils.getCache(CURRENT_USER);
|
||||
//// if (user != null) {
|
||||
//// String userId = getUserId();
|
||||
////
|
||||
//// if (StringUtils.isNotEmpty(userId)) {
|
||||
//// UserEO userInDb = userService.selectByPrimaryKey(userId);
|
||||
//// userInDb.setUname(userVo.getUname());
|
||||
//// userService.save(userInDb);
|
||||
////
|
||||
//// CacheUtils.removeCache(CURRENT_USER);
|
||||
//// }
|
||||
//// }
|
||||
//// }
|
||||
////
|
||||
// /**
|
||||
// * 获取当前登录用户角色列表
|
||||
// */
|
||||
// public static List<RoleEO> getRoleList() throws NumberFormatException, Exception {
|
||||
// List<RoleEO> roleList = (List<RoleEO>) CacheUtils.getCache(CACHE_ROLE_LIST);
|
||||
// if (roleList == null) {
|
||||
// UserEO user = getUser();
|
||||
// if(user != null) {
|
||||
// roleList = roleEOService.getSysRoleListByUserId(user.getUsid());
|
||||
// }
|
||||
// CacheUtils.putCache(CACHE_ROLE_LIST, roleList);
|
||||
// }
|
||||
// return roleList;
|
||||
// }
|
||||
//
|
||||
// public static String getRoleIds() throws NumberFormatException, Exception {
|
||||
// List<RoleEO> roleList = getRoleList();
|
||||
// if (CollectionUtils.isEmpty(roleList)) {
|
||||
// return "";
|
||||
// }
|
||||
// StringBuilder roleIds = new StringBuilder();
|
||||
// for (RoleEO sysRoleEO : roleList) {
|
||||
// roleIds.append(sysRoleEO.getId()).append(",");
|
||||
// }
|
||||
// return roleIds.substring(0, roleIds.length() - 1);
|
||||
// }
|
||||
//
|
||||
//
|
||||
//// /**
|
||||
//// * 获取当前登录用户菜单列表
|
||||
//// */
|
||||
//// public static List<MenuEO> getMenuList() throws Exception {
|
||||
//// List<MenuEO> menuList = (List<MenuEO>) CacheUtils.getCache(CACHE_MENU_LIST);
|
||||
//// if (menuList == null) {
|
||||
//// UserEO user = getUser();
|
||||
//// if (isAdmin(user)) {
|
||||
//// menuList = menuService.findAll();
|
||||
//// } else {
|
||||
//// menuList = menuService.listMenuEOByUserId(String.valueOf(user.getUsid()));
|
||||
//// }
|
||||
//// CacheUtils.putCache(CACHE_MENU_LIST, menuList);
|
||||
//// }
|
||||
//// return menuList;
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 获取当前登录用户菜单树
|
||||
//// *
|
||||
//// */
|
||||
//// public static MenuEO getMenuTree() {
|
||||
//// MenuEO menu = (MenuEO) CacheUtils.getCache(CACHE_MENU_TREE);
|
||||
//// if (menu == null) {
|
||||
////// menu = menuService.organizeListAsTree(menuService.selectByPrimaryKey(1), getMenuList());
|
||||
//// CacheUtils.putCache(CACHE_MENU_TREE, menu);
|
||||
//// }
|
||||
//// return menu;
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 判断用户是否是超级管理员
|
||||
//// * @param userVo
|
||||
//// * @return
|
||||
//// */
|
||||
//// public static boolean isAdmin(UserEO userVo) {
|
||||
//// //todo
|
||||
//// return userVo != null && userVo.getUsid().equals("1");
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 获取用户菜单权限信息
|
||||
//// */
|
||||
//// public static SimpleAuthorizationInfo getAuthInfo() throws NumberFormatException, Exception {
|
||||
//// SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
|
||||
//// List<MenuEO> list = com.adc.da.login.util.UserUtils.getMenuList();
|
||||
//// for (MenuEO menu : list) {
|
||||
//// if (StringUtils.isNotBlank(menu.getPermission())) {
|
||||
//// // 添加基于Permission的权限信息
|
||||
//// for (String permission : StringUtils.split(menu.getPermission(), ",")) {
|
||||
//// info.addStringPermission(permission);
|
||||
//// }
|
||||
//// }
|
||||
//// }
|
||||
//// return info;
|
||||
//// }
|
||||
////
|
||||
//// public static void flush() {
|
||||
//// CacheUtils.removeCache(CURRENT_USER);
|
||||
//// CacheUtils.removeCache(CACHE_MENU_LIST);
|
||||
//// CacheUtils.removeCache(CACHE_MENU_TREE);
|
||||
//// }
|
||||
////
|
||||
////
|
||||
// private static final class CacheUtils {
|
||||
// public static Object getCache(String key) {
|
||||
// return getCache(key, null);
|
||||
// }
|
||||
//
|
||||
// public static Object getCache(String key, Object defaultValue) {
|
||||
// Object obj = getCacheMap().get(key);
|
||||
// return obj == null ? defaultValue : obj;
|
||||
// }
|
||||
//
|
||||
// public static void putCache(String key, Object value) {
|
||||
// getCacheMap().put(key, value);
|
||||
// }
|
||||
//
|
||||
// public static void removeCache(String key) {
|
||||
// getCacheMap().remove(key);
|
||||
// }
|
||||
//
|
||||
// public static Map<String, Object> getCacheMap() {
|
||||
// Map<String, Object> map = Maps.newHashMap();
|
||||
// try {
|
||||
// Subject subject = SecurityUtils.getSubject();
|
||||
// SystemAuthorizingRealm.Principal principal = (SystemAuthorizingRealm.Principal) subject.getPrincipal();
|
||||
// return principal != null ? principal.getCacheMap() : map;
|
||||
// } catch (UnavailableSecurityManagerException e) {
|
||||
//
|
||||
// } catch (InvalidSessionException e) {
|
||||
//
|
||||
// }
|
||||
// return map;
|
||||
// }
|
||||
// };
|
||||
//
|
||||
//}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sarMenuStandard.dao.SarMenuStandardDao">
|
||||
|
||||
</mapper>
|
||||
+330
@@ -0,0 +1,330 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitInfoEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="sar_type" property="sarType" />
|
||||
<result column="file_name" property="fileName" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="file_type" property="fileType" />
|
||||
<result column="att_id" property="attId" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="stand_num_split" property="standNumSplit" />
|
||||
<result column="stand_name_split" property="standNameSplit" />
|
||||
<result column="result" property="result" />
|
||||
<result column="split_status" property="splitStatus" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_INFO table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
sar_type, file_name, id, stand_id, file_type, att_id, valid_flag, creation_time,
|
||||
creation_user, modify_time, modify_user,stand_num_split,stand_name_split,result
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="sarType != null" >
|
||||
and sar_type ${sarTypeOperator} #{sarType}
|
||||
</if>
|
||||
<if test="fileName != null" >
|
||||
and file_name ${fileNameOperator} #{fileName}
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="fileType != null" >
|
||||
and file_type ${fileTypeOperator} #{fileType}
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
and att_id ${attIdOperator} #{attId}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_INFO.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_INFO(<include refid="Base_Column_List" />)
|
||||
values (#{sarType, jdbcType=VARCHAR}, #{fileName, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR}, #{fileType, jdbcType=VARCHAR}, #{attId, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{creationUser, jdbcType=VARCHAR}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_INFO.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_INFO
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="sarType != null" >sar_type,</if>
|
||||
<if test="fileName != null" >file_name,</if>
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="standId != null" >stand_id,</if>
|
||||
<if test="fileType != null" >file_type,</if>
|
||||
<if test="attId != null" >att_id,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="standNumSplit != null" >stand_num_split,</if>
|
||||
<if test="standNameSplit != null" >stand_name_split,</if>
|
||||
<if test="result != null" >result,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="sarType != null" >#{sarType, jdbcType=VARCHAR},</if>
|
||||
<if test="fileName != null" >#{fileName, jdbcType=VARCHAR},</if>
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null" >#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="fileType != null" >#{fileType, jdbcType=VARCHAR},</if>
|
||||
<if test="attId != null" >#{attId, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="standNumSplit != null" >#{standNumSplit, jdbcType=VARCHAR},</if>
|
||||
<if test="standNameSplit != null" >#{standNameSplit, jdbcType=VARCHAR},</if>
|
||||
<if test="result != null" >#{result, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO" >
|
||||
update SAR_FILE_SPLIT_INFO
|
||||
set sar_type = #{sarType},
|
||||
file_name = #{fileName},
|
||||
stand_id = #{standId},
|
||||
file_type = #{fileType},
|
||||
att_id = #{attId},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
creation_user = #{creationUser},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO" >
|
||||
update SAR_FILE_SPLIT_INFO
|
||||
<set >
|
||||
<if test="sarType != null" >
|
||||
sar_type = #{sarType},
|
||||
</if>
|
||||
<if test="fileName != null" >
|
||||
file_name = #{fileName},
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
stand_id = #{standId},
|
||||
</if>
|
||||
<if test="fileType != null" >
|
||||
file_type = #{fileType},
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
att_id = #{attId},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="result != null" >
|
||||
result = #{result},
|
||||
</if>
|
||||
<if test="standNumSplit != null" >
|
||||
stand_num_split = #{standNumSplit},
|
||||
</if>
|
||||
<if test="standNameSplit != null" >
|
||||
stand_name_split = #{standNameSplit},
|
||||
</if>
|
||||
<if test="splitStatus != null" >
|
||||
split_status = #{splitStatus}
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_INFO -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_INFO
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_INFO
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_INFO 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_INFO列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryByPageOwn" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(SELECT
|
||||
SAR_FILE_SPLIT_INFO.*,
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) AS showNumber,
|
||||
SAR_STANDARDS_INFO.stand_name as standName
|
||||
FROM
|
||||
SAR_FILE_SPLIT_INFO
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON SAR_FILE_SPLIT_INFO.STAND_ID = SAR_STANDARDS_INFO.id
|
||||
where SAR_FILE_SPLIT_INFO.valid_flag =0
|
||||
<if test="numOrName != null and numOrName != ''" >
|
||||
and (
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) like concat(concat('%',#{numOrName}),'%') or SAR_STANDARDS_INFO.stand_name like concat(concat('%',#{numOrName}),'%')
|
||||
or SAR_FILE_SPLIT_INFO.stand_num_split like concat(concat('%',#{numOrName}),'%')
|
||||
or SAR_FILE_SPLIT_INFO.stand_name_split like concat(concat('%',#{numOrName}),'%')
|
||||
)
|
||||
</if>
|
||||
<if test="standId != null and standId != ''">
|
||||
and SAR_FILE_SPLIT_INFO.stand_id = #{standId}
|
||||
</if>
|
||||
<if test="id != null and id != ''">
|
||||
and SAR_FILE_SPLIT_INFO.id = #{id}
|
||||
</if>
|
||||
<if test="fileType != null and fileType != ''">
|
||||
and SAR_FILE_SPLIT_INFO.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="splitStatus != null and splitStatus != ''">
|
||||
and SAR_FILE_SPLIT_INFO.split_status = #{splitStatus}
|
||||
</if>
|
||||
<if test="result != null ">
|
||||
and SAR_FILE_SPLIT_INFO.result = #{result}
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByCountOwn" resultType="java.lang.Integer" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEOPage">
|
||||
SELECT
|
||||
count(0)
|
||||
FROM
|
||||
SAR_FILE_SPLIT_INFO
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON SAR_FILE_SPLIT_INFO.STAND_ID = SAR_STANDARDS_INFO.id
|
||||
where SAR_FILE_SPLIT_INFO.valid_flag =0
|
||||
<if test="numOrName != null and numOrName != ''" >
|
||||
and (
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) like concat(concat('%',#{numOrName}),'%') or SAR_STANDARDS_INFO.stand_name like concat(concat('%',#{numOrName}),'%')
|
||||
or SAR_FILE_SPLIT_INFO.stand_num_split like concat(concat('%',#{numOrName}),'%')
|
||||
or SAR_FILE_SPLIT_INFO.stand_name_split like concat(concat('%',#{numOrName}),'%')
|
||||
)
|
||||
</if>
|
||||
<if test="standId != null and standId != ''">
|
||||
and SAR_FILE_SPLIT_INFO.stand_id = #{standId}
|
||||
</if>
|
||||
<if test="id != null and id != ''">
|
||||
and SAR_FILE_SPLIT_INFO.id = #{id}
|
||||
</if>
|
||||
<if test="fileType != null and fileType != ''">
|
||||
and SAR_FILE_SPLIT_INFO.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="splitStatus != null and splitStatus != ''">
|
||||
and SAR_FILE_SPLIT_INFO.split_status = #{splitStatus}
|
||||
</if>
|
||||
<if test="result != null ">
|
||||
and SAR_FILE_SPLIT_INFO.result = #{result}
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitInfoEO">
|
||||
delete from SAR_FILE_SPLIT_INFO
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
+572
@@ -0,0 +1,572 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="info_id" property="infoId" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="iterms_conditions" property="itermsConditions" />
|
||||
<result column="newcar_put_time" property="newcarPutTime" />
|
||||
<result column="product_put_time" property="productPutTime" />
|
||||
<result column="menu_id" property="menuId" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="reference_stand" property="referenceStand" />
|
||||
<result column="special_request" property="specialRequest" />
|
||||
<result column="relevance_file" property="relevanceFile" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="fo" property="fo" />
|
||||
<result column="duty_engineer" property="dutyEngineer" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="claim_type" property="claimType" />
|
||||
<result column="bus_stand_cover" property="busStandCover" />
|
||||
<result column="file_type" property="fileType" />
|
||||
<result column="claimTypeShow" property="claimTypeShow" />
|
||||
<result column="fileTypeShow" property="fileTypeShow" />
|
||||
<result column="responsible_unit" property="responsibleUnit" />
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow" />
|
||||
<result column="dutyEngineerShow" property="dutyEngineerShow" />
|
||||
</resultMap>
|
||||
<resultMap id="BaseResultMapExport" type="com.adc.da.slrs.standardSplit.dto.FileSplitItemsExportDto" >
|
||||
<result column="id" property="id" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="iterms_conditions" property="itermsConditions" />
|
||||
<result column="newcar_put_time" property="newcarPutTime" />
|
||||
<result column="product_put_time" property="productPutTime" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="reference_stand" property="referenceStand" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="relevance_file" property="relevanceFile" />
|
||||
<result column="fo" property="fo" />
|
||||
<result column="duty_engineer" property="dutyEngineer" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="claim_type" property="claimType" />
|
||||
<result column="bus_stand_cover" property="busStandCover" />
|
||||
<result column="file_type" property="fileType" />
|
||||
<result column="claimTypeShow" property="claimTypeShow" />
|
||||
<result column="responsible_unit" property="responsibleUnit" />
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow" />
|
||||
<result column="dutyEngineerShow" property="dutyEngineerShow" />
|
||||
<result column="foShow" property="foShow"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
SAR_FILE_SPLIT_ITEMS.id, SAR_FILE_SPLIT_ITEMS.info_id, SAR_FILE_SPLIT_ITEMS.items_num, items_name, iterms_conditions,
|
||||
newcar_put_time, product_put_time, menu_id, svpps, apply_arctic, reference_stand, special_request, relevance_file,
|
||||
SAR_FILE_SPLIT_ITEMS.remarks, SAR_FILE_SPLIT_ITEMS.valid_flag, SAR_FILE_SPLIT_ITEMS.creation_user,
|
||||
SAR_FILE_SPLIT_ITEMS.creation_time, SAR_FILE_SPLIT_ITEMS.modify_time, SAR_FILE_SPLIT_ITEMS.modify_user,
|
||||
SAR_FILE_SPLIT_ITEMS.fo,SAR_FILE_SPLIT_ITEMS.duty_engineer, SAR_FILE_SPLIT_ITEMS.claim_type,
|
||||
SAR_FILE_SPLIT_ITEMS.bus_stand_cover,SAR_FILE_SPLIT_ITEMS.file_type,SAR_FILE_SPLIT_ITEMS.responsible_unit,
|
||||
TS_ORG.org_name as responsibleUnitShow, dicClaimType.DIC_TYPE_NAME as claimTypeShow,tsdutyEngineer.NAME as
|
||||
dutyEngineerShow,tsFo.NAME as foShow
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itermsConditions != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.iterms_conditions ${itermsConditionsOperator} #{itermsConditions}
|
||||
</if>
|
||||
<if test="newcarPutTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time ${newcarPutTimeOperator} #{newcarPutTime}
|
||||
</if>
|
||||
<if test="newcarPutTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time >= #{newcarPutTime1}
|
||||
</if>
|
||||
<if test="newcarPutTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time <= #{newcarPutTime2}
|
||||
</if>
|
||||
<if test="productPutTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time ${productPutTimeOperator} #{productPutTime}
|
||||
</if>
|
||||
<if test="productPutTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time >= #{productPutTime1}
|
||||
</if>
|
||||
<if test="productPutTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time <= #{productPutTime2}
|
||||
</if>
|
||||
<if test="sMenuId != null" >
|
||||
and menu_id = #{sMenuId}
|
||||
</if>
|
||||
<if test="svpps != null" >
|
||||
and svpps ${svppsOperator} #{svpps}
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
and apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="referenceStand != null" >
|
||||
and reference_stand ${referenceStandOperator} #{referenceStand}
|
||||
</if>
|
||||
<if test="specialRequest != null" >
|
||||
and special_request ${specialRequestOperator} #{specialRequest}
|
||||
</if>
|
||||
<if test="relevanceFile != null" >
|
||||
and relevance_file ${relevanceFileOperator} #{relevanceFile}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{infoId, jdbcType=VARCHAR}, #{itemsNum, jdbcType=VARCHAR}, #{itemsName, jdbcType=VARCHAR}, #{itermsConditions, jdbcType=CLOB}, #{newcarPutTime, jdbcType=TIMESTAMP}, #{productPutTime, jdbcType=TIMESTAMP}, #{menuId, jdbcType=VARCHAR}, #{svpps, jdbcType=VARCHAR}, #{applyArctic, jdbcType=VARCHAR}, #{referenceStand, jdbcType=VARCHAR}, #{specialRequest, jdbcType=VARCHAR}, #{relevanceFile, jdbcType=VARCHAR}, #{remarks, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationUser, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
<if test="itemsNum != null" >items_num,</if>
|
||||
<if test="itemsName != null" >items_name,</if>
|
||||
<if test="itermsConditions != null" >iterms_conditions,</if>
|
||||
<if test="newcarPutTime != null" >newcar_put_time,</if>
|
||||
<if test="productPutTime != null" >product_put_time,</if>
|
||||
<if test="menuId != null" >menu_id,</if>
|
||||
<if test="svpps != null" >svpps,</if>
|
||||
<if test="applyArctic != null" >apply_arctic,</if>
|
||||
<if test="referenceStand != null" >reference_stand,</if>
|
||||
<if test="specialRequest != null" >special_request,</if>
|
||||
<if test="relevanceFile != null" >relevance_file,</if>
|
||||
<if test="remarks != null" >remarks,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
|
||||
<if test="fo != null" >fo,</if>
|
||||
<if test="dutyEngineer != null" >duty_engineer,</if>
|
||||
<if test="claimType != null" >claim_type,</if>
|
||||
<if test="busStandCover != null">bus_stand_cover,</if>
|
||||
<if test="fileType != null">file_type,</if>
|
||||
<if test="responsibleUnit != null">responsible_unit</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsNum != null" >#{itemsNum, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsName != null" >#{itemsName, jdbcType=VARCHAR},</if>
|
||||
<if test="itermsConditions != null" >#{itermsConditions, jdbcType=CLOB},</if>
|
||||
<if test="newcarPutTime != null" >#{newcarPutTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="productPutTime != null" >#{productPutTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="menuId != null" >#{menuId, jdbcType=VARCHAR},</if>
|
||||
<if test="svpps != null" >#{svpps, jdbcType=VARCHAR},</if>
|
||||
<if test="applyArctic != null" >#{applyArctic, jdbcType=VARCHAR},</if>
|
||||
<if test="referenceStand != null" >#{referenceStand, jdbcType=VARCHAR},</if>
|
||||
<if test="specialRequest != null" >#{specialRequest, jdbcType=VARCHAR},</if>
|
||||
<if test="relevanceFile != null" >#{relevanceFile, jdbcType=VARCHAR},</if>
|
||||
<if test="remarks != null" >#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
|
||||
<if test="fo != null" >#{fo, jdbcType=VARCHAR},</if>
|
||||
<if test="dutyEngineer != null" >#{dutyEngineer, jdbcType=VARCHAR},</if>
|
||||
<if test="claimType != null" >#{claimType, jdbcType=VARCHAR},</if>
|
||||
<if test="busStandCover != null" >#{busStandCover, jdbcType=VARCHAR},</if>
|
||||
<if test="fileType != null" >#{fileType, jdbcType=VARCHAR},</if>
|
||||
<if test="responsibleUnit != null" >#{responsibleUnit, jdbcType=VARCHAR}</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS
|
||||
set info_id = #{infoId},
|
||||
items_num = #{itemsNum},
|
||||
items_name = #{itemsName},
|
||||
iterms_conditions = #{itermsConditions},
|
||||
newcar_put_time = #{newcarPutTime},
|
||||
product_put_time = #{productPutTime},
|
||||
menu_id = #{menuId},
|
||||
svpps = #{svpps},
|
||||
apply_arctic = #{applyArctic},
|
||||
reference_stand = #{referenceStand},
|
||||
special_request = #{specialRequest},
|
||||
relevance_file = #{relevanceFile},
|
||||
remarks = #{remarks},
|
||||
valid_flag = #{validFlag},
|
||||
creation_user = #{creationUser},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS
|
||||
<set >
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
items_num = #{itemsNum},
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
items_name = #{itemsName},
|
||||
</if>
|
||||
<if test="itermsConditions != null" >
|
||||
iterms_conditions = #{itermsConditions},
|
||||
</if>
|
||||
<if test="newcarPutTime != null" >
|
||||
newcar_put_time = #{newcarPutTime},
|
||||
</if>
|
||||
<if test="newcarPutTime == null" >
|
||||
newcar_put_time = null,
|
||||
</if>
|
||||
<if test="productPutTime != null" >
|
||||
product_put_time = #{productPutTime},
|
||||
</if>
|
||||
<if test="productPutTime == null" >
|
||||
product_put_time = null,
|
||||
</if>
|
||||
<if test="menuId != null" >
|
||||
menu_id = #{menuId},
|
||||
</if>
|
||||
<if test="svpps != null" >
|
||||
svpps = #{svpps},
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
apply_arctic = #{applyArctic},
|
||||
</if>
|
||||
<if test="referenceStand != null" >
|
||||
reference_stand = #{referenceStand},
|
||||
</if>
|
||||
<if test="specialRequest != null" >
|
||||
special_request = #{specialRequest},
|
||||
</if>
|
||||
<if test="relevanceFile != null" >
|
||||
relevance_file = #{relevanceFile},
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
|
||||
<if test="fo != null" >
|
||||
fo = #{fo},
|
||||
</if>
|
||||
<if test="dutyEngineer != null" >
|
||||
duty_engineer = #{dutyEngineer},
|
||||
</if>
|
||||
<if test="claimType != null" >
|
||||
claim_type = #{claimType},
|
||||
</if>
|
||||
<if test="busStandCover != null" >
|
||||
bus_stand_cover = #{busStandCover},
|
||||
</if>
|
||||
<if test="fileType != null" >
|
||||
file_type = #{fileType},
|
||||
</if>
|
||||
<if test="responsibleUnit != null" >
|
||||
responsible_unit = #{responsibleUnit},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0)
|
||||
where SAR_FILE_SPLIT_ITEMS.id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuIdList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="menuIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="idList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0)
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuIdList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="menuIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="idList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList2" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEOPage">
|
||||
select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0
|
||||
)
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="menuIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0
|
||||
)
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_FILE_SPLIT_ITEMS
|
||||
(id, info_id, items_num, items_name, newcar_put_time, product_put_time, menu_id, svpps, apply_arctic, reference_stand, special_request, relevance_file, remarks, valid_flag, creation_user, creation_time, modify_time,
|
||||
modify_user, iterms_conditions)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(
|
||||
#{item.id, jdbcType=VARCHAR}, #{item.infoId, jdbcType=VARCHAR}, #{item.itemsNum, jdbcType=VARCHAR},
|
||||
#{item.itemsName, jdbcType=VARCHAR},
|
||||
#{item.newcarPutTime, jdbcType=TIMESTAMP}, #{item.productPutTime, jdbcType=TIMESTAMP},
|
||||
#{item.menuId, jdbcType=VARCHAR}, #{item.svpps, jdbcType=VARCHAR}, #{item.applyArctic, jdbcType=VARCHAR},
|
||||
#{item.referenceStand, jdbcType=VARCHAR}, #{item.specialRequest, jdbcType=VARCHAR},
|
||||
#{item.relevanceFile, jdbcType=VARCHAR}, #{item.remarks, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER}, #{item.creationUser, jdbcType=VARCHAR},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyUser, jdbcType=VARCHAR}, #{item.itermsConditions, jdbcType=CLOB}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where info_id in
|
||||
<foreach collection="infoIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByItemsIds" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByMenuIds" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where menu_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsByMenuId" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0
|
||||
)
|
||||
where SAR_FILE_SPLIT_ITEMS.valid_flag = '0' and menu_id in (
|
||||
SELECT t3.id FROM (
|
||||
SELECT t1.*,
|
||||
IF(FIND_IN_SET(id, @pids) > 0, @pids := CONCAT(@pids, ',', id), '0') AS ischild
|
||||
FROM (
|
||||
SELECT * FROM SAR_FILE_SPLIT_MENU AS t WHERE valid_flag=0 ORDER BY t.id ASC
|
||||
) t1,
|
||||
(SELECT @pids := #{menuId}) t2
|
||||
) t3 WHERE ischild != '0'
|
||||
)
|
||||
order by SAR_FILE_SPLIT_MENU.display_seq asc
|
||||
</select>
|
||||
|
||||
<select id="queryByItemsIds" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEO">
|
||||
select menu_id from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
group by menu_id
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemsIdList" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryByOrdersForExport" resultMap="BaseResultMapExport" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsEOPage">
|
||||
select SAR_FILE_SPLIT_ITEMS.id,SAR_FILE_SPLIT_ITEMS.items_num,SAR_FILE_SPLIT_ITEMS.items_name,
|
||||
newcar_put_time,product_put_time,svpps,apply_arctic,reference_stand,SAR_FILE_SPLIT_ITEMS.remarks,
|
||||
relevance_file,
|
||||
tsFo.name as foShow,SAR_FILE_SPLIT_ITEMS.duty_engineer,
|
||||
SAR_FILE_SPLIT_ITEMS.claim_type,SAR_FILE_SPLIT_ITEMS.bus_stand_cover,SAR_FILE_SPLIT_ITEMS.file_type,SAR_FILE_SPLIT_ITEMS.responsible_unit,TS_ORG.org_name as responsibleUnitShow,
|
||||
dicClaimType.DIC_TYPE_NAME as claimTypeShow,tsdutyEngineer.name as dutyEngineerShow
|
||||
from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_FILE_SPLIT_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_ORG on (SAR_FILE_SPLIT_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join TS_ROLE tsdutyEngineer on (tsdutyEngineer.ID = SAR_FILE_SPLIT_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
)
|
||||
left join TS_ROLE tsFo on (tsFo.ID = SAR_FILE_SPLIT_ITEMS.fo and tsFo.valid_flag=0
|
||||
)
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
</if>
|
||||
<if test="idList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+217
@@ -0,0 +1,217 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsParamsEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="item_id" property="itemId" />
|
||||
<result column="description" property="description" />
|
||||
<result column="figure" property="figure" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="info_id" property="infoId" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_PARAMS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, item_id, description, figure, valid_flag, creation_time, modify_time, info_id
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
and item_id ${itemIdOperator} #{itemId}
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
and description ${descriptionOperator} #{description}
|
||||
</if>
|
||||
<if test="figure != null" >
|
||||
and figure ${figureOperator} #{figure}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_PARAMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{itemId, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{figure, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{infoId, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_PARAMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="itemId != null" >item_id,</if>
|
||||
<if test="description != null" >description,</if>
|
||||
<if test="figure != null" >figure,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="itemId != null" >#{itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="description != null" >#{description, jdbcType=VARCHAR},</if>
|
||||
<if test="figure != null" >#{figure, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
set item_id = #{itemId},
|
||||
description = #{description},
|
||||
figure = #{figure},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
info_id = #{infoId}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsParamsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<set >
|
||||
<if test="itemId != null" >
|
||||
item_id = #{itemId},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description},
|
||||
</if>
|
||||
<if test="figure != null" >
|
||||
figure = #{figure},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_PARAMS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_PARAMS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_PARAMS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where item_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS(<include refid="Base_Column_List" />)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.id, jdbcType=VARCHAR}, #{item.itemId, jdbcType=VARCHAR}, #{item.description, jdbcType=VARCHAR}, #{item.figure, jdbcType=VARCHAR}, #{item.validFlag, jdbcType=INTEGER}, #{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP}, #{item.infoId, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByInfoIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where info_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsParamsByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where valid_flag = '0' and ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsTableEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="items_val_id" property="itemsValId" />
|
||||
<result column="items_id" property="itemsId" />
|
||||
<result column="row_num" property="rowNum" />
|
||||
<result column="col_num" property="colNum" />
|
||||
<result column="content" property="content" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_TABLE table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, items_val_id, items_id, row_num, col_num, content, valid_flag, creation_time, modify_time, modify_user
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="itemsValId != null" >
|
||||
and items_val_id ${itemsValIdOperator} #{itemsValId}
|
||||
</if>
|
||||
<if test="itemsId != null" >
|
||||
and items_id ${itemsIdOperator} #{itemsId}
|
||||
</if>
|
||||
<if test="rowNum != null" >
|
||||
and row_num ${rowNumOperator} #{rowNum}
|
||||
</if>
|
||||
<if test="colNum != null" >
|
||||
and col_num ${colNumOperator} #{colNum}
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
and content ${contentOperator} #{content}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_TABLE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{itemsValId, jdbcType=VARCHAR}, #{itemsId, jdbcType=VARCHAR}, #{rowNum, jdbcType=INTEGER}, #{colNum, jdbcType=INTEGER}, #{content, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_TABLE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="itemsValId != null" >items_val_id,</if>
|
||||
<if test="itemsId != null" >items_id,</if>
|
||||
<if test="rowNum != null" >row_num,</if>
|
||||
<if test="colNum != null" >col_num,</if>
|
||||
<if test="content != null" >content,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsValId != null" >#{itemsValId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsId != null" >#{itemsId, jdbcType=VARCHAR},</if>
|
||||
<if test="rowNum != null" >#{rowNum, jdbcType=INTEGER},</if>
|
||||
<if test="colNum != null" >#{colNum, jdbcType=INTEGER},</if>
|
||||
<if test="content != null" >#{content, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
set items_val_id = #{itemsValId},
|
||||
items_id = #{itemsId},
|
||||
row_num = #{rowNum},
|
||||
col_num = #{colNum},
|
||||
content = #{content},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsTableEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<set >
|
||||
<if test="itemsValId != null" >
|
||||
items_val_id = #{itemsValId},
|
||||
</if>
|
||||
<if test="itemsId != null" >
|
||||
items_id = #{itemsId},
|
||||
</if>
|
||||
<if test="rowNum != null" >
|
||||
row_num = #{rowNum},
|
||||
</if>
|
||||
<if test="colNum != null" >
|
||||
col_num = #{colNum},
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
content = #{content},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_TABLE -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_TABLE 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_TABLE列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE(<include refid="Base_Column_List" />)
|
||||
values (#{item.id, jdbcType=VARCHAR}, #{item.itemsValId, jdbcType=VARCHAR},
|
||||
#{item.itemsId, jdbcType=VARCHAR}, #{item.rowNum, jdbcType=INTEGER}, #{item.colNum, jdbcType=INTEGER},
|
||||
#{item.content, jdbcType=VARCHAR}, #{item.validFlag, jdbcType=INTEGER}, #{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP}, #{item.modifyUser, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="queryByRowNum" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select row_num from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
group by row_num
|
||||
order by row_num
|
||||
</select>
|
||||
|
||||
<delete id="deleteByitemValIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where ITEMS_VAL_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTableByMenuIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_TABLE.ITEMS_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByitemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where ITEMS_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsTableByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where valid_flag = '0' and ITEMS_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitItemsValEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="type" property="type" />
|
||||
<result column="item_id" property="itemId" />
|
||||
<result column="item_content" property="itemContent" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="display_seq" property="displaySeq" />
|
||||
<result column="img_name" property="imgName" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_VAL table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, type, item_id, item_content, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq,img_name
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="type != null" >
|
||||
and type ${typeOperator} #{type}
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
and item_id ${itemIdOperator} #{itemId}
|
||||
</if>
|
||||
<if test="itemContent != null" >
|
||||
and item_content ${itemContentOperator} #{itemContent}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
and display_seq ${displaySeqOperator} #{displaySeq}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{type, jdbcType=VARCHAR}, #{itemId, jdbcType=VARCHAR}, #{itemContent, jdbcType=CLOB}, #{validFlag, jdbcType=INTEGER}, #{creationUser, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR}, #{displaySeq, jdbcType=INTEGER})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="type != null" >type,</if>
|
||||
<if test="itemId != null" >item_id,</if>
|
||||
<if test="itemContent != null" >item_content,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="displaySeq != null" >display_seq,</if>
|
||||
<if test="imgName != null" >img_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="type != null" >#{type, jdbcType=VARCHAR},</if>
|
||||
<if test="itemId != null" >#{itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemContent != null" >#{itemContent, jdbcType=CLOB},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="displaySeq != null" >#{displaySeq, jdbcType=INTEGER},</if>
|
||||
<if test="imgName != null" >#{imgName, jdbcType=INTEGER},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
set type = #{type},
|
||||
item_id = #{itemId},
|
||||
item_content = #{itemContent},
|
||||
valid_flag = #{validFlag},
|
||||
creation_user = #{creationUser},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser},
|
||||
display_seq = #{displaySeq}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<set >
|
||||
<if test="type != null" >
|
||||
type = #{type},
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
item_id = #{itemId},
|
||||
</if>
|
||||
<if test="itemContent != null" >
|
||||
item_content = #{itemContent},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
display_seq = #{displaySeq},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_VAL -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_VAL 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_VAL列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitItemsValEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByitemId" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where item_id = #{value}
|
||||
</delete>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL
|
||||
(id, type, item_id, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq, img_name, item_content)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(
|
||||
#{item.id, jdbcType=VARCHAR}, #{item.type, jdbcType=VARCHAR},
|
||||
#{item.itemId, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER}, #{item.creationUser, jdbcType=VARCHAR},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyUser, jdbcType=VARCHAR}, #{item.displaySeq, jdbcType=INTEGER},
|
||||
#{item.imgName, jdbcType=INTEGER},
|
||||
#{item.itemContent, jdbcType=CLOB})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteValByInfoIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_VAL.ITEM_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.INFO_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<delete id="deleteValByitemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateForeach" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<set >
|
||||
item_content = #{item.itemContent, jdbcType=VARCHAR},
|
||||
modify_time = #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
modify_user = #{item.modifyUser, jdbcType=VARCHAR},
|
||||
display_seq = #{item.displaySeq, jdbcType=INTEGER},
|
||||
</set>
|
||||
where id = #{item.id, jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
;
|
||||
</update>
|
||||
|
||||
<delete id="deleteValByMenuIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_VAL.ITEM_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsValByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where valid_flag = '0' and ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
+363
@@ -0,0 +1,363 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarFileSplitMenuEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="info_id" property="infoId" />
|
||||
<result column="name" property="name" />
|
||||
<result column="p_id" property="pId" />
|
||||
<result column="display_seq" property="displaySeq" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="item_name" property="itemName" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_MENU table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, info_id, name, p_id, display_seq, valid_flag, creation_time, modify_time, remarks, creation_user, modify_user,item_name
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
and name ${nameOperator} #{name}
|
||||
</if>
|
||||
<if test="pId != null" >
|
||||
and p_id ${pIdOperator} #{pId}
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
and display_seq ${displaySeqOperator} #{displaySeq}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
and remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_MENU.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_MENU(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{infoId, jdbcType=VARCHAR}, #{name, jdbcType=VARCHAR}, #{pId, jdbcType=VARCHAR}, #{displaySeq, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{remarks, jdbcType=VARCHAR}, #{creationUser, jdbcType=VARCHAR}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_MENU.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_MENU
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
<if test="name != null" >name,</if>
|
||||
<if test="pId != null" >p_id,</if>
|
||||
<if test="displaySeq != null" >display_seq,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="remarks != null" >remarks,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="itemName != null" >item_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
<if test="name != null" >#{name, jdbcType=VARCHAR},</if>
|
||||
<if test="pId != null" >#{pId, jdbcType=VARCHAR},</if>
|
||||
<if test="displaySeq != null" >#{displaySeq, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="remarks != null" >#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="itemName != null" >#{itemName, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set info_id = #{infoId},
|
||||
name = #{name},
|
||||
p_id = #{pId},
|
||||
display_seq = #{displaySeq},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
remarks = #{remarks},
|
||||
creation_user = #{creationUser},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
<set >
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name},
|
||||
</if>
|
||||
<if test="pId != null" >
|
||||
p_id = #{pId},
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
display_seq = #{displaySeq},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="itemName != null" >
|
||||
item_name = #{itemName},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_MENU -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_MENU
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_MENU 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_MENU列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_FILE_SPLIT_MENU(<include refid="Base_Column_List" />)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.id, jdbcType=VARCHAR},
|
||||
#{item.infoId, jdbcType=VARCHAR},
|
||||
#{item.name, jdbcType=VARCHAR},
|
||||
#{item.pId, jdbcType=VARCHAR},
|
||||
#{item.displaySeq, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyTime, jdbcType=TIMESTAMP}, #{item.remarks, jdbcType=VARCHAR},
|
||||
#{item.creationUser, jdbcType=VARCHAR}, #{item.modifyUser, jdbcType=VARCHAR} , #{item.itemName, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where info_id in
|
||||
<foreach collection="infoIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
<update id="updateDisplaySeqAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq+#{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where display_seq >= #{displaySeqStart} and display_seq < #{displaySeqEnd} and valid_flag = 0 and info_id = #{infoId}
|
||||
</update>
|
||||
|
||||
<update id="updateDisplaySeqCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq-#{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where display_seq <= #{displaySeqEnd} and display_seq > #{displaySeqStart} and valid_flag = 0 and info_id = #{infoId}
|
||||
</update>
|
||||
|
||||
<!--oracle-->
|
||||
<!--<select id="queryByPidExcpetSelf" resultMap="BaseResultMap" parameterType="com.adc.da.lawss.entity.SarFileSplitMenuEO">-->
|
||||
<!--select SAR_FILE_SPLIT_MENU.* from SAR_FILE_SPLIT_MENU-->
|
||||
<!--where valid_flag=0 and id != #{id}-->
|
||||
<!--start with id=#{id} connect by prior id= p_id-->
|
||||
<!--</select>-->
|
||||
|
||||
<select id="queryByPidExcpetSelf" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO">
|
||||
SELECT * FROM (
|
||||
SELECT t1.*,
|
||||
IF(FIND_IN_SET(id, @pids) > 0, @pids := CONCAT(@pids, ',', id), '0') AS ischild
|
||||
FROM (
|
||||
SELECT * FROM SAR_FILE_SPLIT_MENU AS t WHERE valid_flag=0 ORDER BY t.id ASC
|
||||
) t1,
|
||||
(SELECT @pids := #{id}) t2
|
||||
) t3 WHERE ischild != '0'
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPId" parameterType="java.lang.String">
|
||||
delete
|
||||
from SAR_FILE_SPLIT_MENU
|
||||
where id in
|
||||
<foreach collection="id" open="(" index="index" item="item" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
</delete>
|
||||
<select id="getChild" resultType="String">
|
||||
select n.id
|
||||
from SAR_FILE_SPLIT_MENU n,
|
||||
(select (@nodes := queryChildrenTempNode1(#{id})) as pids) t
|
||||
WHERE FIND_IN_SET(n.id, t.pids)
|
||||
</select>
|
||||
|
||||
<!--<select id="getMaxDisplayByid" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">-->
|
||||
<!--SELECT max(SAR_FILE_SPLIT_MENU.DISPLAY_SEQ) FROM-->
|
||||
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id-->
|
||||
<!--</select>-->
|
||||
|
||||
<select id="getMaxDisplayByid" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT max(t3.DISPLAY_SEQ) FROM (
|
||||
SELECT t1.*,
|
||||
IF(FIND_IN_SET(id, @pids) > 0, @pids := CONCAT(@pids, ',', id), '0') AS ischild
|
||||
FROM (
|
||||
SELECT * FROM SAR_FILE_SPLIT_MENU AS t WHERE valid_flag=0 ORDER BY t.id ASC
|
||||
) t1,
|
||||
(SELECT @pids := #{id}) t2
|
||||
) t3 WHERE ischild != '0'
|
||||
</select>
|
||||
|
||||
<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT count(*) FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id
|
||||
</select>
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq + #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq - #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
|
||||
<!--oracle 写法-->
|
||||
<!--<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.adc.da.lawss.entity.SarFileSplitMenuEO">-->
|
||||
<!--select SAR_FILE_SPLIT_MENU.* from SAR_FILE_SPLIT_MENU-->
|
||||
<!--where valid_flag=0-->
|
||||
<!--start with id=#{id} connect by prior id= p_id-->
|
||||
<!--</select>-->
|
||||
|
||||
|
||||
<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO">
|
||||
SELECT * FROM (
|
||||
SELECT t1.*,
|
||||
IF(FIND_IN_SET(id, @pids) > 0, @pids := CONCAT(@pids, ',', id), '0') AS ischild
|
||||
FROM (
|
||||
SELECT * FROM SAR_FILE_SPLIT_MENU AS t WHERE valid_flag=0 ORDER BY t.id ASC
|
||||
) t1,
|
||||
(SELECT @pids := #{id}) t2
|
||||
) t3 WHERE ischild != '0'
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIdList" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
+354
@@ -0,0 +1,354 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarStandAttrDetailsEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="attr_field" property="attrField" />
|
||||
<result column="attr_name" property="attrName" />
|
||||
<result column="attr_type" property="attrType" />
|
||||
<result column="order_num" property="orderNum" />
|
||||
<result column="is_edit" property="isEdit" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="attr_len" property="attrLen" />
|
||||
<result column="is_must" property="isMust" />
|
||||
<result column="is_show_imp" property="isShowImp" />
|
||||
<result column="show_region_id" property="showRegionId" />
|
||||
<result column="sel_val" property="selVal" />
|
||||
<result column="sar_type" property="sarType" />
|
||||
<result column="is_search" property="isSearch" />
|
||||
<result column="is_warn" property="isWarn" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_ATTR_DETAILS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, attr_field, attr_name, attr_type, order_num, is_edit, creation_user,
|
||||
valid_flag, creation_time, modify_time,
|
||||
attr_len,is_must,is_show_imp,show_region_id,sel_val,sar_type,is_search,is_warn
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List_Show" >
|
||||
SAR_STAND_ATTR_DETAILS.id, attr_field, attr_name, attr_type, SAR_STAND_ATTR_DETAILS.order_num, is_edit, SAR_STAND_ATTR_DETAILS.creation_user,
|
||||
SAR_STAND_ATTR_DETAILS.valid_flag, SAR_STAND_ATTR_DETAILS.creation_time, SAR_STAND_ATTR_DETAILS.modify_time,
|
||||
attr_len,is_must,is_show_imp,show_region_id,sel_val,SAR_STAND_ATTR_DETAILS.sar_type,is_search,is_warn
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1 and SAR_STAND_ATTR_DETAILS.valid_flag=0
|
||||
<trim suffixOverrides="," >
|
||||
<if test="isShow != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.is_show_imp = 0
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="attrField != null" >
|
||||
and attr_field ${attrFieldOperator} #{attrField}
|
||||
</if>
|
||||
<if test="attrName != null" >
|
||||
and attr_name ${attrNameOperator} #{attrName}
|
||||
</if>
|
||||
<if test="attrType != null" >
|
||||
and attr_type ${attrTypeOperator} #{attrType}
|
||||
</if>
|
||||
<if test="orderNum != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.order_num ${orderNumOperator} #{orderNum}
|
||||
</if>
|
||||
<if test="isEdit != null" >
|
||||
and is_edit ${isEditOperator} #{isEdit}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="attrLen != null" >
|
||||
and attr_len ${attrLenOperator} #{attrLen}
|
||||
</if>
|
||||
<if test="sarType != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.sar_type like concat(concat('%',#{sarType}),'%')
|
||||
</if>
|
||||
<if test="isSearch != null" >
|
||||
and is_search = #{isSearch}
|
||||
</if>
|
||||
<if test="isWarn != null" >
|
||||
and is_warn = #{isWarn}
|
||||
</if>
|
||||
<if test="notId != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.ID != #{notId}
|
||||
</if>
|
||||
<if test="idList != null" >
|
||||
and SAR_STAND_ATTR_DETAILS.ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ATTR_DETAILS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ATTR_DETAILS(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{attrField, jdbcType=VARCHAR}, #{attrName, jdbcType=VARCHAR}, #{attrType, jdbcType=VARCHAR}, #{orderNum, jdbcType=VARCHAR}, #{isEdit, jdbcType=VARCHAR}, #{creationUser, jdbcType=VARCHAR}, #{validFlag, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{attrLen, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ATTR_DETAILS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ATTR_DETAILS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="attrField != null" >attr_field,</if>
|
||||
<if test="attrName != null" >attr_name,</if>
|
||||
<if test="attrType != null" >attr_type,</if>
|
||||
<if test="orderNum != null" >order_num,</if>
|
||||
<if test="isEdit != null" >is_edit,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="attrLen != null" >attr_len,</if>
|
||||
<if test="isMust != null" >is_must,</if>
|
||||
<if test="isShowImp != null" >is_show_imp,</if>
|
||||
<if test="showRegionId != null" >show_region_id,</if>
|
||||
<if test="selVal != null" >sel_val,</if>
|
||||
<if test="sarType != null" >sar_type,</if>
|
||||
<if test="isSearch != null" >is_search,</if>
|
||||
<if test="isWarn != null" >is_warn,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="attrField != null" >#{attrField, jdbcType=VARCHAR},</if>
|
||||
<if test="attrName != null" >#{attrName, jdbcType=VARCHAR},</if>
|
||||
<if test="attrType != null" >#{attrType, jdbcType=VARCHAR},</if>
|
||||
<if test="orderNum != null" >#{orderNum, jdbcType=VARCHAR},</if>
|
||||
<if test="isEdit != null" >#{isEdit, jdbcType=VARCHAR},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="attrLen != null" >#{attrLen, jdbcType=VARCHAR},</if>
|
||||
<if test="isMust != null" >#{isMust, jdbcType=VARCHAR},</if>
|
||||
<if test="isShowImp != null" >#{isShowImp, jdbcType=VARCHAR},</if>
|
||||
<if test="showRegionId != null" >#{showRegionId, jdbcType=VARCHAR},</if>
|
||||
<if test="selVal != null" >#{selVal, jdbcType=VARCHAR},</if>
|
||||
<if test="sarType != null" >#{sarType, jdbcType=VARCHAR},</if>
|
||||
<if test="isSearch != null" >#{isSearch, jdbcType=VARCHAR},</if>
|
||||
<if test="isWarn != null" >#{isWarn, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO" >
|
||||
update SAR_STAND_ATTR_DETAILS
|
||||
set attr_field = #{attrField},
|
||||
attr_name = #{attrName},
|
||||
attr_type = #{attrType},
|
||||
order_num = #{orderNum},
|
||||
is_edit = #{isEdit},
|
||||
creation_user = #{creationUser},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
attr_len = #{attrLen}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandAttrDetailsEO" >
|
||||
update SAR_STAND_ATTR_DETAILS
|
||||
<set >
|
||||
<if test="attrField != null" >
|
||||
attr_field = #{attrField},
|
||||
</if>
|
||||
<if test="attrName != null" >
|
||||
attr_name = #{attrName},
|
||||
</if>
|
||||
<if test="attrType != null" >
|
||||
attr_type = #{attrType},
|
||||
</if>
|
||||
<if test="orderNum != null" >
|
||||
order_num = #{orderNum},
|
||||
</if>
|
||||
<if test="isEdit != null" >
|
||||
is_edit = #{isEdit},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="attrLen != null" >
|
||||
attr_len = #{attrLen},
|
||||
</if>
|
||||
<if test="isMust != null" >
|
||||
is_must = #{isMust},
|
||||
</if>
|
||||
<if test="isShowImp != null" >
|
||||
is_show_imp = #{isShowImp},
|
||||
</if>
|
||||
<if test="showRegionId != null" >
|
||||
show_region_id = #{showRegionId},
|
||||
</if>
|
||||
<if test="selVal != null" >
|
||||
sel_val = #{selVal},
|
||||
</if>
|
||||
<if test="sarType != null" >
|
||||
sar_type = #{sarType},
|
||||
</if>
|
||||
<if test="isSearch != null" >
|
||||
is_search = #{isSearch},
|
||||
</if>
|
||||
<if test="isWarn != null" >
|
||||
is_warn = #{isWarn},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_STAND_ATTR_DETAILS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
where id = #{value} and valid_flag=0
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_ATTR_DETAILS
|
||||
where id = #{value} and valid_flag=0
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_STAND_ATTR_DETAILS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_STAND_ATTR_DETAILS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_STAND_ATTR_DETAILS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" />,areaName from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List_Show" />,UT_AREA.area_name as areaName from SAR_STAND_ATTR_DETAILS
|
||||
left join UT_AREA on SAR_STAND_ATTR_DETAILS.show_region_id = UT_AREA.id
|
||||
<include refid="Base_Where_Clause"/>
|
||||
order by SAR_STAND_ATTR_DETAILS.order_num,SAR_STAND_ATTR_DETAILS.id
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_STAND_ATTR_DETAILS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
order by order_num,id
|
||||
</select>
|
||||
|
||||
<update id="deleteByIds" parameterType="java.lang.String" >
|
||||
delete from SAR_STAND_ATTR_DETAILS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectAllFieldToStr" resultType="java.lang.String" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT listagg ( attr_field, ',' ) within GROUP ( ORDER BY attr_field )
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
order by order_num,id
|
||||
</select>
|
||||
|
||||
<select id="selectFieldByName" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
where attr_name = #{attrName} and valid_flag=0
|
||||
<if test='sarType != null and sarType == "INLAND_STAND"'>
|
||||
and (sar_type=#{sarType} or sar_type='STAND')
|
||||
</if>
|
||||
<if test='sarType != null and sarType == "FOREIGN_STAND"'>
|
||||
and (sar_type=#{sarType} or sar_type='STAND')
|
||||
</if>
|
||||
<if test='sarType != null and sarType != "FOREIGN_STAND" and sarType != "INLAND_STAND"'>
|
||||
and sar_type=#{sarType}
|
||||
</if>
|
||||
limit 0,1
|
||||
</select>
|
||||
|
||||
<select id="selectFileFieldForSel" resultType="com.adc.da.sys.common.SelectionResult" parameterType="java.lang.String">
|
||||
SELECT attr_field as value, attr_name as label
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
where valid_flag=0 and attr_type='FILE' and
|
||||
(sar_type='STAND' or sar_type='INLAND_STAND' or sar_type='FOREIGN_STAND')
|
||||
<if test="attrField != null">
|
||||
and attr_field=#{attrField}
|
||||
</if>
|
||||
group by attr_field,attr_name
|
||||
</select>
|
||||
|
||||
<!-- 标准拆分在用-->
|
||||
<select id="selectFileFieldForSel1" resultType="com.adc.da.sys.common.SelectionResult"
|
||||
parameterType="java.lang.String">
|
||||
SELECT attr_field as value, attr_name as label
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
where valid_flag=0 and attr_type='FILE' and
|
||||
(sar_type='STAND' or sar_type='INLAND_STAND' or sar_type='FOREIGN_STAND' or SAR_TYPE = 'FOREIGN_LAWS')
|
||||
<if test="attrField != null">
|
||||
and attr_field=#{attrField}
|
||||
</if>
|
||||
group by attr_field,attr_name
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectNameByField" resultType="java.lang.String" parameterType="java.lang.String">
|
||||
SELECT attr_name
|
||||
from SAR_STAND_ATTR_DETAILS
|
||||
where attr_field = #{attrField} and valid_flag=0
|
||||
<if test='sarType != null and sarType == "INLAND_STAND"'>
|
||||
and (sar_type=#{sarType} or sar_type='STAND')
|
||||
</if>
|
||||
<if test='sarType != null and sarType == "FOREIGN_STAND"'>
|
||||
and (sar_type=#{sarType} or sar_type='STAND')
|
||||
</if>
|
||||
<if test='sarType != null and sarType != "FOREIGN_STAND" and sarType != "INLAND_STAND"'>
|
||||
and sar_type=#{sarType}
|
||||
</if>
|
||||
limit 0,1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,359 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarStandFileEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarStandFileEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="use_model" property="useModel" />
|
||||
<result column="att_id" property="attId" />
|
||||
<result column="ori_att_id" property="oriAttId" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="file_suffix" property="fileSuffix" />
|
||||
<result column="file_name" property="fileName" />
|
||||
<result column="stand_file_classify" property="standFileClassify" />
|
||||
<result column="password" property="password" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="resId" property="resId" />
|
||||
<result column="standNumber" property="standNumber" />
|
||||
<result column="standName" property="standName" />
|
||||
<result column="sarType" property="sarType" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_FILE table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
modify_time, creation_time, valid_flag, use_model, att_id, stand_id, id,file_suffix,file_name,stand_file_classify,
|
||||
password,creation_user,ori_att_id
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="useModel != null" >
|
||||
and use_model ${useModelOperator} #{useModel}
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
and att_id ${attIdOperator} #{attId}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandFileEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_FILE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_FILE(<include refid="Base_Column_List" />)
|
||||
values (#{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{validFlag, jdbcType=INTEGER},
|
||||
#{useModel, jdbcType=VARCHAR}, #{attId, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR},
|
||||
#{id, jdbcType=VARCHAR},#{fileSuffix, jdbcType=VARCHAR},#{fileName, jdbcType=VARCHAR},#{standFileClassify, jdbcType=VARCHAR},
|
||||
#{password, jdbcType=VARCHAR},#{creationUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandFileEO" >
|
||||
insert into SAR_STAND_FILE
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="useModel != null" >use_model,</if>
|
||||
<if test="attId != null" >att_id,</if>
|
||||
<if test="standId != null" >stand_id,</if>
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="fileSuffix != null" >file_suffix,</if>
|
||||
<if test="fileName != null" >file_name,</if>
|
||||
<if test="standFileClassify != null" >stand_file_classify,</if>
|
||||
<if test="password != null" >password,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="oriAttId != null" >ori_att_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="useModel != null" >#{useModel, jdbcType=VARCHAR},</if>
|
||||
<if test="attId != null" >#{attId, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null" >#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="fileSuffix != null" >#{fileSuffix, jdbcType=VARCHAR},</if>
|
||||
<if test="fileName != null" >#{fileName, jdbcType=VARCHAR},</if>
|
||||
<if test="standFileClassify != null" >#{standFileClassify, jdbcType=VARCHAR},</if>
|
||||
<if test="password != null" >#{password, jdbcType=VARCHAR},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="oriAttId != null" >#{oriAttId, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandFileEO" >
|
||||
update SAR_STAND_FILE
|
||||
<set >
|
||||
<if test="oriAttId != null" >
|
||||
ori_att_id = #{oriAttId},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="useModel != null" >
|
||||
use_model = #{useModel},
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
att_id = #{attId},
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
stand_id = #{standId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_STAND_FILE -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where id = #{value} and valid_flag=0
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_FILE
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_STAND_FILE 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_STAND_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_STAND_FILE列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_STAND_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_STAND_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectFileByStandId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where stand_id = #{value} and valid_flag = 0
|
||||
</select>
|
||||
|
||||
<select id="selectFileByAttId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where valid_flag = 0
|
||||
and stand_id = (
|
||||
select stand_id
|
||||
from SAR_STAND_FILE
|
||||
where att_id = #{value} and valid_flag = 0 and use_model = 'SOURCE_FILE'
|
||||
limit 0,1
|
||||
)
|
||||
and use_model = 'WEB_FILE'
|
||||
and ori_att_id = #{value}
|
||||
order by modify_time desc
|
||||
</select>
|
||||
|
||||
<!-- gaoyan 根据resid 查询 -->
|
||||
<select id="selectFileByResId" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandFileEO">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where use_model = 'SOURCE_FILE'
|
||||
</select>
|
||||
|
||||
<select id="selectFileMsgByAttId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where valid_flag = 0
|
||||
and att_id = #{value}
|
||||
</select>
|
||||
|
||||
<select id="selectFileByStandIdAndId" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandFileEO">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_FILE
|
||||
where valid_flag = 0
|
||||
<if test="standId != null" >
|
||||
and stand_id = #{standId}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
and id not in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByStandId" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_FILE
|
||||
where stand_id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_STAND_FILE
|
||||
(<include refid="Base_Column_List" />)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP},
|
||||
#{item.validFlag, jdbcType=INTEGER},
|
||||
#{item.useModel, jdbcType=VARCHAR},
|
||||
#{item.attId, jdbcType=VARCHAR},
|
||||
#{item.standId, jdbcType=VARCHAR},
|
||||
#{item.id, jdbcType=VARCHAR},
|
||||
#{item.fileSuffix, jdbcType=VARCHAR},
|
||||
#{item.fileName, jdbcType=VARCHAR},
|
||||
#{item.standFileClassify, jdbcType=VARCHAR},
|
||||
#{item.password, jdbcType=VARCHAR},
|
||||
#{item.creationUser, jdbcType=VARCHAR},
|
||||
#{item.oriAttId, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="getStandFileListByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(
|
||||
SELECT
|
||||
SAR_STAND_FILE.id AS resId,
|
||||
SAR_STAND_FILE.stand_id,
|
||||
SAR_STAND_FILE.STAND_FILE_CLASSIFY,
|
||||
SAR_STAND_FILE.file_name,
|
||||
(
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) ) AS standNumber,
|
||||
SAR_STANDARDS_INFO.stand_name as standName,
|
||||
SAR_STAND_FILE.att_id AS attId,
|
||||
SAR_STANDARDS_INFO.STAND_TYPE as sarType
|
||||
FROM
|
||||
SAR_STAND_FILE
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON ( SAR_STAND_FILE.STAND_ID = SAR_STANDARDS_INFO.ID AND SAR_STANDARDS_INFO.VALID_FLAG = 0 )
|
||||
where SAR_STANDARDS_INFO.VALID_FLAG =0 and SAR_STAND_FILE.VALID_FLAG =0
|
||||
<if test="fileSuffixList != null">
|
||||
and SAR_STAND_FILE.file_suffix in
|
||||
<foreach collection="fileSuffixList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
and
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) like concat(concat('%',#{standNumber}),'%')
|
||||
</if>
|
||||
<if test="standName != null">
|
||||
and SAR_STANDARDS_INFO.stand_name like concat(concat ('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="standFileClassify != null">
|
||||
and SAR_STAND_FILE.STAND_FILE_CLASSIFY = #{standFileClassify}
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
and SAR_STANDARDS_INFO.STAND_TYPE = #{fileType}
|
||||
</if>
|
||||
order by SAR_STAND_FILE.modify_time desc,SAR_STAND_FILE.id
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryStandFileListByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from (
|
||||
SELECT
|
||||
SAR_STAND_FILE.id AS resId,
|
||||
SAR_STAND_FILE.stand_id,
|
||||
SAR_STAND_FILE.STAND_FILE_CLASSIFY,
|
||||
SAR_STAND_FILE.file_name,
|
||||
(
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) ) AS standNumber,
|
||||
SAR_STANDARDS_INFO.stand_name as standName,
|
||||
SAR_STAND_FILE.att_id AS attId,
|
||||
SAR_STANDARDS_INFO.STAND_TYPE as sarType
|
||||
FROM
|
||||
SAR_STAND_FILE
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON ( SAR_STAND_FILE.STAND_ID = SAR_STANDARDS_INFO.ID AND SAR_STANDARDS_INFO.VALID_FLAG = 0 )
|
||||
where SAR_STANDARDS_INFO.VALID_FLAG =0 and SAR_STAND_FILE.VALID_FLAG =0
|
||||
<if test="fileSuffixList != null">
|
||||
and SAR_STAND_FILE.file_suffix in
|
||||
<foreach collection="fileSuffixList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
and if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) like concat(concat('%',#{standNumber}),'%')
|
||||
</if>
|
||||
<if test="standName != null">
|
||||
and SAR_STANDARDS_INFO.stand_name like concat(concat ('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="standFileClassify != null">
|
||||
and SAR_STAND_FILE.STAND_FILE_CLASSIFY = #{standFileClassify}
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
and SAR_STANDARDS_INFO.STAND_TYPE = #{fileType}
|
||||
</if>
|
||||
) r
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+844
@@ -0,0 +1,844 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.standardSplit.dao.SarStandardsInfoEODao" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="stand_type" property="standType" />
|
||||
<result column="country" property="country" />
|
||||
<result column="stand_sort" property="standSort" />
|
||||
<result column="stand_number" property="standNumber" />
|
||||
<result column="stand_year" property="standYear" />
|
||||
<result column="stand_name" property="standName" />
|
||||
<result column="stand_en_name" property="standEnName" />
|
||||
<result column="stand_state" property="standState" />
|
||||
<result column="stand_nature" property="standNature" />
|
||||
<result column="issue_time" property="issueTime" />
|
||||
<result column="put_time" property="putTime" />
|
||||
<result column="synopsis" property="synopsis" />
|
||||
<result column="replace_stand_num" property="replaceStandNum" />
|
||||
<result column="replaced_stand_num" property="replacedStandNum" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="newCarPutTime" property="newCarPutTime" />
|
||||
<result column="is_relate_access" property="isRelateAccess" />
|
||||
<result column="cite_stand" property="citeStand" />
|
||||
<result column="cited_stand" property="citedStand" />
|
||||
<result column="allPutTime" property="allPutTime" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="BaseResultMapExcel" type="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
<result column="is_relate_access" property="isRelateAccess" />
|
||||
<result column="synopsis" property="synopsis"/>
|
||||
<result column="put_time" property="putTime"/>
|
||||
<result column="issue_time" property="issueTime"/>
|
||||
<result column="replaced_stand_num" property="replacedStandNum"/>
|
||||
<result column="replace_stand_num" property="replaceStandNum"/>
|
||||
<result column="stand_en_name" property="standEnName"/>
|
||||
<result column="stand_name" property="standName"/>
|
||||
<result column="stand_year" property="standYear"/>
|
||||
<result column="stand_number" property="standNumber"/>
|
||||
<result column="id" property="id"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STANDARDS_INFO table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
SAR_STANDARDS_INFO.id, SAR_STANDARDS_INFO.stand_type, SAR_STANDARDS_INFO.country, SAR_STANDARDS_INFO.stand_sort,
|
||||
SAR_STANDARDS_INFO.stand_number, SAR_STANDARDS_INFO.stand_year, SAR_STANDARDS_INFO.stand_name, SAR_STANDARDS_INFO.stand_en_name,
|
||||
SAR_STANDARDS_INFO.stand_state, SAR_STANDARDS_INFO.stand_nature, SAR_STANDARDS_INFO.issue_time, SAR_STANDARDS_INFO.put_time,
|
||||
SAR_STANDARDS_INFO.synopsis, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag,
|
||||
SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,SAR_STANDARDS_INFO.is_relate_access,SAR_STANDARDS_INFO.cite_stand,SAR_STANDARDS_INFO.cited_stand
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List_Show" >
|
||||
SAR_STANDARDS_INFO.id, SAR_STANDARDS_INFO.stand_type, SAR_STANDARDS_INFO.country, SAR_STANDARDS_INFO.stand_sort,
|
||||
SAR_STANDARDS_INFO.stand_number, SAR_STANDARDS_INFO.stand_year, SAR_STANDARDS_INFO.stand_name, SAR_STANDARDS_INFO.stand_en_name,
|
||||
SAR_STANDARDS_INFO.stand_state, SAR_STANDARDS_INFO.stand_nature, SAR_STANDARDS_INFO.issue_time, SAR_STANDARDS_INFO.put_time,
|
||||
concat(SAR_STANDARDS_INFO.synopsis, '') as synopsis, concat(replace_stand_num, '') as replace_stand_num, replaced_stand_num, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag,
|
||||
SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,dicountry.DIC_TYPE_NAME as countryShow, dicstandSort.DIC_TYPE_NAME as standSortShow,
|
||||
dicstandState.DIC_TYPE_NAME as standStateShow,dicstandNature.DIC_TYPE_NAME as standNatureShow,is_relate_access,cite_stand,cited_stand
|
||||
</sql>
|
||||
|
||||
<sql id="Group_Column_List_Show">
|
||||
SAR_STANDARDS_INFO.id, SAR_STANDARDS_INFO.stand_type, SAR_STANDARDS_INFO.country, SAR_STANDARDS_INFO.stand_sort,
|
||||
SAR_STANDARDS_INFO.stand_number, SAR_STANDARDS_INFO.stand_year, SAR_STANDARDS_INFO.stand_name, SAR_STANDARDS_INFO.stand_en_name,
|
||||
SAR_STANDARDS_INFO.stand_state, SAR_STANDARDS_INFO.stand_nature, SAR_STANDARDS_INFO.issue_time, SAR_STANDARDS_INFO.put_time,
|
||||
concat(SAR_STANDARDS_INFO.synopsis, ''), concat(replace_stand_num, ''), replaced_stand_num, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag,
|
||||
SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,dicountry.DIC_TYPE_NAME, dicstandSort.DIC_TYPE_NAME,
|
||||
dicstandState.DIC_TYPE_NAME,dicstandNature.DIC_TYPE_NAME,is_relate_access,cite_stand,cited_stand
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1 and SAR_STANDARDS_INFO.valid_flag=0
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="standType != null" >
|
||||
and stand_type ${standTypeOperator} #{standType}
|
||||
</if>
|
||||
<if test="country != null" >
|
||||
and country ${countryOperator} #{country}
|
||||
</if>
|
||||
<if test="standSort != null" >
|
||||
and stand_sort ${standSortOperator} #{standSort}
|
||||
</if>
|
||||
<if test="standNumber != null" >
|
||||
and stand_number ${standNumberOperator} #{standNumber}
|
||||
</if>
|
||||
<if test="standYear != null" >
|
||||
and stand_year ${standYearOperator} #{standYear}
|
||||
</if>
|
||||
<if test="standName != null" >
|
||||
and stand_name ${standNameOperator} #{standName}
|
||||
</if>
|
||||
<if test="standEnName != null" >
|
||||
and stand_en_name ${standEnNameOperator} #{standEnName}
|
||||
</if>
|
||||
<if test="standState != null" >
|
||||
and stand_state ${standStateOperator} #{standState}
|
||||
</if>
|
||||
<if test="standNature != null" >
|
||||
and stand_nature ${standNatureOperator} #{standNature}
|
||||
</if>
|
||||
<if test="issueTime != null" >
|
||||
and issue_time ${issueTimeOperator} #{issueTime}
|
||||
</if>
|
||||
<if test="issueTime1 != null" >
|
||||
and issue_time >= #{issueTime1}
|
||||
</if>
|
||||
<if test="issueTime2 != null" >
|
||||
and issue_time <= #{issueTime2}
|
||||
</if>
|
||||
<if test="putTime != null" >
|
||||
and put_time ${putTimeOperator} #{putTime}
|
||||
</if>
|
||||
<if test="putTime1 != null" >
|
||||
and put_time >= #{putTime1}
|
||||
</if>
|
||||
<if test="putTime2 != null" >
|
||||
and put_time <= #{putTime2}
|
||||
</if>
|
||||
<if test="synopsis != null" >
|
||||
and synopsis ${synopsisOperator} #{synopsis}
|
||||
</if>
|
||||
<if test="replaceStandNum != null" >
|
||||
and replace_stand_num ${replaceStandNumOperator} #{replaceStandNum}
|
||||
</if>
|
||||
<if test="replacedStandNum != null" >
|
||||
and replaced_stand_num ${replacedStandNumOperator} #{replacedStandNum}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="isRelateAccess != null" >
|
||||
and is_relate_access = #{isRelateAccess}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO" >
|
||||
insert into SAR_STANDARDS_INFO(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{standType, jdbcType=VARCHAR}, #{country, jdbcType=VARCHAR}, #{standSort, jdbcType=VARCHAR}, #{standNumber, jdbcType=VARCHAR}, #{standYear, jdbcType=VARCHAR}, #{standName, jdbcType=VARCHAR}, #{standEnName, jdbcType=VARCHAR}, #{standState, jdbcType=VARCHAR}, #{standNature, jdbcType=VARCHAR}, #{issueTime, jdbcType=TIMESTAMP}, #{putTime, jdbcType=TIMESTAMP}, #{synopsis, jdbcType=CLOB}, #{replaceStandNum, jdbcType=CLOB}, #{replacedStandNum, jdbcType=VARCHAR}, #{creationUser, jdbcType=VARCHAR}, #{validFlag, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO" >
|
||||
insert into SAR_STANDARDS_INFO
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="standType != null" >stand_type,</if>
|
||||
<if test="country != null" >country,</if>
|
||||
<if test="standSort != null" >stand_sort,</if>
|
||||
<if test="standNumber != null" >stand_number,</if>
|
||||
<if test="standYear != null" >stand_year,</if>
|
||||
<if test="standName != null" >stand_name,</if>
|
||||
<if test="standEnName != null" >stand_en_name,</if>
|
||||
<if test="standState != null" >stand_state,</if>
|
||||
<if test="standNature != null" >stand_nature,</if>
|
||||
<if test="issueTime != null" >issue_time,</if>
|
||||
<if test="putTime != null" >put_time,</if>
|
||||
<if test="synopsis != null" >synopsis,</if>
|
||||
<if test="replaceStandNum != null" >replace_stand_num,</if>
|
||||
<if test="replacedStandNum != null" >replaced_stand_num,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="isRelateAccess != null" >is_relate_access,</if>
|
||||
<if test="citeStand != null" >cite_stand,</if>
|
||||
<if test="citedStand != null" >cited_stand,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="standType != null" >#{standType, jdbcType=VARCHAR},</if>
|
||||
<if test="country != null" >#{country, jdbcType=VARCHAR},</if>
|
||||
<if test="standSort != null" >#{standSort, jdbcType=VARCHAR},</if>
|
||||
<if test="standNumber != null" >#{standNumber, jdbcType=VARCHAR},</if>
|
||||
<if test="standYear != null" >#{standYear, jdbcType=VARCHAR},</if>
|
||||
<if test="standName != null" >#{standName, jdbcType=VARCHAR},</if>
|
||||
<if test="standEnName != null" >#{standEnName, jdbcType=VARCHAR},</if>
|
||||
<if test="standState != null" >#{standState, jdbcType=VARCHAR},</if>
|
||||
<if test="standNature != null" >#{standNature, jdbcType=VARCHAR},</if>
|
||||
<if test="issueTime != null" >#{issueTime, jdbcType=VARCHAR},</if>
|
||||
<if test="putTime != null" >#{putTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="synopsis != null" >#{synopsis, jdbcType=CLOB},</if>
|
||||
<if test="replaceStandNum != null" >#{replaceStandNum, jdbcType=CLOB},</if>
|
||||
<if test="replacedStandNum != null" >#{replacedStandNum, jdbcType=VARCHAR},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="isRelateAccess != null" >#{isRelateAccess, jdbcType=VARCHAR},</if>
|
||||
<if test="citeStand != null" >#{citeStand, jdbcType=VARCHAR},</if>
|
||||
<if test="citedStand != null" >#{citedStand, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO" >
|
||||
update SAR_STANDARDS_INFO
|
||||
set stand_type = #{standType},
|
||||
country = #{country},
|
||||
stand_sort = #{standSort},
|
||||
stand_number = #{standNumber},
|
||||
stand_year = #{standYear},
|
||||
stand_name = #{standName},
|
||||
stand_en_name = #{standEnName},
|
||||
stand_state = #{standState},
|
||||
stand_nature = #{standNature},
|
||||
issue_time = #{issueTime},
|
||||
put_time = #{putTime},
|
||||
synopsis = #{synopsis},
|
||||
replace_stand_num = #{replaceStandNum},
|
||||
replaced_stand_num = #{replacedStandNum},
|
||||
creation_user = #{creationUser},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO" >
|
||||
update SAR_STANDARDS_INFO
|
||||
<set >
|
||||
<if test="standType != null" >
|
||||
stand_type = #{standType},
|
||||
</if>
|
||||
<if test="country != null" >
|
||||
country = #{country},
|
||||
</if>
|
||||
<if test="standSort != null" >
|
||||
stand_sort = #{standSort},
|
||||
</if>
|
||||
<if test="standNumber != null" >
|
||||
stand_number = #{standNumber},
|
||||
</if>
|
||||
<if test="standYear != null" >
|
||||
stand_year = #{standYear},
|
||||
</if>
|
||||
<if test="standName != null" >
|
||||
stand_name = #{standName},
|
||||
</if>
|
||||
<if test="standEnName != null" >
|
||||
stand_en_name = #{standEnName},
|
||||
</if>
|
||||
<if test="standState != null" >
|
||||
stand_state = #{standState},
|
||||
</if>
|
||||
<if test="standNature != null" >
|
||||
stand_nature = #{standNature},
|
||||
</if>
|
||||
<if test="issueTime != null" >
|
||||
issue_time = #{issueTime},
|
||||
</if>
|
||||
<if test="putTime != null" >
|
||||
put_time = #{putTime},
|
||||
</if>
|
||||
<if test="synopsis != null" >
|
||||
synopsis = #{synopsis},
|
||||
</if>
|
||||
<if test="replaceStandNum != null" >
|
||||
replace_stand_num = #{replaceStandNum},
|
||||
</if>
|
||||
<if test="replacedStandNum != null" >
|
||||
replaced_stand_num = #{replacedStandNum},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="isRelateAccess != null" >
|
||||
is_relate_access = #{isRelateAccess},
|
||||
</if>
|
||||
<if test="citeStand != null" >
|
||||
cite_stand = #{citeStand},
|
||||
</if>
|
||||
<if test="citedStand != null" >
|
||||
cited_stand = #{citedStand},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_STANDARDS_INFO -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STANDARDS_INFO
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_STANDARDS_INFO
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_STANDARDS_INFO 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_STANDARDS_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_STANDARDS_INFO列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select <include refid="Base_Column_List" /> from SAR_STANDARDS_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_STANDARDS_INFO
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<sql id="SarStandardsInfo_Where_Clause">
|
||||
left join TS_DICTYPE dicountry on (dicountry.dic_type_code = SAR_STANDARDS_INFO.country and dicountry.dic_id is
|
||||
not null and dicountry.valid_flag = 0)
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join TS_DICTYPE dicstandNature on (dicstandNature.dic_type_code = SAR_STANDARDS_INFO.stand_nature and
|
||||
dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 )
|
||||
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
|
||||
left join SAR_MENU on SAR_STAND_MENU.menu_id = SAR_MENU.id
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
left join TS_PERSON_COLLECT on (TS_PERSON_COLLECT.COLLECT_RES_ID = SAR_STANDARDS_INFO.id and TS_PERSON_COLLECT.VALID_FLAG=0)
|
||||
where 1=1 and SAR_STANDARDS_INFO.valid_flag=0
|
||||
<trim suffixOverrides=",">
|
||||
<!-- 标准分类 国内标准,国外标准 必要搜索项 -->
|
||||
<if test='standType != null and standType != "ALL"'>
|
||||
and stand_type = #{standType}
|
||||
</if>
|
||||
<!-- 基本搜索项 -->
|
||||
<!-- 国家、地区 -->
|
||||
<if test="country != null">
|
||||
and country = #{country}
|
||||
</if>
|
||||
<!-- 标准编号 -->
|
||||
<if test="standNumber != null and isNumYear == null">
|
||||
and (
|
||||
(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR != '')
|
||||
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{standNumber}),'%')
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR = '')
|
||||
or (stand_name like concat(concat('%',#{standNumber}),'%'))
|
||||
)
|
||||
</if>
|
||||
-- 精准查询时使用
|
||||
<if test="standNumber != null and isNumYear != null">
|
||||
and (
|
||||
(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) = #{standNumber} and SAR_STANDARDS_INFO.STAND_YEAR != '')
|
||||
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) = #{standNumber}
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR = '')
|
||||
or (stand_name = #{standNumber}
|
||||
)
|
||||
</if>
|
||||
|
||||
<!-- 标准名称 -->
|
||||
<if test="standName != null">
|
||||
and stand_name like concat(concat('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="standEnName != null">
|
||||
and stand_en_name like concat(concat('%',#{standEnName}),'%')
|
||||
</if>
|
||||
<!-- 标准状态 -->
|
||||
<if test="standState != null">
|
||||
and stand_state = #{standState}
|
||||
</if>
|
||||
<!-- 高级检索项 -->
|
||||
<!-- 标准性质 -->
|
||||
<if test="standNature != null">
|
||||
and stand_nature = #{standNature}
|
||||
</if>
|
||||
<!-- 代替标准 允许输入的时候输入多个-->
|
||||
<if test="replaceStandNum != null">
|
||||
and replace_stand_num like concat(concat('%',#{replaceStandNum}),'%')
|
||||
</if>
|
||||
<!-- 被代替标准 -->
|
||||
<if test="replacedStandNum != null">
|
||||
and replaced_stand_num like concat(concat('%',#{replacedStandNum}),'%')
|
||||
</if>
|
||||
<!-- 目录判断 -->
|
||||
<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null">
|
||||
and SAR_STAND_MENU.MENU_ID in
|
||||
<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
<!-- 游离态标准查询 -->
|
||||
<!-- <if test="menuId != null and menuId =='nomenu' and standType =='INLAND'">
|
||||
and SAR_STAND_MENU.MENU_ID = (select SAR_MENU.id from SAR_MENU WHERE parent_id is null and sor_divide
|
||||
='INLAND_STAND')
|
||||
<!–-查询游离态标准,编号和名称是分开的 –>
|
||||
<if test="standNumber != null">
|
||||
and ((concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
|
||||
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{standNumber}),'%')
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR is null))
|
||||
</if>
|
||||
</if>
|
||||
<if test="menuId != null and menuId =='nomenu' and standType =='FOREIGN'">
|
||||
and SAR_STAND_MENU.MENU_ID = (select SAR_MENU.id from SAR_MENU WHERE parent_id is null and sor_divide
|
||||
='FOREIGN_STAND')
|
||||
<if test="standNumber != null">
|
||||
and ((concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
|
||||
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{standNumber}),'%')
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR is null))
|
||||
</if>
|
||||
</if> -->
|
||||
<!-- 当第一次进入页面未选择记录时-->
|
||||
<!-- <if test="(menuId == null or menuId =='') and standType =='INLAND'">-->
|
||||
<!-- and SAR_STAND_MENU.MENU_ID in (-->
|
||||
<!-- select SAR_MENU.id from SAR_MENU start with id=(select SAR_MENU.id from SAR_MENU WHERE parent_id is null-->
|
||||
<!-- and sor_divide-->
|
||||
<!-- ='INLAND_STAND') connect by prior id= parent_id-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||
<if test="menuRoleList != null">
|
||||
and SAR_STAND_MENU.MENU_ID in
|
||||
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!-- <if test="(menuId == null or menuId =='') and standType =='FOREIGN'">-->
|
||||
<!-- and SAR_STAND_MENU.MENU_ID in (-->
|
||||
<!-- select SAR_MENU.id from SAR_MENU start with id=(select SAR_MENU.id from SAR_MENU WHERE parent_id is null-->
|
||||
<!-- and sor_divide-->
|
||||
<!-- ='FOREIGN_STAND') connect by prior id= parent_id-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<!-- 导出数据过程中,选择的id -->
|
||||
<if test="idlist != null">
|
||||
and SAR_STANDARDS_INFO.id in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="standSort != null" >
|
||||
and SAR_STANDARDS_INFO.stand_sort = #{standSort}
|
||||
</if>
|
||||
<!--内容摘要-->
|
||||
<if test="synopsis != null" >
|
||||
AND dbms_lob.instr(SYNOPSIS, #{synopsis} ,1,1) > 0
|
||||
</if>
|
||||
<if test="collectMenuId != null">
|
||||
and SAR_STANDARDS_INFO.id in (
|
||||
select COLLECT_RES_ID from TS_PERSON_COLLECT where TS_PERSON_COLLECT.VALID_FLAG=0
|
||||
and (collect_type='INLAND_STAND' or collect_type='FOREIGN_STAND')
|
||||
and TS_PERSON_COLLECT.user_id=#{userId}
|
||||
)
|
||||
</if>
|
||||
<if test='labelMenuId != null and labelMenuId == "gxhbq"'>
|
||||
and SAR_STAND_ATTR_INFO.GXHBQ is not null
|
||||
</if>
|
||||
<if test='labelMenuId != null and labelMenuId != "gxhbq"'>
|
||||
and SAR_STAND_ATTR_INFO.GXHBQ like concat(concat('%',#{labelMenuId}),'%')
|
||||
</if>
|
||||
<if test="applyArctic != null">
|
||||
and SAR_STAND_ATTR_INFO.SYCLLX = #{applyArctic}
|
||||
</if>
|
||||
<if test="isRelateAccess != null" >
|
||||
and is_relate_access = #{isRelateAccess}
|
||||
</if>
|
||||
<if test="advanceSearchStr != null">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询-->
|
||||
<select id="getSarStandardsInfoPage" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(select
|
||||
<include refid="Base_Column_List_Show"/>,SAR_STAND_ATTR_INFO.CHJL AS CHJL,
|
||||
(case WHEN dicstandState.DIC_TYPE_NAME = '草稿' THEN 1
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '征求意见稿' THEN 2
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '送审稿' THEN 3
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '报批稿' THEN 4
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '发布稿' THEN 5
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '已实施' THEN 6
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '计划修订' THEN 7
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '修订中' THEN 8
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '已修订' THEN 9
|
||||
WHEN dicstandState.DIC_TYPE_NAME = '已作废' THEN 10
|
||||
WHEN dicstandState.DIC_TYPE_NAME IS NULL THEN 11
|
||||
WHEN dicstandState.DIC_TYPE_NAME ='' THEN 11
|
||||
END) AS paixu,
|
||||
(
|
||||
CASE
|
||||
WHEN ZCCSSRQ = 'TBD' THEN '6999-01-01'
|
||||
WHEN ZCCSSRQ = '已发布' THEN '7000-01-01'
|
||||
WHEN ZCCSSRQ = '已实施' THEN '7999-01-01'
|
||||
WHEN ZCCSSRQ = 'N/A' THEN '8999-01-01'
|
||||
WHEN ZCCSSRQ IS NULL THEN '9999-01-01'
|
||||
WHEN ZCCSSRQ ='' THEN '9999-01-01'
|
||||
ELSE ZCCSSRQ
|
||||
END
|
||||
) AS ZCCSSRQPAIXU,
|
||||
(
|
||||
CASE
|
||||
WHEN XCXSSRQ = 'TBD' THEN '6999-01-01'
|
||||
WHEN XCXSSRQ = '已发布' THEN '7000-01-01'
|
||||
WHEN XCXSSRQ = '已实施' THEN '7999-01-01'
|
||||
WHEN XCXSSRQ = 'N/A' THEN '8999-01-01'
|
||||
WHEN XCXSSRQ IS NULL THEN '9999-01-01'
|
||||
WHEN XCXSSRQ ='' THEN '9999-01-01'
|
||||
ELSE XCXSSRQ
|
||||
END
|
||||
) AS XCXSSRQPAIXU,
|
||||
(
|
||||
CASE
|
||||
WHEN SAR_STANDARDS_INFO.issue_time = 'TBD' THEN '6999-01-01'
|
||||
WHEN SAR_STANDARDS_INFO.issue_time = '已发布' THEN '7000-01-01'
|
||||
WHEN SAR_STANDARDS_INFO.issue_time = '已实施' THEN '7999-01-01'
|
||||
WHEN SAR_STANDARDS_INFO.issue_time = 'N/A' THEN '8999-01-01'
|
||||
WHEN SAR_STANDARDS_INFO.issue_time IS NULL THEN '9999-01-01'
|
||||
WHEN SAR_STANDARDS_INFO.issue_time ='' THEN '9999-01-01'
|
||||
ELSE SAR_STANDARDS_INFO.issue_time
|
||||
END
|
||||
) AS issueTime
|
||||
from SAR_STANDARDS_INFO
|
||||
<include refid="SarStandardsInfo_Where_Clause"/>
|
||||
GROUP BY <include refid="Group_Column_List_Show"/>,CHJL,SAR_STAND_ATTR_INFO.XCXSSRQ,SAR_STAND_ATTR_INFO.ZCCSSRQ
|
||||
order by
|
||||
${orderBy1} ${order1},SAR_STANDARDS_INFO.id
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
<!--FIELD(SAR_STANDARDS_INFO.issue_time,'已发布'), FIELD(SAR_STANDARDS_INFO.issue_time,'TBD'), FIELD(SAR_STANDARDS_INFO.issue_time,'N/A') ,-->
|
||||
<!--if(isnull(SAR_STANDARDS_INFO.issue_time),0,1) desc ,-->
|
||||
<!-- 分页查询条件查询一共有多少条数据,配合分页 -->
|
||||
<select id="getSarStandardsInfoCount" resultType="java.lang.Integer"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select count(1) from (select count(*) from SAR_STANDARDS_INFO
|
||||
<include refid="SarStandardsInfo_Where_Clause"/>
|
||||
GROUP BY SAR_STANDARDS_INFO.id) a
|
||||
</select>
|
||||
|
||||
<select id="selectByPrimaryKeyAndModifyTime" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from SAR_STANDARDS_INFO
|
||||
where id = #{id} and valid_flag=0
|
||||
<if test="modifyTime != null">
|
||||
and (modify_time > #{modifyTime} or modify_time < #{modifyTime}) a
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 根据标准号查询-->
|
||||
<select id="selectStandardsByStandnumber" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from
|
||||
SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
|
||||
where SAR_STANDARDS_INFO.valid_flag = 0
|
||||
<!-- 标准类型 -->
|
||||
<if test="standType != null">
|
||||
and stand_type = #{standType}
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
and ((concat(dicstandSort.DIC_TYPE_NAME,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) = ( #{standNumber}) and SAR_STANDARDS_INFO.STAND_YEAR != '')
|
||||
or (concat(dicstandSort.DIC_TYPE_NAME,' ',SAR_STANDARDS_INFO.STAND_NUMBER) = ( #{standNumber})
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR = '')
|
||||
)
|
||||
</if>
|
||||
<if test="sychronId != null">
|
||||
and id != #{sychronId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询表中是否存在某字段-->
|
||||
<select id="selectStandColumn" resultType="java.lang.Integer" parameterType="java.lang.String">
|
||||
SELECT COUNT(*)
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'SAR_STANDARDS_INFO' AND column_name = #{columnName}
|
||||
</select>
|
||||
|
||||
<!-- 统计更新过的标准数量-->
|
||||
<select id="selectCounterStandardsCount" resultType="java.lang.Integer" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
SELECT count(1)
|
||||
FROM SAR_STANDARDS_INFO
|
||||
WHERE STAND_TYPE = #{standType} And Valid_flag = 0
|
||||
<if test="modifyTime != null">
|
||||
and MODIFY_TIME > #{modifyTime}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<update id="updateByStandNum" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
update SAR_STANDARDS_INFO set
|
||||
stand_state=#{standState} where 1=1 and valid_flag=0
|
||||
<if test="standSort != null">
|
||||
and stand_sort = #{standSort}
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
and stand_Number = #{standNumber}
|
||||
</if>
|
||||
<if test="standYear != null">
|
||||
and stand_year = #{standYear}
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<select id="selectStandardsInfoByIdAndRole" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select SAR_STANDARDS_INFO.id
|
||||
from SAR_STANDARDS_INFO
|
||||
left join SAR_STAND_MENU on SAR_STANDARDS_INFO.id=SAR_STAND_MENU.stand_id
|
||||
where SAR_STANDARDS_INFO.valid_flag=0
|
||||
and SAR_STAND_MENU.valid_flag=0
|
||||
<if test="id != null">
|
||||
and SAR_STANDARDS_INFO.id = #{id}
|
||||
</if>
|
||||
<if test="menuRoleList != null">
|
||||
and SAR_STAND_MENU.MENU_ID in
|
||||
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKeyFlag" parameterType="java.lang.String">
|
||||
delete from SAR_STANDARDS_INFO
|
||||
where id = #{id} and valid_flag=1
|
||||
</delete>
|
||||
|
||||
<update id="updateReplacedNumById" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
update SAR_STANDARDS_INFO set REPLACED_STAND_NUM = #{replacedStandNum} where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateCitedStandById" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEO">
|
||||
update SAR_STANDARDS_INFO set CITED_STAND = #{citedStand} where id = #{id}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="getSarStandardsExportInfo" resultMap="BaseResultMapExcel"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select<include refid="Base_Column_List_Show"/>
|
||||
from SAR_STANDARDS_INFO
|
||||
<include refid="SarStandardsInfo_Where_Clause"/>
|
||||
GROUP BY <include refid="Group_Column_List_Show"/>
|
||||
order by SAR_STANDARDS_INFO.issue_time is null,SAR_STANDARDS_INFO.issue_time desc,SAR_STANDARDS_INFO.id
|
||||
</select>
|
||||
|
||||
<select id="selectStandardsInfoByKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select
|
||||
<include refid="Base_Column_List_Show"/>
|
||||
from SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicountry on (dicountry.dic_type_code = SAR_STANDARDS_INFO.country and dicountry.dic_id is
|
||||
not null and dicountry.valid_flag = 0)
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join TS_DICTYPE dicstandNature on (dicstandNature.dic_type_code = SAR_STANDARDS_INFO.stand_nature and
|
||||
dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 )
|
||||
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
|
||||
left join SAR_MENU on SAR_STAND_MENU.menu_id = SAR_MENU.id
|
||||
where SAR_STANDARDS_INFO.id = #{id}
|
||||
GROUP BY <include refid="Group_Column_List_Show"/>
|
||||
</select>
|
||||
|
||||
<select id="selectRecommendStand" resultType="com.adc.da.slrs.standardSplit.vo.RecommendVO"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select tmp_tb.* from
|
||||
(select
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) as numberShow,
|
||||
SAR_STANDARDS_INFO.stand_name as nameShow,
|
||||
SAR_STANDARDS_INFO.id,
|
||||
concat(SAR_STANDARDS_INFO.stand_type,'_STAND') as typeShow
|
||||
from SAR_STANDARDS_INFO
|
||||
where SAR_STANDARDS_INFO.valid_flag = '0'
|
||||
<if test="id != null">
|
||||
and id != #{id}
|
||||
</if>
|
||||
<!-- 标准种类-->
|
||||
<if test="standSort != null">
|
||||
and stand_sort = #{standSort}
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
or stand_number like concat(concat('%',#{standNumber}),'%')
|
||||
</if>
|
||||
<if test="standName != null">
|
||||
or stand_name like concat(concat('%',#{standName}),'%')
|
||||
</if>
|
||||
order by modify_time desc
|
||||
) tmp_tb limit 0,5
|
||||
</select>
|
||||
|
||||
<select id="countReplaceMsg" resultType="java.lang.String" parameterType="java.lang.String">
|
||||
SELECT SAR_STANDARDS_INFO.stand_state
|
||||
FROM SAR_STANDARDS_INFO
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
WHERE SAR_STAND_ATTR_INFO.DTBJH like concat(concat('%',#{standNum}),'%') and SAR_STANDARDS_INFO.valid_flag=0
|
||||
</select>
|
||||
|
||||
<select id="selectStandToUpState" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select
|
||||
<include refid="Base_Column_List"/>,
|
||||
SAR_STAND_ATTR_INFO.XCXSSRQ as allPutTime
|
||||
from SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
where SAR_STANDARDS_INFO.valid_flag=0 and dicstandState.DIC_TYPE_NAME!=#{stateName}
|
||||
and SAR_STAND_ATTR_INFO.XCXSSRQ != ''
|
||||
</select>
|
||||
|
||||
<select id="selectStandToUpRepState" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select
|
||||
<include refid="Base_Column_List"/>,dicstandState.DIC_TYPE_NAME as standStateShow,SAR_STAND_ATTR_INFO.DTBJH as replace_stand_num
|
||||
from SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
where SAR_STANDARDS_INFO.valid_flag=0 and dicstandState.DIC_TYPE_NAME != ''
|
||||
and SAR_STAND_ATTR_INFO.DTBJH != ''
|
||||
</select>
|
||||
|
||||
<select id="selectStandToUpRepAndTime" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select
|
||||
<include refid="Base_Column_List"/>,dicstandState.DIC_TYPE_NAME as standStateShow,
|
||||
SAR_STAND_ATTR_INFO.DTBJH as replace_stand_num,
|
||||
concat(SAR_STAND_ATTR_INFO.XCXSSRQ,',',SAR_STAND_ATTR_INFO.ZCCSSRQ) as allPutTime
|
||||
from SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
where SAR_STANDARDS_INFO.valid_flag=0
|
||||
and SAR_STAND_ATTR_INFO.DTBJH != ''
|
||||
and (SAR_STAND_ATTR_INFO.XCXSSRQ != '' or SAR_STAND_ATTR_INFO.ZCCSSRQ != '')
|
||||
</select>
|
||||
|
||||
<select id="selectIsExit" resultType="java.lang.Integer">
|
||||
select count(*) from SAR_STANDARDS_INFO where id = #{id} and valid_flag != 0
|
||||
</select>
|
||||
|
||||
<update id="updateStateById" parameterType="java.lang.String">
|
||||
update SAR_STANDARDS_INFO set stand_state = #{state}
|
||||
where id in
|
||||
<foreach item="item" collection="list" open="(" separator="," close=")" index="index">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectStandardsInfoByIdAndRoleAll" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select SAR_STANDARDS_INFO.id
|
||||
from SAR_STANDARDS_INFO
|
||||
where
|
||||
SAR_STANDARDS_INFO.valid_flag=1
|
||||
<if test="id != null">
|
||||
and SAR_STANDARDS_INFO.id = #{id}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectStandardsInfoBynumber" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.standardSplit.entity.SarStandardsInfoEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* from
|
||||
(select
|
||||
<include refid="Base_Column_List_Show"/>,SAR_STAND_ATTR_INFO.CHJL AS CHJL
|
||||
from SAR_STANDARDS_INFO
|
||||
left join TS_DICTYPE dicountry on (dicountry.dic_type_code = SAR_STANDARDS_INFO.country and dicountry.dic_id is
|
||||
not null and dicountry.valid_flag = 0)
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
|
||||
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
|
||||
left join TS_DICTYPE dicstandState on (dicstandState.dic_type_code = SAR_STANDARDS_INFO.stand_state and
|
||||
dicstandState.dic_id is not null and dicstandState.valid_flag = 0 )
|
||||
left join TS_DICTYPE dicstandNature on (dicstandNature.dic_type_code = SAR_STANDARDS_INFO.stand_nature and
|
||||
dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 )
|
||||
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
|
||||
left join SAR_MENU on SAR_STAND_MENU.menu_id = SAR_MENU.id
|
||||
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
|
||||
left join TS_PERSON_COLLECT on (TS_PERSON_COLLECT.COLLECT_RES_ID = SAR_STANDARDS_INFO.id and TS_PERSON_COLLECT.VALID_FLAG=0)
|
||||
where 1=1 AND SAR_STANDARDS_INFO.valid_flag = 0
|
||||
<if test="standNumber != null">
|
||||
and
|
||||
(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) = #{standNumber} OR
|
||||
concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) = #{standNumber})
|
||||
</if>
|
||||
<if test="id != null">
|
||||
and SAR_STANDARDS_INFO.id = #{id}
|
||||
</if>
|
||||
GROUP BY <include refid="Group_Column_List_Show"/>,CHJL
|
||||
order by SAR_STANDARDS_INFO.issue_time is null, SAR_STANDARDS_INFO.issue_time desc,SAR_STANDARDS_INFO.id
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -54,6 +54,29 @@
|
||||
<version>2.4</version>
|
||||
<classifier>jdk15</classifier>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
<version>1.56</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.adc</groupId>
|
||||
<artifactId>adc-da-util</artifactId>
|
||||
<version>2.2.4</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk14</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
package com.adc.da.ocr.controller;
|
||||
|
||||
import com.adc.da.att.entity.AttFileEO;
|
||||
import com.adc.da.att.service.IAttFileEOService;
|
||||
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.ocr.entity.OcrCallBackResultEo;
|
||||
import com.adc.da.ocr.entity.OcrRecordEO;
|
||||
import com.adc.da.ocr.page.OcrRecordEOPage;
|
||||
import com.adc.da.ocr.service.OCRRestfulService;
|
||||
import com.adc.da.ocr.service.OcrRecordEOService;
|
||||
import com.adc.da.ocr.util.MD5Util;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.http.entity.ContentType;
|
||||
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.mock.web.MockMultipartFile;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @program: OcrDemo
|
||||
* @description: ocr接口对接类
|
||||
* @author: duyunbao
|
||||
* @create: 2019-03-13 18:21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/ocr/OCRRestful")
|
||||
@Api(description = "|OCR识别 |")
|
||||
public class OCRRestfulController extends BaseController<OcrRecordEO> {
|
||||
private static final Logger logger = LoggerFactory.getLogger(OCRRestfulController.class);
|
||||
|
||||
@Autowired
|
||||
private OCRRestfulService ocrRestfulService;
|
||||
@Autowired
|
||||
private OcrRecordEOService ocrRecordEOService;
|
||||
@Autowired
|
||||
private IAttFileEOService attFileEOService;
|
||||
//接口回调公钥
|
||||
@Value("${OCR.publicKey}")
|
||||
private String OcrPublicKey;
|
||||
@Value("${OCR.ocrDownPath}")
|
||||
private String ocrDownPath;
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
|
||||
@ApiOperation(value = "请求ocr")
|
||||
@PostMapping(value="/upload",consumes="multipart/*",headers="content-type=multipart/form-data" )
|
||||
public ResponseMessage<String> handleFile(@RequestParam("file") MultipartFile file) throws Exception {
|
||||
SimpleDateFormat sdf=new SimpleDateFormat("yyy-MM-dd HH:mm:ss");
|
||||
logger.info("收到文件上传请求,开始处理文件:【"+sdf.format(new Date())+"】");
|
||||
return ocrRestfulService.handleFile(file,file.getOriginalFilename(),null,"add");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "ocr回调")
|
||||
@PostMapping("/OcrHandleResult")
|
||||
public String OcrHandleResult(@RequestParam("wordFile") MultipartFile wordFile,@RequestParam("jsonFile") MultipartFile jsonFile, OcrCallBackResultEo ocrCallBackResultEo) {
|
||||
try{
|
||||
logger.info("调取到我了");
|
||||
logger.info("接口回调结果:"+ JSON.toJSONString(ocrCallBackResultEo));
|
||||
logger.info("接口回调时所传文件---wordFile:"+ wordFile.toString() +"; jsonFile:"+jsonFile.toString());
|
||||
if("error".equals(ocrCallBackResultEo.getResult())){
|
||||
logger.info("客户接口处理文件失败");
|
||||
ocrRestfulService.updateDb(ocrCallBackResultEo.getTaskID(),"客户接口处理文件失败");
|
||||
return "{\"result\":\"error\"}";
|
||||
}
|
||||
//1.验证 key 是否符合,不符合打回,符合继续
|
||||
//2.向后传递文件
|
||||
String key = ocrCallBackResultEo.getKey();
|
||||
String sign = ocrCallBackResultEo.getTaskID() + OcrPublicKey;
|
||||
String signMD5 = MD5Util.string2MD5(sign);
|
||||
if(!signMD5.equals(key)){
|
||||
//不同,则认证失败
|
||||
logger.info("认证失败");
|
||||
ocrRestfulService.updateDb(ocrCallBackResultEo.getTaskID(),"回调接口认证失败");
|
||||
return "{\"result\":\"Authentication failed\"}";
|
||||
}
|
||||
return ocrRestfulService.OcrHandleResult(wordFile,jsonFile,ocrCallBackResultEo.getTaskID());
|
||||
}catch (Exception e){
|
||||
logger.error(e.getMessage(),e);
|
||||
return "{\"result\":\"runTimeException\"}";
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取所有ocr结果")
|
||||
@PostMapping("/getAllOcrResult")
|
||||
public ResponseMessage<PageInfo<OcrRecordEO>> page(OcrRecordEOPage page) throws Exception {
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(page.getPaixu()) && org.apache.commons.lang3.StringUtils.isNotBlank(page.getShunxu())){
|
||||
String sql = page.getPaixu()+" "+page.getShunxu();
|
||||
page.setSql(sql);
|
||||
}else{
|
||||
page.setOrderBy("creation_time");
|
||||
page.setOrder("desc");
|
||||
}
|
||||
List<OcrRecordEO> rows = ocrRecordEOService.queryByPage(page);
|
||||
DecimalFormat df = new DecimalFormat("0.00");//设置保留位数
|
||||
for (OcrRecordEO ocrRecordEO : rows){
|
||||
ocrRecordEO.setDocRealFile(ocrDownPath+ocrRecordEO.getDocRealName());
|
||||
ocrRecordEO.setJsonRealFile(ocrDownPath+ocrRecordEO.getJsonRealName());
|
||||
}
|
||||
return Result.success(getPageInfo(page.getPager(), rows));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "新增ocr内容")
|
||||
@PostMapping("/addOcrRecord")
|
||||
public ResponseMessage<OcrRecordEO> addOcrRecord(OcrRecordEO ocrRecordEO) throws Exception {
|
||||
SimpleDateFormat sdf=new SimpleDateFormat("yyy-MM-dd HH:mm:ss");
|
||||
logger.info("收到文件上传请求,开始处理文件:【"+sdf.format(new Date())+"】");
|
||||
// 根据attID查找文件
|
||||
String fileId = ocrRecordEO.getAttId();
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
if (attFileEO != null) {
|
||||
String fileOriPath = filePath + attFileEO.getFilePath();
|
||||
String oriName = attFileEO.getOldFileName();
|
||||
File pdfFile = new File(fileOriPath+attFileEO.getFileName());
|
||||
FileInputStream fileInputStream = new FileInputStream(pdfFile);
|
||||
MultipartFile multipartFile = new MockMultipartFile(oriName, oriName,
|
||||
ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream);
|
||||
return ocrRestfulService.handleFile(multipartFile,multipartFile.getOriginalFilename(),ocrRecordEO,"add");
|
||||
} else {
|
||||
return Result.error("0","无法找到该文件",null);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改ocr内容")
|
||||
@PutMapping("/updateOcrRecord")
|
||||
public ResponseMessage<OcrRecordEO> updateOcrRecord(@RequestBody OcrRecordEO ocrRecordEO) throws Exception {
|
||||
if (StringUtils.isEmpty(ocrRecordEO.getAttId())) {
|
||||
ocrRecordEOService.updateByPrimaryKeySelective(ocrRecordEO);
|
||||
return Result.success("0","保存成功",ocrRecordEO);
|
||||
} else {
|
||||
SimpleDateFormat sdf=new SimpleDateFormat("yyy-MM-dd HH:mm:ss");
|
||||
logger.info("收到文件上传请求,开始处理文件:【"+sdf.format(new Date())+"】");
|
||||
// 根据attID查找文件
|
||||
String fileId = ocrRecordEO.getAttId();
|
||||
AttFileEO attFileEO = attFileEOService.getFileInfo(fileId);
|
||||
if (attFileEO != null) {
|
||||
String fileOriPath = filePath + attFileEO.getFilePath();
|
||||
String oriName = attFileEO.getOldFileName();
|
||||
File pdfFile = new File(fileOriPath+attFileEO.getFileName());
|
||||
FileInputStream fileInputStream = new FileInputStream(pdfFile);
|
||||
MultipartFile multipartFile = new MockMultipartFile(oriName, oriName,
|
||||
ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream);
|
||||
return ocrRestfulService.handleFile(multipartFile,multipartFile.getOriginalFilename(),ocrRecordEO,"update");
|
||||
} else {
|
||||
return Result.error("0","无法找到该文件",null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除ocr内容")
|
||||
@DeleteMapping("/deleteOcrRecord")
|
||||
public ResponseMessage deleteOcrRecord(String ids) throws Exception {
|
||||
if (StringUtils.isNotEmpty(ids)) {
|
||||
String[] idArr = ids.split(",");
|
||||
List<String> idList = Arrays.asList(idArr);
|
||||
int i = ocrRecordEOService.deleteByIds(idList);
|
||||
return Result.success("0","删除成功",i);
|
||||
} else {
|
||||
return Result.error("删除数据不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.ocr.dao;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.adc.da.ocr.entity.OcrRecordEO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>OCR_RECORD OcrRecordEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-03-25 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrRecordEODao extends BaseMapper<OcrRecordEO> {
|
||||
|
||||
// List<OcrRecordEO> getAllOcrResult();
|
||||
//
|
||||
// int deleteByIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<OcrRecordEO> queryByPage(BasePage var1);
|
||||
|
||||
int insertSelective(OcrRecordEO ocrRecordEO);
|
||||
|
||||
int updateByPrimaryKeySelective(OcrRecordEO ocrRecordEO);
|
||||
|
||||
int deleteByIds(@Param("idList") List<String> idList);
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.adc.da.ocr.entity;
|
||||
|
||||
/**
|
||||
* @program: OcrDemo
|
||||
* @description: orc调取回调函数的参数
|
||||
* @author: duyunbao
|
||||
* @create: 2019-03-13 16:14
|
||||
*/
|
||||
public class OcrCallBackResultEo {
|
||||
|
||||
private String result ;
|
||||
private String taskID ;
|
||||
// private String wordFileName;
|
||||
// private String wordFileContent;
|
||||
// private String jsonFileName;
|
||||
// private String jsonFileContent;
|
||||
|
||||
private String key;
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getTaskID() {
|
||||
return taskID;
|
||||
}
|
||||
|
||||
public void setTaskID(String taskID) {
|
||||
this.taskID = taskID;
|
||||
}
|
||||
//
|
||||
// public String getWordFileName() {
|
||||
// return wordFileName;
|
||||
// }
|
||||
//
|
||||
// public void setWordFileName(String wordFileName) {
|
||||
// this.wordFileName = wordFileName;
|
||||
// }
|
||||
//
|
||||
// public String getWordFileContent() {
|
||||
// return wordFileContent;
|
||||
// }
|
||||
//
|
||||
// public void setWordFileContent(String wordFileContent) {
|
||||
// this.wordFileContent = wordFileContent;
|
||||
// }
|
||||
//
|
||||
// public String getJsonFileName() {
|
||||
// return jsonFileName;
|
||||
// }
|
||||
//
|
||||
// public void setJsonFileName(String jsonFileName) {
|
||||
// this.jsonFileName = jsonFileName;
|
||||
// }
|
||||
|
||||
// public String getJsonFileContent() {
|
||||
// return jsonFileContent;
|
||||
// }
|
||||
//
|
||||
// public void setJsonFileContent(String jsonFileContent) {
|
||||
// this.jsonFileContent = jsonFileContent;
|
||||
// }
|
||||
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,280 @@
|
||||
package com.adc.da.ocr.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>OCR_RECORD OcrRecordEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-03-25 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OcrRecordEO extends BaseEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -5464438392516276473L;
|
||||
private Object wordFileCode;
|
||||
private Object jsonFileCode;
|
||||
private String id;
|
||||
private String docRealName;
|
||||
private String jsonRealName;
|
||||
private String fileName;
|
||||
private String docName;
|
||||
private String jsonName;
|
||||
@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 docRealFile;
|
||||
private String jsonRealFile;
|
||||
|
||||
//计算文件转换耗费时间
|
||||
private String spendTime;
|
||||
//转换结果
|
||||
private String resultContent;
|
||||
//新增字段
|
||||
private String fileType;
|
||||
private String standNumber;
|
||||
private String standName;
|
||||
private String creationUser;
|
||||
private String attId;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>wordFileCode -> word_file_code</li>
|
||||
* <li>jsonFileCode -> json_file_code</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>docRealName -> doc_real_name</li>
|
||||
* <li>jsonRealName -> json_real_name</li>
|
||||
* <li>fileName -> file_name</li>
|
||||
* <li>docName -> doc_name</li>
|
||||
* <li>jsonName -> json_name</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 "wordFileCode": return "word_file_code";
|
||||
case "jsonFileCode": return "json_file_code";
|
||||
case "id": return "id";
|
||||
case "docRealName": return "doc_real_name";
|
||||
case "jsonRealName": return "json_real_name";
|
||||
case "fileName": return "file_name";
|
||||
case "docName": return "doc_name";
|
||||
case "jsonName": return "json_name";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>word_file_code -> wordFileCode</li>
|
||||
* <li>json_file_code -> jsonFileCode</li>
|
||||
* <li>id -> id</li>
|
||||
* <li>doc_real_name -> docRealName</li>
|
||||
* <li>json_real_name -> jsonRealName</li>
|
||||
* <li>file_name -> fileName</li>
|
||||
* <li>doc_name -> docName</li>
|
||||
* <li>json_name -> jsonName</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 "word_file_code": return "wordFileCode";
|
||||
case "json_file_code": return "jsonFileCode";
|
||||
case "id": return "id";
|
||||
case "doc_real_name": return "docRealName";
|
||||
case "json_real_name": return "jsonRealName";
|
||||
case "file_name": return "fileName";
|
||||
case "doc_name": return "docName";
|
||||
case "json_name": return "jsonName";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Object getWordFileCode() {
|
||||
return this.wordFileCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setWordFileCode(Object wordFileCode) {
|
||||
this.wordFileCode = wordFileCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Object getJsonFileCode() {
|
||||
return this.jsonFileCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setJsonFileCode(Object jsonFileCode) {
|
||||
this.jsonFileCode = jsonFileCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDocRealName() {
|
||||
return this.docRealName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDocRealName(String docRealName) {
|
||||
this.docRealName = docRealName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getJsonRealName() {
|
||||
return this.jsonRealName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setJsonRealName(String jsonRealName) {
|
||||
this.jsonRealName = jsonRealName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDocName() {
|
||||
return this.docName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDocName(String docName) {
|
||||
this.docName = docName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getJsonName() {
|
||||
return this.jsonName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setJsonName(String jsonName) {
|
||||
this.jsonName = jsonName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
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 getDocRealFile() {
|
||||
return docRealFile;
|
||||
}
|
||||
|
||||
public void setDocRealFile(String docRealFile) {
|
||||
this.docRealFile = docRealFile;
|
||||
}
|
||||
|
||||
public String getJsonRealFile() {
|
||||
return jsonRealFile;
|
||||
}
|
||||
|
||||
public void setJsonRealFile(String jsonRealFile) {
|
||||
this.jsonRealFile = jsonRealFile;
|
||||
}
|
||||
|
||||
public String getSpendTime() {
|
||||
return spendTime;
|
||||
}
|
||||
|
||||
public void setSpendTime(String spendTime) {
|
||||
this.spendTime = spendTime;
|
||||
}
|
||||
|
||||
public String getResultContent() {
|
||||
return resultContent;
|
||||
}
|
||||
|
||||
public void setResultContent(String resultContent) {
|
||||
this.resultContent = resultContent;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getStandNumber() {
|
||||
return standNumber;
|
||||
}
|
||||
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.adc.da.ocr.entity;
|
||||
|
||||
/**
|
||||
* @program: OcrDemo
|
||||
* @description: ocr接口请求实体类
|
||||
* @author: duyunbao
|
||||
* @create: 2019-03-13 20:46
|
||||
*/
|
||||
public class OcrRequestEo {
|
||||
|
||||
private String userId;
|
||||
private String authCode;
|
||||
private String convertType;
|
||||
private String Filename;
|
||||
private String taskId;
|
||||
private String callBackUrl;
|
||||
private String callBackMethod;
|
||||
private String fileContent;
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getAuthCode() {
|
||||
return authCode;
|
||||
}
|
||||
|
||||
public void setAuthCode(String authCode) {
|
||||
this.authCode = authCode;
|
||||
}
|
||||
|
||||
public String getConvertType() {
|
||||
return convertType;
|
||||
}
|
||||
|
||||
public void setConvertType(String convertType) {
|
||||
this.convertType = convertType;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
return Filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
Filename = filename;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getCallBackUrl() {
|
||||
return callBackUrl;
|
||||
}
|
||||
|
||||
public void setCallBackUrl(String callBackUrl) {
|
||||
this.callBackUrl = callBackUrl;
|
||||
}
|
||||
|
||||
public String getCallBackMethod() {
|
||||
return callBackMethod;
|
||||
}
|
||||
|
||||
public void setCallBackMethod(String callBackMethod) {
|
||||
this.callBackMethod = callBackMethod;
|
||||
}
|
||||
|
||||
public String getFileContent() {
|
||||
return fileContent;
|
||||
}
|
||||
|
||||
public void setFileContent(String fileContent) {
|
||||
this.fileContent = fileContent;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user