|
|
@@ -963,10 +963,10 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
if (obj == null) {
|
|
|
return R.data(status);
|
|
|
}
|
|
|
- InformationQuery businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).last("order by id desc limit 1"));
|
|
|
+ InformationQuery businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).last("order by IF(`status` = 3,0,`status`) desc , id desc limit 1"));
|
|
|
if (businessData != null && businessData.getStatus() == 3) {
|
|
|
this.informationQueryService.createNewInformationQueriesByStatusForLock(Collections.singletonList(businessData.getId() + ""));
|
|
|
- InformationQuery businessData1 = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).in(InformationQuery::getStatus, 0,1,2).last("order by id desc limit 1"));
|
|
|
+ InformationQuery businessData1 = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).in(InformationQuery::getStatus, 0,1,2).last("order by `status` desc , id desc limit 1"));
|
|
|
if (businessData1 != null) {
|
|
|
businessData = businessData1;
|
|
|
}
|
|
|
@@ -1036,10 +1036,10 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
if (obj == null) {
|
|
|
return R.data(status);
|
|
|
}
|
|
|
- InformationQuery businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).last("order by id desc limit 1"));
|
|
|
+ InformationQuery businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).last("order by IF(`status` = 3,0,`status`) desc , id desc limit 1"));
|
|
|
if (businessData != null && businessData.getStatus() == 3) {
|
|
|
this.informationQueryService.createNewInformationQueriesByStatusForLock(Collections.singletonList(businessData.getId() + ""));
|
|
|
- InformationQuery businessData1 = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).in(InformationQuery::getStatus, 0,1,2).last("order by id desc limit 1"));
|
|
|
+ InformationQuery businessData1 = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery().eq(InformationQuery::getWbsId, primaryKeyId).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getContractId, obj.getContractId()).eq(InformationQuery::getType, 1).in(InformationQuery::getStatus, 0,1,2).last("order by `status` desc , id desc limit 1"));
|
|
|
if (businessData1 != null) {
|
|
|
businessData = businessData1;
|
|
|
}
|
|
|
@@ -1113,14 +1113,14 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
InformationQuery businessData = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery()
|
|
|
.eq(InformationQuery::getId, id)
|
|
|
.eq(InformationQuery::getContractId, obj.getContractId())
|
|
|
- .eq(InformationQuery::getType, 3).last("order by id desc limit 1")
|
|
|
+ .eq(InformationQuery::getType, 3).last("order by IF(`status` = 3,0,`status`) desc , id desc limit 1")
|
|
|
);
|
|
|
if (businessData != null && businessData.getStatus() == 3) {
|
|
|
this.informationQueryService.createNewInformationQueriesByStatusForLock(Collections.singletonList(businessData.getId() + ""));
|
|
|
InformationQuery businessData1 = this.informationQueryService.getOne(Wrappers.<InformationQuery>lambdaQuery()
|
|
|
.eq(InformationQuery::getId, id)
|
|
|
.eq(InformationQuery::getContractId, obj.getContractId()).in(InformationQuery::getStatus, 0,1,2)
|
|
|
- .eq(InformationQuery::getType, 3).last("order by id desc limit 1")
|
|
|
+ .eq(InformationQuery::getType, 3).last("order by `status` desc , id desc limit 1")
|
|
|
);
|
|
|
if (businessData1 != null) {
|
|
|
businessData = businessData1;
|
|
|
@@ -1189,11 +1189,11 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
String status = "1";
|
|
|
//查询填报状态,type=2试验
|
|
|
InformationQuery businessData = this.informationQueryService.getBaseMapper().selectList(Wrappers.<InformationQuery>lambdaQuery()
|
|
|
- .eq(InformationQuery::getWbsId, id).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getType, 2).last("order by id desc limit 1")).stream().findAny().orElse(null);
|
|
|
+ .eq(InformationQuery::getWbsId, id).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getType, 2).last("order by IF(`status` = 3,0,`status`) desc , id desc limit 1")).stream().findAny().orElse(null);
|
|
|
if (businessData != null && businessData.getStatus() == 3) {
|
|
|
this.informationQueryService.createNewInformationQueriesByStatusForLock(Collections.singletonList(businessData.getId() + ""));
|
|
|
InformationQuery businessData1 = this.informationQueryService.getBaseMapper().selectList(Wrappers.<InformationQuery>lambdaQuery().in(InformationQuery::getStatus, 0, 1, 2)
|
|
|
- .eq(InformationQuery::getWbsId, id).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getType, 2).last("order by id desc limit 1")).stream().findAny().orElse(null);
|
|
|
+ .eq(InformationQuery::getWbsId, id).eq(InformationQuery::getClassify, classify).eq(InformationQuery::getType, 2).last("order by `status` desc , id desc limit 1")).stream().findAny().orElse(null);
|
|
|
if (businessData1 != null) {
|
|
|
businessData = businessData1;
|
|
|
}
|
|
|
@@ -1827,6 +1827,7 @@ public R<Object> batchTask(@RequestBody StartTaskVO startTaskVO) {
|
|
|
if (query.getStatus() != null && query.getStatus() == 3) {
|
|
|
query.setId(SnowFlakeUtil.getId());
|
|
|
query.setStatus(0);
|
|
|
+ query.setCreateTime(new Date());
|
|
|
this.informationQueryService.save(query);
|
|
|
}
|
|
|
} else {
|
|
|
@@ -4386,11 +4387,11 @@ public R<Boolean> saveContractTreeNode(@RequestBody AddContractTreeNodeVO vo) {
|
|
|
//if (Optional.ofNullable(half.getNodeType()).orElse(7) <= 6) {
|
|
|
newData.setIsTypePrivatePid(half.getPKeyId());
|
|
|
//}
|
|
|
- //2025年12月05日10:18更改需求,需要与项目级一致
|
|
|
- if (half.getType() != null && new Integer("2").equals(half.getType())) {
|
|
|
- //2023年8月1日14:41:03更改需求,isBussShow默认=1
|
|
|
- newData.setIsBussShow(half.getDefaultConceal() + 1);
|
|
|
- }
|
|
|
+// //2025年12月05日10:18更改需求,需要与项目级一致
|
|
|
+// if (half.getType() != null && new Integer("2").equals(half.getType())) {
|
|
|
+// //2023年8月1日14:41:03更改需求,isBussShow默认=1
|
|
|
+// newData.setIsBussShow(half.getIsBussShow());
|
|
|
+// }
|
|
|
|
|
|
//获取当前所有复制的节点的最大sort
|
|
|
newData.setSort(ObjectUtils.isNotEmpty(half.getSort()) ? half.getSort() : 0);
|
|
|
@@ -4811,7 +4812,7 @@ private void foreachQueryChild(List<Long> parentIdsList, List<WbsTreePrivateAddV
|
|
|
" and project_id = " + wbsTreeContract.getProjectId() +
|
|
|
" and wbs_id = " + wbsTreeContract.getWbsId() +
|
|
|
" and wbs_type = " + wbsTreeContract.getWbsType() +
|
|
|
- " and is_deleted = 0 and status = 1";
|
|
|
+ " and is_deleted = 0 ";
|
|
|
List<WbsTreePrivateAddVO> childS = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WbsTreePrivateAddVO.class));
|
|
|
if (childS.size() > 0) {
|
|
|
childList.addAll(childS);
|