|
|
@@ -24,6 +24,8 @@ import com.yc.ship.framework.common.util.object.BeanUtils;
|
|
|
|
|
|
import com.yc.ship.module.marketing.dal.mysql.policy.PolicyMapper;
|
|
|
|
|
|
+import static com.yc.ship.framework.common.exception.util.ServiceExceptionUtil.exception0;
|
|
|
+
|
|
|
/**
|
|
|
* 营销政策 Service 实现类
|
|
|
*
|
|
|
@@ -58,17 +60,19 @@ public class PolicyServiceImpl implements PolicyService {
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void updatePolicy(PolicySaveReqVO updateReqVO) {
|
|
|
+ throw exception0(500, "暂不支持修改");
|
|
|
// 更新
|
|
|
- PolicyDO updateObj = BeanUtils.toBean(updateReqVO, PolicyDO.class);
|
|
|
- policyMapper.updateById(updateObj);
|
|
|
- handlePolicyDetail(updateObj.getId(), updateReqVO);
|
|
|
+// PolicyDO updateObj = BeanUtils.toBean(updateReqVO, PolicyDO.class);
|
|
|
+// policyMapper.updateById(updateObj);
|
|
|
+// handlePolicyDetail(updateObj.getId(), updateReqVO);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void deletePolicy(Long id) {
|
|
|
+ throw exception0(500, "暂不支持删除,请关闭使用状态");
|
|
|
// 删除
|
|
|
- policyMapper.deleteById(id);
|
|
|
- policyDetailMapper.deleteByPolicyId(id);
|
|
|
+// policyMapper.deleteById(id);
|
|
|
+// policyDetailMapper.deleteByPolicyId(id);
|
|
|
}
|
|
|
|
|
|
private void handlePolicyDetail(Long policyId, PolicySaveReqVO reqVO) {
|