基础管理

This commit is contained in:
itcast 2026-01-19 17:31:57 +08:00
parent 0231533530
commit 26f3dcca79
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>