fix(firstleg): restore sailing channel duplicate lookup

This commit is contained in:
2026-09-27 19:56:23 +08:00
parent 48de46739c
commit 69f2a18a44
3 changed files with 38 additions and 2 deletions
@@ -18,7 +18,7 @@ public interface SailingChannelMapper extends BaseMapper<SailingChannelEntity> {
AND (#{query.status} IS NULL OR status=#{query.status})
ORDER BY status ASC,channel_name ASC,id ASC</script>
""")
List<SailingChannelEntity> selectList(@Param("query") ChannelQuery query);
List<SailingChannelEntity> selectChannels(@Param("query") ChannelQuery query);
@Update("""
UPDATE fl_sailing_channel SET channel_code=#{value.channelCode},channel_name=#{value.channelName},
@@ -37,7 +37,7 @@ public class SailingCalendarRepository {
@Resource private SailingFactsRepository facts;
@Resource private OceanBookingRepository oceanBookings;
public List<SailingChannelEntity> channels(ChannelQuery query) { return channels.selectList(query); }
public List<SailingChannelEntity> channels(ChannelQuery query) { return channels.selectChannels(query); }
public SailingChannelEntity channel(long id) { return channels.selectById(id); }
public SailingChannelEntity channelByCode(String code) {
return channels.selectOne(new LambdaQueryWrapper<SailingChannelEntity>()