|
@@ -158,4 +158,58 @@
|
|
|
OR aptr.ORDERPRODUCTTYPEID = #{orderProductTypeId}
|
|
|
)
|
|
|
</select>
|
|
|
+ <select id="selectMyList1" resultType="com.rongwei.bsentity.vo.GetOldTechnicalRequirementRes">
|
|
|
+ select
|
|
|
+ apd.ID AS 'orderDetailId',
|
|
|
+ apd.ALLOY AS 'alloy',
|
|
|
+ apd.ALLOYSTATUS AS 'alloystatus',
|
|
|
+ apd.PRODUCTTYPEID AS 'producttypeid',
|
|
|
+ apd.PRODUCTTYPE AS 'producttype',
|
|
|
+ aptr.*
|
|
|
+ from aps_product_detail apd
|
|
|
+ LEFT JOIN aps_production_technical_requirement aptr
|
|
|
+ ON FIND_IN_SET(apd.ID,aptr.ORDERDETAILIDS)
|
|
|
+ where apd.DELETED = 0
|
|
|
+ AND aptr.DELETED = 0
|
|
|
+ AND apd.ID != #{id}
|
|
|
+ AND aptr.ID != #{technicalRequirementId}
|
|
|
+ AND aptr.ID is not null
|
|
|
+ AND apd.ALLOY = #{alloy}
|
|
|
+ </select>
|
|
|
+ <select id="selectMyList2" resultType="com.rongwei.bsentity.vo.GetOldTechnicalRequirementRes">
|
|
|
+ select
|
|
|
+ apd.ID AS 'orderDetailId',
|
|
|
+ apd.ALLOY AS 'alloy',
|
|
|
+ apd.ALLOYSTATUS AS 'alloystatus',
|
|
|
+ apd.PRODUCTTYPEID AS 'producttypeid',
|
|
|
+ apd.PRODUCTTYPE AS 'producttype',
|
|
|
+ aptr.*
|
|
|
+ from aps_product_detail apd
|
|
|
+ LEFT JOIN aps_production_technical_requirement aptr
|
|
|
+ ON FIND_IN_SET(apd.ID,aptr.ORDERDETAILIDS)
|
|
|
+ where apd.DELETED = 0
|
|
|
+ AND aptr.DELETED = 0
|
|
|
+ AND apd.ID != #{id}
|
|
|
+ AND aptr.ID != #{technicalRequirementId}
|
|
|
+ AND aptr.ID is not null
|
|
|
+ AND apd.ALLOYSTATUS = #{alloystatus}
|
|
|
+ </select>
|
|
|
+ <select id="selectMyList3" resultType="com.rongwei.bsentity.vo.GetOldTechnicalRequirementRes">
|
|
|
+ select
|
|
|
+ apd.ID AS 'orderDetailId',
|
|
|
+ apd.ALLOY AS 'alloy',
|
|
|
+ apd.ALLOYSTATUS AS 'alloystatus',
|
|
|
+ apd.PRODUCTTYPEID AS 'producttypeid',
|
|
|
+ apd.PRODUCTTYPE AS 'producttype',
|
|
|
+ aptr.*
|
|
|
+ from aps_product_detail apd
|
|
|
+ LEFT JOIN aps_production_technical_requirement aptr
|
|
|
+ ON FIND_IN_SET(apd.ID,aptr.ORDERDETAILIDS)
|
|
|
+ where apd.DELETED = 0
|
|
|
+ AND aptr.DELETED = 0
|
|
|
+ AND apd.ID != #{id}
|
|
|
+ AND aptr.ID != #{technicalRequirementId}
|
|
|
+ AND aptr.ID is not null
|
|
|
+ AND aptr.ORDERPRODUCTTYPEID = #{orderProductTypeId}
|
|
|
+ </select>
|
|
|
</mapper>
|