|
@@ -14,6 +14,7 @@ import com.fjhx.sale.service.contract.ContractProductService;
|
|
import com.fjhx.sale.service.contract.ContractService;
|
|
import com.fjhx.sale.service.contract.ContractService;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@Component
|
|
@Component
|
|
@@ -90,7 +91,11 @@ public class ContractReviewFlow extends FlowDelegate {
|
|
.ne(ContractProduct::getReviewStatus, FlowStatusEnum1.PASS.getKey())
|
|
.ne(ContractProduct::getReviewStatus, FlowStatusEnum1.PASS.getKey())
|
|
);
|
|
);
|
|
if (count == 0) {
|
|
if (count == 0) {
|
|
- contractService.update(q -> q.eq(Contract::getId, contractProduct.getId()).set(Contract::getReviewStatus, FlowStatusEnum1.PASS.getKey()));
|
|
|
|
|
|
+ contractService.update(q -> q
|
|
|
|
+ .eq(Contract::getId, contractProduct.getId())
|
|
|
|
+ .set(Contract::getReviewStatus, FlowStatusEnum1.PASS.getKey())
|
|
|
|
+ .set(Contract::getReviewEndTime, new Date())
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|