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
d3536646
Commit
d3536646
authored
Jun 26, 2022
by
季圣华
Browse files
给单据增加明细描述的查询
parent
5e7e6fd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
d3536646
...
@@ -52,10 +52,10 @@
...
@@ -52,10 +52,10 @@
<select
id=
"selectByConditionDepotHead"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"ResultMapEx"
>
<select
id=
"selectByConditionDepotHead"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"ResultMapEx"
>
select distinct dh.*, s.supplier OrganName, u.username userName, a.name AccountName
select distinct dh.*, s.supplier OrganName, u.username userName, a.name AccountName
from jsh_depot_head dh
from jsh_depot_head dh
left join jsh_depot_item di on dh.id = di.header_id and ifnull(di.delete_flag,'0') !='1'
left join jsh_supplier s on dh.organ_id=s.id and ifnull(s.delete_Flag,'0') !='1'
left join jsh_supplier s on dh.organ_id=s.id and ifnull(s.delete_Flag,'0') !='1'
left join jsh_user u on dh.creator=u.id and ifnull(u.Status,'0') !='1'
left join jsh_user u on dh.creator=u.id and ifnull(u.Status,'0') !='1'
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_depot_item di on dh.id = di.header_id and ifnull(di.delete_flag,'0') !='1'
left join jsh_material m on di.material_id = m.id and ifnull(m.delete_flag,'0') !='1'
left join jsh_material m on di.material_id = m.id and ifnull(m.delete_flag,'0') !='1'
left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1'
left join jsh_material_extend me on di.material_extend_id = me.id and ifnull(me.delete_flag,'0') !='1'
where 1=1
where 1=1
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</if>
</if>
<if
test=
"remark != null and remark !=''"
>
<if
test=
"remark != null and remark !=''"
>
<bind
name=
"bindRemark"
value=
"'%'+remark+'%'"
/>
<bind
name=
"bindRemark"
value=
"'%'+remark+'%'"
/>
and dh.remark like #{bindRemark}
and
(
dh.remark like #{bindRemark}
or di.remark like #{bindRemark})
</if>
</if>
and ifnull(dh.delete_flag,'0') !='1'
and ifnull(dh.delete_flag,'0') !='1'
order by dh.id desc
order by dh.id desc
...
@@ -209,7 +209,7 @@
...
@@ -209,7 +209,7 @@
</if>
</if>
<if
test=
"remark != null and remark !=''"
>
<if
test=
"remark != null and remark !=''"
>
<bind
name=
"bindRemark"
value=
"'%'+remark+'%'"
/>
<bind
name=
"bindRemark"
value=
"'%'+remark+'%'"
/>
and dh.remark like #{bindRemark}
and
(
dh.remark like #{bindRemark}
or di.remark like #{bindRemark})
</if>
</if>
and ifnull(dh.delete_Flag,'0') !='1') tb
and ifnull(dh.delete_Flag,'0') !='1') tb
</select>
</select>
...
...
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