Commit 4b9b1e64 authored by hezhuozhi's avatar hezhuozhi

人大金仓适配修改concat函数

parent d626760f
......@@ -83,7 +83,7 @@
LEFT JOIN wl_equipment_category cate ON cate.id = eq.category_id
<where>
<if test="whereConditionStr != null and whereConditionStr != '' ">
eq.name like CONCAT("%",#{whereConditionStr},"%" )
eq.name like CONCAT('%',#{whereConditionStr},'%' )
</if>
<if test="isIot != null and isIot != '' ">
eq.is_iot = #{isIot}
......@@ -102,7 +102,7 @@
LEFT JOIN wl_equipment_category cate ON cate.id = eq.category_id
<where>
<if test="whereConditionStr != null and whereConditionStr != '' ">
eq.name like CONCAT("%",#{whereConditionStr},"%" )
eq.name like CONCAT('%',#{whereConditionStr},'%' )
</if>
</where>
</select>
......
......@@ -220,10 +220,10 @@
<where>
<if test="param.warehouseStructureName != null and param.warehouseStructureName != ''">
CONCAT_WS(' ', wles.position,wled.area) like
concat(concat("%",#{param.warehouseStructureName}),"%")
concat(concat('%',#{param.warehouseStructureName}),'%')
</if>
<if test="param.equipCode != null and param.equipCode != ''">AND wles.code like
concat(concat("%",#{param.equipCode}),"%")
concat(concat('%',#{param.equipCode}),'%')
</if>
<if test="param.beginDate!=null">AND wlesal.create_date <![CDATA[>=]]> #{param.beginDate}</if>
<if test="param.endDate!=null">AND wlesal.create_date <![CDATA[<=]]> #{param.endDate}</if>
......@@ -400,10 +400,10 @@
and wlesal.id = #{param.alarmLogId}
</if>
<if test="param.warehouseStructureName != null and param.warehouseStructureName != ''">
and wlesal.location like concat(concat("%",#{param.warehouseStructureName}),"%")
and wlesal.location like concat(concat('%',#{param.warehouseStructureName}),'%')
</if>
<if test="param.equipCode != null and param.equipCode != ''">
AND wlesal.equipment_specific_code like concat(concat("%",#{param.equipCode}),"%")
AND wlesal.equipment_specific_code like concat(concat('%',#{param.equipCode}),'%')
</if>
<if test="param.confirmType != null and param.confirmType != '' and param.confirmType == 1">
AND wlesal.confirm_type <![CDATA[<>]]> ''
......@@ -443,16 +443,16 @@
wlesal.type != 'FIREALARM'
</if>
<if test="param.equipmentCode != null and param.equipmentCode != ''">
AND wlesal.equipment_code like concat(concat("%",#{param.equipmentCode}),"%")
AND wlesal.equipment_code like concat(concat('%',#{param.equipmentCode}),'%')
</if>
<if test="param.equipDetailCode != null and param.equipDetailCode != ''">
AND wlesal.equipment_code like concat(concat("%",#{param.equipDetailCode}),"%")
AND wlesal.equipment_code like concat(concat('%',#{param.equipDetailCode}),'%')
</if>
<if test="param.indexTypeCode != null and param.indexTypeCode != ''">
AND wlesal.type = #{param.indexTypeCode}
</if>
<if test="param.fireEquipmentSpecificIndexKey != null and param.fireEquipmentSpecificIndexKey != ''">
AND wlesal.equipment_specific_index_key like concat(concat("%",#{param.fireEquipmentSpecificIndexKey}),"%")
AND wlesal.equipment_specific_index_key like concat(concat('%',#{param.fireEquipmentSpecificIndexKey}),'%')
</if>
</where>
ORDER BY wlesal.create_date DESC
......@@ -526,10 +526,10 @@
<where>
<if test="warehouseStructureName != null and warehouseStructureName != ''">
d.warehouseStructureName like
concat(concat("%",#{warehouseStructureName}),"%")
concat(concat('%',#{warehouseStructureName}),'%')
</if>
<if test="equipCode != null and equipCode != ''">AND d.fireEquipmentCode like
concat(concat("%",#{equipCode}),"%")
concat(concat('%',#{equipCode}),'%')
</if>
<if test="beginDate!=null">AND d.createDate >= #{beginDate}</if>
<if test="endDate!=null">AND d.createDate <![CDATA[<=]]> #{endDate}</if>
......
......@@ -190,7 +190,7 @@
`wes`.`system_id`
)) AS `code`,
wes.system_id systemId,
( SELECT GROUP_CONCAT(fs.name) FROM f_fire_fighting_system fs WHERE `wes`.`system_id` like CONCAT("%",fs.id,'%') ) AS systemName
( SELECT GROUP_CONCAT(fs.name) FROM f_fire_fighting_system fs WHERE `wes`.`system_id` like CONCAT('%',fs.id,'%') ) AS systemName
FROM
wl_equipment_specific AS wes
......@@ -454,9 +454,9 @@
<if test="companyId != null and companyId != ''">
and spec.agency_id = #{companyId}
</if>
<if test="equipCode != '' and equipCode != null">and spec.code like concat("%", #{equipCode}, "%")</if>
<if test="equipCode != '' and equipCode != null">and spec.code like concat('%', #{equipCode}, '%')</if>
<if test="equipName != '' and equipName != null">
and spec.name like CONCAT("%", #{equipName},'%')
and spec.name like CONCAT('%', #{equipName},'%')
</if>
<if test="current != null and size != null">
Limit #{current},#{size}
......@@ -501,9 +501,9 @@
<if test="companyId != null and companyId != ''">
and spec.agency_id = #{companyId}
</if>
<if test="equipCode != '' and equipCode != null">and spec.code like concat("%", #{equipCode}, "%")</if>
<if test="equipCode != '' and equipCode != null">and spec.code like concat('%', #{equipCode}, '%')</if>
<if test="equipName != '' and equipName != null">
and spec.name like CONCAT("%", #{equipName},'%')
and spec.name like CONCAT('%', #{equipName},'%')
</if>
</select>
......
......@@ -46,7 +46,7 @@
LEFT JOIN wl_unit u1 ON u1.id = u.id
OR u1.parent_id = u.id
WHERE
u1.`name` LIKE concat(concat("%",#{name}),"%")
u1.`name` LIKE concat(concat('%',#{name}),'%')
</if>
ORDER BY
u.code
......
......@@ -52,13 +52,13 @@
AND hbga.grid_status IN ('2', '3', '4')
</if>
<if test="map.projectAddress != null and map.projectAddress!=''">
AND hph.project_address_name LIKE concat(concat("%", #{map.projectAddress}), "%")
AND hph.project_address_name LIKE concat(concat('%', #{map.projectAddress}), '%')
</if>
<if test="map.powerStationCode != null and map.powerStationCode !=''">
AND hph.peasant_household_no LIKE concat(concat("%", #{map.powerStationCode}), "%")
AND hph.peasant_household_no LIKE concat(concat('%', #{map.powerStationCode}), '%')
</if>
<if test="map.ownersName != null and map.ownersName !=''">
AND hph.owners_name LIKE concat(concat("%", #{map.ownersName}), "%")
AND hph.owners_name LIKE concat(concat('%', #{map.ownersName}), '%')
</if>
<if test="map.gridStatus != null and map.gridStatus !=''">
AND hbga.grid_status = #{map.gridStatus}
......
......@@ -14,13 +14,13 @@
on hygf_jp_station.third_station_id=hygf_jp_collector.third_station_id
<where>
<if test="dto.snCode!=null and dto.snCode!='' ">
and hygf_jp_station.sn_code like concat(concat("%",#{dto.snCode}),"%")
and hygf_jp_station.sn_code like concat(concat('%',#{dto.snCode}),'%')
</if>
<if test="dto.name!=null and dto.name!='' ">
and hygf_jp_station.name like concat(concat("%",#{dto.name}),"%")
and hygf_jp_station.name like concat(concat('%',#{dto.name}),'%')
</if>
<if test="dto.area!=null">
and hygf_jp_station.area like concat(concat("%",#{dto.area}),"%")
and hygf_jp_station.area like concat(concat('%',#{dto.area}),'%')
</if>
<if test="dto.statioId!=null">
and hygf_jp_station.third_station_id in
......
......@@ -14,13 +14,13 @@
on hygf_jp_station.third_station_id=hygf_jp_inverter.third_station_id
<where>
<if test="dto.snCode!=null and dto.snCode!='' ">
and hygf_jp_station.sn_code like concat(concat("%",#{dto.snCode}),"%")
and hygf_jp_station.sn_code like concat(concat('%',#{dto.snCode}),'%')
</if>
<if test="dto.name!=null and dto.name!='' ">
and hygf_jp_station.name like concat(concat("%",#{dto.name}),"%")
and hygf_jp_station.name like concat(concat('%',#{dto.name}),'%')
</if>
<if test="dto.area!=null">
and hygf_jp_station.area like concat(concat("%",#{dto.area}),"%")
and hygf_jp_station.area like concat(concat('%',#{dto.area}),'%')
</if>
<if test="dto.statioId!=null">
and hygf_jp_station.third_station_id in
......
......@@ -17,10 +17,10 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
and hygf_document_station.preparation_money_id !=#{ids}
</if>)
<if test="peasantHouseholdNo!=null and peasantHouseholdNo !=''">
and hygf_peasant_household.peasant_household_no like concat(concat("%",#{peasantHouseholdNo}),"%")
and hygf_peasant_household.peasant_household_no like concat(concat('%',#{peasantHouseholdNo}),'%')
</if>
<if test="ownersName!=null and ownersName !='' ">
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat('%',#{ownersName}),'%')
</if>
<if test="orderBy !=null and orderBy !='' ">
ORDER BY ${orderBy}
......@@ -44,10 +44,10 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
</if>
)
<if test="peasantHouseholdNo!=null and peasantHouseholdNo !=''">
and hygf_peasant_household.peasant_household_no like concat(concat("%",#{peasantHouseholdNo}),"%")
and hygf_peasant_household.peasant_household_no like concat(concat('%',#{peasantHouseholdNo}),'%')
</if>
<if test="ownersName!=null and ownersName !='' ">
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat('%',#{ownersName}),'%')
</if>
</select>
......
......@@ -30,13 +30,13 @@
where std_user_biz.is_delete=0
<if test="dto.realName!=null">
and std_user_biz.real_name like concat(concat("%",#{dto.realName}),"%")
and std_user_biz.real_name like concat(concat('%',#{dto.realName}),'%')
</if>
<if test="dto.lockStatus!=null">
and std_user_biz.lock_status=#{dto.lockStatus}
</if>
<if test="dto.amosUserName!=null">
and std_user_biz.amos_user_name like concat(concat("%",#{dto.amosUserName}),"%")
and std_user_biz.amos_user_name like concat(concat('%',#{dto.amosUserName}),'%')
</if>
<if test="dto.amosUnitOrgCode!=null">
and hygf_personnel_business.amos_unit_org_code like concat(concat(#{dto.amosUnitOrgCode}),"%")
......
......@@ -19,16 +19,16 @@
where hygf_power_station.is_delete=0
<if test="powerStationCode!=null and powerStationCode!=''">
and hygf_power_station.power_station_code like concat(concat("%",#{powerStationCode}),"%")
and hygf_power_station.power_station_code like concat(concat('%',#{powerStationCode}),'%')
</if>
<if test="ownersName!=null and ownersName!=''">
and hygf_power_station.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_power_station.owners_name like concat(concat('%',#{ownersName}),'%')
</if>
<if test="serviceAgent!=null and serviceAgent!=''">
and hygf_power_station.service_agent like concat(concat("%",#{serviceAgent}),"%")
and hygf_power_station.service_agent like concat(concat('%',#{serviceAgent}),'%')
</if>
<if test="regionalCompaniesName!=null and regionalCompaniesName!=''">
and hygf_peasant_household.regional_companies_name like concat(concat("%",#{regionalCompaniesName}),"%")
and hygf_peasant_household.regional_companies_name like concat(concat('%',#{regionalCompaniesName}),'%')
</if>
<if test="processStatus != null and processStatus != ''">
and hygf_power_station.process_status = #{processStatus}
......
......@@ -7,7 +7,7 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan
where hygf_document_station.preparation_money_id=#{sequenceNbr}
<if test="ownersName!=null and ownersName!=''">
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat('%',#{ownersName}),'%')
</if>
</select>
......
......@@ -26,7 +26,7 @@
where hygf_regional_companies.is_delete=0
<if test="regionalCompaniesName!=null and regionalCompaniesName!=''">
and hygf_regional_companies.regional_companies_name like concat(concat("%",#{regionalCompaniesName}),"%")
and hygf_regional_companies.regional_companies_name like concat(concat('%',#{regionalCompaniesName}),'%')
</if>
<if test="unitId!=null and unitId!=''">
......
......@@ -16,7 +16,7 @@
and hh.status =#{status}
</if>
<if test="name!=null and name!='' ">
and hh.name like concat(concat("%",#{name}),"%")
and hh.name like concat(concat('%',#{name}),'%')
</if>
</select>
</mapper>
......@@ -17,7 +17,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<if test="dto.companyName!=null">
and privilege_company.COMPANY_NAME like concat(concat("%",#{dto.companyName}),"%")
and privilege_company.COMPANY_NAME like concat(concat('%',#{dto.companyName}),'%')
</if>
<if test="dto.level!=null">
and privilege_company.LEVEL=#{dto.level}
......@@ -46,7 +46,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<where>
<if test="role!=null">
and std_user_biz.role like concat(concat("%",#{role}),"%")
and std_user_biz.role like concat(concat('%',#{role}),'%')
</if>
<if test="regionalCompaniesSeq!=null">
and hygf_personnel_business.regional_companies_seq=#{regionalCompaniesSeq}
......@@ -72,7 +72,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<where>
<if test="role!=null">
and std_user_biz.role like concat(concat("%",#{role}),"%")
and std_user_biz.role like concat(concat('%',#{role}),'%')
</if>
<if test="regionalCompaniesSeq!=null">
and hygf_personnel_business.regional_companies_seq=#{regionalCompaniesSeq}
......@@ -98,7 +98,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<where>
<if test="role!=null">
and std_user_biz.role like concat(concat("%",#{role}),"%")
and std_user_biz.role like concat(concat('%',#{role}),'%')
</if>
<if test="regionalCompaniesSeq!=null">
and hygf_personnel_business.regional_companies_seq=#{regionalCompaniesSeq}
......@@ -125,7 +125,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<where>
<if test="role!=null">
and std_user_biz.role like concat(concat("%",#{role}),"%")
and std_user_biz.role like concat(concat('%',#{role}),'%')
</if>
<if test="regionalCompaniesSeq!=null">
and hygf_personnel_business.regional_companies_seq=#{regionalCompaniesSeq}
......
......@@ -17,10 +17,10 @@
FROM hygf_work_order
WHERE hygf_work_order.is_delete=0
<if test="dto.workOrderNum!=null and dto.workOrderNum!=''">
and hygf_work_order.work_order_num like concat(concat("%",#{dto.workOrderNum}),"%")
and hygf_work_order.work_order_num like concat(concat('%',#{dto.workOrderNum}),'%')
</if>
<if test="dto.projectRegionManager!=null and dto.projectRegionManager!=''">
and hygf_work_order.project_region_manager like concat(concat("%",#{dto.projectRegionManager}),"%")
and hygf_work_order.project_region_manager like concat(concat('%',#{dto.projectRegionManager}),'%')
</if>
<if test="dto.workOrderStatus!=null and dto.workOrderStatus!=''">
and hygf_work_order.work_order_status=#{dto.workOrderStatus}
......@@ -80,23 +80,23 @@
</if>
<if test="dto.projectAddressName!=null and dto.projectAddressName!=''">
and hygf_peasant_household.project_address_name like concat(concat("%",#{dto.projectAddressName}),"%")
and hygf_peasant_household.project_address_name like concat(concat('%',#{dto.projectAddressName}),'%')
</if>
<if test="dto.peasantHouseholdNo!=null and dto.peasantHouseholdNo!=''">
and hygf_peasant_household.peasant_household_no like concat(concat("%",#{dto.peasantHouseholdNo}),"%")
and hygf_peasant_household.peasant_household_no like concat(concat('%',#{dto.peasantHouseholdNo}),'%')
</if>
<if test="dto.ownersName!=null and dto.ownersName!=''">
and hygf_peasant_household.owners_name like concat(concat("%",#{dto.ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat('%',#{dto.ownersName}),'%')
</if>
<if test="dto.workOrderNum!=null and dto.workOrderNum!=''">
and hygf_work_order.work_order_num like concat(concat("%",#{dto.workOrderNum}),"%")
and hygf_work_order.work_order_num like concat(concat('%',#{dto.workOrderNum}),'%')
</if>
<if test="dto.projectRegionManager!=null and dto.projectRegionManager!=''">
and hygf_work_order.project_region_manager like concat(concat("%",#{dto.projectRegionManager}),"%")
and hygf_work_order.project_region_manager like concat(concat('%',#{dto.projectRegionManager}),'%')
</if>
<if test="dto.powerStationConstructionStatus!=null and dto.powerStationConstructionStatus!=''">
and hygf_work_order_power_station.power_station_construction_status=#{dto.powerStationConstructionStatus}
......
......@@ -13,7 +13,7 @@
WHERE
hygf_work_order_power_station.work_order_id=#{sequenceNbr}
<if test="ownersName!=null and ownersName!=''">
and hygf_peasant_household.owners_name like concat(concat("%",#{ownersName}),"%")
and hygf_peasant_household.owners_name like concat(concat('%',#{ownersName}),'%')
</if>
</select>
......
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