demand: 跟踪预警定时任务demo TMS-收件扫描自动生成,收件网点 应该去 始发网点【
This commit is contained in:
parent
accc502ae6
commit
693386b13e
@ -184,74 +184,74 @@
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="ownerSite != null and ownerSite != ''">
|
||||
and owner_site = #{ownerSite}
|
||||
and a.owner_site = #{ownerSite}
|
||||
</if>
|
||||
|
||||
<if test="bizSite != null and bizSite != ''"> and ( FIND_IN_SET(#{bizSite},biz_site) or #{bizSite}=owner_site) </if>
|
||||
<if test="bizSite != null and bizSite != ''"> and ( FIND_IN_SET(#{bizSite},a.biz_site) or #{bizSite}=a.owner_site) </if>
|
||||
|
||||
<if test="custName != null and custName != ''"> and customer_name like concat('%', #{custName}, '%')</if>
|
||||
<if test="custName != null and custName != ''"> and a.customer_name like concat('%', #{custName}, '%')</if>
|
||||
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code =#{customerCode}</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="id != null "> and a.id = #{id}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and a.customer_code =#{customerCode}</if>
|
||||
<if test="customerName != null and customerName != ''"> and a.customer_name like concat('%', #{customerName}, '%')</if>
|
||||
|
||||
<if test="customerNameEn != null and customerNameEn != ''"> and customer_name_en like concat('%', #{customerNameEn}, '%')</if>
|
||||
<if test="simpleName != null and simpleName != ''"> and simple_name like concat('%', #{simpleName}, '%')</if>
|
||||
<if test="contact != null and contact != ''"> and contact like concat('%', #{contact}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||
<if test="mobile != null and mobile != ''"> and mobile like concat('%', #{mobile}, '%')</if>
|
||||
<if test="customerType != null and customerType != ''"> and customer_type=#{customerType}</if>
|
||||
<if test="settledType != null and settledType != ''"> and settled_type=#{settledType}</if>
|
||||
<if test="userType != null and userType != ''"> and user_type=#{userType}</if>
|
||||
<if test="company != null and company != ''"> and company like concat('%', #{company}, '%')</if>
|
||||
<if test="licNo != null and licNo != ''"> and lic_no like concat('%', #{licNo}, '%')</if>
|
||||
<if test="deptId != null and deptId != ''"> and dept_id like concat('%', #{deptId}, '%')</if>
|
||||
<if test="avatar != null and avatar != ''"> and avatar like concat('%', #{avatar}, '%')</if>
|
||||
<if test="sex != null and sex != ''"> and sex= #{sex}</if>
|
||||
<if test="invitationInfo != null and invitationInfo != ''"> and invitation_info like concat('%', #{invitationInfo}, '%')</if>
|
||||
<if test="loginIp != null and loginIp != ''"> and login_ip like concat('%', #{loginIp}, '%')</if>
|
||||
<if test="loginDate != null "> and login_date like concat('%', #{loginDate}, '%')</if>
|
||||
<if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
|
||||
<if test="unionId != null and unionId != ''"> and union_id like concat('%', #{unionId}, '%')</if>
|
||||
<if test="openid != null and openid != ''"> and openid like concat('%', #{openid}, '%')</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''"> and monthly_pay_code= #{monthlyPayCode}</if>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="customerNameEn != null and customerNameEn != ''"> and a.customer_name_en like concat('%', #{customerNameEn}, '%')</if>
|
||||
<if test="simpleName != null and simpleName != ''"> and a.simple_name like concat('%', #{simpleName}, '%')</if>
|
||||
<if test="contact != null and contact != ''"> and a.contact like concat('%', #{contact}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and a.phone like concat('%', #{phone}, '%')</if>
|
||||
<if test="mobile != null and mobile != ''"> and a.mobile like concat('%', #{mobile}, '%')</if>
|
||||
<if test="customerType != null and customerType != ''"> and a.customer_type=#{customerType}</if>
|
||||
<if test="settledType != null and settledType != ''"> and a.settled_type=#{settledType}</if>
|
||||
<if test="userType != null and userType != ''"> and a.user_type=#{userType}</if>
|
||||
<if test="company != null and company != ''"> and a.company like concat('%', #{company}, '%')</if>
|
||||
<if test="licNo != null and licNo != ''"> and a.lic_no like concat('%', #{licNo}, '%')</if>
|
||||
<if test="deptId != null and deptId != ''"> and a.dept_id like concat('%', #{deptId}, '%')</if>
|
||||
<if test="avatar != null and avatar != ''"> and a.avatar like concat('%', #{avatar}, '%')</if>
|
||||
<if test="sex != null and sex != ''"> and a.sex= #{sex}</if>
|
||||
<if test="invitationInfo != null and invitationInfo != ''"> and a.invitation_info like concat('%', #{invitationInfo}, '%')</if>
|
||||
<if test="loginIp != null and loginIp != ''"> and a.login_ip like concat('%', #{loginIp}, '%')</if>
|
||||
<if test="loginDate != null "> and a.login_date like concat('%', #{loginDate}, '%')</if>
|
||||
<if test="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
|
||||
<if test="unionId != null and unionId != ''"> and a.union_id like concat('%', #{unionId}, '%')</if>
|
||||
<if test="openid != null and openid != ''"> and a.openid like concat('%', #{openid}, '%')</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''"> and a.monthly_pay_code= #{monthlyPayCode}</if>
|
||||
<if test="userName != null and userName != ''"> and a.user_name like concat('%', #{userName}, '%')</if>
|
||||
|
||||
<if test="bizSiteName != null and bizSiteName != ''"> and biz_site_name like concat('%', #{bizSiteName}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country=#{country}</if>
|
||||
<if test="province != null and province != ''"> and province=#{province}</if>
|
||||
<if test="city != null and city != ''"> and city=#{city}</if>
|
||||
<if test="county != null and county != ''"> and county=#{county}</if>
|
||||
<if test="town != null and town != ''"> and town=#{town}</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
|
||||
<if test="postCode != null and postCode != ''"> and post_code like concat('%', #{postCode}, '%')</if>
|
||||
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="idNo != null and idNo != ''"> and id_no like concat('%', #{idNo}, '%')</if>
|
||||
<if test="bizSiteName != null and bizSiteName != ''"> and a.biz_site_name like concat('%', #{bizSiteName}, '%')</if>
|
||||
<if test="country != null and country != ''"> and a.country=#{country}</if>
|
||||
<if test="province != null and province != ''"> and a.province=#{province}</if>
|
||||
<if test="city != null and city != ''"> and a.city=#{city}</if>
|
||||
<if test="county != null and county != ''"> and a.county=#{county}</if>
|
||||
<if test="town != null and town != ''"> and a.town=#{town}</if>
|
||||
<if test="address != null and address != ''"> and a.address like concat('%', #{address}, '%')</if>
|
||||
<if test="email != null and email != ''"> and a.email like concat('%', #{email}, '%')</if>
|
||||
<if test="postCode != null and postCode != ''"> and a.post_code like concat('%', #{postCode}, '%')</if>
|
||||
<if test="realName != null and realName != ''"> and a.real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="idNo != null and idNo != ''"> and a.id_no like concat('%', #{idNo}, '%')</if>
|
||||
|
||||
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
||||
<if test="enterpriseTaxId != null and enterpriseTaxId != ''"> and enterprise_tax_id like concat('%', #{enterpriseTaxId}, '%')</if>
|
||||
<if test="dataFrom != null and dataFrom != ''"> and data_from like concat('%', #{dataFrom}, '%')</if>
|
||||
<if test="blOpenOms != null and blOpenOms != ''"> and bl_open_oms=#{blOpenOms}</if>
|
||||
<if test="blSms != null and blSms != ''"> and bl_sms=#{blSms}</if>
|
||||
<if test="opEmpCode != null and opEmpCode != ''"> and op_emp_code like concat('%', #{opEmpCode}, '%')</if>
|
||||
<if test="firstSigningDay != null and firstSigningDay != ''"> and first_signing_day like concat('%', #{firstSigningDay}, '%')</if>
|
||||
<if test="enterpriseName != null and enterpriseName != ''"> and a.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
||||
<if test="enterpriseTaxId != null and enterpriseTaxId != ''"> and a.enterprise_tax_id like concat('%', #{enterpriseTaxId}, '%')</if>
|
||||
<if test="dataFrom != null and dataFrom != ''"> and a.data_from like concat('%', #{dataFrom}, '%')</if>
|
||||
<if test="blOpenOms != null and blOpenOms != ''"> and a.bl_open_oms=#{blOpenOms}</if>
|
||||
<if test="blSms != null and blSms != ''"> and a.bl_sms=#{blSms}</if>
|
||||
<if test="opEmpCode != null and opEmpCode != ''"> and a.op_emp_code like concat('%', #{opEmpCode}, '%')</if>
|
||||
<if test="firstSigningDay != null and firstSigningDay != ''"> and a.first_signing_day like concat('%', #{firstSigningDay}, '%')</if>
|
||||
<if test="status != null and status != ''"> and a.status=#{status}</if>
|
||||
<if test="orderNum != null and orderNum != ''"> and order_num like concat('%', #{orderNum}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="orderNum != null and orderNum != ''"> and a.order_num like concat('%', #{orderNum}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and a.remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and a.del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and a.create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and a.create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and a.update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and a.update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and a.create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and a.update_site like concat('%', #{updateSite}, '%')</if>
|
||||
|
||||
<if test="creditPeriodType != null and creditPeriodType != ''"> and credit_period_type=#{creditPeriodType}</if>
|
||||
<if test="creditPeriod != null "> and credit_period = #{creditPeriod}</if>
|
||||
<if test="settleDay != null "> and settle_day = #{settleDay}</if>
|
||||
<if test="salesSupport != null and salesSupport != ''"> and sales_support = #{salesSupport}</if>
|
||||
<if test="salesExecutive != null and salesExecutive != ''"> and sales_executive = #{salesExecutive}</if>
|
||||
<if test="creditPeriodType != null and creditPeriodType != ''"> and a.credit_period_type=#{creditPeriodType}</if>
|
||||
<if test="creditPeriod != null "> and a.credit_period = #{creditPeriod}</if>
|
||||
<if test="settleDay != null "> and a.settle_day = #{settleDay}</if>
|
||||
<if test="salesSupport != null and salesSupport != ''"> and a.sales_support = #{salesSupport}</if>
|
||||
<if test="salesExecutive != null and salesExecutive != ''"> and a.sales_executive = #{salesExecutive}</if>
|
||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||
and (
|
||||
a.salesmen=#{params.privEmpName}
|
||||
@ -264,18 +264,18 @@
|
||||
<choose>
|
||||
<when test="payee != null and payee != '' and salesmen != null and salesmen != ''">
|
||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||
and (payee=#{payee} or salesmen=#{salesmen})
|
||||
and (a.payee=#{payee} or a.salesmen=#{salesmen})
|
||||
</if>
|
||||
</when>
|
||||
<otherwise>
|
||||
<if test="payee != null and payee != ''"> and payee=#{payee}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen=#{salesmen}</if>
|
||||
<if test="payee != null and payee != ''"> and a.payee=#{payee}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and a.salesmen=#{salesmen}</if>
|
||||
</otherwise>
|
||||
</choose>
|
||||
|
||||
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCustomerUserById" parameterType="Long" resultMap="EmisCustomerUserResult">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user