Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
@@ -138,7 +138,7 @@ stand.edit.file.path = /data/slrs/file/
|
||||
file.downloadUrl=https://srms.foton.com.cn/file/
|
||||
|
||||
#上传文件白名单-以,分隔
|
||||
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg,pptx,ppt
|
||||
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg,pptx,ppt,pdg
|
||||
|
||||
# =============================================================================
|
||||
# elasticsearch 配置
|
||||
|
||||
@@ -17,9 +17,10 @@ public class importExcelDTO {
|
||||
@Excel(name = "制修订类型",orderNum = "2", width = 20.0)
|
||||
private String reviseStatus;
|
||||
|
||||
@Excel(name = "起草责任单位" , orderNum = "3", width = 20.0)
|
||||
private String unitName;
|
||||
|
||||
@Excel(name = "起草责任单位" , orderNum = "3", width = 20.0)
|
||||
|
||||
private String unit;
|
||||
|
||||
private String drafterName;
|
||||
|
||||
+3
-3
@@ -73,9 +73,9 @@ public class IExportServiceImpl implements IExportService {
|
||||
stringBuilder.append("第" + i + "行第7列工作组组长填写不符合格式要求请检查;");
|
||||
}
|
||||
}
|
||||
if (null!=importExcelDTO.getUnit() && !"".equals(importExcelDTO.getUnit())){
|
||||
importExcelDTO.setUnitName(tsInstitutionMap.get(importExcelDTO.getUnit()));
|
||||
if (null==tsInstitutionMap.get(importExcelDTO.getUnit())){
|
||||
if (null!=importExcelDTO.getUnitName() && !"".equals(importExcelDTO.getUnitName())){
|
||||
importExcelDTO.setUnit(tsInstitutionMap.get(importExcelDTO.getUnitName()));
|
||||
if (null==tsInstitutionMap.get(importExcelDTO.getUnitName())){
|
||||
stringBuilder.append("第"+i+"行第4列起草责任单位填写不符合格式要求请检查;");
|
||||
}
|
||||
}
|
||||
|
||||
+26
-13
@@ -61,6 +61,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.sql.Clob;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -550,18 +551,30 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
map.put("standEnName",verifyObj(sarStandardsInfoEO.getStandEnName()));
|
||||
map.put("standNature",verifyObj(sarStandardsInfoEO.getStandNature()));
|
||||
map.put("standState",verifyObj(sarStandardsInfoEO.getStandStatus()));
|
||||
// if (sarStandardsInfoEO.getIssueTime() != null) {
|
||||
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// String issueStr = format.format(sarStandardsInfoEO.getIssueTime());
|
||||
// map.put("issueTime",issueStr);
|
||||
// }
|
||||
map.put("issueTime", verifyObj(sarStandardsInfoEO.getIssueTime()));
|
||||
map.put("putTime", verifyObj(sarStandardsInfoEO.getPutTime()));
|
||||
// if (sarStandardsInfoEO.getPutTime() != null) {
|
||||
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// String issueStr = format.format(sarStandardsInfoEO.getPutTime());
|
||||
// map.put("putTime",issueStr);
|
||||
// }
|
||||
if (sarStandardsInfoEO.getIssueTime() != null) {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
SimpleDateFormat format2 = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String issueStr = "";
|
||||
try {
|
||||
issueStr = format2.format(format.parse(sarStandardsInfoEO.getIssueTime()));
|
||||
}catch (Exception e){
|
||||
}
|
||||
map.put("issueTime",issueStr);
|
||||
}else{
|
||||
map.put("issueTime", "");
|
||||
}
|
||||
if (sarStandardsInfoEO.getPutTime() != null) {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
SimpleDateFormat format2 = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String issueStr = "";
|
||||
try {
|
||||
issueStr = format2.format(format.parse(sarStandardsInfoEO.getPutTime()));
|
||||
}catch (Exception e){
|
||||
}
|
||||
map.put("putTime",issueStr);
|
||||
}else {
|
||||
map.put("putTime", "");
|
||||
}
|
||||
map.put("replaceStandNum",sarStandardsInfoEO.getReplaceStandNum());
|
||||
map.put("replacedStandNum",sarStandardsInfoEO.getReplacedStandNum());
|
||||
return map;
|
||||
@@ -822,7 +835,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
convert.setFileSuffix(fileInfo.getFileSuffix());
|
||||
convert.setStandFileClassify(field);
|
||||
convert.setConvertType(SarTypeEnum.BUSINESS.getValue());
|
||||
convertMq.sendMQ(convert);
|
||||
// convertMq.sendMQ(convert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+18
-18
@@ -151,12 +151,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
||||
qw.isNull("PARENT_ID");
|
||||
List<TsResource> children = iTsResourceService.list(qw);
|
||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||
List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||
if (!getMenuIdList.isEmpty()) {
|
||||
page.setMenuRoleList(getMenuIdList);
|
||||
} else {
|
||||
page.setMenuRoleList(null);
|
||||
}
|
||||
// List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||
// if (!getMenuIdList.isEmpty()) {
|
||||
// page.setMenuRoleList(getMenuIdList);
|
||||
// } else {
|
||||
// page.setMenuRoleList(null);
|
||||
// }
|
||||
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||
if (ids != null && !ids.isEmpty()) {
|
||||
page.setMenuAllChildrenIdList(ids);
|
||||
@@ -180,12 +180,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
||||
qw.isNull("PARENT_ID");
|
||||
List<TsResource> children = iTsResourceService.list(qw);
|
||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||
List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||
if (!getMenuIdList.isEmpty()) {
|
||||
page.setMenuRoleList(getMenuIdList);
|
||||
} else {
|
||||
page.setMenuRoleList(null);
|
||||
}
|
||||
// List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||
// if (!getMenuIdList.isEmpty()) {
|
||||
// page.setMenuRoleList(getMenuIdList);
|
||||
// } else {
|
||||
// page.setMenuRoleList(null);
|
||||
// }
|
||||
List<String> ids = iTsResourceService.getChildMenuList(userId);
|
||||
if (ids != null && !ids.isEmpty()) {
|
||||
page.setMenuAllChildrenIdList(ids);
|
||||
@@ -429,12 +429,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
||||
qw.isNull("PARENT_ID");
|
||||
List<TsResource> children = iTsResourceService.list(qw);
|
||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||
page.setMenuRoleList(getMenuIdList);
|
||||
} else {
|
||||
page.setMenuRoleList(null);
|
||||
}
|
||||
// List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||
// if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||
// page.setMenuRoleList(getMenuIdList);
|
||||
// } else {
|
||||
// page.setMenuRoleList(null);
|
||||
// }
|
||||
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||
if (ids != null && !ids.isEmpty()) {
|
||||
page.setMenuAllChildrenIdList(ids);
|
||||
|
||||
+21
@@ -3,12 +3,16 @@ package com.adc.da.slrs.sarStandIdea.controller;
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarStandIdea.entity.SarPublicIdeaAll;
|
||||
import com.adc.da.slrs.sarStandIdea.entity.SeByoDto;
|
||||
import com.adc.da.slrs.sarStandIdea.service.ISarPublicIdeaAllService;
|
||||
import com.adc.da.slrs.sarStandIdea.service.ISarPublicIdeaService;
|
||||
import com.adc.da.slrs.sarStandIdea.service.Impl.SarPublicIdeaServiceImpl;
|
||||
import com.adc.da.sys.util.DateUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.adc.da.slrs.sarStandIdea.entity.SarPublicIdea;
|
||||
@@ -36,6 +40,9 @@ public class SarPublicIdeaController extends BaseController<SarPublicIdea> {
|
||||
@Autowired
|
||||
private ISarPublicIdeaService sarPublicIdeaService;
|
||||
|
||||
@Autowired
|
||||
private ISarPublicIdeaAllService sarPublicIdeaAllService;
|
||||
|
||||
@ApiOperation(value = "分页查询")
|
||||
@GetMapping("/SelectAllPage")
|
||||
public ResponseMessage selectAllPage(@RequestParam(defaultValue="1")Integer page,@RequestParam(defaultValue="10")Integer size,String categorg, String cname,
|
||||
@@ -87,4 +94,18 @@ public class SarPublicIdeaController extends BaseController<SarPublicIdea> {
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "动态查询")
|
||||
@GetMapping("/deletePublicIdea")
|
||||
public ResponseMessage delete(@RequestParam("id") String id){
|
||||
QueryWrapper<SarPublicIdea> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq("uniques",id);
|
||||
SarPublicIdea sarPublicIdea=sarPublicIdeaService.getOne(wrapper);
|
||||
sarPublicIdeaService.remove(wrapper);
|
||||
QueryWrapper<SarPublicIdeaAll> wrapper1=new QueryWrapper<>();
|
||||
wrapper1.eq("idea_id",sarPublicIdea.getId());
|
||||
sarPublicIdeaAllService.remove(wrapper1);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ public class SarStandardsInfoController extends BaseController<SarStandardsInfo>
|
||||
// sarAdvanceSearchVO.setField("STAND_SYSTEM");
|
||||
// }
|
||||
// });
|
||||
String advanceStr = SarAdvanceSearchUtil.createStandSql(searchList,"sar_standards_info");
|
||||
String advanceStr = SarAdvanceSearchUtil.createStandSql(searchList,"sar_stand_attr_info");
|
||||
if (StringUtils.isNotBlank(advanceStr)) {
|
||||
page.setAdvanceSearchStr(advanceStr);
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -239,7 +239,7 @@ public class SarUpdLogServiceImpl extends ServiceImpl<SarUpdLogDao, SarUpdLog> i
|
||||
// case "country": return "适用区域";
|
||||
// case "isRelateAccess": return "重要度";
|
||||
case "issueTime": return "发布日期";
|
||||
case "putTime": return "标准实施日期";
|
||||
case "putTime": return "企标实施日期";
|
||||
// case "standYear": return "标准年份";
|
||||
// case "standNature": return "标准性质";
|
||||
case "standEnName": return "英文名称";
|
||||
|
||||
Reference in New Issue
Block a user