|
|
@@ -1,8 +1,10 @@
|
|
|
package com.cyksj.web.controller.manage.mirrorshop;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.cyksj.common.annotation.NoSubmit;
|
|
|
+import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.UserMapper;
|
|
|
@@ -182,6 +184,22 @@ public class UserMirrorShopController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 一键审核店铺信息
|
|
|
+ */
|
|
|
+ @PutMapping("/batch/verify")
|
|
|
+ public Result<String> batchVerify(@RequestBody UserMirrorShopInfoApplyReq verifyReq) {
|
|
|
+ List<Long> ids = verifyReq.getIds();
|
|
|
+ if (CollUtil.isEmpty(ids)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("请选择对应的审核记录");
|
|
|
+ }
|
|
|
+ ids.forEach(id -> {
|
|
|
+ verifyReq.setId(id);
|
|
|
+ userMirrorCommonService.verifyUserMIrrorShopApply(verifyReq);
|
|
|
+ });
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 店铺头部数据
|
|
|
*/
|