|
@@ -17,6 +17,7 @@ import com.lframework.starter.web.core.utils.PageHelperUtil; |
|
@@ -17,6 +17,7 @@ import com.lframework.starter.web.core.utils.PageHelperUtil; |
|
17
|
import com.lframework.starter.common.utils.Assert;
|
17
|
import com.lframework.starter.common.utils.Assert;
|
|
18
|
import com.lframework.starter.web.inner.components.oplog.OtherOpLogType;
|
18
|
import com.lframework.starter.web.inner.components.oplog.OtherOpLogType;
|
|
19
|
import com.lframework.xingyun.sc.enums.CustomerDevelopStatus;
|
19
|
import com.lframework.xingyun.sc.enums.CustomerDevelopStatus;
|
|
|
|
20
|
+import org.apache.commons.lang3.StringUtils;
|
|
20
|
import org.springframework.transaction.annotation.Transactional;
|
21
|
import org.springframework.transaction.annotation.Transactional;
|
|
21
|
import com.lframework.xingyun.sc.mappers.CustomerDevelopPlanMapper;
|
22
|
import com.lframework.xingyun.sc.mappers.CustomerDevelopPlanMapper;
|
|
22
|
import com.lframework.xingyun.sc.service.customer.CustomerDevelopPlanService;
|
23
|
import com.lframework.xingyun.sc.service.customer.CustomerDevelopPlanService;
|
|
@@ -195,4 +196,17 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe |
|
@@ -195,4 +196,17 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe |
|
195
|
public void deleteById(String id) {
|
196
|
public void deleteById(String id) {
|
|
196
|
getBaseMapper().deleteById(id);
|
197
|
getBaseMapper().deleteById(id);
|
|
197
|
}
|
198
|
}
|
|
|
|
199
|
+
|
|
|
|
200
|
+ @OpLog(type = OtherOpLogType.class, name = "取消客户开发计划,ID:{}", params = {"#id"})
|
|
|
|
201
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
202
|
+ @Override
|
|
|
|
203
|
+ public void cancel(String id) {
|
|
|
|
204
|
+ if (StringUtils.isBlank(id)) {
|
|
|
|
205
|
+ return;
|
|
|
|
206
|
+ }
|
|
|
|
207
|
+ LambdaUpdateWrapper<CustomerDevelopPlan> updateWrapper = Wrappers.lambdaUpdate(CustomerDevelopPlan.class)
|
|
|
|
208
|
+ .set(CustomerDevelopPlan::getStatus, CustomerDevelopStatus.CANCEL)
|
|
|
|
209
|
+ .eq(CustomerDevelopPlan::getId, id);
|
|
|
|
210
|
+ getBaseMapper().update(updateWrapper);
|
|
|
|
211
|
+ }
|
|
198
|
} |
212
|
} |