需求:
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中都需要
8 回答6.6k 阅读
4 回答714 阅读✓ 已解决
2 回答3.4k 阅读
3 回答1.9k 阅读✓ 已解决
1 回答2.2k 阅读✓ 已解决
1 回答2.1k 阅读✓ 已解决
1 回答974 阅读✓ 已解决
这种逻辑不应该放在sql里去处理,将业务逻辑包含在你转成的DO里:
对外服务暴露这个DO,mybatis负责填充这个DO