|
@@ -150,6 +150,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
|
|
|
private final IRecycleBinService recycleBinService;
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
StringRedisTemplate RedisTemplate;
|
|
|
|
|
@@ -200,7 +201,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
.map(Long::valueOf)
|
|
|
.collect(Collectors.toList());
|
|
|
List<InformationQuery> queryList = this.informationQueryService.list(Wrappers.<InformationQuery>lambdaQuery()
|
|
|
- .select(InformationQuery::getId, InformationQuery::getName,InformationQuery::getProjectId,InformationQuery::getClassify,InformationQuery::getStatus).in(InformationQuery::getId, idList));
|
|
|
+ .select(InformationQuery::getId, InformationQuery::getName,InformationQuery::getProjectId,InformationQuery::getClassify,InformationQuery::getStatus,InformationQuery::getWbsId).in(InformationQuery::getId, idList));
|
|
|
String sgSuffix="";
|
|
|
String jlSuffix="";
|
|
|
if(queryList.size()>0){
|
|
@@ -211,13 +212,18 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
jlSuffix=projectInfos.get(0).getJlSuffix()==null?"":projectInfos.get(0).getJlSuffix();
|
|
|
}
|
|
|
for (InformationQuery query : queryList) {
|
|
|
+ String sql="select * from m_wbs_tree_contract where p_key_id="+query.getWbsId()+" and is_deleted=0";
|
|
|
+ WbsTreeContract contract = jdbcTemplate.queryForObject(sql, new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
|
+ String result=wbsParamClient.createFileTitle(contract);
|
|
|
if(query.getClassify()!=null&&query.getClassify()==1&&StringUtils.isNotEmpty(sgSuffix)){
|
|
|
- if(!query.getName().endsWith(sgSuffix)){
|
|
|
- query.setName(query.getName()+sgSuffix);
|
|
|
+ result=result+sgSuffix;
|
|
|
+ if(!query.getName().equals(result)){
|
|
|
+ query.setName(result);
|
|
|
}
|
|
|
}else if(query.getClassify()!=null&&query.getClassify()==2&&StringUtils.isNotEmpty(jlSuffix)){
|
|
|
- if(!query.getName().endsWith(jlSuffix)){
|
|
|
- query.setName(query.getName()+jlSuffix);
|
|
|
+ result=result+jlSuffix;
|
|
|
+ if(!query.getName().equals(result)){
|
|
|
+ query.setName(result);
|
|
|
}
|
|
|
}
|
|
|
}
|