mirror of https://github.com/jeecgboot/jeecg-boot
Feature: Add method to get SAV refunds by shipping invoice number
parent
e0191b62f9
commit
476bbe47e2
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue