车间转出表格增加时间

master
philip 3 years ago
parent 6d008da326
commit 8542c1a072

@ -2,6 +2,8 @@ package com.foreverwin.mesnac.production.dto;
import com.foreverwin.mesnac.production.model.WorkShopTransfer;
import java.time.LocalDate;
public class WorkShopTransferDto extends WorkShopTransfer {
private String lastOperation;
private String lastOperationDesc;
@ -16,6 +18,15 @@ public class WorkShopTransferDto extends WorkShopTransfer {
private String workCenterDesc;
private String employeeDescription;
private String lastStepId;
private LocalDate localDate;
public LocalDate getLocalDate() {
return localDate;
}
public void setLocalDate(LocalDate localDate) {
this.localDate = localDate;
}
public String getLastStepId() {
return lastStepId;

@ -31,6 +31,7 @@ import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@ -211,6 +212,7 @@ public class WorkShopTransferServiceImpl extends ServiceImpl<WorkShopTransferMap
dto.setBlankingSize(transferDto.getBlankingSize());
dto.setTransferNo(taskNo);
dto.setEmployeeDescription(transferDto.getEmployeeDescription());
dto.setLocalDate(LocalDate.now());
returnList.add(dto);
}
return returnList;

Loading…
Cancel
Save