mirror of
https://github.com/dyiop/astute.git
synced 2025-04-05 21:10:16 -04:00
Add files via upload
This commit is contained in:
parent
b77b25278d
commit
86c84a1996
|
@ -0,0 +1,42 @@
|
|||
package com.astute.resources;
|
||||
|
||||
import com.astute.requests.ChangeOrderRequest;
|
||||
import com.astute.response.ApiResponse;
|
||||
import com.astute.service.ChangeOrderService;
|
||||
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
import java.sql.SQLException;
|
||||
|
||||
@Path("/invoicePayment")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public class InvoicePaymentResource {
|
||||
|
||||
// private com.astute.service.InvoicePaymentService service = new InvoicePaymentService();
|
||||
|
||||
public InvoicePaymentResource() {
|
||||
}
|
||||
|
||||
// @GET
|
||||
// public Response getInvoicePayments(@QueryParam("invoiceNum") String invoiceNum)
|
||||
// throws SQLException, Exception {
|
||||
// return new ApiResponse(service.getInvoicePayments(invoiceNum)).toResponse();
|
||||
// }
|
||||
//
|
||||
// @Path("/{invoiceNum}/{changeOrderNum}")int invoicePaymentId, Double paymentAmount, Date paymentDate
|
||||
// @PUT
|
||||
// public Response updateInvoicePayment(InvoicePaymentRequest request, @PathParam("invoiceNum") String invoiceNum, @PathParam("invoicePaymentId") int invoicePaymentId)
|
||||
// throws SQLException, Exception {
|
||||
// service.updateChangeOrder(PONum,changeOrderNum, request.getChangeOrderAmt(), request.getChangeOrderDate(), request.getDescription());
|
||||
// return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||
// }
|
||||
|
||||
// @POST
|
||||
// public Response createChangeOrder(ChangeOrderRequest request)
|
||||
// throws SQLException, Exception {
|
||||
// return new ApiResponse(service.createChangeOrder(request.getPoNum(), request.getChangeOrderNum(), request.getChangeOrderAmt(),
|
||||
// request.getChangeOrderDate(), request.getDescription())).toResponse();
|
||||
// }
|
||||
}
|
|
@ -58,8 +58,7 @@ public class POResource {
|
|||
@POST
|
||||
public Response createPOMaster(POMasterRequest request)
|
||||
throws SQLException, Exception {
|
||||
System.out.println(request.getPONum());
|
||||
POService.createPOMaster(request.getPONum(), request.getContractNum(), request.getPODate(), request.getContractAmt(), request.getCustomerId());
|
||||
POService.createPOMaster(request.getPoNum(), request.getContractNum(), request.getPODate(), request.getContractAmt(), request.getCustomerId());
|
||||
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||
}
|
||||
@Path("/detail")
|
||||
|
|
Loading…
Reference in New Issue
Block a user