@@ -68,5 +68,5 @@ public interface UserAllocationMapper extends BaseMapper<UserAllocation> {
Project getProjectEntity(Long projectId);
- UserAllocation getOneByAccountId();
+ UserAllocation getOneByAccountId(Long accountId);
}
@@ -56,6 +56,7 @@
project_media_id
from `jeecg-boot`.ctop_user_allocation
where account_id = #{accountId}
+ Limit 1
</select>
<select id="queryAdvertiserId" resultType="String">
@@ -27,7 +27,7 @@ public class UserAllocationServiceImpl extends ServiceImpl<UserAllocationMapper,
@Override
public UserAllocation getByAccountId(Long accountId) {
- return userAllocationMapper.getOneByAccountId();
+ return userAllocationMapper.getOneByAccountId(accountId);