Commit 4f452d87 authored by neo's avatar neo

[bug] get all project sql er

parent 2664d707
......@@ -139,25 +139,25 @@ public interface ProjectMapper extends MyMapper {
"FROM " +
" Project p " +
" JOIN " +
" Organization org ON p.OrganizationID = org.id " +
" Organization org ON p.ORGANIZATION_ID = org.id " +
" JOIN " +
" PROJECT_SERVICE_TYPE projectServiceType ON p.id = projectServiceType.ProjectID " +
" PROJECT_SERVICE_TYPE PROJECT_SERVICE_TYPE ON p.id = projectServiceType.PROJECT_ID " +
" JOIN " +
" Organization organization ON p.OrganizationID = organization.id " +
" Organization organization ON p.ORGANIZATION_ID = organization.id " +
" JOIN " +
" ServiceType serviceType ON projectServiceType.ServiceTypeID = serviceType.id " +
" ServiceType serviceType ON projectServiceType.SERVICE_TYPE_ID = serviceType.id " +
" JOIN " +
" Industry industry ON p.IndustryID = industry.id " +
" Industry industry ON p.INDUSTRY_ID = industry.id " +
" JOIN " +
" TEMPLATE_GROUP templateGroup ON projectServiceType.TemplateGroupID = templateGroup.id " +
" TEMPLATE_GROUP templateGroup ON projectServiceType.TEMPLATE_GROUP_ID = templateGroup.id " +
" JOIN " +
" Region region ON p.RegionID = region.id " +
" Region region ON p.REGION_ID = region.id " +
" JOIN " +
" ENTERPRISE_ACCOUNT_SET_ORG enterOrg ON p.EnterpriseAccountSetID = enterOrg.EnterpriseAccountSetID " +
" ENTERPRISE_ACCOUNT_SET_ORG enterOrg ON p.ENTERPRISE_ACCOUNT_SET_ID = enterOrg.ENTERPRISE_ACCOUNT_SET_ID " +
" <where>" +
" p.IS_ACTIVE=1 and serviceType.IS_ACTIVE=1 and p.ORGANIZATION_ID = enterOrg.ORGANIZATION_ID" +
" <if test=\"orgID != null and orgID !='' \">AND org.id=#{orgId}</if>" +
" <if test=\"serverID != null and serverID !='' \">AND p.serviceType=#{serverId}</if>" +
" <if test=\"orgId != null and orgId !='' \">AND org.id=#{orgId}</if>" +
" <if test=\"serverId != null and serverId !='' \">AND p.serviceType=#{serverId}</if>" +
" <if test=\"projectYear != null\">AND p.Year=#{projectYear}</if>" +
" </where>" +
"</script>")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment