优化单据中计量单位的查询方法

This commit is contained in:
季圣华
2020-12-21 22:57:46 +08:00
parent 8554fda91b
commit 8cc8dea077
5 changed files with 25 additions and 68 deletions

View File

@@ -74,8 +74,8 @@
and ifnull(m.delete_flag,'0') !='1'
</select>
<select id="findUnitName" resultType="java.lang.String">
select u.name from jsh_unit u
<select id="findUnitList" resultType="com.jsh.erp.datasource.entities.Unit">
select u.* from jsh_unit u
left join jsh_material m on m.unit_id=u.id and ifnull(m.delete_flag,'0') !='1'
where m.id = ${mId}
and ifnull(u.delete_flag,'0') !='1'