lyhzzz 1 year ago
parent
commit
8018bb8737

+ 4 - 1
src/main/java/com/fdkankan/sale/controller/RepairInfoController.java

@@ -32,9 +32,11 @@ import com.fdkankan.sale.util.MyExcelUtil;
 import com.fdkankan.sale.util.OrderListVo;
 import com.fdkankan.sale.vo.request.RepairInfoListParam;
 import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletRequest;
@@ -42,6 +44,7 @@ import javax.servlet.http.HttpServletResponse;
 
 @RestController
 @RequestMapping("/sale/repairInfo")
+@Slf4j
 public class RepairInfoController extends BaseController{
 
     @Autowired
@@ -133,7 +136,7 @@ public class RepairInfoController extends BaseController{
             }
 
         }catch (Exception e){
-            e.printStackTrace();
+           log.info("导出失败:",e);
         }finally {
             if(excelWriter != null){
                 excelWriter.finish();