|
@@ -1,47 +1,29 @@
|
|
|
package com.zhongzheng.controller.goods;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Arrays;
|
|
|
-
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
-import com.zhongzheng.common.utils.ServletUtils;
|
|
|
-import com.zhongzheng.modules.bank.bo.ExamQuestionQueryBo;
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
import com.zhongzheng.modules.bank.service.IQuestionService;
|
|
|
-import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
|
-import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
|
import com.zhongzheng.modules.exam.bo.ExamNumberGoodsQueryBo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo;
|
|
|
import com.zhongzheng.modules.goods.bo.*;
|
|
|
-import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
|
-import com.zhongzheng.modules.goods.service.IGoodsAuditionConfigService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.*;
|
|
|
-import com.zhongzheng.modules.grade.vo.StudyAccountStatusExportVo;
|
|
|
-import com.zhongzheng.modules.order.vo.OrderVo;
|
|
|
-import com.zhongzheng.modules.user.bo.UserExamRecordQueryBo;
|
|
|
-import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.zhongzheng.common.annotation.Log;
|
|
|
-import com.zhongzheng.common.core.controller.BaseController;
|
|
|
-import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
-import com.zhongzheng.common.enums.BusinessType;
|
|
|
-import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
-import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 商品Controller
|
|
@@ -339,6 +321,15 @@ public class GoodsController extends BaseController {
|
|
|
return toAjax(iGoodsService.goodsBatchCopyIncrementTenant(bo) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品节点复制
|
|
|
+ */
|
|
|
+ @ApiOperation("商品节点复制")
|
|
|
+ @PostMapping("/node/copy/add")
|
|
|
+ public AjaxResult<Void> goodsNodeCopyAddTenant(@RequestBody GoodsNodeCopyTenantBo bo) {
|
|
|
+ return toAjax(iGoodsService.goodsNodeCopyAddTenant(bo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 商品关系ID处理(全量复制后的处理方法)
|
|
|
*/
|