|
@@ -7,6 +7,8 @@ import com.ylx.common.core.domain.R;
|
|
|
import com.ylx.common.enums.BusinessType;
|
|
|
import com.ylx.common.exception.ServiceException;
|
|
|
import com.ylx.common.utils.StringUtils;
|
|
|
+import com.ylx.common.utils.poi.ExcelUtil;
|
|
|
+import com.ylx.massage.domain.MaTechnician;
|
|
|
import com.ylx.massage.domain.TOrder;
|
|
|
import com.ylx.massage.enums.Enumproject;
|
|
|
import com.ylx.massage.enums.OrderStatusEnum;
|
|
@@ -22,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
@@ -251,6 +254,15 @@ public class TOrderController {
|
|
|
return R.ok(all);
|
|
|
}
|
|
|
|
|
|
+ @Log(title = "微信获取订单信息", businessType = BusinessType.EXPORT)
|
|
|
+ @ApiOperation("导出")
|
|
|
+ @RequestMapping(value = "wx/export", method = RequestMethod.GET)
|
|
|
+ public void export(HttpServletResponse response, Page<TOrder> page, TOrder param) {
|
|
|
+ Page<TOrder> all = orderService.getAll(page, param);
|
|
|
+ ExcelUtil<TOrder> util = new ExcelUtil<TOrder>(TOrder.class);
|
|
|
+ util.exportExcel(response, all.getRecords(), "订单");
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 分页查询数据
|
|
|
*/
|