add api cetak approval

This commit is contained in:
dirgantarasiahaan 2023-06-02 18:55:00 +07:00
parent f1f071b512
commit 37a06b00f1
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class Drp extends BaseEntity {
private Date direkturApproveDate; private Date direkturApproveDate;
@Column(name = "is_print") @Column(name = "is_print")
@Type(type = "org.hibernate.type.NumericBooleanType")
private Boolean isPrint; private Boolean isPrint;
@Column(name = "print_date") @Column(name = "print_date")

View File

@ -32,6 +32,7 @@ public class GetListPrintDrpService implements BaseService<PrintDrpRequest, GetL
for (DrpView drpView : drpViews) { for (DrpView drpView : drpViews) {
PrintDrpResponse printDrpResponse = PrintDrpResponse.builder() PrintDrpResponse printDrpResponse = PrintDrpResponse.builder()
.id(drpView.getId()) .id(drpView.getId())
.tahun(drpView.getTahun())
.printDate(drpView.getPrintDate()) .printDate(drpView.getPrintDate())
.build(); .build();
if (BooleanUtils.isTrue(drpView.getIsPrint())) { if (BooleanUtils.isTrue(drpView.getIsPrint())) {