fix(firstleg): restore sailing channel duplicate lookup
This commit is contained in:
+1
-1
@@ -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},
|
||||
|
||||
+1
-1
@@ -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>()
|
||||
|
||||
Reference in New Issue
Block a user