|  |  | @ -25,8 +25,11 @@ | 
			
		
	
		
			
				
					|  |  |  |         UPDATE epdc_enterprise_info | 
			
		
	
		
			
				
					|  |  |  |         <trim prefix="set" suffixOverrides=","> | 
			
		
	
		
			
				
					|  |  |  |             <if test="legalPerson != null and legalPerson != ''">LEGAL_PERSON=#{legalPerson},</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="registeredCapital != null and registeredCapital != 0">REGISTERED_CAPITAL=#{registeredCapital},</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="employedPopulation != null and  employedPopulation != 0">EMPLOYED_POPULATION=#{employedPopulation},</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="registeredCapital != null and registeredCapital != 0">REGISTERED_CAPITAL=#{registeredCapital}, | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="employedPopulation != null and  employedPopulation != 0"> | 
			
		
	
		
			
				
					|  |  |  |                 EMPLOYED_POPULATION=#{employedPopulation}, | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="industry != null and industry != ''">INDUSTRY=#{industry},</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="businessScope != null and businessScope != ''">BUSINESS_SCOPE=#{businessScope},</if> | 
			
		
	
		
			
				
					|  |  |  |         </trim> | 
			
		
	
	
		
			
				
					|  |  | @ -34,10 +37,39 @@ | 
			
		
	
		
			
				
					|  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <select id="selectOneEnterpriseInfo" resultMap="enterpriseInfoMap"> | 
			
		
	
		
			
				
					|  |  |  |         select t.ID,t.USER_ID,t.REAL_NAME,t.SEX,MOBILE,t.ENTERPRISE_NAME,t.UNIFORM_SOCIAL_CREDIT_CODE,t.ENTERPRISE_ADDRESS, | 
			
		
	
		
			
				
					|  |  |  |         select t.ID,t.USER_ID,t.REAL_NAME,t.SEX,t.MOBILE,t.ENTERPRISE_NAME,t.UNIFORM_SOCIAL_CREDIT_CODE,t.ENTERPRISE_ADDRESS, | 
			
		
	
		
			
				
					|  |  |  |                 t.LEGAL_PERSON,t.REGISTERED_CAPITAL,t.EMPLOYED_POPULATION,t.INDUSTRY,t.BUSINESS_SCOPE,t.DEPT_ID,t.ALL_DEPT_NAMES | 
			
		
	
		
			
				
					|  |  |  |         from epdc_enterprise_info t | 
			
		
	
		
			
				
					|  |  |  |         where t.USER_ID = #{userId} | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <select id="selectEnterpriseInfoPageFromPc" resultType="com.elink.esua.epdc.dto.enterprise.EnterpriseInfoDTO"> | 
			
		
	
		
			
				
					|  |  |  |         select * from epdc_enterprise_info | 
			
		
	
		
			
				
					|  |  |  |         where DEL_FLAG = '0' | 
			
		
	
		
			
				
					|  |  |  |         <if test="enterpriseName != null and enterpriseName != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND ENTERPRISE_NAME = #{enterpriseName} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="mobile != null and mobile != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND MOBILE = #{mobile} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="uniformSocialCreditCode != null and uniformSocialCreditCode != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND UNIFORM_SOCIAL_CREDIT_CODE = #{uniformSocialCreditCode} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="legalPerson != null and legalPerson != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND LEGAL_PERSON = #{legalPerson} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="streetId != null and streetId != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND (find_in_set(#{streetId},PARENT_DEPT_IDS) | 
			
		
	
		
			
				
					|  |  |  |             OR find_in_set(#{streetId},ALL_DEPT_IDS)) | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="communityId != null and communityId != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND (find_in_set(#{communityId},PARENT_DEPT_IDS) | 
			
		
	
		
			
				
					|  |  |  |             OR find_in_set(#{communityId},ALL_DEPT_IDS)) | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         <if test="gridId != null and gridId != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND (find_in_set(#{gridId},PARENT_DEPT_IDS) | 
			
		
	
		
			
				
					|  |  |  |             OR find_in_set(#{gridId},ALL_DEPT_IDS)) | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |         ORDER BY | 
			
		
	
		
			
				
					|  |  |  |         CREATED_TIME DESC | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  | </mapper> |