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
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
98 additions
and
98 deletions
+98
-98
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
+46
-46
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 @@
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
4b9b1e64
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
4b9b1e64
...
@@ -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>
...
...
amos-boot-system-equip/src/main/resources/mapper/UnitMapper.xml
View file @
4b9b1e64
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/BasicGridAcceptanceMapper.xml
View file @
4b9b1e64
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
View file @
4b9b1e64
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpInverterMapper.xml
View file @
4b9b1e64
...
@@ -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
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
4b9b1e64
...
@@ -54,16 +54,16 @@
...
@@ -54,16 +54,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -107,10 +107,10 @@
...
@@ -107,10 +107,10 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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
...
@@ -134,16 +134,16 @@
...
@@ -134,16 +134,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -166,16 +166,16 @@
...
@@ -166,16 +166,16 @@
<where>
<where>
is_delete=0
is_delete=0
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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.thirdStationIds!=null and dto.thirdStationIds.size()> 0 "
>
<if
test=
"dto.thirdStationIds!=null and dto.thirdStationIds.size()> 0 "
>
and hygf_jp_station.third_station_id in
and hygf_jp_station.third_station_id in
...
@@ -207,16 +207,16 @@
...
@@ -207,16 +207,16 @@
<where>
<where>
is_delete=0
is_delete=0
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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.thirdStationIds!=null and dto.thirdStationIds.size()> 0 "
>
<if
test=
"dto.thirdStationIds!=null and dto.thirdStationIds.size()> 0 "
>
and hygf_jp_station.third_station_id in
and hygf_jp_station.third_station_id in
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
WHERE IS_DELETED = 0
WHERE IS_DELETED = 0
and privilege_company.COMPANY_TYPE = 'region'
and privilege_company.COMPANY_TYPE = 'region'
<if
test=
"regionName!=null and regionName!=''"
>
<if
test=
"regionName!=null and regionName!=''"
>
and privilege_company.COMPANY_NAME like concat(
"%",#{regionName}, "%"
)
and privilege_company.COMPANY_NAME like concat(
'%',#{regionName}, '%'
)
</if>
</if>
</select>
</select>
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
and hygf_regional_companies.regional_companies_code =#{regionalCompaniesCode}
and hygf_regional_companies.regional_companies_code =#{regionalCompaniesCode}
</if>
</if>
<if
test=
"dealerName!=null and dealerName!=''"
>
<if
test=
"dealerName!=null and dealerName!=''"
>
and hygf_unit_info.`name` like concat(
"%",#{dealerName}, "%"
)
and hygf_unit_info.`name` like concat(
'%',#{dealerName}, '%'
)
</if>
</if>
and hygf_unit_info.amos_company_code is not null
and hygf_unit_info.amos_company_code is not null
GROUP BY hygf_unit_info.amos_company_code,hygf_unit_info.`name`
GROUP BY hygf_unit_info.amos_company_code,hygf_unit_info.`name`
...
@@ -320,10 +320,10 @@
...
@@ -320,10 +320,10 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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
...
@@ -356,16 +356,16 @@
...
@@ -356,16 +356,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -399,16 +399,16 @@
...
@@ -399,16 +399,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -440,16 +440,16 @@
...
@@ -440,16 +440,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -483,16 +483,16 @@
...
@@ -483,16 +483,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -525,16 +525,16 @@
...
@@ -525,16 +525,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
@@ -610,16 +610,16 @@
...
@@ -610,16 +610,16 @@
from hygf_jp_station
from hygf_jp_station
<where>
<where>
<if
test=
"dto.name!=null"
>
<if
test=
"dto.name!=null"
>
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.userName!=null"
>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat(
"%",#{dto.userName}),"%"
)
and hygf_jp_station.user_name like concat(concat(
'%',#{dto.userName}),'%'
)
</if>
</if>
<if
test=
"dto.address!=null"
>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat(
"%",#{dto.address}),"%"
)
and hygf_jp_station.address like concat(concat(
'%',#{dto.address}),'%'
)
</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
...
...
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
...
@@ -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>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PersonnelBusinessMapper.xml
View file @
4b9b1e64
...
@@ -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}),"%")
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PowerStationMapper.xml
View file @
4b9b1e64
...
@@ -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}
...
...
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
...
@@ -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>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/RegionalCompaniesMapper.xml
View file @
4b9b1e64
...
@@ -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!=''"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/TrainingMapper.xml
View file @
4b9b1e64
...
@@ -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>
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'
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
View file @
4b9b1e64
...
@@ -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}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderPowerStationMapper.xml
View file @
4b9b1e64
...
@@ -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>
...
...
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