Commit 4b9b1e64 authored by hezhuozhi's avatar hezhuozhi

人大金仓适配修改concat函数

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