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
cdb0f6be
Commit
cdb0f6be
authored
Sep 18, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
施工电站列表数据重复问题修改
parent
fbef9421
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
WorkOrderMapper.xml
...f-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
+10
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/WorkOrderMapper.xml
View file @
cdb0f6be
...
@@ -23,10 +23,8 @@
...
@@ -23,10 +23,8 @@
ps.work_order_id = hygf_work_order.sequence_nbr
ps.work_order_id = hygf_work_order.sequence_nbr
) as ownersName
) as ownersName
FROM hygf_work_order
, hygf_work_order_power_station, hygf_peasant_household
FROM hygf_work_order
WHERE hygf_work_order.is_delete=0
WHERE hygf_work_order.is_delete=0
and hygf_work_order_power_station.work_order_id = hygf_work_order.sequence_nbr
and hygf_peasant_household.sequence_nbr = hygf_work_order_power_station.peasant_household_id
<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>
...
@@ -43,7 +41,15 @@
...
@@ -43,7 +41,15 @@
and hygf_work_order.region_company_id =#{dto.regionCompanyId}
and hygf_work_order.region_company_id =#{dto.regionCompanyId}
</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 ('%',#{dto.ownersName},'%')
and (
SELECT
GROUP_CONCAT( owners_name ORDER BY owners_name ASC SEPARATOR ', ' ) AS ownersName
FROM
hygf_work_order_power_station ps
LEFT JOIN hygf_peasant_household ph ON ps.peasant_household_id = ph.sequence_nbr
WHERE
ps.work_order_id = hygf_work_order.sequence_nbr
) like concat ('%',#{dto.ownersName},'%')
</if>
</if>
ORDER BY
ORDER BY
hygf_work_order.rec_date DESC,
hygf_work_order.rec_date DESC,
...
...
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