Commit a1cb888d authored by neo's avatar neo

[dev] change get project from count sql erro

parent 5d0c7966
...@@ -174,51 +174,51 @@ public interface ProjectMapper extends MyMapper { ...@@ -174,51 +174,51 @@ public interface ProjectMapper extends MyMapper {
List<ProjectStatusManage> getProjectSatusListByDbName(String dbName); List<ProjectStatusManage> getProjectSatusListByDbName(String dbName);
@Select("<script>" + @Select("<script>" +
"SELECT " + "SELECT " +
" now() AS CreateTime, " + " SYSDATE AS CreateTime, " +
" TRUE AS IsActive, " + " 1 AS IsActive, " +
" org.id AS OrganizationID, " + " org.id AS OrganizationID, " +
" org.Name AS Name, " + " org.Name AS Name, " +
" org.Code AS Code, " + " org.Code AS Code, " +
" UUID() AS id, " + " SYS_GUID() AS id, " +
" org.IndustryID AS IndustryID, " + " org.Industry_ID AS IndustryID, " +
" 0 AS Year, " + " 0 AS Year, " +
" org.REGION_ID AS RegionID, " + " org.REGION_ID AS RegionID, " +
" 0 AS RuleType, " + " 0 AS RuleType, " +
" st.id AS ServiceTypeID, " + " st.id AS ServiceTypeID, " +
" reg.ShortName AS RegionName, " + " reg.Short_Name AS RegionName, " +
" now() AS UpdateTime, " + " SYSDATE AS UpdateTime, " +
" st.Name AS ServiceTypeName, " + " st.Name AS ServiceTypeName, " +
" org.Name AS OrganizationName, " + " org.Name AS OrganizationName, " +
" ind.Name AS IndustryName, " + " ind.Name AS IndustryName, " +
" ostg.TEMPLATE_GROUP_ID AS TemplateGroupID, " + " ostg.TEMPLATE_GROUP_ID AS TemplateGroupID, " +
" '' AS TemplateGroupName, " + " '' AS TemplateGroupName, " +
" org.ClientCode AS ClientCode, " + " org.Client_Code AS ClientCode, " +
" '' AS DbName, " + " '' AS DbName, " +
" FALSE AS HaveCreateProject, " + " 0 AS HaveCreateProject, " +
" ea.EnterpriseAccountSetID AS EnterpriseAccountSetID, " + " ea.Enterprise_Account_Set_ID AS EnterpriseAccountSetID, " +
" 1 AS StartPeriod, " + " 1 AS StartPeriod, " +
" 12 AS EndPeriod, " + " 12 AS EndPeriod, " +
" ea.EFFECTIVE_DATE AS EffectiveDate, " + " ea.EFFECTIVE_DATE AS EffectiveDate, " +
" ea.EXPIRED_DATE AS ExpiredDate " + " ea.EXPIRED_DATE AS ExpiredDate " +
"FROM " + "FROM " +
" ORGANIZATION org " + " ORGANIZATION org " +
" JOIN " + " JOIN " +
" ENTERPRISE_ACCOUNT_SET_ORG ea ON org.id = ea.OrganizationID " + " ENTERPRISE_ACCOUNT_SET_ORG ea ON org.id = ea.Organization_ID " +
" JOIN " + " JOIN " +
" ORGANIZATION_SERVICE_TEMPLATE_GROUP ostg ON org.id = ostg.ORGANIZATION_ID " + " ORG_SERVICE_TEMPLATE_GROUP ostg ON org.id = ostg.ORGANIZATION_ID " +
" JOIN " + " JOIN " +
" SERVICE_TYPE st ON ostg.SERVICE_TYPE_ID = st.id " + " SERVICE_TYPE st ON ostg.SERVICE_TYPE_ID = st.id " +
" JOIN " + " JOIN " +
" INDUSTRY ind ON org.IndustryID = ind.id " + " INDUSTRY ind ON org.Industry_ID = ind.id " +
" JOIN " + " JOIN " +
" REGION reg ON org.RegionID = reg.id " + " REGION reg ON org.Region_ID = reg.id" +
"WHERE " + "WHERE " +
" 1=1" + " 1=1" +
" <if test=\"orgID != null and orgID !='' \">AND org.id=#{orgId}</if>" + " <if test=\"orgId != null and orgId !='' \">AND org.id=#{orgId}</if>" +
" AND org.IsActive = 1 " + " AND org.IsActive = 1 " +
" AND st.IsActive = 1 " + " AND st.IsActive = 1 " +
" <if test=\"serviceID != null and serviceID !='' \">AND ostg.ServiceTypeID=#{serviceId}</if>" + " <if test=\"serviceId != null and serviceId !='' \">AND ostg.Service_Type_ID=#{serviceId}</if>" +
"ORDER BY ea.EFFECTIVE_DATE,org.Code" + "ORDER BY ea.EFFECTIVE_DATE,org.Code" +
"</script>") "</script>")
List<ProjectDisplayDto> getProjectFromEnterpriseAccountSetOrg(@Param("orgId") String orgId, @Param("serviceId") String serviceId); List<ProjectDisplayDto> getProjectFromEnterpriseAccountSetOrg(@Param("orgId") String orgId, @Param("serviceId") String serviceId);
......
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