Add files via upload

This commit is contained in:
gopi17701 2018-07-17 22:32:31 -04:00 committed by GitHub
parent b77b25278d
commit 86c84a1996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 2 deletions

View File

@ -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();
// }
}

View File

@ -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")