|
|
|
@ -50,11 +50,11 @@ |
|
|
|
|
</foreach> |
|
|
|
|
<!-- 车辆类型--> |
|
|
|
|
<if test="vehiclesCodeBo.cllx != null and vehiclesCodeBo.cllx != ''"> |
|
|
|
|
AND cllx LIKE CONCAT(CONCAT('%',#{vehiclesCodeBo.cllx},'%')) |
|
|
|
|
AND cllx LIKE concat('%',REPLACE(REPLACE(#{vehiclesCodeBo.cllx},'%','\%'), '_', '\_'),'%') |
|
|
|
|
</if> |
|
|
|
|
<!-- 车辆编码--> |
|
|
|
|
<if test="vehiclesCodeBo.clbm != null and vehiclesCodeBo.clbm != ''"> |
|
|
|
|
AND clbm LIKE CONCAT(CONCAT('%',#{vehiclesCodeBo.clbm},'%')) |
|
|
|
|
AND clbm LIKE concat('%',REPLACE(REPLACE(#{vehiclesCodeBo.clbm},'%','\%'), '_', '\_'),'%') |
|
|
|
|
</if> |
|
|
|
|
<!-- 数据来源(0-集团共享;1-手工创建;2-模板导入;3-采集下级;)--> |
|
|
|
|
<if test="vehiclesCodeBo.dataSource != null and vehiclesCodeBo.dataSource != ''"> |
|
|
|
@ -62,7 +62,8 @@ |
|
|
|
|
</if> |
|
|
|
|
<!-- 税收编码--> |
|
|
|
|
<if test="vehiclesCodeBo.taxClassCode != null and vehiclesCodeBo.taxClassCode != ''"> |
|
|
|
|
AND tax_class_code LIKE CONCAT(CONCAT('%',#{vehiclesCodeBo.taxClassCode},'%')) |
|
|
|
|
AND tax_class_code LIKE concat('%',REPLACE(REPLACE(#{vehiclesCodeBo.taxClassCode},'%','\%'), '_', |
|
|
|
|
'\_'),'%') |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
ORDER BY create_time DESC |
|
|
|
@ -96,13 +97,13 @@ |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
|
AND concat_ws(',',xhf_nsrsbh,xhf_mc,cllx,clbm,cpxh,tax_class_code, |
|
|
|
|
tax_classification_name,producing_area,producing_enterprise_name) LIKE |
|
|
|
|
CONCAT(CONCAT('%',#{fuzzyQueryCondition}),'%') |
|
|
|
|
concat('%',REPLACE(REPLACE(#{fuzzyQueryCondition},'%','\%'), '_', '\_'),'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
AND xhf_nsrsbh || ',' || xhf_mc || ',' || cllx ',' || clbm |
|
|
|
|
',' || cpxh ',' || tax_class_code ',' || tax_classification_name |
|
|
|
|
',' || producing_area ',' || producing_enterprise_name LIKE |
|
|
|
|
CONCAT(CONCAT('%',#{fuzzyQueryCondition}),'%') |
|
|
|
|
concat('%',REPLACE(REPLACE(#{fuzzyQueryCondition},'%','\%'), '_', '\_'),'%') |
|
|
|
|
</if> |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
@ -130,28 +131,28 @@ |
|
|
|
|
<if test="cpxh != null"> |
|
|
|
|
cpxh, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassCode != null"> |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
tax_class_code, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassAbbreviation != null"> |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
tax_class_abbreviation, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassificationName != null"> |
|
|
|
|
<if test="spmc != null"> |
|
|
|
|
tax_classification_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate != null"> |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
tax_rate, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingArea != null"> |
|
|
|
|
<if test="clcd != null"> |
|
|
|
|
producing_area, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingEnterpriseName != null"> |
|
|
|
|
<if test="scqymc != null"> |
|
|
|
|
producing_enterprise_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="enjoyPreferentialPolicies != null"> |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies, |
|
|
|
|
</if> |
|
|
|
|
<if test="preferentialPoliciesType != null"> |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
preferential_policies_type, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
@ -179,29 +180,29 @@ |
|
|
|
|
<if test="cpxh != null"> |
|
|
|
|
#{cpxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassCode != null"> |
|
|
|
|
#{taxClassCode,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
#{spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassAbbreviation != null"> |
|
|
|
|
#{taxClassAbbreviation,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
#{spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassificationName != null"> |
|
|
|
|
#{taxClassificationName,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spmc != null"> |
|
|
|
|
#{spmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate != null"> |
|
|
|
|
#{taxRate,jdbcType=VARCHAR}, |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
#{sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingArea != null"> |
|
|
|
|
#{producingArea,jdbcType=VARCHAR}, |
|
|
|
|
<if test="clcd != null"> |
|
|
|
|
#{clcd,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingEnterpriseName != null"> |
|
|
|
|
#{producingEnterpriseName,jdbcType=VARCHAR}, |
|
|
|
|
<if test="scqymc != null"> |
|
|
|
|
#{scqymc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="enjoyPreferentialPolicies != null"> |
|
|
|
|
#{enjoyPreferentialPolicies,jdbcType=VARCHAR}, |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
#{yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="preferentialPoliciesType != null"> |
|
|
|
|
#{preferentialPoliciesType,jdbcType=VARCHAR}, |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
#{lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
|
#{dataSource,jdbcType=VARCHAR}, |
|
|
|
@ -237,29 +238,29 @@ |
|
|
|
|
<if test="cpxh != null"> |
|
|
|
|
cpxh = #{cpxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassCode != null"> |
|
|
|
|
tax_class_code = #{taxClassCode,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
tax_class_code = #{spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassAbbreviation != null"> |
|
|
|
|
tax_class_abbreviation = #{taxClassAbbreviation,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
tax_class_abbreviation = #{spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxClassificationName != null"> |
|
|
|
|
tax_classification_name = #{taxClassificationName,jdbcType=VARCHAR}, |
|
|
|
|
<if test="spmc != null"> |
|
|
|
|
tax_classification_name = #{spmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate != null"> |
|
|
|
|
tax_rate = #{taxRate,jdbcType=VARCHAR}, |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
tax_rate = #{sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingArea != null"> |
|
|
|
|
producing_area = #{producingArea,jdbcType=VARCHAR}, |
|
|
|
|
<if test="clcd != null"> |
|
|
|
|
producing_area = #{clcd,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="producingEnterpriseName != null"> |
|
|
|
|
producing_enterprise_name = #{producingEnterpriseName,jdbcType=VARCHAR}, |
|
|
|
|
<if test="scqymc != null"> |
|
|
|
|
producing_enterprise_name = #{scqymc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="enjoyPreferentialPolicies != null"> |
|
|
|
|
enjoy_preferential_policies = #{enjoyPreferentialPolicies,jdbcType=VARCHAR}, |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies = #{yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="preferentialPoliciesType != null"> |
|
|
|
|
preferential_policies_type = #{preferentialPoliciesType,jdbcType=VARCHAR}, |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
preferential_policies_type = #{lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
|
data_source = #{dataSource,jdbcType=VARCHAR}, |
|
|
|
@ -338,8 +339,8 @@ |
|
|
|
|
AND cpxh = #{cpxh,jdbcType=VARCHAR} |
|
|
|
|
</if> |
|
|
|
|
<!-- 税收编码--> |
|
|
|
|
<if test="taxClassCode != null and taxClassCode != ''"> |
|
|
|
|
AND tax_class_code = #{taxClassCode,jdbcType=VARCHAR} |
|
|
|
|
<if test="spbm != null and spbm != ''"> |
|
|
|
|
AND tax_class_code = #{spbm,jdbcType=VARCHAR} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
LIMIT 1 |
|
|
|
|