//package com.zfire.mall.manager.controller;
//
//
//import com.zfire.mall.manager.helper.ResponseHelper;
//import com.zfire.mall.manager.logic.TestLogic;
//import com.zfire.mall.manager.print.PdfUtil;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//
//@Slf4j
//@RestController
//@Api(value = "打印测试", tags ={"打印测试"} )
//@RequestMapping(value = "/print", produces = "application/json; charset=utf-8")
//public class TestController {
//
//    @Autowired
//    PdfUtil pdfUtil;
//
//    @Autowired
//    TestLogic testLogic;
//
//    @GetMapping("/invoice")
//    @ApiOperation(value = "打印提货列表")
//    public ResponseHelper<String> materialRequisitionInvoice(@ApiParam(required = false, value = "申请发货单号") @RequestParam(required = false) List<String> ids){
//        String s = pdfUtil.fillTemplateInvoice(ids);
//        return ResponseHelper.success(s);
//    }
//
//    @GetMapping("/pick")
//    @ApiOperation(value = "打印提货列表")
//    public ResponseHelper<String> materialRequisition(@ApiParam(required = false, value = "提货单号号") @RequestParam(required = false) List<String> ids){
//        String s = pdfUtil.fillTemplate(ids);
//        return ResponseHelper.success(s);
//    }
//
//
//    @GetMapping("/supply-datasource")
//    @ApiOperation(value = "主库")
//    public ResponseHelper supplyDatasource() {
//        return ResponseHelper.success(testLogic.test1());
//    }
//
//
//    @GetMapping("/engin-datasource")
//    @ApiOperation(value = "其他库")
//    public ResponseHelper enginDatasource() {
//        return ResponseHelper.success(testLogic.test2());
//    }
//
//}
