Compare commits

...

2 Commits

Author SHA1 Message Date
itcast d47ca17451 Merge remote-tracking branch 'origin/master' 2026-01-19 17:32:08 +08:00
itcast 26f3dcca79 基础管理 2026-01-19 17:31:57 +08:00
2 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bp.pro_code as proCode
from bm_project bp
where bp.del_flag = '0'
<if test="companyId != null">
and bp.company_id=#{companyId}
</if>
<if test="proName != null and proName != ''">
<if test="proCode != null and proCode != ''">
and (bp.pro_name = #{proName} or bp.pro_code = #{proCode})

View File

@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBmUnitByProName" resultType="com.bonus.material.basic.domain.BmUnit">
select unit_id as unitId, unit_name as unitName from bm_unit where del_flag = 0 and unit_name = #{unitName}
<if test="companyId != null"> and company_id =#{companyId}</if>
<if test="deptId != null">and dept_id = #{deptId}</if>
<if test="typeId != null">and type_id = #{typeId}</if>
</select>