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
75ddd48669
commit
65003d0bb0
|
@ -71,8 +71,11 @@ public class POResource {
|
|||
public Response createPOMaster(POMasterRequest request)
|
||||
throws AstuteException, ParseException {
|
||||
String dateStr = request.getPODate();
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date date = new java.sql.Date(df.parse(dateStr).getTime());
|
||||
Date date = null;
|
||||
if (dateStr != null) {
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||
date = new java.sql.Date(df.parse(dateStr).getTime());
|
||||
}
|
||||
|
||||
POService.createPOMaster(request.getPoNum(), request.getContractNum(), date, request.getContractAmt(), request.getCustomerId(), request.getAstuteProjectNumber());
|
||||
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||
|
|
Loading…
Reference in New Issue
Block a user