Feature: Add method to get SAV refunds by shipping invoice number

pull/6221/head
Qiuyi LI 2023-08-07 17:22:20 +02:00
parent e0191b62f9
commit 476bbe47e2
4 changed files with 13 additions and 0 deletions

View File

@ -18,4 +18,5 @@ import java.util.List;
public interface SavRefundWithDetailMapper extends BaseMapper<SavRefundWithDetail> { public interface SavRefundWithDetailMapper extends BaseMapper<SavRefundWithDetail> {
List<SavRefundWithDetail> findUnprocessedRefundsByClient(@Param("clientId") String clientId); List<SavRefundWithDetail> findUnprocessedRefundsByClient(@Param("clientId") String clientId);
List<SavRefundWithDetail> fetchRefundsWhere(@Param("shop") String shop, @Param("orderID") String orderID, @Param("column") String column, @Param("order") String order); List<SavRefundWithDetail> fetchRefundsWhere(@Param("shop") String shop, @Param("orderID") String orderID, @Param("column") String column, @Param("order") String order);
List<SavRefundWithDetail> getRefundsByInvoiceNumber(@Param("invoiceNumber") String invoiceNumber);
} }

View File

@ -19,4 +19,10 @@
AND po.platform_order_id LIKE #{orderID} AND po.platform_order_id LIKE #{orderID}
ORDER BY ${column} ${order}; ORDER BY ${column} ${order};
</select> </select>
<select id="getRefundsByInvoiceNumber" resultType="org.jeecg.modules.business.entity.SavRefundWithDetail">
SELECT *
FROM sav_refund_with_detail
WHERE invoice_number = #{invoiceNumber}
</select>
</mapper> </mapper>

View File

@ -14,4 +14,5 @@ import java.util.List;
public interface ISavRefundWithDetailService extends IService<SavRefundWithDetail> { public interface ISavRefundWithDetailService extends IService<SavRefundWithDetail> {
List<SavRefundWithDetail> findUnprocessedRefundsByClient(String clientId); List<SavRefundWithDetail> findUnprocessedRefundsByClient(String clientId);
List<SavRefundWithDetail> fetchRefundsWhere(String shop, String orderID, String column, String order); List<SavRefundWithDetail> fetchRefundsWhere(String shop, String orderID, String column, String order);
List<SavRefundWithDetail> getRefundsByInvoiceNumber(String invoiceNumber);
} }

View File

@ -31,4 +31,9 @@ public class SavRefundWithDetailServiceImpl extends ServiceImpl<SavRefundWithDet
public List<SavRefundWithDetail> fetchRefundsWhere(String shop, String orderID, String column, String order) { public List<SavRefundWithDetail> fetchRefundsWhere(String shop, String orderID, String column, String order) {
return savRefundMapper.fetchRefundsWhere(shop, orderID, column, order); return savRefundMapper.fetchRefundsWhere(shop, orderID, column, order);
} }
@Override
public List<SavRefundWithDetail> getRefundsByInvoiceNumber(String invoiceNumber) {
return savRefundMapper.getRefundsByInvoiceNumber(invoiceNumber);
}
} }