|
@@ -1,6 +1,7 @@
|
|
package com.ywt.mg.web.controllers.hospital;
|
|
package com.ywt.mg.web.controllers.hospital;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.ywt.mg.core.MGRight;
|
|
import com.ywt.mg.core.exceptions.AppMessageException;
|
|
import com.ywt.mg.core.exceptions.AppMessageException;
|
|
import com.ywt.mg.core.utils.Checker;
|
|
import com.ywt.mg.core.utils.Checker;
|
|
import com.ywt.mg.core.utils.StringHelper;
|
|
import com.ywt.mg.core.utils.StringHelper;
|
|
@@ -16,6 +17,7 @@ import com.ywt.mg.web.controllers.MealOrderController;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -23,6 +25,7 @@ import java.net.URLDecoder;
|
|
|
|
|
|
@RequestMapping({"/hosp/mealOrder"})
|
|
@RequestMapping({"/hosp/mealOrder"})
|
|
@RestController("/hosp/mealOrder")
|
|
@RestController("/hosp/mealOrder")
|
|
|
|
+@MGRight
|
|
public class HospMealOrderController {
|
|
public class HospMealOrderController {
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(MealOrderController.class);
|
|
private final Logger logger = LoggerFactory.getLogger(MealOrderController.class);
|
|
@@ -42,7 +45,7 @@ public class HospMealOrderController {
|
|
|
|
|
|
|
|
|
|
@RequestMapping({"/downloadMealOrderList"})
|
|
@RequestMapping({"/downloadMealOrderList"})
|
|
- public BaseResponse downloadMealOrderList(MealOrderListRequest request) {
|
|
|
|
|
|
+ public BaseResponse downloadMealOrderList(@RequestBody MealOrderListRequest request) {
|
|
int currentAdminId = Checker.getIntegerValue(authService.getCurrentAdminId());
|
|
int currentAdminId = Checker.getIntegerValue(authService.getCurrentAdminId());
|
|
// request.setCurrentAdminId(currentAdminId);
|
|
// request.setCurrentAdminId(currentAdminId);
|
|
// 插入记录
|
|
// 插入记录
|
|
@@ -56,7 +59,7 @@ public class HospMealOrderController {
|
|
String name = "医院后台-订单管理-订餐订单列表列表";
|
|
String name = "医院后台-订单管理-订餐订单列表列表";
|
|
String fileName = "订餐订单列表";
|
|
String fileName = "订餐订单列表";
|
|
String excelSuffixFormat = ConstantDef.EXCEL_SUFFIX_FORMAT;
|
|
String excelSuffixFormat = ConstantDef.EXCEL_SUFFIX_FORMAT;
|
|
- String paramUrl = "/mealOrder/downloadMealOrderListNew";
|
|
|
|
|
|
+ String paramUrl = "/hosp/mealOrder/downloadMealOrderList";
|
|
String paramJson = JsonSerializer.toJson(request);
|
|
String paramJson = JsonSerializer.toJson(request);
|
|
downloadRecordService.getOrInsertDownloadRecord(downloadRecordId, name, fileName + excelSuffixFormat, paramUrl, paramJson);
|
|
downloadRecordService.getOrInsertDownloadRecord(downloadRecordId, name, fileName + excelSuffixFormat, paramUrl, paramJson);
|
|
Thread t = new Thread() {
|
|
Thread t = new Thread() {
|