Skip to content

Target property "menuIds" must not be mapped more than once. #172

@wsljsj

Description

@wsljsj

`
@DaTa
@table(value = "sys_tenant_package")
public class SysTenantPackage implements Serializable {

/** 关联菜单id */
private String menuIds; 

}
`

`
@AutoMapper(target = SysTenantPackage.class, reverseConvertGenerate = false)
public record SysTenantPackageAddBo(

/*
 * 关联菜单id
 */
@NotEmpty(message = "关联菜单id不能为空")
@AutoMapping(target = "menuIds", expression = "java(com.ruoyi.common.core.utils.StringUtils.join(source.getMenuIds(), \",\"))")
String[] menuIds,

) {}
`
生成时报错Target property "menuIds" must not be mapped more than once

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions