| | |
| | | visitCase,t.community_id,t.community_id communityId,t.b_id,t.b_id bId |
| | | from business_visit_info t |
| | | where 1 =1 |
| | | <if test="departureTime !=null and departureTime != ''"> |
| | | <if test="departureTime !=null "> |
| | | and t.departure_time= #{departureTime} |
| | | </if> |
| | | <if test="vName !=null and vName != ''"> |
| | |
| | | <if test="vId !=null and vId != ''"> |
| | | and t.v_id= #{vId} |
| | | </if> |
| | | <if test="visitTime !=null and visitTime != ''"> |
| | | <if test="visitTime !=null "> |
| | | and t.visit_time= #{visitTime} |
| | | </if> |
| | | <if test="phoneNumber !=null and phoneNumber != ''"> |
| | |
| | | ) select |
| | | t.departure_time,t.v_name,'0',t.visit_gender,t.owner_id,t.user_id,t.v_id,t.visit_time,t.phone_number,t.visit_case,t.community_id,t.b_id |
| | | from business_visit_info t where 1=1 |
| | | <if test="departureTime !=null and departureTime != ''"> |
| | | <if test="departureTime !=null "> |
| | | and t.departure_time= #{departureTime} |
| | | </if> |
| | | <if test="vName !=null and vName != ''"> |
| | |
| | | <if test="vId !=null and vId != ''"> |
| | | and t.v_id= #{vId} |
| | | </if> |
| | | <if test="visitTime !=null and visitTime != ''"> |
| | | <if test="visitTime !=null "> |
| | | and t.visit_time= #{visitTime} |
| | | </if> |
| | | <if test="phoneNumber !=null and phoneNumber != ''"> |
| | |
| | | phoneNumber,t.visit_case,t.visit_case visitCase,t.community_id,t.community_id communityId,t.b_id,t.b_id bId |
| | | from s_visit_info t |
| | | where 1 =1 |
| | | <if test="departureTime !=null and departureTime != ''"> |
| | | <if test="departureTime !=null "> |
| | | and t.departure_time= #{departureTime} |
| | | </if> |
| | | <if test="vName !=null and vName != ''"> |
| | |
| | | <if test="vId !=null and vId != ''"> |
| | | and t.v_id= #{vId} |
| | | </if> |
| | | <if test="visitTime !=null and visitTime != ''"> |
| | | <if test="visitTime !=null "> |
| | | and t.visit_time= #{visitTime} |
| | | </if> |
| | | <if test="phoneNumber !=null and phoneNumber != ''"> |
| | |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="departureTime !=null and departureTime != ''"> |
| | | <if test="departureTime !=null "> |
| | | , t.departure_time= #{departureTime} |
| | | </if> |
| | | <if test="vName !=null and vName != ''"> |
| | |
| | | <if test="userId !=null and userId != ''"> |
| | | , t.user_id= #{userId} |
| | | </if> |
| | | <if test="visitTime !=null and visitTime != ''"> |
| | | <if test="visitTime !=null "> |
| | | , t.visit_time= #{visitTime} |
| | | </if> |
| | | <if test="phoneNumber !=null and phoneNumber != ''"> |
| | |
| | | select count(1) count |
| | | from s_visit_info t |
| | | where 1 =1 |
| | | <if test="departureTime !=null and departureTime != ''"> |
| | | <if test="departureTime !=null "> |
| | | and t.departure_time= #{departureTime} |
| | | </if> |
| | | <if test="vName !=null and vName != ''"> |
| | |
| | | <if test="vId !=null and vId != ''"> |
| | | and t.v_id= #{vId} |
| | | </if> |
| | | <if test="visitTime !=null and visitTime != ''"> |
| | | <if test="visitTime !=null "> |
| | | and t.visit_time= #{visitTime} |
| | | </if> |
| | | <if test="phoneNumber !=null and phoneNumber != ''"> |