|
@@ -6,10 +6,13 @@ import com.gree.mall.manager.annotation.ZfireList;
|
|
|
import com.gree.mall.manager.bean.goods.GoodsAdviceNoticeItemVO;
|
|
import com.gree.mall.manager.bean.goods.GoodsAdviceNoticeItemVO;
|
|
|
import com.gree.mall.manager.bean.goods.GoodsAdviceNoticeVO;
|
|
import com.gree.mall.manager.bean.goods.GoodsAdviceNoticeVO;
|
|
|
import com.gree.mall.manager.bean.goods.GoodsMaterialVO;
|
|
import com.gree.mall.manager.bean.goods.GoodsMaterialVO;
|
|
|
|
|
+import com.gree.mall.manager.bean.goods.GoodsPurchaseVO;
|
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
|
import com.gree.mall.manager.logic.goods.GoodsAdviceNoticeLogic;
|
|
import com.gree.mall.manager.logic.goods.GoodsAdviceNoticeLogic;
|
|
|
import com.gree.mall.manager.logic.goods.GoodsMaterialLogic;
|
|
import com.gree.mall.manager.logic.goods.GoodsMaterialLogic;
|
|
|
|
|
+import com.gree.mall.manager.zfire.bean.WebsitGoodsParamBean;
|
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
|
|
+import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -17,6 +20,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@RestController
|
|
@RestController
|
|
@@ -37,6 +42,19 @@ public class GoodsAdviceNoticeController {
|
|
|
return ResponseHelper.success(page, new TypeReference<GoodsAdviceNoticeVO>() {});
|
|
return ResponseHelper.success(page, new TypeReference<GoodsAdviceNoticeVO>() {});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/list/export")
|
|
|
|
|
+ @ApiOperation("列表-导出")
|
|
|
|
|
+ public void listExport(
|
|
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean,
|
|
|
|
|
+ HttpServletRequest request,
|
|
|
|
|
+ HttpServletResponse response
|
|
|
|
|
+ ) throws Exception {
|
|
|
|
|
+ //2.查询要导出的内容
|
|
|
|
|
+ IPage<GoodsAdviceNoticeVO> baseVOIPage = goodsAdviceNoticeLogic.page(zfireParamBean);
|
|
|
|
|
+ //3.导出
|
|
|
|
|
+ FieldUtils.exportData(baseVOIPage.getRecords(), zfireParamBean.getExportFields(), request, response);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PostMapping("/item/list")
|
|
@PostMapping("/item/list")
|
|
|
@ApiOperation(value = "明细列表")
|
|
@ApiOperation(value = "明细列表")
|
|
|
public ResponseHelper<IPage<GoodsAdviceNoticeItemVO>> itemList(
|
|
public ResponseHelper<IPage<GoodsAdviceNoticeItemVO>> itemList(
|