Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
@@ -137,7 +137,7 @@ file.path=D:/uploadfile/bus
|
||||
# 文件下载地址参数
|
||||
file.downloadUrl=http://39.98.140.126:10001/uploadPath
|
||||
#上传文件白名单-以,分隔
|
||||
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg
|
||||
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg,pptx,ppt
|
||||
|
||||
# =============================================================================
|
||||
# elasticsearch 配置
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ public class ElasticsearchServiceImpl implements ElasticsearchService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定ID数据添加接口实现,
|
||||
* 指定ID数据添加接口实现
|
||||
* @param jsonObject 要增加的数据
|
||||
* @param index 索引,类似数据库
|
||||
* @param type 类型,类似表 (自6.0改版以后,一个索引里只允许有一种类型,
|
||||
|
||||
+65
-7
@@ -3,6 +3,8 @@ package com.adc.da.search.service.impl;
|
||||
import com.adc.da.search.entity.*;
|
||||
import com.adc.da.search.service.SearchCenterService;
|
||||
import com.adc.da.search.util.InitStandAttrSearchUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@@ -23,6 +25,7 @@ import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
|
||||
import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightField;
|
||||
import org.elasticsearch.search.sort.SortOrder;
|
||||
import org.json.JSONTokener;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -31,6 +34,8 @@ import org.springframework.stereotype.Component;
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Component
|
||||
@@ -75,6 +80,7 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
searchRequestBuilder = client.prepareSearch(searchInfoEO.getSelectIndex())
|
||||
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
|
||||
.setFrom((searchInfoEO.getPage()-1)*searchInfoEO.getPageSize())
|
||||
.addSort("issueTime", SortOrder.DESC)
|
||||
.setSize(searchInfoEO.getPageSize());
|
||||
|
||||
if(searchInfoEO.getSelectIndex().equals("stand")) {
|
||||
@@ -89,13 +95,22 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
QueryBuilder multiQueryBuilder;
|
||||
switch (searchInfoEO.getSelectIndex()){
|
||||
case "stand":
|
||||
if (isRqFormat(searchInfoEO.getSelectValue())) {
|
||||
Long starttime = dateFormatToStr(searchInfoEO.getSelectValue()).getTime();
|
||||
Long endtime = dateFormatToStr(searchInfoEO.getSelectValue()).getTime();
|
||||
RangeQueryBuilder rangeQueryBuilder = QueryBuilders.rangeQuery(ISSUE_TIME).format(EPOCH_MILLIS).from(starttime).to(endtime).includeLower(true).includeUpper(true);
|
||||
boolQueryShould.should(rangeQueryBuilder);
|
||||
}
|
||||
boolQueryShould.should(QueryBuilders.wildcardQuery("standSort.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standNumber.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standYear.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("stand_name.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standEnName.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standNature.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("textStatus.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standNatureName.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("textStatusName.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("isRelateAccessName.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("numbershow.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("content.keyword", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("standSystem.keyword", "*"+searchInfoEO.getSelectValue()+"*"));
|
||||
break;
|
||||
case "laws":
|
||||
@@ -201,6 +216,30 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
return result;
|
||||
}
|
||||
|
||||
private Date dateFormatToStr(String dateStr){
|
||||
Date date = new Date();
|
||||
try {
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
date = dateFormat.parse(dateStr.trim().substring(0,10));
|
||||
}catch (Exception e){
|
||||
e.getMessage();
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
public static boolean isRqFormat(String mes){
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
try {
|
||||
if (mes.equals(sdf.format(sdf.parse(mes)))) {
|
||||
return true;
|
||||
}
|
||||
}catch (Exception e){
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自动匹配动态字段条件查询 ES
|
||||
* @param searchInfoEO
|
||||
@@ -217,6 +256,23 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
Map.Entry::getKey,
|
||||
Map.Entry::getValue));
|
||||
|
||||
if(sarStandAttrEOStr == null){
|
||||
collectAttrMap = new TreeMap<>();
|
||||
|
||||
if(searchInfoEO.getCYSD() != null && StringUtils.isNotBlank(searchInfoEO.getCYSD())){
|
||||
List<String> fieldList = Arrays.asList(searchInfoEO.getCYSD() .split(",")).stream().map(s -> (s.trim())).collect(Collectors.toList());
|
||||
JSONArray array= JSONArray.parseArray(JSON.toJSONString(fieldList));
|
||||
collectAttrMap.put("CYSD",array);
|
||||
}
|
||||
|
||||
if(searchInfoEO.getCLLX() != null && StringUtils.isNotBlank(searchInfoEO.getCLLX())){
|
||||
List<String> fieldList = Arrays.asList(searchInfoEO.getCLLX() .split(",")).stream().map(s -> (s.trim())).collect(Collectors.toList());
|
||||
JSONArray array= JSONArray.parseArray(JSON.toJSONString(fieldList));
|
||||
collectAttrMap.put("CLLX",array);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
String fieldInfo = InitStandAttrSearchUtil.queryField;
|
||||
List<String> fieldInfoList = Arrays.asList(fieldInfo .split(",")).stream().map(s -> (s.trim())).collect(Collectors.toList());
|
||||
|
||||
@@ -224,8 +280,9 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
for (String field : fieldInfoList) {
|
||||
// 关键字查询属性字段
|
||||
String keyWordField = field + ".keyword";
|
||||
String keyWordField2 = field + "Name.keyword";
|
||||
if(StringUtils.isNotEmpty(searchInfoEO.getSelectValue())){
|
||||
boolQueryBuilderMust.should(QueryBuilders.wildcardQuery(keyWordField, "*"+searchInfoEO.getSelectValue()+"*"));
|
||||
boolQueryBuilderMust.should(QueryBuilders.wildcardQuery(keyWordField2, "*"+searchInfoEO.getSelectValue()+"*"));
|
||||
}else {
|
||||
if(collectAttrMap.containsKey(field)){
|
||||
List<String> fields = new ArrayList<>();
|
||||
@@ -233,7 +290,9 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
if(json instanceof org.json.JSONArray){
|
||||
fields = JSONObject.parseArray(collectAttrMap.get(field).toString(),String.class);
|
||||
}else {
|
||||
fields.add(collectAttrMap.get(field).toString());
|
||||
if(!json.equals("null")){
|
||||
fields.add(collectAttrMap.get(field).toString());
|
||||
}
|
||||
}
|
||||
if(!fields.isEmpty()){
|
||||
for (String str : fields) {
|
||||
@@ -967,7 +1026,7 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
if(StringUtils.isNotEmpty(searchInfoEO.getSelectValue())){
|
||||
QueryBuilder multiQueryBuilder = QueryBuilders.multiMatchQuery("");
|
||||
multiQueryBuilder = QueryBuilders.multiMatchQuery(searchInfoEO.getSelectValue(),
|
||||
"title","textContent","issue_time"
|
||||
"title","textContent"
|
||||
).minimumShouldMatch("100%").field("title",10f);
|
||||
boolQueryBuilder.must(multiQueryBuilder);
|
||||
// boolQueryBuilder.should()
|
||||
@@ -1067,11 +1126,10 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
||||
BoolQueryBuilder boolQueryMust = QueryBuilders.boolQuery();
|
||||
QueryBuilder multiQueryBuilder;
|
||||
multiQueryBuilder = QueryBuilders.multiMatchQuery(value,
|
||||
"title","textContent","issue_time").minimumShouldMatch("100%").field("title",1f);
|
||||
"title","textContent").minimumShouldMatch("100%").field("title",1f);
|
||||
boolQueryMust.must(multiQueryBuilder);
|
||||
boolQueryShould.should(QueryBuilders.wildcardQuery("title", "*"+searchInfoEO.getSelectValue()+"*").boost(10f))
|
||||
.should(QueryBuilders.wildcardQuery("textContent", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(QueryBuilders.wildcardQuery("issue_time", "*"+searchInfoEO.getSelectValue()+"*"))
|
||||
.should(multiQueryBuilder);
|
||||
boolQueryBuilder.should(boolQueryShould);
|
||||
//在结果中检索
|
||||
|
||||
+34
-34
@@ -152,10 +152,10 @@ public class StandLawsSearchServiceImpl implements StandLawsSearchService {
|
||||
contentBuilder.append("标准年份:").append(attrInfoMap.get("standYear")).append(" ");
|
||||
contentBuilder.append("标准名称:").append(attrInfoMap.get("standName")).append(" ");
|
||||
contentBuilder.append("标准英文名称:").append(attrInfoMap.get("standEnName")).append(" ");
|
||||
contentBuilder.append("标准性质:").append(attrInfoMap.get("standNature")).append(" ");
|
||||
contentBuilder.append("文本状态:").append(attrInfoMap.get("textStatus")).append(" ");
|
||||
contentBuilder.append("标准性质:").append(attrInfoMap.get("standNatureName")).append(" ");
|
||||
contentBuilder.append("文本状态:").append(attrInfoMap.get("textStatusName")).append(" ");
|
||||
contentBuilder.append("标准发布日期:").append(attrInfoMap.get("issueTime")).append(" ");
|
||||
contentBuilder.append("是否纳入认证清单:").append(attrInfoMap.get("isRelateAccess")).append(" ");
|
||||
contentBuilder.append("是否纳入认证清单:").append(attrInfoMap.get("isRelateAccessName")).append(" ");
|
||||
|
||||
// 区分国内、海外
|
||||
if (isForeign) {
|
||||
@@ -164,48 +164,48 @@ public class StandLawsSearchServiceImpl implements StandLawsSearchService {
|
||||
}else {
|
||||
contentBuilder.append("标准体系:").append(attrInfoMap.get("standSystem")).append(" ");
|
||||
if (StringUtils.isBlank(String.valueOf(attrInfoMap.get("BDTBH")))){
|
||||
contentBuilder.append("被代替标准编号: ").append(attrInfoMap.get("BDTBH")).append(" ");
|
||||
contentBuilder.append("被代替标准编号: ").append(attrInfoMap.get("BDTBHName")).append(" ");
|
||||
}else {
|
||||
contentBuilder.append("被代替标准编号: ").append(attrInfoMap.get("BDTBZBH")).append(" ");
|
||||
contentBuilder.append("被代替标准编号: ").append(attrInfoMap.get("BDTBZBHName")).append(" ");
|
||||
}
|
||||
}
|
||||
|
||||
contentBuilder.append("实施日期(标准文本):").append(attrInfoMap.get("SSRQ")).append(" ");
|
||||
contentBuilder.append("新车型实施日期(标准文本):").append(attrInfoMap.get("XCXSSRQ")).append(" ");
|
||||
contentBuilder.append("在产车实施日期(标准文本):").append(attrInfoMap.get("ZCCSSRQ")).append(" ");
|
||||
contentBuilder.append("实施日期(标准文本):").append(attrInfoMap.get("SSRQName")).append(" ");
|
||||
contentBuilder.append("新车型实施日期(标准文本):").append(attrInfoMap.get("XCXSSRQName")).append(" ");
|
||||
contentBuilder.append("在产车实施日期(标准文本):").append(attrInfoMap.get("ZCCSSRQName")).append(" ");
|
||||
|
||||
if (isForeign) {
|
||||
contentBuilder.append("体系类别:").append(attrInfoMap.get("TXLB")).append(" ");
|
||||
contentBuilder.append("体系类别:").append(attrInfoMap.get("TXLBName")).append(" ");
|
||||
}else {
|
||||
contentBuilder.append("归口管理部门:").append(attrInfoMap.get("GKDW")).append(" ");
|
||||
contentBuilder.append("起草单位:").append(attrInfoMap.get("FBJG")).append(" ");
|
||||
contentBuilder.append("我司署名人:").append(attrInfoMap.get("WSSMR")).append(" ");
|
||||
contentBuilder.append("我司参与深度:").append(attrInfoMap.get("CYSD")).append(" ");
|
||||
contentBuilder.append("我司参与制标排名:").append(attrInfoMap.get("CYZBPM")).append(" ");
|
||||
contentBuilder.append("归口管理部门:").append(attrInfoMap.get("GKDWName")).append(" ");
|
||||
contentBuilder.append("起草单位:").append(attrInfoMap.get("FBJGName")).append(" ");
|
||||
contentBuilder.append("我司署名人:").append(attrInfoMap.get("WSSMRName")).append(" ");
|
||||
contentBuilder.append("我司参与深度:").append(attrInfoMap.get("CYSDName")).append(" ");
|
||||
contentBuilder.append("我司参与制标排名:").append(attrInfoMap.get("CYZBPMName")).append(" ");
|
||||
}
|
||||
contentBuilder.append("适用车型:").append(attrInfoMap.get("CLLX")).append(" ");
|
||||
contentBuilder.append("能源类型:").append(attrInfoMap.get("NYLX")).append(" ");
|
||||
contentBuilder.append("适用产品线:").append(attrInfoMap.get("SYCPX")).append(" ");
|
||||
contentBuilder.append("适用认证:").append(attrInfoMap.get("SYRZ")).append(" ");
|
||||
contentBuilder.append("责任部门:").append(attrInfoMap.get("ZRBM")).append(" ");
|
||||
contentBuilder.append("责任工程师:").append(attrInfoMap.get("ZRGCS")).append(" ");
|
||||
contentBuilder.append("关联模块--乘用车VPPS编码:").append(attrInfoMap.get("CYCVPPSBM")).append(" ");
|
||||
contentBuilder.append("关联模块--乘用车vpps中文名称:").append(attrInfoMap.get("CYCVPPSCN")).append(" ");
|
||||
contentBuilder.append("关联模块--卡车VPPS编码:").append(attrInfoMap.get("KCCVPPSBM")).append(" ");
|
||||
contentBuilder.append("关联模块--卡车vpps中文名称:").append(attrInfoMap.get("KCCVPPSCN")).append(" ");
|
||||
contentBuilder.append("模块结构单元变型号:").append(attrInfoMap.get("DYBXH")).append(" ");
|
||||
contentBuilder.append("模块结构单元名称:").append(attrInfoMap.get("DYMC")).append(" ");
|
||||
contentBuilder.append("适用车型:").append(attrInfoMap.get("CLLXName")).append(" ");
|
||||
contentBuilder.append("能源类型:").append(attrInfoMap.get("NYLXName")).append(" ");
|
||||
contentBuilder.append("适用产品线:").append(attrInfoMap.get("SYCPXName")).append(" ");
|
||||
contentBuilder.append("适用认证:").append(attrInfoMap.get("SYRZName")).append(" ");
|
||||
contentBuilder.append("责任部门:").append(attrInfoMap.get("ZRBMName")).append(" ");
|
||||
contentBuilder.append("责任工程师:").append(attrInfoMap.get("ZRGCSName")).append(" ");
|
||||
contentBuilder.append("关联模块--乘用车VPPS编码:").append(attrInfoMap.get("CYCVPPSBMName")).append(" ");
|
||||
contentBuilder.append("关联模块--乘用车vpps中文名称:").append(attrInfoMap.get("CYCVPPSCNName")).append(" ");
|
||||
contentBuilder.append("关联模块--卡车VPPS编码:").append(attrInfoMap.get("KCCVPPSBMName")).append(" ");
|
||||
contentBuilder.append("关联模块--卡车vpps中文名称:").append(attrInfoMap.get("KCCVPPSCNName")).append(" ");
|
||||
contentBuilder.append("模块结构单元变型号:").append(attrInfoMap.get("DYBXHName")).append(" ");
|
||||
contentBuilder.append("模块结构单元名称:").append(attrInfoMap.get("DYMCName")).append(" ");
|
||||
|
||||
contentBuilder.append("代替标准号:").append(attrInfoMap.get("DTBJH")).append(" ");
|
||||
contentBuilder.append("引用标准:").append(attrInfoMap.get("YYBJ")).append(" ");
|
||||
contentBuilder.append("被引用标准:").append(attrInfoMap.get("BYYBJ")).append(" ");
|
||||
contentBuilder.append("代替标准号:").append(attrInfoMap.get("DTBJHName")).append(" ");
|
||||
contentBuilder.append("引用标准:").append(attrInfoMap.get("YYBJName")).append(" ");
|
||||
contentBuilder.append("被引用标准:").append(attrInfoMap.get("BYYBJName")).append(" ");
|
||||
if (isForeign) {
|
||||
contentBuilder.append("体系类别:").append(attrInfoMap.get("TXLB")).append(" ");
|
||||
contentBuilder.append("体系类别:").append(attrInfoMap.get("TXLBName")).append(" ");
|
||||
}else {
|
||||
contentBuilder.append("采标编号:").append(attrInfoMap.get("CBBH")).append(" ");
|
||||
contentBuilder.append("采标程度:").append(attrInfoMap.get("CBCD")).append(" ");
|
||||
contentBuilder.append("部分代替标准号:").append(attrInfoMap.get("BFDTBZ")).append(" ");
|
||||
contentBuilder.append("被部分代替标准号:").append(attrInfoMap.get("BBFDTBZ")).append(" ");
|
||||
contentBuilder.append("采标编号:").append(attrInfoMap.get("CBBHName")).append(" ");
|
||||
contentBuilder.append("采标程度:").append(attrInfoMap.get("CBCDName")).append(" ");
|
||||
contentBuilder.append("部分代替标准号:").append(attrInfoMap.get("BFDTBZName")).append(" ");
|
||||
contentBuilder.append("被部分代替标准号:").append(attrInfoMap.get("BBFDTBZName")).append(" ");
|
||||
}
|
||||
|
||||
if (attrInfoMap.containsKey("content")){
|
||||
|
||||
@@ -5,10 +5,12 @@ import com.adc.da.slrs.otSvpps.service.IOtSvppsService;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
||||
import com.adc.da.slrs.sarStandardsInfo.service.ISarStandardsInfoService;
|
||||
import com.adc.da.slrs.sysInfo.service.SysInfoEOService;
|
||||
import com.adc.da.sys.dao.DicTypeEODao;
|
||||
import com.adc.da.utils.util.InitStandAttrUtil;
|
||||
import com.rabbitmq.client.Channel;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.json.JSONTokener;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.amqp.rabbit.annotation.Exchange;
|
||||
@@ -34,6 +36,9 @@ public class SendStandMQService {
|
||||
@Autowired
|
||||
private SysInfoEOService sysInfoEOService;
|
||||
|
||||
@Autowired
|
||||
private DicTypeEODao dicTypeEODao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private IOtSvppsService otSvppsEOService;
|
||||
@@ -72,6 +77,7 @@ public class SendStandMQService {
|
||||
SarStandardsInfo infoEO = (SarStandardsInfo) JSONObject.toBean(jsonobject,SarStandardsInfo.class);
|
||||
String sarStandAttrEOStr = infoEO.getSarStandAttrEOStr();
|
||||
Map<String,Object> attrInfoMap = JSONObject.fromObject(sarStandAttrEOStr);
|
||||
Map<String,Object> infoMap = infoEO.getAttrInfoMap();
|
||||
|
||||
// 往索引表中插入数据
|
||||
String getCodeName = "";
|
||||
@@ -110,11 +116,45 @@ public class SendStandMQService {
|
||||
saveMap.put("standstateshow",codeName);
|
||||
}
|
||||
saveMap.put("issueTime",dateFormatToStr(infoEO.getIssueTime()));
|
||||
|
||||
Date issue_time_data = null;
|
||||
if (StringUtils.isNotBlank(infoEO.getIssueTime())) {
|
||||
try {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
issue_time_data = format.parse(dateFormatToStr(infoEO.getIssueTime())+" 00:00:00");
|
||||
} catch (ParseException ignored) {
|
||||
}
|
||||
}
|
||||
if (issue_time_data != null) {
|
||||
saveMap.put("issue_time_data",issue_time_data.getTime());
|
||||
}else{
|
||||
saveMap.put("issue_time_data",-1000000000000000000L);
|
||||
}
|
||||
String standNatureName = "";
|
||||
if(infoEO.getStandNature() != null && StringUtils.isNotBlank(infoEO.getStandNature())){
|
||||
List<String> valArr = Arrays.asList(infoEO.getStandNature().split(","));
|
||||
standNatureName = dicTypeEODao.getDicNamesByCodes(valArr);
|
||||
}
|
||||
saveMap.put("standNature",infoEO.getStandNature());
|
||||
saveMap.put("standNatureName",standNatureName);
|
||||
saveMap.put("synopsis",infoEO.getSynopsis());
|
||||
saveMap.put("standType",infoEO.getStandType());
|
||||
String textStatusName = "";
|
||||
if(infoEO.getTextStatus() != null && StringUtils.isNotBlank(infoEO.getTextStatus())){
|
||||
List<String> valArr = Arrays.asList(infoEO.getTextStatus().split(","));
|
||||
textStatusName = dicTypeEODao.getDicNamesByCodes(valArr);
|
||||
}
|
||||
saveMap.put("textStatus",infoEO.getTextStatus());
|
||||
saveMap.put("textStatusName",textStatusName);
|
||||
String isRelateAccessName = "";
|
||||
if(infoEO.getIsRelateAccess() != null && StringUtils.isNotBlank(infoEO.getIsRelateAccess())){
|
||||
if(infoEO.getIsRelateAccess().equals("1")){
|
||||
isRelateAccessName = "是";
|
||||
}else {
|
||||
isRelateAccessName = "否";
|
||||
}
|
||||
}
|
||||
saveMap.put("isRelateAccess",infoEO.getIsRelateAccess());
|
||||
saveMap.put("isRelateAccessName",isRelateAccessName);
|
||||
saveMap.put("standSystem",infoEO.getStandSystem());
|
||||
|
||||
// 自定义属性字段
|
||||
@@ -134,21 +174,29 @@ public class SendStandMQService {
|
||||
// 动态存储属性字段
|
||||
for (String field : fieldInfoList) {
|
||||
saveMap.put(field,attrInfoMap.getOrDefault(field,""));
|
||||
Object json= new JSONTokener(infoMap.get(field).toString()).nextValue();
|
||||
String fieldValue = "";
|
||||
if(!json.toString().equals("null")){
|
||||
fieldValue = infoMap.get(field).toString();
|
||||
}
|
||||
saveMap.put(field+"Name",fieldValue);
|
||||
}
|
||||
|
||||
|
||||
//当建立代替时,产生的没有文件的问题
|
||||
if (StringUtils.isBlank(String.valueOf(saveMap.get("content")))) {
|
||||
String context = String.valueOf(saveMap.get("FBGBJBD")) + ","
|
||||
+ String.valueOf(saveMap.get("XXZLXX")) + ","
|
||||
+ String.valueOf(saveMap.get("ZQYJG")) + ","
|
||||
+ String.valueOf(saveMap.get("BPG")) + ","
|
||||
+ String.valueOf(saveMap.get("CA")) + ","
|
||||
+ String.valueOf(saveMap.get("SSG")) + ","
|
||||
+ String.valueOf(saveMap.get("JDWJ")) + ","
|
||||
+ String.valueOf(saveMap.get("XGD")) + ","
|
||||
+ String.valueOf(saveMap.get("KWJ")) + ","
|
||||
+ String.valueOf(saveMap.get("ZBJBD"));
|
||||
List<String> list = new ArrayList<>();
|
||||
|
||||
String context = filterStringIsNotBlank(String.valueOf(saveMap.get("FBGBJBD")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("XXZLXX")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("ZQYJG")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("BPG")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("CA")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("SSG")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("JDWJ")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("XGD")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("KWJ")),true)
|
||||
+ filterStringIsNotBlank(String.valueOf(saveMap.get("ZBJBD")),false);
|
||||
context = context.replace(",,", ",");
|
||||
saveMap.put("content", context);
|
||||
}
|
||||
@@ -159,6 +207,11 @@ public class SendStandMQService {
|
||||
}
|
||||
}
|
||||
|
||||
private String filterStringIsNotBlank(String str,boolean boo){
|
||||
String f = ",";
|
||||
return (str == null || str.equals("") || str.equals("null")) ? "" : (boo ? str+f : str);
|
||||
}
|
||||
|
||||
private String dateFormatToStr(String dateStr){
|
||||
if(dateStr == null || dateStr.equals("")){
|
||||
return "";
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@ public interface SarLawsAttrDetailedListDao extends BaseMapper<SarLawsAttrDetail
|
||||
//用于导出
|
||||
List<LawsDto> selectLawsByIdE(@Param("param1") List<String> LawsIds);
|
||||
//根据标准id查出数据
|
||||
List<LawsDto> selectLawsByIdC(@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType);
|
||||
List<LawsDto> selectLawsByIdC(@Param("start")Integer start,@Param("end")Integer end,@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
||||
List<LawsDto> selectLawsByIdCount(@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
||||
//查询时间
|
||||
List<StandRegionalTimeDto> selectTimes(String standId);
|
||||
List<String> selectLawsId2(String standId);
|
||||
|
||||
@@ -60,5 +60,8 @@ public class SarPublicIdea extends BaseEntity {
|
||||
@TableField("stand_id")
|
||||
private String standId;
|
||||
|
||||
@TableField("stand_type")
|
||||
private String standType;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+13
-5
@@ -5,9 +5,7 @@ import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
|
||||
import com.adc.da.slrs.sarLawsAttrDetailedList.entity.LawsDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.FindStandDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarItemsTime;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.*;
|
||||
import com.adc.da.slrs.sarStandItems.service.impl.SarStandItemsServiceImpl;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -15,7 +13,6 @@ import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||
import io.swagger.annotations.Api;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
@@ -55,6 +52,17 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分解单查询")
|
||||
@GetMapping("/querySarItemAndInterpretation")
|
||||
public ResponseMessage querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||
List<SarItemVO> sarItemVOS = ServiceImpl.querySarItemAndInterpretation(page);
|
||||
|
||||
return Result.success("200",sarItemVOS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "分解单查询(带时间)")
|
||||
@GetMapping("/findAllItemsTimes")
|
||||
public List<SarItemsTime> findAllItemsTimes(@RequestParam("type") String type,@RequestParam("ids") String ids){
|
||||
@@ -70,7 +78,7 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "标准查询")
|
||||
@ApiOperation(value = "标准批量保存")
|
||||
@PostMapping("/saveBatch")
|
||||
public String saveBatch(@RequestBody List<SarStandItems> findStandDto){
|
||||
findStandDto.forEach(sarStandItems -> sarStandItems.setId(UUIDUtils.randomUUID(32)));
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package com.adc.da.slrs.sarStandItems.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.StandsTimeDto;
|
||||
import com.adc.da.slrs.sarStandItems.entity.*;
|
||||
import com.adc.da.slrs.sarStandItems.page.SarStandItemsEOPage;
|
||||
import com.adc.da.sys.common.SelectionResult;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
@@ -24,6 +22,8 @@ import java.util.Set;
|
||||
@Mapper
|
||||
public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
||||
|
||||
List<SarItemVO> querySarItemAndInterpretation(FindSarItemsPageReqDTO page);
|
||||
|
||||
List<SarStandItems> querySarStandItemsList(SarStandItemsEOPage page);
|
||||
|
||||
int querySarStandItemsListCount(SarStandItemsEOPage page);
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.adc.da.slrs.sarStandItems.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@Data
|
||||
public class FindSarItemsPageReqDTO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Integer page = 1;
|
||||
private Integer pageSize = 20;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "标准id")
|
||||
private String standId;
|
||||
|
||||
@ApiModelProperty(value = "条款名称")
|
||||
private String itemsName;
|
||||
|
||||
@ApiModelProperty(value = "新车型实施日期")
|
||||
@DateTimeFormat(pattern = "yyy-MM-dd")
|
||||
private Date XCXSSRQ;
|
||||
|
||||
@ApiModelProperty(value = "在产车实施日期")
|
||||
@DateTimeFormat(pattern = "yyy-MM-dd")
|
||||
private Date ZCCSSRQ;
|
||||
|
||||
@ApiModelProperty(value = "文件类型")
|
||||
private String fileType;
|
||||
}
|
||||
@@ -14,4 +14,5 @@ public class FindStandDto {
|
||||
private int size;
|
||||
private String standName;
|
||||
private String standType;
|
||||
private String fileType;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.adc.da.slrs.sarStandItems.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 org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@ApiModel(value="标准分解单显示对象", description="")
|
||||
public class SarItemVO extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "标准ID")
|
||||
private String standId;
|
||||
|
||||
@ApiModelProperty(value = "条款号")
|
||||
private String itemsNum;
|
||||
|
||||
@ApiModelProperty(value = "条款名称")
|
||||
private String itemsName;
|
||||
|
||||
@ApiModelProperty(value = "条款内容")
|
||||
private String itemsTitle;
|
||||
|
||||
@ApiModelProperty(value = "解读内容--条款要求")
|
||||
private String termsConditions;
|
||||
|
||||
@ApiModelProperty(value = "新车实施日期")
|
||||
@DateTimeFormat
|
||||
private Date XCXSSRQ;
|
||||
|
||||
@ApiModelProperty(value = "在产车实施日期")
|
||||
@DateTimeFormat
|
||||
private Date ZCCSSRQ;
|
||||
|
||||
@ApiModelProperty(value = "适用车型")
|
||||
private String applyArctic;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "责任部门")
|
||||
private String responsibleUnit;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "责任工程师")
|
||||
private String dutyEngineer;
|
||||
|
||||
@ApiModelProperty(value = "相对于上一版本变化点")
|
||||
private String comparedWithPrevious;
|
||||
|
||||
@ApiModelProperty(value = "合规性分析")
|
||||
private String complianceState;
|
||||
|
||||
@ApiModelProperty(value = "符合性要求-符合性状态")
|
||||
private String complianceRequire;
|
||||
|
||||
@ApiModelProperty(value = "文件类型")
|
||||
private String fileType;
|
||||
}
|
||||
@@ -172,5 +172,14 @@ public class SarStandItems extends BaseEntity {
|
||||
private String responsibleEngineer;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "相对于上一版本变化点")
|
||||
@TableField("compared_with_previous")
|
||||
private String comparedWithPrevious;
|
||||
|
||||
@ApiModelProperty(value = "合规性分析")
|
||||
@TableField("compliance_state")
|
||||
private String complianceState;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -44,4 +44,8 @@ public class SarStandItemsDto {
|
||||
@ApiModelProperty(value = "覆盖关系")
|
||||
private String busStandCover;
|
||||
|
||||
private String xcxssrq;
|
||||
|
||||
private String zccssrq;
|
||||
|
||||
}
|
||||
|
||||
+13
-8
@@ -85,8 +85,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -108,8 +108,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -129,8 +129,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto1.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto1.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -168,11 +168,11 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
if (standId==null || standId.size()==0){
|
||||
list = null;
|
||||
}else {
|
||||
list = sarLawsAttrDetailedListDao.selectLawsByIdC(standId,findStandDto.getStandName(), findStandDto.getStandType());
|
||||
list = sarLawsAttrDetailedListDao.selectLawsByIdC((findStandDto.getPage()-1)*findStandDto.getSize(),findStandDto.getPage()*findStandDto.getSize(),standId,findStandDto.getStandName(), findStandDto.getStandType(),findStandDto.getFileType());
|
||||
}
|
||||
IPage<LawsDto> page1=new Page<>();
|
||||
page1.setRecords(list);
|
||||
page1.setTotal(dao.selectToken());
|
||||
page1.setTotal(sarLawsAttrDetailedListDao.selectLawsByIdCount(standId,findStandDto.getStandName(),findStandDto.getStandType(),findStandDto.getFileType()).size());
|
||||
return page1;
|
||||
}
|
||||
|
||||
@@ -189,4 +189,9 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
public List<SarStandItemsDto> findAllItems(String type,String[] ids){
|
||||
return dao.selectAllItemsByIds(type,ids);
|
||||
}
|
||||
|
||||
|
||||
public List<SarItemVO> querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||
return dao.querySarItemAndInterpretation(page);
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -2,6 +2,7 @@ package com.adc.da.slrs.sarStandProjectLibrary.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary;
|
||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.StandProjectRelationDto;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@@ -19,4 +20,6 @@ public interface SarStandProjectLibraryDao extends BaseMapper<SarStandProjectLib
|
||||
List<SarStandProjectLibrary> queryProjectManagerPage(@Param("current") int current, @Param("pageSize") int pageSize);
|
||||
void deleteByIds(@Param("ids") List<StandProjectRelationDto> ids);
|
||||
void batchInsert(@Param("list") List<StandProjectRelationDto> list);
|
||||
List<SarStandProjectLibrary> selectPages(@Param("page")Integer page, @Param("size")Integer size,@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
||||
Integer selectCount(@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
||||
}
|
||||
|
||||
+2
@@ -27,6 +27,8 @@ public class StandAttrInfoDto {
|
||||
private String standSort;
|
||||
//标准年份
|
||||
private String standYear;
|
||||
//标准类型
|
||||
private String standType;
|
||||
//中文名称
|
||||
@ExcelProperty("中文名称")
|
||||
private String standName;
|
||||
|
||||
+14
-35
@@ -64,21 +64,8 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
QueryWrapper<SarStandProjectLibrary> wrapper = new QueryWrapper<>();
|
||||
wrapper.inSql("id", "select project_id from sar_stand_project_relation")
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectPlatfor()),"project_platfor",sar.getProjectPlatfor())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectNumber()),"project_number",sar.getProjectNumber())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectName()),"project_name",sar.getProjectName())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectGroup()),"project_group",sar.getProjectGroup())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectClassification()),"project_classification",sar.getProjectClassification())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectStatus()),"project_status",sar.getProjectStatus())
|
||||
.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);
|
||||
int flag=2;
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, sar,flag);
|
||||
}
|
||||
@Override
|
||||
public IPage<SarStandProjectLibrary> queryNotMaintenanceProject(int current, int pageSize,
|
||||
@@ -106,21 +93,8 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
QueryWrapper<SarStandProjectLibrary> wrapper = new QueryWrapper<>();
|
||||
wrapper.notInSql("id", "select project_id from sar_stand_project_relation")
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectPlatfor()),"project_platfor",sar.getProjectPlatfor())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectNumber()),"project_number",sar.getProjectNumber())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectName()),"project_name",sar.getProjectName())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectGroup()),"project_group",sar.getProjectGroup())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectClassification()),"project_classification",sar.getProjectClassification())
|
||||
.like(StringUtils.isNotEmpty(sar.getProjectStatus()),"project_status",sar.getProjectStatus())
|
||||
.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);
|
||||
int flag=1;
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, sar,flag);
|
||||
}
|
||||
@Override
|
||||
public List<SarStandProjectLibrary> queryById(String id) {
|
||||
@@ -158,7 +132,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
@Override
|
||||
public IPage<StandAttrInfoDto> queryStandInfo(int current, int pageSize, String standId) {
|
||||
QueryWrapper<SarStandardsInfo> wrapper1 = new QueryWrapper<>();
|
||||
wrapper1.select("ID","STAND_NUMBER","STAND_SORT","STAND_YEAR","STAND_NAME","STAND_EN_NAME");
|
||||
wrapper1.select("ID","STAND_NUMBER","STAND_SORT","STAND_YEAR","STAND_NAME","STAND_EN_NAME","STAND_TYPE");
|
||||
wrapper1.last("INNER JOIN sar_stand_project_relation r ON r.stand_id = sar_standards_info.ID WHERE r.project_id ='"+ standId+"'");
|
||||
Page<SarStandardsInfo> page1 = new Page<>(current, pageSize);
|
||||
IPage<SarStandardsInfo> userIPage1 = SarStandardsInfoDao.selectPage(page1, wrapper1);
|
||||
@@ -181,6 +155,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
p.setStandSort(s.getStandSort());
|
||||
p.setStandYear(s.getStandYear());
|
||||
p.setStandName(s.getStandName());
|
||||
p.setStandType(s.getStandType());
|
||||
p.setStandEnName(s.getStandEnName());
|
||||
for (SarStandAttrInfo a:list2){
|
||||
if(s.getId().equals(a.getStandId())){
|
||||
@@ -282,11 +257,15 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
return list;
|
||||
}
|
||||
|
||||
private IPage<SarStandProjectLibrary> getSarStandProjectLibraryIPage(int current, int pageSize, QueryWrapper<SarStandProjectLibrary> wrapper) {
|
||||
private IPage<SarStandProjectLibrary> getSarStandProjectLibraryIPage(int current, int pageSize,SarStandProjectLibrary wrapper,int flag) {
|
||||
Page<SarStandProjectLibrary> page = new Page<>(current, pageSize);
|
||||
IPage<SarStandProjectLibrary> userIPage = sarStandProjectLibraryDao.selectPage(page, wrapper);
|
||||
System.out.println("总条数"+userIPage.getTotal());
|
||||
System.out.println("总页数"+userIPage.getPages());
|
||||
IPage<SarStandProjectLibrary> userIPage = new Page<>();
|
||||
List<SarStandProjectLibrary> sarStandProjectLibraries=sarStandProjectLibraryDao.selectPages(current,pageSize,wrapper,flag);
|
||||
Integer count = sarStandProjectLibraryDao.selectCount(wrapper,flag);
|
||||
userIPage.setCurrent(current);
|
||||
userIPage.setSize(pageSize);
|
||||
userIPage.setRecords(sarStandProjectLibraries);
|
||||
userIPage.setTotal(count);
|
||||
return userIPage;
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -83,6 +83,7 @@ public class SarStandardComplianceAssessResultController {
|
||||
queryWrapper.like("STAND_NUMBER",eo.getStandNumber().trim());
|
||||
}
|
||||
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
||||
|
||||
while(page.getRecords().remove(null));
|
||||
|
||||
return Result.success(page);
|
||||
|
||||
+4
@@ -5,11 +5,13 @@ 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;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -84,6 +86,8 @@ public class SarInterpretationNationalStandard extends BaseEntity {
|
||||
|
||||
@ApiModelProperty(value = "评估时间")
|
||||
@TableField("INTERPRETATION_TIME")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date interpretationTime;
|
||||
|
||||
@TableField("ID")
|
||||
|
||||
+14
-14
@@ -24,8 +24,8 @@ import java.util.List;
|
||||
@Service
|
||||
public class SarInterpretationNationalStandardServiceImpl extends ServiceImpl<SarInterpretationNationalStandardDao, SarInterpretationNationalStandard> implements ISarInterpretationNationalStandardService {
|
||||
|
||||
@Autowired
|
||||
SarStandardComplianceProductAssessDao sarStandardComplianceProductAssessDao;
|
||||
// @Autowired
|
||||
// SarStandardComplianceProductAssessDao sarStandardComplianceProductAssessDao;
|
||||
|
||||
@Override
|
||||
public String saveBath(List<SarInterpretationNationalStandard> sarInterpretationNationalStandards) {
|
||||
@@ -34,18 +34,18 @@ public class SarInterpretationNationalStandardServiceImpl extends ServiceImpl<Sa
|
||||
sarInterpretationNationalStandards.forEach(sarInterpretationNationalStandard -> {
|
||||
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper=new QueryWrapper<>();
|
||||
queryWrapper.eq("stand_id",sarInterpretationNationalStandard.getStandId());
|
||||
List<SarStandardComplianceProductAssess> assessList = sarStandardComplianceProductAssessDao.selectList(queryWrapper);
|
||||
if (assessList.isEmpty()){
|
||||
SarStandardComplianceProductAssess sar=new SarStandardComplianceProductAssess();
|
||||
sar.setId(UUIDUtils.randomUUID(32));
|
||||
sar.setStandId(sarInterpretationNationalStandard.getStandId());
|
||||
sar.setStandNumber(sarInterpretationNationalStandard.getStandNumber());
|
||||
sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
sar.setStandName(sarInterpretationNationalStandard.getStandName());
|
||||
sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
sar.setInterpretationTime(sarInterpretationNationalStandard.getInterpretationTime());
|
||||
sarStandardComplianceProductAssessDao.insert(sar);
|
||||
}
|
||||
// List<SarStandardComplianceProductAssess> assessList = sarStandardComplianceProductAssessDao.selectList(queryWrapper);
|
||||
// if (assessList.isEmpty()){
|
||||
// SarStandardComplianceProductAssess sar=new SarStandardComplianceProductAssess();
|
||||
// sar.setId(UUIDUtils.randomUUID(32));
|
||||
// sar.setStandId(sarInterpretationNationalStandard.getStandId());
|
||||
// sar.setStandNumber(sarInterpretationNationalStandard.getStandNumber());
|
||||
// sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
// sar.setStandName(sarInterpretationNationalStandard.getStandName());
|
||||
// sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
// sar.setInterpretationTime(sarInterpretationNationalStandard.getInterpretationTime());
|
||||
// sarStandardComplianceProductAssessDao.insert(sar);
|
||||
// }
|
||||
});
|
||||
String res = flag ? "1":"0";
|
||||
return res;
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ public class SarStandardsInfo extends BaseEntity {
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "是否纳入认证清单(0否 1是)")
|
||||
@ApiModelProperty(value = "是否纳入认证清单(2否 1是)")
|
||||
@TableField("IS_RELATE_ACCESS")
|
||||
private String isRelateAccess;
|
||||
|
||||
|
||||
+47
-3
@@ -382,6 +382,30 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
}
|
||||
}
|
||||
|
||||
public void attrInfoSearchDetails(SarStandardsInfo row) throws Exception {
|
||||
String fieldInfo = InitStandAttrUtil.queryField;
|
||||
String collectId = personCollectEOService.queryCollectByUserAndId(row.getId());
|
||||
row.setCollectId(collectId);
|
||||
// 查询属性表数据
|
||||
if (StringUtils.isNotBlank(fieldInfo)) {
|
||||
Map<String, Object> getAttrMap = sarStandAttrInfoEODao.selectStandFieldAndData(fieldInfo, row.getId());
|
||||
if (InitStandAttrUtil.clobFieldList != null && !InitStandAttrUtil.clobFieldList.isEmpty()) {
|
||||
// 遍历修改所有clob类型的值
|
||||
for (String clobField : InitStandAttrUtil.clobFieldList) {
|
||||
Clob clobValue = (Clob) getAttrMap.get(clobField);
|
||||
String fieldValue = FieldConvertUtil.ClobToString(clobValue);
|
||||
getAttrMap.put(clobField, fieldValue);
|
||||
}
|
||||
}
|
||||
|
||||
if (getAttrMap != null && !getAttrMap.isEmpty()) {
|
||||
row.setAttrInfoCaseMap(transformUpperCase(getAttrMap));
|
||||
}
|
||||
|
||||
row.setAttrInfoMap(getAttrMap);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private Map<String, Object> transformUpperCase(Map<String, Object> orgMap) {
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
@@ -428,6 +452,25 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
}
|
||||
}
|
||||
|
||||
public void attrInfoShowSearchDetails(SarStandardsInfo row) throws Exception {
|
||||
if (row != null) {
|
||||
attrInfoSearchDetails(row);
|
||||
Map<String, Object> getAttrMap = row.getAttrInfoMap();
|
||||
if (getAttrMap != null && getAttrMap.size() > 0) {
|
||||
for (Map.Entry<String, Object> entry : getAttrMap.entrySet()) {
|
||||
String name = entry.getKey();
|
||||
String value = "";
|
||||
if (entry.getValue() != null && InitStandAttrUtil.selectionFieldList != null && InitStandAttrUtil.selectionFieldList.size() > 0 && InitStandAttrUtil.selectionFieldList.contains(name)) {
|
||||
value = entry.getValue().toString();
|
||||
List<String> valArr = Arrays.asList(value.split(","));
|
||||
value = dicTypeEODao.getDicNamesByCodes(valArr);
|
||||
entry.setValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void attrInfoShow(List<SarStandardsInfo> sarlist) throws Exception {
|
||||
for (SarStandardsInfo row : sarlist) {
|
||||
attrInfoDetails(row);
|
||||
@@ -1099,7 +1142,8 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
// replaseStandState(sarStandardsInfoEO);
|
||||
// 记录修改日志
|
||||
saveUpdateLog(sarStandardsInfoEO, beforeSarStandardsInfo);
|
||||
if(elasflag) {
|
||||
if(elasflag) { //what?
|
||||
attrInfoShowSearchDetails(sarStandardsInfoEO);
|
||||
createStandMQService.sendStandMQ(sarStandardsInfoEO,"update");
|
||||
List<String> bhs = new ArrayList<>(Arrays.asList(String.valueOf(map.get("DTBJH")).split(",")));
|
||||
for (String bh :bhs) {
|
||||
@@ -2059,14 +2103,14 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
Set<String> keys = attrInfoMap.keySet();
|
||||
for (String key:keys) {
|
||||
String value = String.valueOf(attrInfoMap.get(key));
|
||||
if (com.adc.da.util.utils.StringUtils.isNotBlank(value) && !"null".equals(value) && !"SVPPS".equals(key)){
|
||||
if (StringUtils.isNotBlank(value) && !"null".equals(value) && !"SVPPS".equals(key)){
|
||||
value = value.replace(" , ",",");
|
||||
value = value.replace(","," , ");
|
||||
attrInfoMap.put(key,value);
|
||||
}
|
||||
}
|
||||
// 根据文件attid 读取文件内容
|
||||
if (org.apache.commons.lang.StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
||||
if (StringUtils.isNotEmpty(String.valueOf(attrInfoMap.get("content")))) {
|
||||
String[] attidlist = String.valueOf(attrInfoMap.get("content")).split(" , ");
|
||||
StringBuilder content = new StringBuilder("");
|
||||
for (int i = 0; i < attidlist.length; i++) {
|
||||
|
||||
+280
-207
@@ -2,65 +2,82 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sarStandItems.dao.SarStandItemsDao">
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
<id column="id" property="id" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="responsible_unit" property="responsibleUnit" />
|
||||
<result column="energy_kind" property="energyKind" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="tack_time" property="tackTime" />
|
||||
<result column="parts" property="parts" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="MAINPOINTS_IMPEMENTATION" property="mainPointImplementation" />
|
||||
<result column="TERMS_CONDITIONS" property="termsConditions" jdbcType="CLOB" javaType = "java.lang.String"/>
|
||||
<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="applyArcticShow" property="applyArcticShow" />
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow" />
|
||||
<result column="itemState" property="itemState" />
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="creation_user" property="creationUser"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="remarks" property="remarks"/>
|
||||
<result column="responsible_unit" property="responsibleUnit"/>
|
||||
<result column="energy_kind" property="energyKind"/>
|
||||
<result column="apply_arctic" property="applyArctic"/>
|
||||
<result column="tack_time" property="tackTime"/>
|
||||
<result column="parts" property="parts"/>
|
||||
<result column="items_name" property="itemsName"/>
|
||||
<result column="items_num" property="itemsNum"/>
|
||||
<result column="stand_id" property="standId"/>
|
||||
<result column="MAINPOINTS_IMPEMENTATION" property="mainPointImplementation"/>
|
||||
<result column="TERMS_CONDITIONS" property="termsConditions" jdbcType="CLOB" javaType="java.lang.String"/>
|
||||
<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="applyArcticShow" property="applyArcticShow"/>
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow"/>
|
||||
<result column="itemState" property="itemState"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="SecondResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
<id column="id" property="id" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="responsible_unit" property="responsibleUnit" />
|
||||
<result column="energy_kind" property="energyKind" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="tack_time" property="tackTime" />
|
||||
<result column="parts" property="parts" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow" />
|
||||
<resultMap id="SecondResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
<result column="creation_user" property="creationUser"/>
|
||||
<result column="valid_flag" property="validFlag"/>
|
||||
<result column="remarks" property="remarks"/>
|
||||
<result column="responsible_unit" property="responsibleUnit"/>
|
||||
<result column="energy_kind" property="energyKind"/>
|
||||
<result column="apply_arctic" property="applyArctic"/>
|
||||
<result column="tack_time" property="tackTime"/>
|
||||
<result column="parts" property="parts"/>
|
||||
<result column="items_name" property="itemsName"/>
|
||||
<result column="items_num" property="itemsNum"/>
|
||||
<result column="stand_id" property="standId"/>
|
||||
<result column="responsibleUnitShow" property="responsibleUnitShow"/>
|
||||
<result column="foShow" property="foShow"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="sarItemVOResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarItemVO">
|
||||
<id column="id" property="id"/>
|
||||
<result column="STAND_ID" property="standId"/>
|
||||
<result column="ITEMS_NUM" property="itemsNum"/>
|
||||
<result column="ITEMS_NAME" property="itemsName"/>
|
||||
<result column="ITEMS_TITLE" property="itemsTitle"/>
|
||||
<result column="TERMS_CONDITIONS" property="termsConditions"/>
|
||||
<result column="XCXSSRQ" property="XCXSSRQ"/>
|
||||
<result column="ZCCSSRQ" property="ZCCSSRQ"/>
|
||||
<result column="APPLY_ARCTIC" property="applyArctic"/>
|
||||
<result column="RESPONSIBLE_UNIT" property="responsibleUnit"/>
|
||||
<result column="DUTY_ENGINEER" property="dutyEngineer"/>
|
||||
<result column="compared_with_previous" property="comparedWithPrevious"/>
|
||||
<result column="compliance_state" property="complianceState"/>
|
||||
<result column="COMPLIANCE_REQUIR" property="complianceRequire"/>
|
||||
<result column="FILE_TYPE" property="fileType"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<!-- SAR_STAND_ITEMS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
<sql id="Base_Column_List">
|
||||
SAR_STAND_ITEMS.modify_time, SAR_STAND_ITEMS.creation_time, SAR_STAND_ITEMS.creation_user, SAR_STAND_ITEMS.valid_flag, SAR_STAND_ITEMS.remarks, SAR_STAND_ITEMS.responsible_unit, SAR_STAND_ITEMS.energy_kind, SAR_STAND_ITEMS.apply_arctic, tack_time, parts, SAR_STAND_ITEMS.items_name, SAR_STAND_ITEMS.items_num, SAR_STAND_ITEMS.stand_id, SAR_STAND_ITEMS.id
|
||||
,TS_ORG.org_name as responsibleUnitShow,SAR_STAND_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_STAND_ITEMS.TERMS_CONDITIONS,tsFo.UNAME as foShow,SAR_STAND_ITEMS.duty_engineer,SAR_STAND_ITEMS.svpps,
|
||||
SAR_STAND_ITEMS.claim_type,SAR_STAND_ITEMS.bus_stand_cover,SAR_STAND_ITEMS.file_type,dicClaimType.DIC_TYPE_NAME as claimTypeShow,tsdutyEngineer.UNAME as dutyEngineerShow,SAR_STAND_ITEMS.fo
|
||||
</sql>
|
||||
|
||||
<sql id="Base_Query_Column_List" >
|
||||
<sql id="Base_Query_Column_List">
|
||||
SAR_STAND_ITEMS.modify_time, SAR_STAND_ITEMS.creation_time, SAR_STAND_ITEMS.creation_user, SAR_STAND_ITEMS.valid_flag, SAR_STAND_ITEMS.remarks, SAR_STAND_ITEMS.responsible_unit,
|
||||
SAR_STAND_ITEMS.energy_kind, SAR_STAND_ITEMS.apply_arctic, tack_time, parts, SAR_STAND_ITEMS.items_name, SAR_STAND_ITEMS.items_num, SAR_STAND_ITEMS.stand_id, SAR_STAND_ITEMS.id
|
||||
,SAR_STAND_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_STAND_ITEMS.TERMS_CONDITIONS,SAR_STAND_ITEMS.duty_engineer,SAR_STAND_ITEMS.svpps,
|
||||
@@ -69,91 +86,97 @@
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
left join SAR_STANDARDS_INFO on (SAR_STANDARDS_INFO.id = SAR_STAND_ITEMS.stand_id and SAR_STANDARDS_INFO.valid_flag=0)
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_STAND_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
left join SAR_STANDARDS_INFO on (SAR_STANDARDS_INFO.id = SAR_STAND_ITEMS.stand_id and
|
||||
SAR_STANDARDS_INFO.valid_flag=0)
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_STAND_ITEMS.claim_type and
|
||||
dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_STAND_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_STAND_ITEMS.duty_engineer and
|
||||
tsdutyEngineer.valid_flag=0
|
||||
and tsdutyEngineer.DISABLE_FLAG=0)
|
||||
left join TS_USER tsFo on (tsFo.USID = SAR_STAND_ITEMS.fo and tsFo.valid_flag=0
|
||||
left join TS_USER tsFo on (tsFo.USID = SAR_STAND_ITEMS.fo and tsFo.valid_flag=0
|
||||
and tsFo.DISABLE_FLAG=0)
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="fileType != null" >
|
||||
<trim suffixOverrides=",">
|
||||
<if test="fileType != null">
|
||||
and SAR_STAND_ITEMS.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
<if test="modifyTime != null">
|
||||
and SAR_STAND_ITEMS.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
<if test="modifyTime1 != null">
|
||||
and SAR_STAND_ITEMS.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
<if test="modifyTime2 != null">
|
||||
and SAR_STAND_ITEMS.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
<if test="creationTime != null">
|
||||
and SAR_STAND_ITEMS.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
<if test="creationTime1 != null">
|
||||
and SAR_STAND_ITEMS.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
<if test="creationTime2 != null">
|
||||
and SAR_STAND_ITEMS.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
<if test="creationUser != null">
|
||||
and SAR_STAND_ITEMS.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
<if test="validFlag != null">
|
||||
and SAR_STAND_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
<if test="remarks != null">
|
||||
and SAR_STAND_ITEMS.remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="responsibleUnit != null" >
|
||||
<if test="responsibleUnit != null">
|
||||
and SAR_STAND_ITEMS.responsible_unit = #{responsibleUnit}
|
||||
</if>
|
||||
<if test="energyKind != null" >
|
||||
<if test="energyKind != null">
|
||||
and SAR_STAND_ITEMS.energy_kind ${energyKindOperator} #{energyKind}
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
<if test="applyArctic != null">
|
||||
and SAR_STAND_ITEMS.apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="tackTime != null" >
|
||||
<if test="tackTime != null">
|
||||
and SAR_STAND_ITEMS.tack_time ${tackTimeOperator} #{tackTime}
|
||||
</if>
|
||||
<if test="tackTime1 != null" >
|
||||
<if test="tackTime1 != null">
|
||||
and SAR_STAND_ITEMS.tack_time >= #{tackTime1}
|
||||
</if>
|
||||
<if test="tackTime2 != null" >
|
||||
<if test="tackTime2 != null">
|
||||
and SAR_STAND_ITEMS.tack_time <= #{tackTime2}
|
||||
</if>
|
||||
<if test="parts != null" >
|
||||
<if test="parts != null">
|
||||
and SAR_STAND_ITEMS.parts like concat(concat('%', #{parts}),'%')
|
||||
</if>
|
||||
<if test="nameOrRequest != null" >
|
||||
and (SAR_STAND_ITEMS.items_name like concat(concat('%', #{nameOrRequest}),'%') or SAR_STAND_ITEMS.TERMS_CONDITIONS like concat(concat('%', #{nameOrRequest}),'%'))
|
||||
<if test="nameOrRequest != null">
|
||||
and (SAR_STAND_ITEMS.items_name like concat(concat('%', #{nameOrRequest}),'%') or
|
||||
SAR_STAND_ITEMS.TERMS_CONDITIONS like concat(concat('%', #{nameOrRequest}),'%'))
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
<if test="itemsName != null">
|
||||
and SAR_STAND_ITEMS.items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
<if test="itemsNum != null">
|
||||
and SAR_STAND_ITEMS.items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
<if test="standId != null">
|
||||
and SAR_STAND_ITEMS.stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="standNum != null" >
|
||||
<if test="standNum != null">
|
||||
and ((SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER || '-' ||
|
||||
SAR_STANDARDS_INFO.STAND_YEAR like concat(concat('%',#{standNum}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
|
||||
or (SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER like concat(concat('%',#{standNum}),'%')
|
||||
SAR_STANDARDS_INFO.STAND_YEAR like concat(concat('%',#{standNum}),'%') and SAR_STANDARDS_INFO.STAND_YEAR
|
||||
is not null)
|
||||
or (SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER like
|
||||
concat(concat('%',#{standNum}),'%')
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR is null))
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
<if test="id != null">
|
||||
and SAR_STAND_ITEMS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="noId != null" >
|
||||
<if test="noId != null">
|
||||
and SAR_STAND_ITEMS.id != #{noId}
|
||||
</if>
|
||||
<if test="productId != null" >
|
||||
<if test="productId != null">
|
||||
and SAR_PRODUCT_SAR_STATE.product_id = #{productId}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
@@ -162,7 +185,7 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test='proType != null and proType == "process"' >
|
||||
<if test='proType != null and proType == "process"'>
|
||||
and (SAR_STAND_ITEMS.claim_type='L7N7EEDAPR' or SAR_STAND_ITEMS.claim_type='RENVECPFGT')
|
||||
</if>
|
||||
</trim>
|
||||
@@ -178,66 +201,66 @@
|
||||
<!--</insert>-->
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
<insert id="insertSelective" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_STAND_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_STAND_ITEMS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="remarks != null" >remarks,</if>
|
||||
<if test="responsibleUnit != null" >responsible_unit,</if>
|
||||
<if test="energyKind != null" >energy_kind,</if>
|
||||
<if test="applyArctic != null" >apply_arctic,</if>
|
||||
<if test="tackTime != null" >tack_time,</if>
|
||||
<if test="parts != null" >parts,</if>
|
||||
<if test="itemsName != null" >items_name,</if>
|
||||
<if test="itemsNum != null" >items_num,</if>
|
||||
<if test="standId != null" >stand_id,</if>
|
||||
<if test="id != null" >id,</if>
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="creationTime != null">creation_time,</if>
|
||||
<if test="creationUser != null">creation_user,</if>
|
||||
<if test="validFlag != null">valid_flag,</if>
|
||||
<if test="remarks != null">remarks,</if>
|
||||
<if test="responsibleUnit != null">responsible_unit,</if>
|
||||
<if test="energyKind != null">energy_kind,</if>
|
||||
<if test="applyArctic != null">apply_arctic,</if>
|
||||
<if test="tackTime != null">tack_time,</if>
|
||||
<if test="parts != null">parts,</if>
|
||||
<if test="itemsName != null">items_name,</if>
|
||||
<if test="itemsNum != null">items_num,</if>
|
||||
<if test="standId != null">stand_id,</if>
|
||||
<if test="id != null">id,</if>
|
||||
<if test="mainPointImplementation != null">MAINPOINTS_IMPEMENTATION,</if>
|
||||
<if test="termsConditions != null">TERMS_CONDITIONS,</if>
|
||||
|
||||
<if test="fo != null" >fo,</if>
|
||||
<if test="dutyEngineer != null" >duty_engineer,</if>
|
||||
<if test="svpps != null" >svpps,</if>
|
||||
<if test="claimType != null" >claim_type,</if>
|
||||
<if test="fo != null">fo,</if>
|
||||
<if test="dutyEngineer != null">duty_engineer,</if>
|
||||
<if test="svpps != null">svpps,</if>
|
||||
<if test="claimType != null">claim_type,</if>
|
||||
<if test="busStandCover != null">bus_stand_cover,</if>
|
||||
<if test="fileType != null">file_type</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="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="remarks != null" >#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="responsibleUnit != null" >#{responsibleUnit, jdbcType=VARCHAR},</if>
|
||||
<if test="energyKind != null" >#{energyKind, jdbcType=VARCHAR},</if>
|
||||
<if test="applyArctic != null" >#{applyArctic, jdbcType=VARCHAR},</if>
|
||||
<if test="tackTime != null" >#{tackTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="parts != null" >#{parts, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsName != null" >#{itemsName, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsNum != null" >#{itemsNum, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null" >#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="modifyTime != null">#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="creationTime != null">#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="creationUser != null">#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null">#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="remarks != null">#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="responsibleUnit != null">#{responsibleUnit, jdbcType=VARCHAR},</if>
|
||||
<if test="energyKind != null">#{energyKind, jdbcType=VARCHAR},</if>
|
||||
<if test="applyArctic != null">#{applyArctic, jdbcType=VARCHAR},</if>
|
||||
<if test="tackTime != null">#{tackTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="parts != null">#{parts, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsName != null">#{itemsName, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsNum != null">#{itemsNum, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null">#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="id != null">#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="mainPointImplementation != null">#{mainPointImplementation,jdbcType=VARCHAR},</if>
|
||||
<if test="termsConditions != null">#{termsConditions,jdbcType=CLOB},</if>
|
||||
|
||||
<if test="fo != null" >#{fo, jdbcType=VARCHAR},</if>
|
||||
<if test="dutyEngineer != null" >#{dutyEngineer, jdbcType=VARCHAR},</if>
|
||||
<if test="svpps != null" >#{svpps, 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="fo != null">#{fo, jdbcType=VARCHAR},</if>
|
||||
<if test="dutyEngineer != null">#{dutyEngineer, jdbcType=VARCHAR},</if>
|
||||
<if test="svpps != null">#{svpps, 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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems" >
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
update SAR_STAND_ITEMS
|
||||
set modify_time = #{modifyTime},
|
||||
creation_time = #{creationTime},
|
||||
@@ -258,69 +281,69 @@
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
update SAR_STAND_ITEMS
|
||||
<set >
|
||||
<if test="modifyTime != null" >
|
||||
<set>
|
||||
<if test="modifyTime != null">
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
<if test="creationTime != null">
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
<if test="creationUser != null">
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
<if test="validFlag != null">
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
<if test="remarks != null">
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="responsibleUnit != null" >
|
||||
<if test="responsibleUnit != null">
|
||||
responsible_unit = #{responsibleUnit},
|
||||
</if>
|
||||
<if test="energyKind != null" >
|
||||
<if test="energyKind != null">
|
||||
energy_kind = #{energyKind},
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
<if test="applyArctic != null">
|
||||
apply_arctic = #{applyArctic},
|
||||
</if>
|
||||
<if test="tackTime != null" >
|
||||
<if test="tackTime != null">
|
||||
tack_time = #{tackTime},
|
||||
</if>
|
||||
<if test="tackTime == null">
|
||||
tack_time = null,
|
||||
</if>
|
||||
<if test="parts != null" >
|
||||
<if test="parts != null">
|
||||
parts = #{parts},
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
<if test="itemsName != null">
|
||||
items_name = #{itemsName},
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
<if test="itemsNum != null">
|
||||
items_num = #{itemsNum},
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
<if test="standId != null">
|
||||
stand_id = #{standId},
|
||||
</if>
|
||||
<if test="mainPointImplementation != null" >
|
||||
<if test="mainPointImplementation != null">
|
||||
MAINPOINTS_IMPEMENTATION = #{mainPointImplementation},
|
||||
</if>
|
||||
<if test="termsConditions != null" >
|
||||
<if test="termsConditions != null">
|
||||
TERMS_CONDITIONS = #{termsConditions,jdbcType=CLOB},
|
||||
</if>
|
||||
|
||||
<if test="fo != null" >
|
||||
<if test="fo != null">
|
||||
fo = #{fo},
|
||||
</if>
|
||||
<if test="dutyEngineer != null" >
|
||||
<if test="dutyEngineer != null">
|
||||
duty_engineer = #{dutyEngineer},
|
||||
</if>
|
||||
<if test="svpps != null" >
|
||||
<if test="svpps != null">
|
||||
svpps = #{svpps},
|
||||
</if>
|
||||
<if test="claimType != null" >
|
||||
<if test="claimType != null">
|
||||
claim_type = #{claimType},
|
||||
</if>
|
||||
<if test="busStandCover != null" >
|
||||
<if test="busStandCover != null">
|
||||
bus_stand_cover = #{busStandCover},
|
||||
</if>
|
||||
</set>
|
||||
@@ -329,7 +352,8 @@
|
||||
|
||||
<!-- 根据id查询 SAR_STAND_ITEMS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Query_Column_List" />
|
||||
select
|
||||
<include refid="Base_Query_Column_List"/>
|
||||
from SAR_STAND_ITEMS
|
||||
where id = #{value}
|
||||
|
||||
@@ -348,35 +372,75 @@
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
||||
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
sar_stand_items AS a
|
||||
<where>
|
||||
|
||||
<if test="standId!=null and standId!=''">
|
||||
and a.stand_id=#{standId}
|
||||
</if>
|
||||
|
||||
<if test="fileType !=null and fileType!=''">
|
||||
and a.file_type=#{fileType}
|
||||
</if>
|
||||
|
||||
<if test="itemsName != null and itemsName!=''">
|
||||
and a.ITEMS_NAME=#{itemsName}
|
||||
</if>
|
||||
<if test="XCXSSRQ !=null and XCXSSRQ!=''">
|
||||
and a.XCXSSRQ=#{XCXSSRQ}
|
||||
</if>
|
||||
<if test="ZCCSSRQ !=null and ZCCSSRQ != ''">
|
||||
and a.ZCCSSRQ=#{ZCCSSRQ}
|
||||
</if>
|
||||
</where>
|
||||
LIMIT #{page},#{pageSize}
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_STAND_ITEMS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* from
|
||||
(select SAR_STAND_ITEMS.modify_time, SAR_STAND_ITEMS.creation_time, SAR_STAND_ITEMS.creation_user, SAR_STAND_ITEMS.valid_flag, SAR_STAND_ITEMS.remarks, SAR_STAND_ITEMS.responsible_unit, SAR_STAND_ITEMS.energy_kind, SAR_STAND_ITEMS.apply_arctic, tack_time, parts, SAR_STAND_ITEMS.items_name, SAR_STAND_ITEMS.items_num, SAR_STAND_ITEMS.stand_id, SAR_STAND_ITEMS.id
|
||||
,TS_ORG.org_name as responsibleUnitShow,SAR_STAND_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_STAND_ITEMS.TERMS_CONDITIONS
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from
|
||||
(select tmp_tb.* from
|
||||
(select SAR_STAND_ITEMS.modify_time, SAR_STAND_ITEMS.creation_time, SAR_STAND_ITEMS.creation_user,
|
||||
SAR_STAND_ITEMS.valid_flag, SAR_STAND_ITEMS.remarks, SAR_STAND_ITEMS.responsible_unit,
|
||||
SAR_STAND_ITEMS.energy_kind, SAR_STAND_ITEMS.apply_arctic, tack_time, parts, SAR_STAND_ITEMS.items_name,
|
||||
SAR_STAND_ITEMS.items_num, SAR_STAND_ITEMS.stand_id, SAR_STAND_ITEMS.id
|
||||
,TS_ORG.org_name as
|
||||
responsibleUnitShow,SAR_STAND_ITEMS.MAINPOINTS_IMPEMENTATION,SAR_STAND_ITEMS.TERMS_CONDITIONS
|
||||
from SAR_STAND_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
<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_ITEMS
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from SAR_STAND_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryItemsByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select <include refid="Base_Column_List"/>,
|
||||
select<include refid="Base_Column_List"/>,
|
||||
(
|
||||
SELECT
|
||||
group_concat(TS_DICTYPE.DIC_TYPE_NAME ORDER BY SAR_STAND_ITEM_VAL.property_type separator ',')
|
||||
FROM
|
||||
SAR_STAND_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.dic_type_code = SAR_STAND_ITEM_VAL.property_val and TS_DICTYPE.dic_id is not null)
|
||||
SAR_STAND_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.dic_type_code = SAR_STAND_ITEM_VAL.property_val and
|
||||
TS_DICTYPE.dic_id is not null)
|
||||
WHERE
|
||||
SAR_STAND_ITEM_VAL.ITEM_ID = SAR_STAND_ITEMS.id
|
||||
AND SAR_STAND_ITEM_VAL.property_type = 'APPLY_ARCTIC'
|
||||
@@ -385,93 +449,100 @@
|
||||
SELECT
|
||||
group_concat(TS_DICTYPE.DIC_TYPE_NAME ORDER BY SAR_STAND_ITEM_VAL.property_type separator ',')
|
||||
FROM
|
||||
SAR_STAND_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.dic_type_code = SAR_STAND_ITEM_VAL.property_val and TS_DICTYPE.dic_id is not null)
|
||||
SAR_STAND_ITEM_VAL left join TS_DICTYPE on (TS_DICTYPE.dic_type_code = SAR_STAND_ITEM_VAL.property_val and
|
||||
TS_DICTYPE.dic_id is not null)
|
||||
WHERE
|
||||
SAR_STAND_ITEM_VAL.ITEM_ID = SAR_STAND_ITEMS.id
|
||||
AND SAR_STAND_ITEM_VAL.property_type = 'ENERGY_KIND'
|
||||
) AS emergyKindShow
|
||||
from SAR_STAND_ITEMS left join TS_ORG on (SAR_STAND_ITEMS.responsible_unit =TS_ORG.id)
|
||||
left join SAR_STANDARDS_INFO on (SAR_STANDARDS_INFO.id = SAR_STAND_ITEMS.stand_id and SAR_STANDARDS_INFO.valid_flag=0)
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_STAND_ITEMS.claim_type and dicClaimType.dic_id is
|
||||
left join SAR_STANDARDS_INFO on (SAR_STANDARDS_INFO.id = SAR_STAND_ITEMS.stand_id and
|
||||
SAR_STANDARDS_INFO.valid_flag=0)
|
||||
left join TS_DICTYPE dicClaimType on (dicClaimType.dic_type_code = SAR_STAND_ITEMS.claim_type and
|
||||
dicClaimType.dic_id is
|
||||
not null and dicClaimType.valid_flag = 0)
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_STAND_ITEMS.duty_engineer and tsdutyEngineer.valid_flag=0
|
||||
left join TS_USER tsdutyEngineer on (tsdutyEngineer.USID = SAR_STAND_ITEMS.duty_engineer and
|
||||
tsdutyEngineer.valid_flag=0
|
||||
and tsdutyEngineer.DISABLE_FLAG=0)
|
||||
left join TS_USER tsFo on (tsFo.USID = SAR_STAND_ITEMS.fo and tsFo.valid_flag=0
|
||||
left join TS_USER tsFo on (tsFo.USID = SAR_STAND_ITEMS.fo and tsFo.valid_flag=0
|
||||
and tsFo.DISABLE_FLAG=0)
|
||||
where 1=1
|
||||
<if test="fileType != null" >
|
||||
<if test="fileType != null">
|
||||
and SAR_STAND_ITEMS.file_type = #{fileType}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
<if test="modifyTime != null">
|
||||
and SAR_STAND_ITEMS.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
<if test="modifyTime1 != null">
|
||||
and SAR_STAND_ITEMS.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
<if test="modifyTime2 != null">
|
||||
and SAR_STAND_ITEMS.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
<if test="creationTime != null">
|
||||
and SAR_STAND_ITEMS.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
<if test="creationTime1 != null">
|
||||
and SAR_STAND_ITEMS.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
<if test="creationTime2 != null">
|
||||
and SAR_STAND_ITEMS.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
<if test="creationUser != null">
|
||||
and SAR_STAND_ITEMS.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
<if test="validFlag != null">
|
||||
and SAR_STAND_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
<if test="remarks != null">
|
||||
and SAR_STAND_ITEMS.remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="responsibleUnit != null" >
|
||||
<if test="responsibleUnit != null">
|
||||
and SAR_STAND_ITEMS.responsible_unit = #{responsibleUnit}
|
||||
</if>
|
||||
<if test="energyKind != null" >
|
||||
<if test="energyKind != null">
|
||||
and SAR_STAND_ITEMS.energy_kind ${energyKindOperator} #{energyKind}
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
<if test="applyArctic != null">
|
||||
and SAR_STAND_ITEMS.apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="tackTime != null" >
|
||||
<if test="tackTime != null">
|
||||
and SAR_STAND_ITEMS.tack_time ${tackTimeOperator} #{tackTime}
|
||||
</if>
|
||||
<if test="tackTime1 != null" >
|
||||
<if test="tackTime1 != null">
|
||||
and SAR_STAND_ITEMS.tack_time >= #{tackTime1}
|
||||
</if>
|
||||
<if test="tackTime2 != null" >
|
||||
<if test="tackTime2 != null">
|
||||
and SAR_STAND_ITEMS.tack_time <= #{tackTime2}
|
||||
</if>
|
||||
<if test="parts != null" >
|
||||
<if test="parts != null">
|
||||
and SAR_STAND_ITEMS.parts like concat(concat('%', #{parts}),'%')
|
||||
</if>
|
||||
<if test="nameOrRequest != null" >
|
||||
and (SAR_STAND_ITEMS.items_name like concat(concat('%', #{nameOrRequest}),'%') or SAR_STAND_ITEMS.TERMS_CONDITIONS like concat(concat('%', #{nameOrRequest}),'%'))
|
||||
<if test="nameOrRequest != null">
|
||||
and (SAR_STAND_ITEMS.items_name like concat(concat('%', #{nameOrRequest}),'%') or
|
||||
SAR_STAND_ITEMS.TERMS_CONDITIONS like concat(concat('%', #{nameOrRequest}),'%'))
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
<if test="itemsName != null">
|
||||
and SAR_STAND_ITEMS.items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
<if test="itemsNum != null">
|
||||
and SAR_STAND_ITEMS.items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
<if test="standId != null">
|
||||
and SAR_STAND_ITEMS.stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="standNum != null" >
|
||||
<if test="standNum != null">
|
||||
and ((SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER || '-' ||
|
||||
SAR_STANDARDS_INFO.STAND_YEAR like concat(concat('%',#{standNum}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
|
||||
or (SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER like concat(concat('%',#{standNum}),'%')
|
||||
SAR_STANDARDS_INFO.STAND_YEAR like concat(concat('%',#{standNum}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is
|
||||
not null)
|
||||
or (SAR_STANDARDS_INFO.STAND_SORT || ' ' || SAR_STANDARDS_INFO.STAND_NUMBER like
|
||||
concat(concat('%',#{standNum}),'%')
|
||||
and SAR_STANDARDS_INFO.STAND_YEAR is null))
|
||||
</if>
|
||||
<if test="id != null" >
|
||||
<if test="id != null">
|
||||
and SAR_STAND_ITEMS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="noId != null" >
|
||||
<if test="noId != null">
|
||||
and SAR_STAND_ITEMS.id != #{noId}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
@@ -480,10 +551,10 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test='proType != null and proType == "process"' >
|
||||
<if test='proType != null and proType == "process"'>
|
||||
and (SAR_STAND_ITEMS.claim_type='L7N7EEDAPR' or SAR_STAND_ITEMS.claim_type='RENVECPFGT')
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
@@ -492,7 +563,7 @@
|
||||
<select id="queryIdsByList" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
|
||||
select SAR_STAND_ITEMS.id from SAR_STAND_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''">
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
@@ -524,39 +595,39 @@
|
||||
<update id="updateForeach" parameterType="java.util.List">
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
update SAR_STAND_ITEMS
|
||||
<set >
|
||||
<if test="item.svpps != null" >
|
||||
<set>
|
||||
<if test="item.svpps != null">
|
||||
svpps = #{item.svpps},
|
||||
</if>
|
||||
<if test="item.fo != null" >
|
||||
<if test="item.fo != null">
|
||||
fo = #{item.fo},
|
||||
</if>
|
||||
<if test="item.fileType != null" >
|
||||
<if test="item.fileType != null">
|
||||
file_type = #{item.fileType},
|
||||
</if>
|
||||
<if test="item.modifyTime != null" >
|
||||
<if test="item.modifyTime != null">
|
||||
modify_time = #{item.modifyTime},
|
||||
</if>
|
||||
<if test="item.remarks != null" >
|
||||
<if test="item.remarks != null">
|
||||
remarks = #{item.remarks},
|
||||
</if>
|
||||
<if test="item.applyArctic != null" >
|
||||
<if test="item.applyArctic != null">
|
||||
apply_arctic = #{item.applyArctic},
|
||||
</if>
|
||||
<if test="item.itemsName != null" >
|
||||
<if test="item.itemsName != null">
|
||||
items_name = #{item.itemsName},
|
||||
</if>
|
||||
<if test="item.itemsNum != null" >
|
||||
<if test="item.itemsNum != null">
|
||||
items_num = #{item.itemsNum},
|
||||
</if>
|
||||
<if test="item.standId != null" >
|
||||
<if test="item.standId != null">
|
||||
stand_id = #{item.standId},
|
||||
</if>
|
||||
<if test="item.termsConditions != null" >
|
||||
<if test="item.termsConditions != null">
|
||||
TERMS_CONDITIONS = #{item.termsConditions,jdbcType=CLOB},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{item.id, jdbcType=VARCHAR}
|
||||
where id = #{item.id, jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
;
|
||||
</update>
|
||||
@@ -613,7 +684,8 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectAllItemsClaimType" resultType="com.adc.da.sys.common.SelectionResult" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
<select id="selectAllItemsClaimType" resultType="com.adc.da.sys.common.SelectionResult"
|
||||
parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
select stand_id as label,claim_type as value from SAR_STAND_ITEMS
|
||||
where valid_flag = 0 and claim_type != ''
|
||||
<if test="standId != null">
|
||||
@@ -627,7 +699,8 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectAllItemsSvpps" resultType="com.adc.da.sys.common.SelectionResult" parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
<select id="selectAllItemsSvpps" resultType="com.adc.da.sys.common.SelectionResult"
|
||||
parameterType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||
select stand_id as label,svpps as value from SAR_STAND_ITEMS
|
||||
where valid_flag = 0 and svpps != ''
|
||||
<if test="standId != null">
|
||||
@@ -643,14 +716,14 @@
|
||||
|
||||
|
||||
<select id="selectAllItemsByIds" resultType="com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto">
|
||||
select ID,STAND_ID,ITEMS_NUM,ITEMS_NAME,RESPONSIBLE_UNIT,SVPPS,APPLY_ARCTIC,CLAIM_TYPE,BUS_STAND_COVER,DUTY_ENGINEER as responsibleEngineer
|
||||
select ID,STAND_ID,ITEMS_NUM,ITEMS_NAME,RESPONSIBLE_UNIT,SVPPS,APPLY_ARCTIC,CLAIM_TYPE,BUS_STAND_COVER,DUTY_ENGINEER as responsibleEngineer,XCXSSRQ as xcxssrq,ZCCSSRQ as zccssrq
|
||||
from SAR_STAND_ITEMS
|
||||
where FILE_TYPE=#{type}
|
||||
<if test="ids != null">
|
||||
and STAND_ID in
|
||||
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
and STAND_ID in
|
||||
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectStandTime" resultType="com.adc.da.slrs.sarStandItems.entity.StandsTimeDto">
|
||||
|
||||
+34
-2
@@ -89,12 +89,16 @@
|
||||
a.STAND_YEAR as standYear,ISSUE_TIME as issueTime,a.STAND_TYPE as standType,a.TEXT_STATUS as textStatus
|
||||
FROM sar_standards_info a LEFT JOIN sar_stand_attr_info b on
|
||||
a.ID = b.STAND_ID
|
||||
left join sar_stand_items ssi on ssi.stand_id = a.id
|
||||
<where>
|
||||
<if test="standName != null">
|
||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||
or a.STAND_NAME LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%'))
|
||||
and
|
||||
</if>
|
||||
<if test="fileType !=null">
|
||||
ssi.FILE_TYPE = #{fileType} and
|
||||
</if>
|
||||
<if test="standType !=null">
|
||||
a.STAND_TYPE = #{standType} and
|
||||
</if>
|
||||
@@ -103,7 +107,37 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</where>
|
||||
group by a.ID
|
||||
limit #{start},#{end}
|
||||
</select>
|
||||
|
||||
<select id="selectLawsByIdCount" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.LawsDto">
|
||||
SELECT a.ID,a.STAND_NUMBER as standNumber,a.STAND_NAME as standName,a.STAND_EN_NAME,b.NYLX,a.PUT_TIME,b.XCXSSRQ as XCXSSRQGJ,b.ZCCSSRQ as ZCCSSRQGJ,
|
||||
b.ZRBM,b.SYCPX,b.CYCVPPSBM,b.CYCVPPSCN,b.KCCVPPSBM,b.KCCVPPSCN,b.CLLX as typeApplicable,a.STAND_SORT as standSortShow,
|
||||
a.STAND_YEAR as standYear,ISSUE_TIME as issueTime,a.STAND_TYPE as standType,a.TEXT_STATUS as textStatus
|
||||
FROM sar_standards_info a LEFT JOIN sar_stand_attr_info b on
|
||||
a.ID = b.STAND_ID
|
||||
left join sar_stand_items ssi on ssi.stand_id = a.id
|
||||
<where>
|
||||
<if test="standName != null">
|
||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||
or a.STAND_NAME LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%'))
|
||||
and
|
||||
</if>
|
||||
<if test="fileType !=null">
|
||||
ssi.FILE_TYPE = #{fileType} and
|
||||
</if>
|
||||
<if test="standType !=null">
|
||||
a.STAND_TYPE = #{standType} and
|
||||
</if>
|
||||
a.ID IN
|
||||
<foreach collection="param1" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</where>
|
||||
group by a.ID
|
||||
</select>
|
||||
|
||||
<select id="selectTimes" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.StandRegionalTimeDto">
|
||||
SELECT
|
||||
b.country_area AS country,
|
||||
@@ -177,6 +211,4 @@
|
||||
</delete>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
+110
-2
@@ -9,7 +9,8 @@
|
||||
</insert>
|
||||
|
||||
|
||||
<select id="queryProjectManagerPage" resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
<select id="queryProjectManagerPage"
|
||||
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
select s.product_line,t.UNAME as uName ,s.project_manager as projectManager
|
||||
from sar_stand_project_library s
|
||||
INNER JOIN ts_user t
|
||||
@@ -21,8 +22,115 @@
|
||||
<delete id="deleteByIds">
|
||||
delete from sar_stand_project_relation where
|
||||
<foreach collection="ids" item="list" separator="or">
|
||||
( project_id= #{list.projectId} and stand_id = #{list.standId} )
|
||||
( project_id= #{list.projectId} and stand_id = #{list.standId} )
|
||||
</foreach>
|
||||
|
||||
</delete>
|
||||
|
||||
<select id="selectCount" resultType="java.lang.Integer" >
|
||||
SELECT
|
||||
count(sar_stand_project_library.id ) as total
|
||||
FROM
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
</if>
|
||||
<if test="qu.projectName != null">
|
||||
AND project_name LIKE concat(concat('%',#{qu.projectName}),'%')
|
||||
</if>
|
||||
<if test="qu.projectClassification != null">
|
||||
AND project_classification LIKE concat(concat('%',#{qu.projectClassification}),'%')
|
||||
</if>
|
||||
<if test="qu.projectPlatfor != null">
|
||||
AND project_platfor LIKE concat(concat('%',#{qu.projectPlatfor}),'%')
|
||||
</if>
|
||||
<if test="qu.projectGroup != null">
|
||||
AND project_group LIKE concat(concat('%',#{qu.projectGroup}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStatus != null">
|
||||
AND project_status LIKE concat(concat('%',#{qu.projectStatus}),'%')
|
||||
</if>
|
||||
<if test="qu.currentNode != null">
|
||||
AND current_node LIKE concat(concat('%',#{qu.currentNode}),'%')
|
||||
</if>
|
||||
<if test="qu.projectLevel != null">
|
||||
AND project_level LIKE concat(concat('%',#{qu.projectLevel}),'%')
|
||||
</if>
|
||||
<if test="qu.projectManager != null">
|
||||
AND project_manager LIKE concat(concat('%',#{qu.projectManager}),'%')
|
||||
</if>
|
||||
<if test="qu.productLine != null">
|
||||
AND product_line LIKE concat(concat('%',#{qu.productLine}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStartDate != null">
|
||||
AND project_start_date >= #{qu.projectStartDate}
|
||||
</if>
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="selectPages" resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary" >
|
||||
SELECT
|
||||
sar_stand_project_library.*,
|
||||
tu.UNAME as uName
|
||||
FROM
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
<if test="flag == 1">
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 2">
|
||||
id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
</if>
|
||||
<if test="qu.projectName != null">
|
||||
AND project_name LIKE concat(concat('%',#{qu.projectName}),'%')
|
||||
</if>
|
||||
<if test="qu.projectClassification != null">
|
||||
AND project_classification LIKE concat(concat('%',#{qu.projectClassification}),'%')
|
||||
</if>
|
||||
<if test="qu.projectPlatfor != null">
|
||||
AND project_platfor LIKE concat(concat('%',#{qu.projectPlatfor}),'%')
|
||||
</if>
|
||||
<if test="qu.projectGroup != null">
|
||||
AND project_group LIKE concat(concat('%',#{qu.projectGroup}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStatus != null">
|
||||
AND project_status LIKE concat(concat('%',#{qu.projectStatus}),'%')
|
||||
</if>
|
||||
<if test="qu.currentNode != null">
|
||||
AND current_node LIKE concat(concat('%',#{qu.currentNode}),'%')
|
||||
</if>
|
||||
<if test="qu.projectLevel != null">
|
||||
AND project_level LIKE concat(concat('%',#{qu.projectLevel}),'%')
|
||||
</if>
|
||||
<if test="qu.projectManager != null">
|
||||
AND project_manager LIKE concat(concat('%',#{qu.projectManager}),'%')
|
||||
</if>
|
||||
<if test="qu.productLine != null">
|
||||
AND product_line LIKE concat(concat('%',#{qu.productLine}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStartDate != null">
|
||||
AND project_start_date >= #{qu.projectStartDate}
|
||||
</if>
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
limit ${(page-1)*size},${page*size}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user