This commit is contained in:
mashuai 2025-08-15 17:41:58 +08:00
parent 0edf22a5a5
commit 8b72d2358b
3 changed files with 10 additions and 4 deletions

View File

@ -539,7 +539,8 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
// 查询领用出库数据
List<LeaseApplyInfo> leaseApplyOutList = leaseApplyInfoMapper.selectPublishList(leaseApplyInfo);
if (!CollectionUtils.isEmpty(leaseApplyOutList)) {
for (LeaseApplyInfo applyInfo : leaseApplyOutList) {
list.addAll(leaseApplyOutList);
for (LeaseApplyInfo applyInfo : list) {
if (applyInfo.getPreCountNum().compareTo(applyInfo.getAlNum()) == 0) {
applyInfo.setTaskStatus(LeaseTaskStatusEnum.LEASE_TASK_FINISHED.getStatus());
applyInfo.setTaskStatusName(LeaseTaskStatusEnum.LEASE_TASK_FINISHED.getStatusName());
@ -548,7 +549,6 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
applyInfo.setTaskStatusName(LeaseTaskStatusEnum.LEASE_TASK_IN_PROGRESS.getStatusName());
}
}
list.addAll(leaseApplyOutList);
}
}

View File

@ -1089,6 +1089,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="publishTask != null and publishTask != ''">
AND lpd.publish_task = #{publishTask}
</if>
<if test="projectIdList != null and projectIdList.size() > 0">
and bp.external_id in
<foreach item="item" collection="projectIdList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
GROUP BY
lpd.publish_task
ORDER BY

View File

@ -403,7 +403,8 @@
sd.dept_name as impUnitName,
bai.agreement_code
from
lease_apply_info lai
sys_workflow_record swr
left join lease_apply_info lai on swr.task_id = lai.task_id
left join tm_task tt on lai.task_id = tt.task_id
left join lease_apply_details lad on lai.id = lad.parent_id
LEFT JOIN (SELECT parent_id, unit_id, project_id from lease_publish_details
@ -417,7 +418,6 @@
and sda.dict_type = 'lease_apply_task_status'
left join ma_type mt on lad.type_id = mt.type_id and mt.del_flag = '0'
left join ma_type mt1 on mt.parent_id = mt1.type_id and mt1.del_flag = '0'
left join sys_workflow_record swr on swr.task_id = lai.task_id
where tt.task_type = '19' and sda.dict_type = 'lease_apply_task_status'
<if test="code != null and code != ''">and lai.code = #{code}</if>
<if test="taskId != null ">and lai.task_id = #{taskId}</if>