Commit d1deecee authored by liuzeheng's avatar liuzeheng

报价延期最多两次

parent 0a16888e
...@@ -2742,8 +2742,9 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome ...@@ -2742,8 +2742,9 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
} else { } else {
String customerStatusName = CustomerStatusEnum.getNameByValue(customerStatus); String customerStatusName = CustomerStatusEnum.getNameByValue(customerStatus);
int offerPostponeTimes = 3; //int offerPostponeTimes = 3;
// 当超过3次后不可再用报价延期 int offerPostponeTimes = 2;
// 当超过2次后不可再用报价延期
if (customer.getCreateOfferPostponeNum() < offerPostponeTimes) { if (customer.getCreateOfferPostponeNum() < offerPostponeTimes) {
Date estimateEnterOpenSeaTime = DateUtil.offsetMonth(offerCreateTime, 3).toJdkDate(); Date estimateEnterOpenSeaTime = DateUtil.offsetMonth(offerCreateTime, 3).toJdkDate();
...@@ -2899,6 +2900,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome ...@@ -2899,6 +2900,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
if (customer.getEstimateEnterOpenSeaTime() == null || customer.getEstimateEnterOpenSeaTime().compareTo(date) == -1) { if (customer.getEstimateEnterOpenSeaTime() == null || customer.getEstimateEnterOpenSeaTime().compareTo(date) == -1) {
customer.setEstimateEnterOpenSeaTime(date); customer.setEstimateEnterOpenSeaTime(date);
} }
customerMapper.updateById(customer); customerMapper.updateById(customer);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment