feat: 流程入库 及 杂七杂八
This commit is contained in:
@@ -40,6 +40,11 @@
|
||||
<version>3.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,283 @@
|
||||
package com.adc.da.common;
|
||||
|
||||
import org.apache.commons.lang3.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")));
|
||||
}
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.adc.da.workFlow.controller;
|
||||
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
||||
import com.adc.da.workFlow.service.ActSarItemsEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/lawss/actSarItems")
|
||||
@Api(description = "|ActSarItemsEO|")
|
||||
public class ActSarItemsEOController extends BaseController<ActSarItemsEO> {
|
||||
|
||||
@Autowired
|
||||
private ActSarItemsEOService actSarItemsEOService;
|
||||
|
||||
// private static final Logger logger = LoggerFactory.getLogger(AttFileEOController.class);
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePath;//文件存储路径
|
||||
|
||||
@ApiOperation(value = "|SarStandardsInfoEO|标准入库流程标准入库")
|
||||
@PostMapping("/processCreateStand")
|
||||
public ResponseMessage processCreateStand(String infoJson) throws Exception {
|
||||
if (StringUtils.isNotBlank(infoJson)) {
|
||||
actSarItemsEOService.processCreateStand(infoJson);
|
||||
return Result.success("入库成功");
|
||||
} else {
|
||||
return Result.error("传入数据json不能为空");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.workFlow.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ActSarItemsEODao {
|
||||
|
||||
List<ActSarItemsEO> queryByPage(ActSarItemsEO actSarItemsEO);
|
||||
|
||||
Integer process4PageDateCount(ActSarItemsEO actSarItemsEO);
|
||||
|
||||
int queryByCount();
|
||||
|
||||
List<ActSarItemsEO> queryStandAndLaws(ActSarItemsEO actSarItemsEO);
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.adc.da.workFlow.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 工作流使用
|
||||
* Date 2018/10/23 14:29
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
@Data
|
||||
public class ActSarItemsEO {
|
||||
private String resId;// 标准法规ID
|
||||
private String resFlag; //类型
|
||||
private String resNum; //标准,文件号
|
||||
private String resName; //标准,文件名称
|
||||
private String resType; //标准类型
|
||||
private String deptName; //部门id
|
||||
private String orgName; // 责任部门名称
|
||||
private String parentId; //仅条目有
|
||||
private String userId; //评估人ID
|
||||
private List<ActSarItemsEO> itemsList; //条目信息
|
||||
private String accessId; //导入时查询
|
||||
private String applyArctic;
|
||||
private String[] applyArcticList;
|
||||
private String energyKind;
|
||||
private String[] energyKindList;
|
||||
private String mainPointImplementation;
|
||||
private String termsConditions;
|
||||
private String parts;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date tackTime;
|
||||
private String applyArcticShow;
|
||||
private String energyKindShow;
|
||||
private String remarks;
|
||||
private String resState; //标准状态
|
||||
private String fileState; //文本状态
|
||||
private String type; //符合性状态
|
||||
private String prcNum;
|
||||
private String foId;
|
||||
private String foName;
|
||||
private String form;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
//流程分页用
|
||||
private Integer startIndex;
|
||||
private Integer endIndex;
|
||||
private Integer pageSize;
|
||||
private Integer nowPage;
|
||||
private Map<String, Object> attrInfoMap = new LinkedHashMap<>(); //属性表字段与值
|
||||
private String sarState;
|
||||
private String newPutText;
|
||||
private String prodPutText;
|
||||
private String authObj;
|
||||
private String authDelive;
|
||||
private String performInfo;
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,423 @@
|
||||
<?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.workFlow.dao.ActSarItemsEODao">
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.workFlow.entity.ActSarItemsEO" >
|
||||
<id column="resId" property="resId" />
|
||||
<id column="resFlag" property="resFlag" />
|
||||
<id column="resNum" property="resNum" />
|
||||
<id column="resName" property="resName" />
|
||||
<id column="orgName" property="orgName" />
|
||||
<id column="deptName" property="deptName" />
|
||||
<id column="parentId" property="parentId" />
|
||||
<id column="resState" property="resState" />
|
||||
</resultMap>
|
||||
|
||||
<!-- MSG_FILE table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
resId,resFlag,resNum,resName,deptName,orgName,resState
|
||||
</sql>
|
||||
|
||||
<!-- MSG_FILE 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.workFlow.entity.ActSarItemsEO">
|
||||
select count(1) from
|
||||
(
|
||||
SELECT
|
||||
SAR_STANDARDS_INFO.id AS resId,
|
||||
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 resNum,
|
||||
SAR_STANDARDS_INFO.RESPONSIBLE_UNIT as ,
|
||||
SAR_STANDARDS_INFO.STAND_NAME AS resName,
|
||||
SAR_STANDARDS_INFO.stand_type || '_STAND' AS resFlag
|
||||
FROM
|
||||
SAR_STANDARDS_INFO
|
||||
WHERE
|
||||
SAR_STANDARDS_INFO.VALID_FLAG=0
|
||||
<if test="fileState != null and fileState != '' ">
|
||||
<if test='fileState == "STAND_FILE"'>
|
||||
and SAR_STANDARDS_INFO.STAND_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "STAND_MODIFY_FILE"'>
|
||||
and SAR_STANDARDS_INFO.STAND_MODIFY_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "DRAFT_FILE"'>
|
||||
and SAR_STANDARDS_INFO.DRAFT_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "OPINION_FILE"'>
|
||||
and SAR_STANDARDS_INFO.OPINION_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "SENT_SCREEN_FILE"'>
|
||||
and SAR_STANDARDS_INFO.SENT_SCREEN_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "APPROVAL_FILE"'>
|
||||
and SAR_STANDARDS_INFO.APPROVAL_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "RELEVANCE_FILE"'>
|
||||
and SAR_STANDARDS_INFO.RELEVANCE_FILE is not null
|
||||
</if>
|
||||
</if>
|
||||
UNION
|
||||
SELECT
|
||||
SAR_LAWS_INFO.id AS resId,
|
||||
SAR_LAWS_INFO.laws_NUMBER AS resNum,
|
||||
SAR_LAWS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_LAWS_INFO.laws_NAME AS resName,
|
||||
SAR_LAWS_INFO.laws_type || '_LAWS' AS resFlag
|
||||
FROM
|
||||
SAR_LAWS_INFO
|
||||
WHERE
|
||||
SAR_LAWS_INFO.VALID_FLAG=0
|
||||
UNION
|
||||
SELECT
|
||||
SAR_BUSSIONESS_STAND.id AS resId,
|
||||
SAR_BUSSIONESS_STAND.stand_code AS resNum,
|
||||
SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_BUSSIONESS_STAND.stand_NAME AS resName,
|
||||
'BUSINESS_STAND' AS resFlag
|
||||
FROM
|
||||
SAR_BUSSIONESS_STAND
|
||||
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code= SAR_BUSSIONESS_STAND.STAND_SORT and dicstandSort.valid_flag=0 and dicstandSort.dic_id is not null)
|
||||
WHERE
|
||||
SAR_BUSSIONESS_STAND.VALID_FLAG=0
|
||||
)
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 查询MSG_FILE列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.workFlow.entity.ActSarItemsEO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
tmp_tb.*
|
||||
FROM
|
||||
(
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from
|
||||
(
|
||||
SELECT
|
||||
SAR_STANDARDS_INFO.id AS resId,
|
||||
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 resNum,
|
||||
SAR_STANDARDS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_STANDARDS_INFO.STAND_NAME AS resName,
|
||||
SAR_STANDARDS_INFO.stand_type || '_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName,
|
||||
dicstandState.DIC_TYPE_NAME as resState
|
||||
FROM
|
||||
SAR_STANDARDS_INFO left join TS_ORG on SAR_STANDARDS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
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 )
|
||||
WHERE
|
||||
SAR_STANDARDS_INFO.VALID_FLAG=0
|
||||
<if test="fileState != null and fileState != '' ">
|
||||
<if test='fileState == "STAND_FILE"'>
|
||||
and SAR_STANDARDS_INFO.STAND_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "STAND_MODIFY_FILE"'>
|
||||
and SAR_STANDARDS_INFO.STAND_MODIFY_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "DRAFT_FILE"'>
|
||||
and SAR_STANDARDS_INFO.DRAFT_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "OPINION_FILE"'>
|
||||
and SAR_STANDARDS_INFO.OPINION_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "SENT_SCREEN_FILE"'>
|
||||
and SAR_STANDARDS_INFO.SENT_SCREEN_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "APPROVAL_FILE"'>
|
||||
and SAR_STANDARDS_INFO.APPROVAL_FILE is not null
|
||||
</if>
|
||||
<if test='fileState == "RELEVANCE_FILE"'>
|
||||
and SAR_STANDARDS_INFO.RELEVANCE_FILE is not null
|
||||
</if>
|
||||
</if>
|
||||
UNION
|
||||
SELECT
|
||||
SAR_LAWS_INFO.id AS resId,
|
||||
sar_laws_info.laws_NUMBER AS resNum,
|
||||
sar_laws_info.RESPONSIBLE_UNIT as deptName,
|
||||
sar_laws_info.laws_NAME AS resName,
|
||||
sar_laws_info.laws_type || '_LAWS' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName,
|
||||
dic2.dic_type_name as resState
|
||||
FROM
|
||||
SAR_LAWS_INFO left join TS_ORG on SAR_LAWS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
left join TS_DICTYPE dic2 on (SAR_LAWS_INFO.laws_state = dic2.dic_type_code AND dic2.VALID_FLAG = 0)
|
||||
WHERE
|
||||
SAR_LAWS_INFO.VALID_FLAG=0
|
||||
UNION
|
||||
SELECT
|
||||
SAR_BUSSIONESS_STAND.id AS resId,
|
||||
SAR_BUSSIONESS_STAND.stand_code AS resNum,
|
||||
SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_BUSSIONESS_STAND.stand_NAME AS resName,
|
||||
'BUSINESS_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName,
|
||||
dicstandStatus.DIC_TYPE_NAME as resState
|
||||
FROM
|
||||
SAR_BUSSIONESS_STAND left join TS_ORG on SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
left join TS_DICTYPE dicstandSort ON ( dicstandSort.dic_type_code = SAR_BUSSIONESS_STAND.STAND_SORT AND dicstandSort.dic_id IS NOT NULL and
|
||||
dicstandSort.valid_flag = 0)
|
||||
left join TS_DICTYPE dicstandStatus ON ( dicstandStatus.dic_type_code = SAR_BUSSIONESS_STAND.STAND_STATUS AND dicstandStatus.dic_id IS NOT NULL and dicstandStatus.valid_flag = 0)
|
||||
WHERE
|
||||
SAR_BUSSIONESS_STAND.VALID_FLAG=0
|
||||
)
|
||||
where 1=1
|
||||
<if test="resFlag != null and resFlag != '' ">
|
||||
and resFlag = #{resFlag}
|
||||
</if>
|
||||
<if test="resNum != null and resNum != '' ">
|
||||
and resNum like concat(concat('%',#{resNum}),'%')
|
||||
</if>
|
||||
<if test="resName != null and resName != '' ">
|
||||
and resName like concat(concat('%',#{resName}),'%')
|
||||
</if>
|
||||
)tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="process4PageDateCount" resultType="java.lang.Integer" parameterType="com.adc.da.workFlow.entity.ActSarItemsEO">
|
||||
SELECT
|
||||
count(1)
|
||||
FROM
|
||||
(
|
||||
select
|
||||
*
|
||||
from
|
||||
(
|
||||
SELECT
|
||||
SAR_STANDARDS_INFO.id AS resId,
|
||||
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 resNum,
|
||||
SAR_STANDARDS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_STANDARDS_INFO.STAND_NAME AS resName,
|
||||
SAR_STANDARDS_INFO.stand_type || '_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_STANDARDS_INFO left join TS_ORG on SAR_STANDARDS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
WHERE
|
||||
SAR_STANDARDS_INFO.VALID_FLAG=0
|
||||
UNION
|
||||
SELECT
|
||||
SAR_LAWS_INFO.id AS resId,
|
||||
SAR_LAWS_INFO.laws_NUMBER AS resNum,
|
||||
SAR_LAWS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_LAWS_INFO.laws_NAME AS resName,
|
||||
SAR_LAWS_INFO.laws_type || '_LAWS' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_LAWS_INFO left join TS_ORG on SAR_LAWS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
WHERE
|
||||
SAR_LAWS_INFO.VALID_FLAG=0
|
||||
UNION
|
||||
SELECT
|
||||
SAR_BUSSIONESS_STAND.id AS resId,
|
||||
SAR_BUSSIONESS_STAND.stand_code AS resNum,
|
||||
SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_BUSSIONESS_STAND.stand_NAME AS resName,
|
||||
'BUSINESS_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_BUSSIONESS_STAND left join TS_ORG on SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
left join TS_DICTYPE dicstandSort ON ( dicstandSort.dic_type_code = SAR_BUSSIONESS_STAND.STAND_SORT AND dicstandSort.dic_id IS NOT NULL and
|
||||
dicstandSort.valid_flag = 0)
|
||||
WHERE
|
||||
SAR_BUSSIONESS_STAND.VALID_FLAG=0
|
||||
)
|
||||
where 1=1
|
||||
<if test="resFlag != null and resFlag != '' ">
|
||||
and resFlag = #{resFlag}
|
||||
</if>
|
||||
<if test="resNum != null and resNum != '' ">
|
||||
and resNum like concat(concat('%',#{resNum}),'%')
|
||||
</if>
|
||||
<if test="resName != null and resName != '' ">
|
||||
and resName like concat(concat('%',#{resName}),'%')
|
||||
</if>
|
||||
)
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="queryStandAndLaws" resultMap="BaseResultMap" parameterType="com.adc.da.workFlow.entity.ActSarItemsEO">
|
||||
select resId,resFlag,resNum,resName,deptName,orgName
|
||||
from
|
||||
(
|
||||
SELECT
|
||||
SAR_STANDARDS_INFO.id AS resId,
|
||||
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 resNum,
|
||||
SAR_STANDARDS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_STANDARDS_INFO.STAND_NAME AS resName,
|
||||
SAR_STANDARDS_INFO.stand_type || '_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_SAR_ACCESS_INFO
|
||||
left join SAR_STANDARDS_INFO on SAR_SAR_ACCESS_INFO.res_id = SAR_STANDARDS_INFO.id
|
||||
LEFT JOIN SAR_STAND_VAL valapp ON ( SAR_STANDARDS_INFO.id = valapp.stand_id AND valapp.PROPERTY_TYPE = 'APPLY_ARCTIC' )
|
||||
LEFT JOIN SAR_STAND_VAL valeng ON ( SAR_STANDARDS_INFO.id = valeng.stand_id AND valeng.PROPERTY_TYPE = 'ENERGY_KIND' )
|
||||
left join TS_ORG on SAR_STANDARDS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
WHERE
|
||||
SAR_SAR_ACCESS_INFO.VALID_FLAG=0 and
|
||||
SAR_STANDARDS_INFO.VALID_FLAG=0
|
||||
<if test="accessId != null and accessId != '' ">
|
||||
and SAR_SAR_ACCESS_INFO.access_id = #{accessId}
|
||||
</if>
|
||||
<if test="applyArcticList!=null">AND
|
||||
valapp.property_val IN
|
||||
<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="energyKindList!=null"> AND
|
||||
valeng.property_val IN
|
||||
<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!--<if test="applyArctic != null and applyArctic != '' ">-->
|
||||
<!--and SAR_STANDARDS_INFO.apply_arctic = #{applyArctic}-->
|
||||
<!--</if>-->
|
||||
<!--and-->
|
||||
<!--(-->
|
||||
<!--( SAR_STAND_VAL.property_type = 'APPLY_ARCTIC'-->
|
||||
<!--<if test="applyArcticList!=null">AND-->
|
||||
<!--SAR_STAND_VAL.property_val IN-->
|
||||
<!--<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--AND (-->
|
||||
<!--SAR_STAND_VAL.property_type = 'ENERGY_KIND'<if test="energyKindList!=null">AND-->
|
||||
<!--SAR_STAND_VAL.property_val IN-->
|
||||
<!--<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--)-->
|
||||
|
||||
UNION
|
||||
SELECT
|
||||
SAR_LAWS_INFO.id AS resId,
|
||||
SAR_LAWS_INFO.laws_NUMBER AS resNum,
|
||||
SAR_LAWS_INFO.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_LAWS_INFO.laws_NAME AS resName,
|
||||
SAR_LAWS_INFO.laws_type || '_LAWS' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_SAR_ACCESS_INFO
|
||||
left join SAR_LAWS_INFO on SAR_SAR_ACCESS_INFO.res_id = SAR_LAWS_INFO.id
|
||||
LEFT JOIN SAR_LAWS_VAL valapp ON ( SAR_LAWS_INFO.id = valapp.laws_id AND valapp.PROPERTY_TYPE = 'APPLY_ARCTIC' )
|
||||
LEFT JOIN SAR_LAWS_VAL valeng ON ( SAR_LAWS_INFO.id = valeng.laws_id AND valeng.PROPERTY_TYPE = 'ENERGY_KIND' )
|
||||
left join TS_ORG on SAR_LAWS_INFO.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
WHERE
|
||||
SAR_SAR_ACCESS_INFO.VALID_FLAG=0 and
|
||||
SAR_LAWS_INFO.VALID_FLAG=0
|
||||
<if test="accessId != null and accessId != '' ">
|
||||
and SAR_SAR_ACCESS_INFO.access_id = #{accessId}
|
||||
</if>
|
||||
<if test="applyArcticList!=null"> AND
|
||||
valapp.property_val IN
|
||||
<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="energyKindList!=null"> AND
|
||||
valeng.property_val IN
|
||||
<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!--and-->
|
||||
<!--(-->
|
||||
<!--( SAR_laws_VAL.property_type = 'APPLY_ARCTIC'-->
|
||||
<!--<if test="applyArcticList!=null"> AND-->
|
||||
<!--SAR_laws_VAL.property_val IN-->
|
||||
<!--<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--AND-->
|
||||
<!--( SAR_laws_VAL.property_type = 'ENERGY_KIND'-->
|
||||
<!--<if test="energyKindList!=null"> AND-->
|
||||
<!--SAR_laws_VAL.property_val IN-->
|
||||
<!--<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--)-->
|
||||
UNION
|
||||
SELECT
|
||||
SAR_BUSSIONESS_STAND.id AS resId,
|
||||
SAR_BUSSIONESS_STAND.stand_code AS resNum,
|
||||
SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT as deptName,
|
||||
SAR_BUSSIONESS_STAND.stand_NAME AS resName,
|
||||
'BUSINESS_STAND' AS resFlag,
|
||||
TS_ORG.ORG_NAME as orgName
|
||||
FROM
|
||||
SAR_SAR_ACCESS_INFO
|
||||
left join SAR_BUSSIONESS_STAND on SAR_SAR_ACCESS_INFO.res_id = SAR_BUSSIONESS_STAND.id
|
||||
LEFT JOIN SAR_BUSS_STAND_VAL valapp ON ( SAR_BUSSIONESS_STAND.id = valapp.stand_id AND valapp.PROPERTY_TYPE = 'APPLY_ARCTIC' )
|
||||
LEFT JOIN SAR_BUSS_STAND_VAL valeng ON ( SAR_BUSSIONESS_STAND.id = valeng.stand_id AND valeng.PROPERTY_TYPE = 'ENERGY_KIND' )
|
||||
left join TS_ORG on SAR_BUSSIONESS_STAND.RESPONSIBLE_UNIT = TS_ORG.ID
|
||||
left join TS_DICTYPE dicstandSort ON ( dicstandSort.dic_type_code = SAR_BUSSIONESS_STAND.STAND_SORT AND dicstandSort.dic_id IS NOT NULL and dicstandSort.valid_flag = 0)
|
||||
WHERE
|
||||
SAR_SAR_ACCESS_INFO.VALID_FLAG=0 and
|
||||
SAR_BUSSIONESS_STAND.VALID_FLAG=0
|
||||
<if test="accessId != null and accessId != '' ">
|
||||
and SAR_SAR_ACCESS_INFO.access_id = #{accessId}
|
||||
</if>
|
||||
<if test="applyArcticList!=null"> AND
|
||||
valapp.property_value IN
|
||||
<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="energyKindList!=null"> AND
|
||||
valeng.property_value IN
|
||||
<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!--and-->
|
||||
<!--(-->
|
||||
<!--( SAR_BUSS_STAND_VAL.property_type = 'APPLY_ARCTIC'-->
|
||||
<!--<if test="applyArcticList!=null"> AND-->
|
||||
<!--SAR_BUSS_STAND_VAL.PROPERTY_VALUE IN-->
|
||||
<!--<foreach collection="applyArcticList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--AND-->
|
||||
<!--( SAR_BUSS_STAND_VAL.property_type = 'ENERGY_KIND'-->
|
||||
<!--<if test="energyKindList!=null"> AND-->
|
||||
<!--SAR_BUSS_STAND_VAL.PROPERTY_VALUE IN-->
|
||||
<!--<foreach collection="energyKindList" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!--#{item}-->
|
||||
<!--</foreach>-->
|
||||
<!--</if>-->
|
||||
<!--)-->
|
||||
<!--)-->
|
||||
)
|
||||
</select>
|
||||
</mapper>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.SarCompResAssess.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准法规/政策技术评估汇总记录表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "|SarCompResAssess|")
|
||||
@RequestMapping("/SarCompResAssess/sar-comp-res-assess")
|
||||
public class SarCompResAssessController extends BaseController<SarCompResAssess> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.SarCompResAssess.dao;
|
||||
|
||||
import com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准法规/政策技术评估汇总记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface SarCompResAssessDao extends BaseMapper<SarCompResAssess> {
|
||||
|
||||
SarCompResAssess getResAssessDataByResId(String resId);
|
||||
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.adc.da.slrs.SarCompResAssess.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准法规/政策技术评估汇总记录表
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarCompResAssess对象", description="标准法规/政策技术评估汇总记录表")
|
||||
public class SarCompResAssess extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "资源类型")
|
||||
@TableField("RES_TYPE")
|
||||
private String resType;
|
||||
|
||||
@ApiModelProperty(value = "资源ID")
|
||||
@TableField("RES_ID")
|
||||
private String resId;
|
||||
|
||||
@ApiModelProperty(value = "评估结果")
|
||||
@TableField("ASSESS_RESULT")
|
||||
private Integer assessResult;
|
||||
|
||||
@ApiModelProperty(value = "评估分级颜色")
|
||||
@TableField("ASSESS_COLOR")
|
||||
private String assessColor;
|
||||
|
||||
@ApiModelProperty(value = "评估完成时间")
|
||||
@TableField("ASSESS_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date assessTime;
|
||||
|
||||
@ApiModelProperty(value = "流程编号")
|
||||
@TableField("PROCESS_NUM")
|
||||
private String processNum;
|
||||
|
||||
@ApiModelProperty(value = "流程状态")
|
||||
@TableField("PROCESS_STATE")
|
||||
private String processState;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATED_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.adc.da.slrs.SarCompResAssess.service;
|
||||
|
||||
import com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准法规/政策技术评估汇总记录表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface ISarCompResAssessService extends IService<SarCompResAssess> {
|
||||
|
||||
SarCompResAssess getAssessInfoByResId(String resId);
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.adc.da.slrs.SarCompResAssess.service.impl;
|
||||
|
||||
import com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess;
|
||||
import com.adc.da.slrs.SarCompResAssess.dao.SarCompResAssessDao;
|
||||
import com.adc.da.slrs.SarCompResAssess.service.ISarCompResAssessService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准法规/政策技术评估汇总记录表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Service
|
||||
public class SarCompResAssessServiceImpl extends ServiceImpl<SarCompResAssessDao, SarCompResAssess> implements ISarCompResAssessService {
|
||||
|
||||
@Autowired
|
||||
private SarCompResAssessDao dao;
|
||||
|
||||
public SarCompResAssessDao getDao() {
|
||||
return dao;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据资源ID获取评估汇总结果
|
||||
* @return
|
||||
*/
|
||||
public SarCompResAssess getAssessInfoByResId(String resId){
|
||||
return dao.getResAssessDataByResId(resId);
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.SarCompStatusInfo.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.SarCompStatusInfo.entity.SarCompStatusInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "|SarCompStatusInfo|")
|
||||
@RequestMapping("/SarCompStatusInfo/sar-comp-status-info")
|
||||
public class SarCompStatusInfoController extends BaseController<SarCompStatusInfo> {
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.SarCompStatusInfo.dao;
|
||||
|
||||
import com.adc.da.slrs.SarCompStatusInfo.entity.SarCompStatusInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface SarCompStatusInfoDao extends BaseMapper<SarCompStatusInfo> {
|
||||
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
package com.adc.da.slrs.SarCompStatusInfo.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarCompStatusInfo对象", description="")
|
||||
public class SarCompStatusInfo extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "ID")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "标准/政策类别")
|
||||
@TableField("SAR_TYPE")
|
||||
private String sarType;
|
||||
|
||||
@ApiModelProperty(value = "标准/政策ID")
|
||||
@TableField("SAR_ID")
|
||||
private String sarId;
|
||||
|
||||
@ApiModelProperty(value = "标准/政策条款ID")
|
||||
@TableField("SAR_ITEM_ID")
|
||||
private String sarItemId;
|
||||
|
||||
@ApiModelProperty(value = "标准/政策符合性状态")
|
||||
@TableField("SAR_STATE")
|
||||
private String sarState;
|
||||
|
||||
@ApiModelProperty(value = "标准/政策条款符合性状态")
|
||||
@TableField("SAR_ITEM_STATE")
|
||||
private String sarItemState;
|
||||
|
||||
@ApiModelProperty(value = "流程编号")
|
||||
@TableField("PRC_NUM")
|
||||
private String prcNum;
|
||||
|
||||
@ApiModelProperty(value = "合规性分级颜色")
|
||||
@TableField("COLOR")
|
||||
private String color;
|
||||
|
||||
@ApiModelProperty(value = "流程状态")
|
||||
@TableField("PRC_STATE")
|
||||
private String prcState;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "不符合内容")
|
||||
@TableField("NON_CONFOMITY")
|
||||
private String nonConfomity;
|
||||
|
||||
@ApiModelProperty(value = "我司现状")
|
||||
@TableField("CURRENT")
|
||||
private String current;
|
||||
|
||||
@ApiModelProperty(value = "更改方案")
|
||||
@TableField("CHANGE_SCHEME")
|
||||
private String changeScheme;
|
||||
|
||||
@ApiModelProperty(value = "预估更改周期")
|
||||
@TableField("ESTIMATED_CHANGE_CYCLE")
|
||||
private String estimatedChangeCycle;
|
||||
|
||||
@ApiModelProperty(value = "预估成本")
|
||||
@TableField("ESTIMATED_COST")
|
||||
private String estimatedCost;
|
||||
|
||||
@ApiModelProperty(value = "风险点")
|
||||
@TableField("RISK_POINT")
|
||||
private String riskPoint;
|
||||
|
||||
@ApiModelProperty(value = "验证方案")
|
||||
@TableField("VERIFICATION_SCHEME")
|
||||
private String verificationScheme;
|
||||
|
||||
@ApiModelProperty(value = "符合理由")
|
||||
@TableField("JUSTIFIED")
|
||||
private String justified;
|
||||
|
||||
@ApiModelProperty(value = "评估人员")
|
||||
@TableField("COMP_PERSON")
|
||||
private String compPerson;
|
||||
|
||||
@ApiModelProperty(value = "评估时间")
|
||||
@TableField("COMP_TIME")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date compTime;
|
||||
|
||||
|
||||
@TableField( exist = false)
|
||||
private String compPersonName;
|
||||
@TableField( exist = false)
|
||||
private String state;
|
||||
@TableField( exist = false)
|
||||
private String sarNumber;
|
||||
@TableField( exist = false)
|
||||
private String sarItemNumber;
|
||||
@TableField( exist = false)
|
||||
private String standId;
|
||||
@TableField( exist = false)
|
||||
private String standType;
|
||||
@TableField( exist = false)
|
||||
private String standCode;
|
||||
@TableField( exist = false)
|
||||
private String standName;
|
||||
@TableField( exist = false)
|
||||
private String createType;
|
||||
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.SarCompStatusInfo.service;
|
||||
|
||||
import com.adc.da.slrs.SarCompStatusInfo.entity.SarCompStatusInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface ISarCompStatusInfoService extends IService<SarCompStatusInfo> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.SarCompStatusInfo.service.impl;
|
||||
|
||||
import com.adc.da.slrs.SarCompStatusInfo.entity.SarCompStatusInfo;
|
||||
import com.adc.da.slrs.SarCompStatusInfo.dao.SarCompStatusInfoDao;
|
||||
import com.adc.da.slrs.SarCompStatusInfo.service.ISarCompStatusInfoService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Service
|
||||
public class SarCompStatusInfoServiceImpl extends ServiceImpl<SarCompStatusInfoDao, SarCompStatusInfo> implements ISarCompStatusInfoService {
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.SarFileSplitItems.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.SarFileSplitItems.entity.SarFileSplitItems;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "|SarFileSplitItems|")
|
||||
@RequestMapping("/SarFileSplitItems/sar-file-split-items")
|
||||
public class SarFileSplitItemsController extends BaseController<SarFileSplitItems> {
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.SarFileSplitItems.dao;
|
||||
|
||||
import com.adc.da.slrs.SarFileSplitItems.entity.SarFileSplitItems;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface SarFileSplitItemsDao extends BaseMapper<SarFileSplitItems> {
|
||||
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
package com.adc.da.slrs.SarFileSplitItems.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarFileSplitItems对象", description="")
|
||||
public class SarFileSplitItems extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "拆分信息记录ID")
|
||||
@TableField("INFO_ID")
|
||||
private String infoId;
|
||||
|
||||
@ApiModelProperty(value = "条款号")
|
||||
@TableField("ITEMS_NUM")
|
||||
private String itemsNum;
|
||||
|
||||
@ApiModelProperty(value = "条款名称")
|
||||
@TableField("ITEMS_NAME")
|
||||
private String itemsName;
|
||||
|
||||
@ApiModelProperty(value = "条款要求")
|
||||
@TableField("ITERMS_CONDITIONS")
|
||||
private String itermsConditions;
|
||||
|
||||
@ApiModelProperty(value = "新定车型实施日期")
|
||||
@TableField("NEWCAR_PUT_TIME")
|
||||
private Date newcarPutTime;
|
||||
|
||||
@ApiModelProperty(value = "在产车型实施日期")
|
||||
@TableField("PRODUCT_PUT_TIME")
|
||||
private Date productPutTime;
|
||||
|
||||
@ApiModelProperty(value = "拆分目录ID")
|
||||
@TableField("MENU_ID")
|
||||
private String menuId;
|
||||
|
||||
@ApiModelProperty(value = "SVPPS")
|
||||
@TableField("SVPPS")
|
||||
private String svpps;
|
||||
|
||||
@ApiModelProperty(value = "适用车型")
|
||||
@TableField("APPLY_ARCTIC")
|
||||
private String applyArctic;
|
||||
|
||||
@ApiModelProperty(value = "引用标准")
|
||||
@TableField("REFERENCE_STAND")
|
||||
private String referenceStand;
|
||||
|
||||
@ApiModelProperty(value = "特殊参数要求")
|
||||
@TableField("SPECIAL_REQUEST")
|
||||
private String specialRequest;
|
||||
|
||||
@ApiModelProperty(value = "关联文件")
|
||||
@TableField("RELEVANCE_FILE")
|
||||
private String relevanceFile;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
@TableField("REMARKS")
|
||||
private String remarks;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private Integer validFlag;
|
||||
|
||||
@TableField("CREATION_USER")
|
||||
private String creationUser;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
private Date modifyTime;
|
||||
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
|
||||
@ApiModelProperty(value = "FO")
|
||||
@TableField("FO")
|
||||
private String fo;
|
||||
|
||||
@ApiModelProperty(value = "责任工程师")
|
||||
@TableField("DUTY_ENGINEER")
|
||||
private String dutyEngineer;
|
||||
|
||||
@ApiModelProperty(value = "要求类型")
|
||||
@TableField("CLAIM_TYPE")
|
||||
private String claimType;
|
||||
|
||||
@ApiModelProperty(value = "企标覆盖关系")
|
||||
@TableField("BUS_STAND_COVER")
|
||||
private String busStandCover;
|
||||
|
||||
@ApiModelProperty(value = "文件类型")
|
||||
@TableField("FILE_TYPE")
|
||||
private String fileType;
|
||||
|
||||
@ApiModelProperty(value = "责任部门")
|
||||
@TableField("RESPONSIBLE_UNIT")
|
||||
private String responsibleUnit;
|
||||
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.SarFileSplitItems.service;
|
||||
|
||||
import com.adc.da.slrs.SarFileSplitItems.entity.SarFileSplitItems;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface ISarFileSplitItemsService extends IService<SarFileSplitItems> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.SarFileSplitItems.service.impl;
|
||||
|
||||
import com.adc.da.slrs.SarFileSplitItems.entity.SarFileSplitItems;
|
||||
import com.adc.da.slrs.SarFileSplitItems.dao.SarFileSplitItemsDao;
|
||||
import com.adc.da.slrs.SarFileSplitItems.service.ISarFileSplitItemsService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Service
|
||||
public class SarFileSplitItemsServiceImpl extends ServiceImpl<SarFileSplitItemsDao, SarFileSplitItems> implements ISarFileSplitItemsService {
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.SarStandItemVal.controller;
|
||||
|
||||
|
||||
import com.adc.da.base.web.BaseController;
|
||||
import com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|SarStandItemVal|")
|
||||
@RequestMapping("/SarStandItemVal/sar-stand-item-val")
|
||||
public class SarStandItemValController extends BaseController<SarStandItemVal> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.adc.da.slrs.SarStandItemVal.dao;
|
||||
|
||||
import com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface SarStandItemValDao extends BaseMapper<SarStandItemVal> {
|
||||
|
||||
int deleteSarStandItemValByItemid(String itemid);
|
||||
|
||||
int updateSarStandItemValByItemid(String itemid);
|
||||
|
||||
int deleteByItemsIds(@Param("idList") List<String> idList);
|
||||
|
||||
int insertForeach(List<SarStandItemVal> list);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.adc.da.slrs.SarStandItemVal.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
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 java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarStandItemVal对象", description="")
|
||||
public class SarStandItemVal extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "标准ID")
|
||||
@TableField("ITEM_ID")
|
||||
private String itemId;
|
||||
|
||||
@ApiModelProperty(value = "参数类型")
|
||||
@TableField("PROPERTY_TYPE")
|
||||
private String propertyType;
|
||||
|
||||
@ApiModelProperty(value = "参数内容")
|
||||
@TableField("PROPERTY_VAL")
|
||||
private String propertyVal;
|
||||
|
||||
@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;
|
||||
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.SarStandItemVal.service;
|
||||
|
||||
import com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
public interface ISarStandItemValService extends IService<SarStandItemVal> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.SarStandItemVal.service.impl;
|
||||
|
||||
import com.adc.da.slrs.SarStandItemVal.dao.SarStandItemValDao;
|
||||
import com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal;
|
||||
import com.adc.da.slrs.SarStandItemVal.service.ISarStandItemValService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-21
|
||||
*/
|
||||
@Service
|
||||
public class SarStandItemValServiceImpl extends ServiceImpl<SarStandItemValDao, SarStandItemVal> implements ISarStandItemValService {
|
||||
|
||||
}
|
||||
+3
@@ -13,4 +13,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
*/
|
||||
public interface ISarStandAttrInfoService extends IService<SarStandAttrInfo> {
|
||||
|
||||
String selectFieldValByStandId(String field,String standId);
|
||||
|
||||
int updateStandInfo(String standId,String field,String value);
|
||||
}
|
||||
|
||||
+13
@@ -4,6 +4,7 @@ import com.adc.da.slrs.sarStandAttrInfo.entity.SarStandAttrInfo;
|
||||
import com.adc.da.slrs.sarStandAttrInfo.dao.SarStandAttrInfoDao;
|
||||
import com.adc.da.slrs.sarStandAttrInfo.service.ISarStandAttrInfoService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -17,4 +18,16 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SarStandAttrInfoServiceImpl extends ServiceImpl<SarStandAttrInfoDao, SarStandAttrInfo> implements ISarStandAttrInfoService {
|
||||
|
||||
@Autowired
|
||||
private SarStandAttrInfoDao dao;
|
||||
|
||||
@Override
|
||||
public String selectFieldValByStandId (String field,String standId) {
|
||||
return dao.selectFieldValByStandId(field,standId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateStandInfo(String standId,String field,String value){
|
||||
return dao.updateStandInfo(standId,field,value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.adc.da.slrs.sarStandItems.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.adc.da.slrs.SarCompStatusInfo.entity.SarCompStatusInfo;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
@@ -152,6 +153,8 @@ public class SarStandItems extends BaseEntity {
|
||||
private String oldId;
|
||||
@TableField(exist = false)
|
||||
private String jspg;
|
||||
@TableField(exist = false)
|
||||
private SarCompStatusInfo pgForm;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+5
-1
@@ -4,6 +4,8 @@ import com.adc.da.slrs.sarStandardsInfo.entity.*;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -31,6 +33,8 @@ public interface ISarStandardsInfoService extends IService<SarStandardsInfo> {
|
||||
|
||||
List<SarStandardsInfo> selectStandardsByStandnumber(String replaceStandNum, String standType);
|
||||
|
||||
void attrInfoDetails(SarStandardsInfo row) throws IOException, SQLException;
|
||||
|
||||
SarStandardsInfo selectStandardsInfoByKey(String id) throws Exception;
|
||||
|
||||
boolean updateStandardsMenu(SarStandardsInfoEOPage standardsInfoEO);
|
||||
@@ -40,4 +44,4 @@ public interface ISarStandardsInfoService extends IService<SarStandardsInfo> {
|
||||
List<RecommendVO> selectRecommendStand(SarStandardsInfoEOPage pagenew);
|
||||
|
||||
List<ActSarItemsEO> getStandAndItemsForAct (SarStandardsInfoEOPage page) throws Exception;
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -61,7 +61,9 @@ import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.sql.Clob;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
@@ -192,7 +194,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
}
|
||||
}
|
||||
|
||||
public void attrInfoDetails (SarStandardsInfo row) throws Exception {
|
||||
public void attrInfoDetails (SarStandardsInfo row) throws IOException, SQLException {
|
||||
String fieldInfo = InitStandAttrUtil.queryField;
|
||||
String collectId = personCollectEOService.queryCollectByUserAndId(row.getId());
|
||||
row.setCollectId(collectId);
|
||||
|
||||
+344
@@ -0,0 +1,344 @@
|
||||
<?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.SarCompResAssess.dao.SarCompResAssessDao">
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess" >
|
||||
<id column="id" property="id" />
|
||||
<result column="res_type" property="resType" />
|
||||
<result column="res_id" property="resId" />
|
||||
<result column="assess_result" property="assessResult" />
|
||||
<result column="assess_color" property="assessColor" />
|
||||
<result column="assess_time" property="assessTime" />
|
||||
<result column="process_num" property="processNum" />
|
||||
<result column="process_state" property="processState" />
|
||||
<result column="created_time" property="createdTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="standCode" property="standCode"/>
|
||||
<result column="standName" property="standName" />
|
||||
<result column="res_type" property="standType" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_COMP_RES_ASSESS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, res_type, res_id, assess_result, assess_color, assess_time, process_num, process_state, created_time, modify_time
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Column_List_Stand" >
|
||||
id, res_type, res_id, assess_result, assess_color, assess_time, process_num, process_state, created_time, modify_time,standCode,standName
|
||||
</sql>
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="resType != null" >
|
||||
and res_type ${resTypeOperator} #{resType}
|
||||
</if>
|
||||
<if test="resId != null" >
|
||||
and res_id ${resIdOperator} #{resId}
|
||||
</if>
|
||||
<if test="assessResult != null" >
|
||||
and assess_result ${assessResultOperator} #{assessResult}
|
||||
</if>
|
||||
<if test="assessColor != null" >
|
||||
and assess_color ${assessColorOperator} #{assessColor}
|
||||
</if>
|
||||
<if test="assessTime != null" >
|
||||
and assess_time ${assessTimeOperator} #{assessTime}
|
||||
</if>
|
||||
<if test="assessTime1 != null" >
|
||||
and assess_time >= #{assessTime1}
|
||||
</if>
|
||||
<if test="assessTime2 != null" >
|
||||
and assess_time <= #{assessTime2}
|
||||
</if>
|
||||
<if test="processNum != null" >
|
||||
and process_num ${processNumOperator} #{processNum}
|
||||
</if>
|
||||
<if test="processState != null" >
|
||||
and process_state ${processStateOperator} #{processState}
|
||||
</if>
|
||||
<if test="createdTime != null" >
|
||||
and created_time ${createdTimeOperator} #{createdTime}
|
||||
</if>
|
||||
<if test="createdTime1 != null" >
|
||||
and created_time >= #{createdTime1}
|
||||
</if>
|
||||
<if test="createdTime2 != null" >
|
||||
and created_time <= #{createdTime2}
|
||||
</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="standCode != null">
|
||||
AND standCode Like concat(concat('%',#{standCode}),'%')
|
||||
</if>
|
||||
<if test="standName != null">
|
||||
AND standName Like concat(concat('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="standType != null" >
|
||||
and res_type = #{standType}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_COMP_RES_ASSESS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_COMP_RES_ASSESS(<include refid="Base_Column_List" />)
|
||||
values (#{id}, #{resType}, #{resId}, #{assessResult}, #{assessColor}, #{assessTime}, #{processNum}, #{processState}, #{createdTime}, #{modifyTime})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_COMP_RES_ASSESS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_COMP_RES_ASSESS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="resType != null" >res_type,</if>
|
||||
<if test="resId != null" >res_id,</if>
|
||||
<if test="assessResult != null" >assess_result,</if>
|
||||
<if test="assessColor != null" >assess_color,</if>
|
||||
<if test="assessTime != null" >assess_time,</if>
|
||||
<if test="processNum != null" >process_num,</if>
|
||||
<if test="processState != null" >process_state,</if>
|
||||
<if test="createdTime != null" >created_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id},</if>
|
||||
<if test="resType != null" >#{resType},</if>
|
||||
<if test="resId != null" >#{resId},</if>
|
||||
<if test="assessResult != null" >#{assessResult},</if>
|
||||
<if test="assessColor != null" >#{assessColor},</if>
|
||||
<if test="assessTime != null" >#{assessTime},</if>
|
||||
<if test="processNum != null" >#{processNum},</if>
|
||||
<if test="processState != null" >#{processState},</if>
|
||||
<if test="createdTime != null" >#{createdTime},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess" >
|
||||
update SAR_COMP_RES_ASSESS
|
||||
set res_type = #{resType},
|
||||
res_id = #{resId},
|
||||
assess_result = #{assessResult},
|
||||
assess_color = #{assessColor},
|
||||
assess_time = #{assessTime},
|
||||
process_num = #{processNum},
|
||||
process_state = #{processState},
|
||||
created_time = #{createdTime},
|
||||
modify_time = #{modifyTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.SarCompResAssess.entity.SarCompResAssess" >
|
||||
update SAR_COMP_RES_ASSESS
|
||||
<set >
|
||||
<if test="resType != null" >
|
||||
res_type = #{resType},
|
||||
</if>
|
||||
<if test="resId != null" >
|
||||
res_id = #{resId},
|
||||
</if>
|
||||
<if test="assessResult != null" >
|
||||
assess_result = #{assessResult},
|
||||
</if>
|
||||
<if test="assessColor != null" >
|
||||
assess_color = #{assessColor},
|
||||
</if>
|
||||
<if test="assessTime != null" >
|
||||
assess_time = #{assessTime},
|
||||
</if>
|
||||
<if test="processNum != null" >
|
||||
process_num = #{processNum},
|
||||
</if>
|
||||
<if test="processState != null" >
|
||||
process_state = #{processState},
|
||||
</if>
|
||||
<if test="createdTime != null" >
|
||||
created_time = #{createdTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_COMP_RES_ASSESS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_COMP_RES_ASSESS
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_COMP_RES_ASSESS
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_COMP_RES_ASSESS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_COMP_RES_ASSESS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_COMP_RES_ASSESS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from SAR_COMP_RES_ASSESS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
limit ${pager.pageOffset},${pager.pageSize}
|
||||
</select>
|
||||
|
||||
<!-- SAR_COMP_RES_ASSESS 列表总数-->
|
||||
<select id="queryResDataByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT COUNT(1) FROM (
|
||||
SELECT
|
||||
SAR_COMP_RES_ASSESS.*,
|
||||
(
|
||||
CASE
|
||||
SAR_COMP_RES_ASSESS.RES_TYPE
|
||||
WHEN 'INLAND_STAND' THEN
|
||||
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 )
|
||||
)
|
||||
WHEN 'FOREIGN_STAND' THEN
|
||||
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 )
|
||||
)
|
||||
WHEN 'FOREIGN_LAWS' THEN
|
||||
SAR_LAWS_INFO.laws_number ELSE ''
|
||||
END
|
||||
) AS standCode,
|
||||
(
|
||||
CASE
|
||||
SAR_COMP_RES_ASSESS.RES_TYPE
|
||||
WHEN 'INLAND_STAND' THEN
|
||||
SAR_STANDARDS_INFO.STAND_NAME
|
||||
WHEN 'FOREIGN_STAND' THEN
|
||||
SAR_STANDARDS_INFO.STAND_NAME
|
||||
WHEN 'FOREIGN_LAWS' THEN
|
||||
SAR_LAWS_INFO.LAWS_NAME ELSE ''
|
||||
END
|
||||
) AS standName
|
||||
FROM
|
||||
SAR_COMP_RES_ASSESS
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON SAR_COMP_RES_ASSESS.RES_ID = SAR_STANDARDS_INFO.ID
|
||||
LEFT JOIN SAR_LAWS_INFO ON SAR_COMP_RES_ASSESS.RES_ID = SAR_LAWS_INFO.ID
|
||||
WHERE
|
||||
1 = 1
|
||||
AND ( SAR_STANDARDS_INFO.VALID_FLAG = 0 OR SAR_STANDARDS_INFO.VALID_FLAG IS NULL )
|
||||
AND (
|
||||
SAR_LAWS_INFO.VALID_FLAG - 0
|
||||
OR SAR_LAWS_INFO.VALID_FLAG IS NULL)
|
||||
) AS RESULT
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_COMP_RES_ASSESS列表 -->
|
||||
<select id="queryResDataByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT <include refid="Base_Column_List_Stand" /> FROM (
|
||||
SELECT
|
||||
SAR_COMP_RES_ASSESS.*,
|
||||
(
|
||||
CASE
|
||||
SAR_COMP_RES_ASSESS.RES_TYPE
|
||||
WHEN 'INLAND_STAND' THEN
|
||||
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 )
|
||||
)
|
||||
WHEN 'FOREIGN_STAND' THEN
|
||||
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 )
|
||||
)
|
||||
WHEN 'FOREIGN_LAWS' THEN
|
||||
SAR_LAWS_INFO.laws_number ELSE ''
|
||||
END
|
||||
) AS standCode,
|
||||
(
|
||||
CASE
|
||||
SAR_COMP_RES_ASSESS.RES_TYPE
|
||||
WHEN 'INLAND_STAND' THEN
|
||||
SAR_STANDARDS_INFO.STAND_NAME
|
||||
WHEN 'FOREIGN_STAND' THEN
|
||||
SAR_STANDARDS_INFO.STAND_NAME
|
||||
WHEN 'FOREIGN_LAWS' THEN
|
||||
SAR_LAWS_INFO.LAWS_NAME ELSE ''
|
||||
END
|
||||
) AS standName
|
||||
FROM
|
||||
SAR_COMP_RES_ASSESS
|
||||
LEFT JOIN SAR_STANDARDS_INFO ON SAR_COMP_RES_ASSESS.RES_ID = SAR_STANDARDS_INFO.ID
|
||||
LEFT JOIN SAR_LAWS_INFO ON SAR_COMP_RES_ASSESS.RES_ID = SAR_LAWS_INFO.ID
|
||||
WHERE
|
||||
1 = 1
|
||||
AND ( SAR_STANDARDS_INFO.VALID_FLAG = 0 OR SAR_STANDARDS_INFO.VALID_FLAG IS NULL or SAR_STANDARDS_INFO.VALID_FLAG = 1)
|
||||
AND (
|
||||
SAR_LAWS_INFO.VALID_FLAG - 0 or SAR_LAWS_INFO.VALID_FLAG = 1
|
||||
OR SAR_LAWS_INFO.VALID_FLAG IS NULL)
|
||||
) AS RESULT
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
limit ${pager.pageOffset},${pager.pageSize}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_COMP_RES_ASSESS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getResAssessDataByResId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_COMP_RES_ASSESS
|
||||
where res_id = #{value}
|
||||
</select>
|
||||
|
||||
<update id="updateStatus" parameterType="java.lang.String" >
|
||||
update SAR_COMP_RES_ASSESS
|
||||
<set >
|
||||
PROCESS_STATE = '1',
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
+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.SarCompStatusInfo.dao.SarCompStatusInfoDao">
|
||||
|
||||
</mapper>
|
||||
+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.SarFileSplitItems.dao.SarFileSplitItemsDao">
|
||||
|
||||
</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.SarStandItemVal.dao.SarStandItemValDao">
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal" >
|
||||
<id column="id" property="id" />
|
||||
<result column="property_type" property="propertyType" />
|
||||
<result column="item_id" property="itemId" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="property_val" property="propertyVal" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_ITEM_VAL table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
property_type, item_id, id, modify_time, creation_time, valid_flag, property_val
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="propertyType != null" >
|
||||
and property_type ${propertyTypeOperator} #{propertyType}
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
and item_id ${itemIdOperator} #{itemId}
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</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="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="propertyVal != null" >
|
||||
and property_val ${propertyValOperator} #{propertyVal}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ITEM_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ITEM_VAL(<include refid="Base_Column_List" />)
|
||||
values (#{propertyType, jdbcType=VARCHAR}, #{itemId, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR}, #{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{validFlag, jdbcType=INTEGER}, #{propertyVal, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ITEM_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ITEM_VAL
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="propertyType != null" >property_type,</if>
|
||||
<if test="itemId != null" >item_id,</if>
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="propertyVal != null" >property_val,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="propertyType != null" >#{propertyType, jdbcType=VARCHAR},</if>
|
||||
<if test="itemId != null" >#{itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<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="propertyVal != null" >#{propertyVal, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal" >
|
||||
update SAR_STAND_ITEM_VAL
|
||||
set property_type = #{propertyType},
|
||||
item_id = #{itemId},
|
||||
modify_time = #{modifyTime},
|
||||
creation_time = #{creationTime},
|
||||
valid_flag = #{validFlag},
|
||||
property_val = #{propertyVal}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal" >
|
||||
update SAR_STAND_ITEM_VAL
|
||||
<set >
|
||||
<if test="propertyType != null" >
|
||||
property_type = #{propertyType},
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
item_id = #{itemId},
|
||||
</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="propertyVal != null" >
|
||||
property_val = #{propertyVal},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_STAND_ITEM_VAL -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_STAND_ITEM_VAL
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_ITEM_VAL
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_STAND_ITEM_VAL 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from SAR_STAND_ITEM_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_STAND_ITEM_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_STAND_ITEM_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_STAND_ITEM_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 根据条目ID删除条目关联 -->
|
||||
<delete id="deleteSarStandItemValByItemid" parameterType="java.lang.String" >
|
||||
delete from SAR_STAND_ITEM_VAL
|
||||
where ITEM_ID = #{itemid}
|
||||
</delete>
|
||||
|
||||
<update id="updateSarStandItemValByItemid" parameterType="java.lang.String" >
|
||||
UPDATE SAR_STAND_ITEM_VAL SET VALID_FLAG = 1
|
||||
where ITEM_ID = #{itemid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByItemsIds" parameterType="com.adc.da.slrs.SarStandItemVal.entity.SarStandItemVal">
|
||||
delete from SAR_STAND_ITEM_VAL
|
||||
where item_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_STAND_ITEM_VAL
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="item.propertyType != null" >property_type,</if>
|
||||
<if test="item.itemId != null" >item_id,</if>
|
||||
<if test="item.id != null" >id,</if>
|
||||
<if test="item.modifyTime != null" >modify_time,</if>
|
||||
<if test="item.creationTime != null" >creation_time,</if>
|
||||
<if test="item.validFlag != null" >valid_flag,</if>
|
||||
<if test="item.propertyVal != null" >property_val,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="item.propertyType != null" >#{item.propertyType, jdbcType=VARCHAR},</if>
|
||||
<if test="item.itemId != null" >#{item.itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="item.id != null" >#{item.id, jdbcType=VARCHAR},</if>
|
||||
<if test="item.modifyTime != null" >#{item.modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="item.creationTime != null" >#{item.creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="item.validFlag != null" >#{item.validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="item.propertyVal != null" >#{item.propertyVal, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@@ -44,7 +44,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|新增")
|
||||
@PostMapping("/create")
|
||||
@RequiresPermissions("sys:dicType:create")
|
||||
// @RequiresPermissions("sys:dicType:create")
|
||||
public ResponseMessage<Integer> create(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
|
||||
//通过传入的code获取对象(此时id为空,sql做了判断)
|
||||
@@ -72,7 +72,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|企标大类新增")
|
||||
@PostMapping("/createEnterpriseStandard")
|
||||
@RequiresPermissions("sys:dicType:createEnterpriseStandard")
|
||||
// @RequiresPermissions("sys:dicType:createEnterpriseStandard")
|
||||
public ResponseMessage<Integer> createEnterpriseStandard(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
dicTypeVO.setId(UUIDUtils.randomUUID20());
|
||||
// liwenxuan:用来企业大类判断新增是否重复 有parentId代表查询里面的数据 (企业大类分页查找只显示根节点,编辑每条数据里面是他对应的孩子节点,是dicTypeEOService.getDicTypeEOTypeNameAndCode1方法)
|
||||
@@ -129,7 +129,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
|
||||
@ApiOperation(value = "|DicTypeEO|国家/地区分页列表")
|
||||
@GetMapping("/pageCountry")
|
||||
@RequiresPermissions("sys:dicType:pageListByDicIdAndNoParentId")
|
||||
// @RequiresPermissions("sys:dicType:pageListByDicIdAndNoParentId")
|
||||
public ResponseMessage<PageInfo<DicTypeEO>> pageListByDicIdAndNoParentId(DicTypeEOPage page) throws Exception {
|
||||
page.setPager(new Pager());
|
||||
page.setValidFlag("0");
|
||||
@@ -169,7 +169,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("sys:dicType:update")
|
||||
// @RequiresPermissions("sys:dicType:update")
|
||||
public ResponseMessage<Integer> update(@RequestBody DicTypeEO dicTypeVO) throws Exception {
|
||||
// liwenxuan:用来企业大类判断新增是否重复 有parentId代表查询里面的数据
|
||||
if (dicTypeVO.getParentId() != null) {
|
||||
@@ -227,7 +227,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
|
||||
**/
|
||||
@ApiOperation(value = "|DicTypeEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("sys:dicType:get")
|
||||
// @RequiresPermissions("sys:dicType:get")
|
||||
public ResponseMessage<DicTypeEO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
DicTypeEO dicTypeVO = dicTypeEOService.getDicTypeById(id);
|
||||
return Result.success(dicTypeVO);
|
||||
|
||||
@@ -53,7 +53,22 @@ public class UserEOController extends BaseController<UserEO> {
|
||||
@ApiOperation(value = "|UserEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
// @RequiresPermissions("sys:user:get")
|
||||
public ResponseMessage<UserVO> getById(@NotNull @PathVariable("id") String id) throws Exception {
|
||||
public ResponseMessage<UserVO> getById(@PathVariable("id") String id) throws Exception {
|
||||
UserEO userEO = userEOService.getUserWithRoles(id);
|
||||
UserVO userVO= new UserVO();
|
||||
if(userEO!=null){
|
||||
userVO = BeanUtil.toBean(userEO,UserVO.class);
|
||||
userVO.setRoles(userEO.getRoleEOList());
|
||||
userVO.setOrgsstr(userEO.getOrgIdList());
|
||||
userVO.setOrgs(userEO.getOrgEOList());
|
||||
userVO.setPassword(userEO.getPassword());
|
||||
}
|
||||
return Result.success(userVO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|UserEO|详情接口")
|
||||
@GetMapping("/getById")
|
||||
public ResponseMessage<UserVO> getByIdFeignClient(String id) throws Exception {
|
||||
UserEO userEO = userEOService.getUserWithRoles(id);
|
||||
UserVO userVO= new UserVO();
|
||||
if(userEO!=null){
|
||||
|
||||
@@ -322,7 +322,7 @@
|
||||
select
|
||||
<include refid="Base_Column_ListPageB"/>
|
||||
from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select tmp_tb.* from
|
||||
(select
|
||||
<include refid="Base_Column_ListPageA"/>
|
||||
from TS_DICTYPE
|
||||
@@ -331,8 +331,8 @@
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex}) a
|
||||
where rn >= ${pager.startIndex}
|
||||
) tmp_tb ) a
|
||||
limit ${pager.startIndex-1},${pageSize}
|
||||
</select>
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user