|
@@ -88,22 +88,22 @@ public class SaleQuotationFlow extends FlowDelegate {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void defaultMethod(Long flowId, Long businessId, FlowStatusEnum flowStatusEnum, JSONObject submitData) {
|
|
|
- //重新发起
|
|
|
- if (FlowStatusEnum.READY_START.equals(flowStatusEnum)) {
|
|
|
- SaleQuotationDto saleQuotation = submitData.toJavaObject(SaleQuotationDto.class);
|
|
|
- Assert.notEmpty(saleQuotation.getId(), "报价单id不能为空");
|
|
|
- commStart(saleQuotation, 1);
|
|
|
- }
|
|
|
- //驳回
|
|
|
- if (FlowStatusEnum.REJECT.equals(flowStatusEnum)) {
|
|
|
- saleQuotationService.update(q -> q
|
|
|
- .eq(SaleQuotation::getId, businessId)
|
|
|
- .set(SaleQuotation::getStatus, FlowStatusEnum1.REJECT.getKey())
|
|
|
- .set(BasePo::getUpdateTime, new Date())
|
|
|
- .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
- );
|
|
|
- }
|
|
|
+ public void relaunch(Long flowId, Long businessId, FlowStatusEnum flowStatus, JSONObject submitData) {
|
|
|
+ super.relaunch(flowId, businessId, flowStatus, submitData);
|
|
|
+ SaleQuotationDto saleQuotation = submitData.toJavaObject(SaleQuotationDto.class);
|
|
|
+ Assert.notEmpty(saleQuotation.getId(), "报价单id不能为空");
|
|
|
+ commStart(saleQuotation, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void reject(Long flowId, Long businessId, FlowStatusEnum flowStatus) {
|
|
|
+ super.reject(flowId, businessId, flowStatus);
|
|
|
+ saleQuotationService.update(q -> q
|
|
|
+ .eq(SaleQuotation::getId, businessId)
|
|
|
+ .set(SaleQuotation::getStatus, FlowStatusEnum1.REJECT.getKey())
|
|
|
+ .set(BasePo::getUpdateTime, new Date())
|
|
|
+ .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
/**
|