Skip to content

Commit 584e950

Browse files
authored
Merge pull request #557 from bcgov/yj
chore: add business_licence_no_matched to the view
2 parents fccd0ae + 0b73fc4 commit 584e950

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

database/ddl/STR_DSS_Views_Sprint_12.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ CREATE OR REPLACE VIEW dss_rental_listing_vw AS select drl.rental_listing_id
4949
, demt.email_message_type_nm as last_action_nm
5050
, dem.message_delivery_dtm as last_action_dtm
5151
, dbl.business_licence_id
52+
, dbl.business_licence_no as business_licence_no_matched
5253
FROM dss_rental_listing drl
5354
join dss_organization org on org.organization_id=drl.offering_organization_id
5455
LEFT JOIN dss_listing_status_type dlst on drl.listing_status_type=dlst.listing_status_type

server/StrDss.Data/Entities/DssDbContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
960960
entity.Property(e => e.BusinessLicenceNo)
961961
.HasMaxLength(320)
962962
.HasColumnName("business_licence_no");
963+
entity.Property(e => e.BusinessLicenceNoMatched)
964+
.HasMaxLength(50)
965+
.HasColumnName("business_licence_no_matched");
963966
entity.Property(e => e.EconomicRegionDsc)
964967
.HasMaxLength(100)
965968
.HasColumnName("economic_region_dsc");

server/StrDss.Data/Entities/DssRentalListingVw.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ public partial class DssRentalListingVw
9090
public DateTime? LastActionDtm { get; set; }
9191

9292
public long? BusinessLicenceId { get; set; }
93+
94+
public string? BusinessLicenceNoMatched { get; set; }
9395
}

server/StrDss.Model/RentalReportDtos/RentalListingViewDto.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public class RentalListingViewDto
8080

8181
public string? LastActionNm { get; set; }
8282
public long? BusinessLicenceId { get; set; }
83+
public string? BusinessLicenceNoMatched { get; set; }
8384
public DateTime? LastActionDtm { get; set; }
8485
public bool HasAtLeastOneValidHostEmail { get; set; }
8586
public List<HostInfo> HostsInfo { get; set; } = new List<HostInfo>();

0 commit comments

Comments
 (0)