|
|
|
@ -40,11 +40,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="enterpriseId" column="Enterprise_Id" />
|
|
|
|
|
<result property="enterpriseCode" column="Enterprise_Code" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="pagination_tail">
|
|
|
|
|
limit #{page.pageOffset} , #{page.rows}
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="selectOdsProcureOutOrderVo">
|
|
|
|
|
select Site_code, ID, Produce_Code, Material_Code, Material_Desc, Plan_Date, Plan_Number, Unit, COALESCE(Out_Number, 0) as Out_Number , Loc_Code, Loc_Desc, Production_Line_Desc, Production_Line_Code, Order_Status, User_Defined1, User_Defined2, User_Defined3, User_Defined4, User_Defined5, User_Defined6, User_Defined7, User_Defined8, User_Defined9, User_Defined10, User_Defined11, Supplier_Code, Supplier_Name, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code from ods_procure_out_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectOdsProcureOutOrderListZU" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
|
|
|
|
|
SELECT
|
|
|
|
|
Produce_Code,
|
|
|
|
|
User_Defined1
|
|
|
|
|
FROM
|
|
|
|
|
ods_procure_out_order
|
|
|
|
|
where
|
|
|
|
|
Active='1'
|
|
|
|
|
<if test="produceCode != null and produceCode != ''"> and Produce_Code = #{produceCode}</if>
|
|
|
|
|
<if test="userDefined1 != null and userDefined1 != ''"> and User_Defined1 = #{userDefined1}</if>
|
|
|
|
|
GROUP BY Produce_Code,User_Defined1
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectOdsProcureOutOrderListZUT" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
|
|
|
|
|
<include refid="selectOdsProcureOutOrderVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="produceCode != null and produceCode != ''"> and Produce_Code = #{produceCode}</if>
|
|
|
|
|
<if test="userDefined1 != null and userDefined1 != ''"> and User_Defined1 = #{userDefined1}</if>
|
|
|
|
|
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectOdsProcureOutOrderList" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
|
|
|
|
|
<include refid="selectOdsProcureOutOrderVo"/>
|
|
|
|
|
<where>
|
|
|
|
@ -294,4 +315,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{item.ID}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|