|
|
@ -27,9 +27,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectBpRawMaterialInVo">
|
|
|
|
<sql id="selectBpRawMaterialInVo">
|
|
|
|
select id, factory_code, wa_code, wl_code, material_code, material_name, unit, supply_name, amnount_plan, amount_real, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, create_by, gmt_create, modified_by, gmt_modified from bp_raw_material_in
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
id,
|
|
|
|
|
|
|
|
factory_code,
|
|
|
|
|
|
|
|
wa_code,
|
|
|
|
|
|
|
|
wl_code,
|
|
|
|
|
|
|
|
material_code,
|
|
|
|
|
|
|
|
material_name,
|
|
|
|
|
|
|
|
unit,
|
|
|
|
|
|
|
|
supply_name,
|
|
|
|
|
|
|
|
amnount_plan,
|
|
|
|
|
|
|
|
COALESCE(amount_real, 0) AS amount_real, -- 使用COALESCE函数处理NULL值
|
|
|
|
|
|
|
|
user_defined1,
|
|
|
|
|
|
|
|
user_defined2,
|
|
|
|
|
|
|
|
user_defined3,
|
|
|
|
|
|
|
|
user_defined4,
|
|
|
|
|
|
|
|
user_defined5,
|
|
|
|
|
|
|
|
create_by,
|
|
|
|
|
|
|
|
gmt_create,
|
|
|
|
|
|
|
|
modified_by,
|
|
|
|
|
|
|
|
gmt_modified
|
|
|
|
|
|
|
|
FROM
|
|
|
|
|
|
|
|
bp_raw_material_in
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBpRawMaterialInList" parameterType="BpRawMaterialIn" resultMap="BpRawMaterialInResult">
|
|
|
|
<select id="selectBpRawMaterialInList" parameterType="BpRawMaterialIn" resultMap="BpRawMaterialInResult">
|
|
|
|
<include refid="selectBpRawMaterialInVo"/>
|
|
|
|
<include refid="selectBpRawMaterialInVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|