mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	infra: 修正 查询实体列表方法,传入的ID集合为空时,会导致异常的问题
This commit is contained in:
		@@ -64,14 +64,14 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public ${table.className}DO get${simpleClassName}(${primaryColumn.javaType} id) {
 | 
			
		||||
        if (CollUtil.isEmpty(ids)) {
 | 
			
		||||
            return ListUtil.empty();
 | 
			
		||||
        }
 | 
			
		||||
        return ${classNameVar}Mapper.selectById(id);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<${table.className}DO> get${simpleClassName}List(Collection<${primaryColumn.javaType}> ids) {
 | 
			
		||||
        if (CollUtil.isEmpty(ids)) {
 | 
			
		||||
            return ListUtil.empty();
 | 
			
		||||
        }
 | 
			
		||||
        return ${classNameVar}Mapper.selectBatchIds(ids);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user