コード例 #1
0
 public void update(Discount discount) {
   jdbcTemplate.update(
       discount.generateUpdateQuery(),
       discount.getGoodsId(),
       discount.getStart(),
       discount.getEnd(),
       discount.getDiscount(),
       discount.getDescription(),
       discount.getCreatedDate(),
       discount.getCreatedBy(),
       discount.getUpdatedDate(),
       discount.getUpdatedBy(),
       discount.getGoodsId());
 }
コード例 #2
0
 public void delete(Discount discount) {
   jdbcTemplate.update(discount.generateDeleteQuery(), discount.getGoodsId());
 }