修改--产品管理修改返回资源位已购未购情况

This commit is contained in:
haotian 2025-04-15 10:41:08 +08:00
parent 4935d7cda1
commit 93dbcd4f65

View File

@ -222,7 +222,12 @@ public class SysSourceController extends BaseController {
//------------------------------------实际返回数据----------------------------------------------
List<SourceUseCountDto> seUserWorkCount = dailySysService.getSourceUserCount(startDate, endDate);
// 还要计数资源位数量--未使用资源位数量=资源位总数-已使用数量.
int sourceCount = sysSourceService.selectSysSourceList(new SysSource()).size();
for(SourceUseCountDto sourceUseCountDto : seUserWorkCount){
sourceUseCountDto.setUnUseCount(sourceCount-sourceUseCountDto.getUseCount());
}
//------------------------------------实际返回数据结束----------------------------------------------