change PO's field type int to varchar according requirements
parent
2ef5b2121e
commit
0627de2a98
|
@ -20,7 +20,7 @@ public class JobCardRowMapper implements RowMapper<JobCard> {
|
|||
jobCard.setInventoryStatus( rs.getString("inventory_status"));
|
||||
jobCard.setCustomer( rs.getString("customer") );
|
||||
jobCard.setLotNumber( rs.getString("lot_number") );
|
||||
jobCard.setPurchaseOrderId( rs.getLong("purchase_order_id") );
|
||||
jobCard.setPurchaseOrderId( rs.getString("purchase_order_id") );
|
||||
jobCard.setLocationSiteId( rs.getLong("location_site_id" ) );
|
||||
jobCard.setDescription( rs.getString("description" ) );
|
||||
return jobCard;
|
||||
|
|
|
@ -117,7 +117,7 @@ public class PurchaseOrderDAO {
|
|||
}
|
||||
|
||||
// find
|
||||
public PurchaseOrder find(long id) {
|
||||
public PurchaseOrder find(String id) {
|
||||
MapSqlParameterSource params = new MapSqlParameterSource();
|
||||
params.addValue("id", id);
|
||||
List<PurchaseOrder> purchaseOrders = namedParameterJdbcTemplate.query(SELECT_QUERY, params, new PurchaseOrderRowMapper());
|
||||
|
|
|
@ -24,7 +24,7 @@ public class JobCard {
|
|||
private String inventoryStatus;
|
||||
private String customer;
|
||||
private String lotNumber;
|
||||
private long purchaseOrderId;
|
||||
private String purchaseOrderId;
|
||||
private long locationSiteId;
|
||||
private String description;
|
||||
// wrapper
|
||||
|
@ -106,11 +106,11 @@ public class JobCard {
|
|||
this.lotNumber = lotNumber;
|
||||
}
|
||||
|
||||
public long getPurchaseOrderId() {
|
||||
public String getPurchaseOrderId() {
|
||||
return purchaseOrderId;
|
||||
}
|
||||
|
||||
public void setPurchaseOrderId(long purchaseOrderId) {
|
||||
public void setPurchaseOrderId(String purchaseOrderId) {
|
||||
this.purchaseOrderId = purchaseOrderId;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,11 +34,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-sm-3 form-group" th:with="title=*{purchaseOrderTitle},id=*{purchaseOrderId}">
|
||||
<purchase-order-search th:attr="id=${id},title=${title}"
|
||||
v-bind:id-field-name="'purchaseOrderId'"
|
||||
>
|
||||
</purchase-order-search>
|
||||
<div class="col-sm-3 form-group">
|
||||
<label>Purchase Order</label>
|
||||
<input type="text" class="form-control" th:field="*{purchaseOrderId}" required>
|
||||
</div>
|
||||
<div class="col-sm-3 form-group" th:with="title=*{locationTitle},id=*{locationSiteId}">
|
||||
<location-site-search th:attr="id=${id},title=${title}"
|
||||
|
|
Loading…
Reference in New Issue