Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
4b9b1e64
Commit
4b9b1e64
authored
Jul 18, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人大金仓适配修改concat函数
parent
d626760f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
52 additions
and
52 deletions
+52
-52
EquipmentMapper.xml
...ystem-equip/src/main/resources/mapper/EquipmentMapper.xml
+2
-2
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+9
-9
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+5
-5
UnitMapper.xml
...oot-system-equip/src/main/resources/mapper/UnitMapper.xml
+1
-1
BasicGridAcceptanceMapper.xml
...main/resources/mapper/mysql/BasicGridAcceptanceMapper.xml
+3
-3
JpCollectorMapper.xml
...api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
+3
-3
JpInverterMapper.xml
...-api/src/main/resources/mapper/mysql/JpInverterMapper.xml
+3
-3
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+0
-0
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+4
-4
PersonnelBusinessMapper.xml
...c/main/resources/mapper/mysql/PersonnelBusinessMapper.xml
+2
-2
PowerStationMapper.xml
...pi/src/main/resources/mapper/mysql/PowerStationMapper.xml
+4
-4
PreparationMoneyMapper.xml
...rc/main/resources/mapper/mysql/PreparationMoneyMapper.xml
+1
-1
RegionalCompaniesMapper.xml
...c/main/resources/mapper/mysql/RegionalCompaniesMapper.xml
+1
-1
TrainingMapper.xml
...gf-api/src/main/resources/mapper/mysql/TrainingMapper.xml
+1
-1
UnitInfoMapper.xml
...gf-api/src/main/resources/mapper/mysql/UnitInfoMapper.xml
+5
-5
WorkOrderMapper.xml
...f-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
+7
-7
WorkOrderPowerStationMapper.xml
...in/resources/mapper/mysql/WorkOrderPowerStationMapper.xml
+1
-1
No files found.
amos-boot-system-equip/src/main/resources/mapper/EquipmentMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/UnitMapper.xml
View file @
4b9b1e64
...
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/BasicGridAcceptanceMapper.xml
View file @
4b9b1e64
...
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
View file @
4b9b1e64
...
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpInverterMapper.xml
View file @
4b9b1e64
...
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
4b9b1e64
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PersonnelBusinessMapper.xml
View file @
4b9b1e64
...
...
@@ -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}),"%")
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PowerStationMapper.xml
View file @
4b9b1e64
...
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PreparationMoneyMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/RegionalCompaniesMapper.xml
View file @
4b9b1e64
...
...
@@ -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!=''"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/TrainingMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/UnitInfoMapper.xml
View file @
4b9b1e64
...
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
View file @
4b9b1e64
...
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderPowerStationMapper.xml
View file @
4b9b1e64
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment