|
@@ -10,6 +10,7 @@ import com.idea.customerManagement.dto.CustomerManagementDto;
|
|
|
import com.idea.customerManagement.dto.RoomSelectionInfoDto;
|
|
|
import com.idea.customerManagement.excel.CustomerManagementExcel;
|
|
|
import com.idea.customerManagement.service.CustomerManagementService;
|
|
|
+import com.idea.invoice.task.InvoiceTask;
|
|
|
import com.idea.util.ExcelUtils;
|
|
|
import com.rockstar.common.base.BaseController;
|
|
|
import com.rockstar.common.domain.AjaxResult;
|
|
@@ -36,6 +37,8 @@ public class CustomerManagementController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private CustomerManagementService modelService;
|
|
|
+ @Autowired
|
|
|
+ private InvoiceTask invoiceTask;
|
|
|
|
|
|
/**
|
|
|
* 分页
|
|
@@ -121,6 +124,10 @@ public class CustomerManagementController extends BaseController {
|
|
|
@ResponseBody
|
|
|
public AjaxResult handleImport(@RequestParam("file") MultipartFile file) throws IOException {
|
|
|
JSONObject jsonObject = modelService.handleImport(file);
|
|
|
+ // 启动一个新的线程来触发另一个方法
|
|
|
+ new Thread(() -> {
|
|
|
+ invoiceTask.sendCustomer();
|
|
|
+ }).start();
|
|
|
return AjaxResult.success(jsonObject);
|
|
|
}
|
|
|
|