| | |
| | | |
| | | // ------------------------------------------------- |
| | | |
| | | List<LocDetl> queryStock(@Param("sPgNO")String sPgNO, @Param("model")String model, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos); |
| | | List<LocDetl> queryStock(@Param("sPgNO")String sPgNO, @Param("matnr")String matnr, @Param("batch")String batch, @Param("orderNo")String orderNo, @Param("locNos") Set<String> locNos); |
| | | |
| | | Double queryStockAnfme(String matnr, String batch); |
| | | |
| | |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | |
| | | <choose> |
| | | <when test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </when> |
| | | <otherwise> |
| | | and (pg_no IS NULL OR pg_no = '') |
| | | </otherwise> |
| | | </choose> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <choose>--> |
| | | |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and batch = #{batch}--> |
| | | <!-- </when>--> |
| | |
| | | <!-- <if test="orderNo != null and orderNo != ''">--> |
| | | <!-- and a.order_no = #{orderNo}--> |
| | | <!-- </if>--> |
| | | <if test="model != null and model != ''"> |
| | | and a.model = #{model} |
| | | <if test="matnr != null and matnr != ''"> |
| | | and a.matnr = #{matnr} |
| | | and (a.pg_no is null or LEN(LTRIM(RTRIM(pg_no))) = 0) |
| | | </if> |
| | | |