需求:
select concat(#{picPathDomain},picPath ) as picPath from picture where deleted=0 and id=#{id}
picPathDomain(图片域名https://image.*.com)这个图片的域名只能这样写吗?而且有多个sql中都需要
需求:
select concat(#{picPathDomain},picPath ) as picPath from picture where deleted=0 and id=#{id}
picPathDomain(图片域名https://image.*.com)这个图片的域名只能这样写吗?而且有多个sql中都需要
4 回答1.3k 阅读✓ 已解决
4 回答1.2k 阅读✓ 已解决
1 回答2.6k 阅读✓ 已解决
2 回答721 阅读✓ 已解决
2 回答1.7k 阅读
2 回答1.7k 阅读
2 回答1.3k 阅读
这种逻辑不应该放在sql里去处理,将业务逻辑包含在你转成的DO里:
对外服务暴露这个DO,mybatis负责填充这个DO