Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
27c58a8d
Commit
27c58a8d
authored
Jun 12, 2019
by
季圣华
Browse files
解决同一单据产生多行的bug
parent
fa1c15e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
27c58a8d
...
...
@@ -42,7 +42,7 @@
</resultMap>
<select
id=
"selectByConditionDepotHead"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"ResultMapEx"
>
select dh.*, d.name ProjectName, s.supplier OrganName, p.name HandsPersonName, a.name AccountName, dd.name AllocationProjectName
select
distinct
dh.*, d.name ProjectName, s.supplier OrganName, p.name HandsPersonName, a.name AccountName, dd.name AllocationProjectName
from jsh_depothead dh
left join jsh_depot d on dh.ProjectId=d.id and ifnull(d.delete_Flag,'0') !='1'
left join jsh_supplier s on dh.OrganId=s.id and ifnull(s.delete_Flag,'0') !='1'
...
...
@@ -81,8 +81,8 @@
</select>
<select
id=
"countsByDepotHead"
resultType=
"java.lang.Long"
>
SELECT
COUNT(
jsh_depothead.id)
FROM jsh_depothead
COUNT(
1) from
(select distinct jsh_depothead.*
FROM jsh_depothead
inner join jsh_depotitem di on jsh_depothead.Id = di.HeaderId and ifnull(di.delete_Flag,'0') !='1'
inner join jsh_material m on di.MaterialId = m.Id and ifnull(m.delete_Flag,'0') !='1'
WHERE 1=1
...
...
@@ -107,7 +107,7 @@
<if
test=
"depotIds != null"
>
and di.DepotId in (${depotIds})
</if>
and ifnull(jsh_depothead.delete_Flag,'0') !='1'
and ifnull(jsh_depothead.delete_Flag,'0') !='1'
) tb
</select>
<select
id=
"getMaxId"
resultType=
"java.lang.Long"
>
...
...
Write
Preview
Supports
Markdown
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