|
|
|
|
@ -14,6 +14,7 @@ import com.biutag.supervision.pojo.entity.*;
|
|
|
|
|
import com.biutag.supervision.service.*; |
|
|
|
|
import com.biutag.supervision.util.JSON; |
|
|
|
|
import com.biutag.supervision.util.TimeUtil; |
|
|
|
|
import jakarta.validation.Validator; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
@ -43,10 +44,12 @@ public class ApplyCompletionAction implements Action {
|
|
|
|
|
|
|
|
|
|
private final SupDepartService departService; |
|
|
|
|
|
|
|
|
|
private final Validator validator; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void next(ActionDto actionDto) { |
|
|
|
|
VerifyData verifyData = BeanUtil.toBean(actionDto.getData(), VerifyData.class); |
|
|
|
|
//validator.validate(verifyData);
|
|
|
|
|
validator.validate(verifyData); |
|
|
|
|
// 新增审批数据
|
|
|
|
|
Negative negative = negativeService.getById(actionDto.getNegativeId()); |
|
|
|
|
updateNegative(negative, verifyData); |
|
|
|
|
|