Open tom055 opened 1 month ago
DTO
@Getter @Setter public class DeviceRuleNotifyDto { //规则表 DeviceRulePo deviceRulePo; //通知表 List<NotifyTemplatePo> notifyTemplatePos; }
service
MPJLambdaWrapper<DeviceRuleNotifyDto> baseJoin = new MPJLambdaWrapper<DeviceRuleNotifyDto>() .selectAssociation("t", DeviceRulePo.class, DeviceRuleNotifyDto::getDeviceRulePo) .selectCollection(NotifyTemplatePo.class, DeviceRuleNotifyDto::getNotifyTemplatePos) .leftJoin(DeviceRuleNotifyPo.class, DeviceRuleNotifyPo::getRuleId, DeviceRulePo::getId) .leftJoin(NotifyTemplatePo.class, NotifyTemplatePo::getId, DeviceRuleNotifyPo::getNotifyTemplateId); MPJLambdaWrapper wrapper = wrapper(baseJoin, queryParam); return getBaseMapper().selectJoinOne(DeviceRuleNotifyDto.class,wrapper);
你好 大佬 能查询到数据,但dto无法接数据,请问这个要如何解决呢
最后你是如何解决的?
@Umenezumi 手动解决
DTO
service
你好 大佬 能查询到数据,但dto无法接数据,请问这个要如何解决呢