|
|
@@ -1,9 +1,9 @@
|
|
|
package org.dromara.customer.controller.pc;
|
|
|
|
|
|
+import jakarta.validation.constraints.NotEmpty;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
-import org.dromara.common.core.validate.EditGroup;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
@@ -12,13 +12,13 @@ import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
import org.dromara.customer.domain.bo.CreditApplyBo;
|
|
|
-import org.dromara.customer.domain.bo.CustomerExpenseTypeBo;
|
|
|
import org.dromara.customer.domain.vo.CreditApplyVo;
|
|
|
-import org.dromara.customer.domain.vo.CustomerExpenseTypeVo;
|
|
|
import org.dromara.customer.service.ICreditApplyService;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@Validated
|
|
|
@RequiredArgsConstructor
|
|
|
@RestController
|
|
|
@@ -52,4 +52,16 @@ public class PcCreditApplyController extends BaseController {
|
|
|
|
|
|
return toAjax(creditApplyService.insertByBo(bo));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除信用额度申请
|
|
|
+ *
|
|
|
+ * @param ids 主键串
|
|
|
+ */
|
|
|
+ @Log(title = "信用额度申请", businessType = BusinessType.DELETE)
|
|
|
+ @DeleteMapping("/{ids}")
|
|
|
+ public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
|
+ @PathVariable("ids") Long[] ids) {
|
|
|
+ return toAjax(creditApplyService.deleteWithValidByIds(List.of(ids), true));
|
|
|
+ }
|
|
|
}
|