|
@@ -9,9 +9,13 @@ import com.jeeplus.core.excel.EasyExcelUtils;
|
|
|
import com.jeeplus.core.excel.ExcelOptions;
|
|
|
import com.jeeplus.core.excel.annotation.ExportMode;
|
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
+import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
+import com.jeeplus.sys.utils.UserUtils;
|
|
|
import com.jeeplus.test.utils.excel.MerchantCompanyEasyExcel;
|
|
|
import com.jeeplus.test.wdt.merchantCompany.service.MerchantCompanyService;
|
|
|
import com.jeeplus.test.wdt.merchantCompany.service.dto.MerchantCompanyDTO;
|
|
|
+import com.jeeplus.test.wdt.merchantCompany.service.dto.MerchantCompanyExportDTO;
|
|
|
+import com.jeeplus.test.wdt.merchantCompany.service.dto.SettledPlatformDTO;
|
|
|
import com.jeeplus.test.wdt.merchantCompany.service.mapstuct.MerchantCompanyWrapper;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -71,7 +75,7 @@ public class MerchantCompanyController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 保存请假表单
|
|
|
+ * 保存商家基本信息
|
|
|
*/
|
|
|
@ApiLog("保存商家基本信息")
|
|
|
@ApiOperation(value = "保存商家基本信息")
|
|
@@ -122,6 +126,23 @@ public class MerchantCompanyController {
|
|
|
public void importFileTemplate(HttpServletResponse response) throws IOException {
|
|
|
String fileName = "入驻商家数据导入模板.xlsx";
|
|
|
List<MerchantCompanyDTO> list = Lists.newArrayList();
|
|
|
+ MerchantCompanyDTO info = new MerchantCompanyDTO();
|
|
|
+ info.setCompanyName("测试公司名称");
|
|
|
+ info.setLinkmanName("测试联系人名称");
|
|
|
+ info.setLinkmanPhone("138xxxx8888");
|
|
|
+ info.setPractitionerCount(15);
|
|
|
+ info.setAnnualSales("100000");
|
|
|
+ info.setOnlineRetailSales("200000");
|
|
|
+ info.setSettledPlatformStr("淘宝,抖音(使用英文','隔开)");
|
|
|
+ SettledPlatformDTO settledPlatformDTO = new SettledPlatformDTO();
|
|
|
+ settledPlatformDTO.setName("抖音");
|
|
|
+ SettledPlatformDTO settledPlatformDTO1 = new SettledPlatformDTO();
|
|
|
+ settledPlatformDTO1.setName("淘宝");
|
|
|
+ List<SettledPlatformDTO> settledPlatformDTOList = Lists.newArrayList();
|
|
|
+ settledPlatformDTOList.add(settledPlatformDTO);
|
|
|
+ settledPlatformDTOList.add(settledPlatformDTO1);
|
|
|
+ info.setSettledPlatformDTOList(settledPlatformDTOList);
|
|
|
+ list.add (info);
|
|
|
EasyExcelUtils.newInstance ( merchantCompanyService, merchantCompanyWrapper ).exportExcel ( list, "入驻商家数据", MerchantCompanyDTO.class, fileName, null, response );
|
|
|
}
|
|
|
|
|
@@ -152,7 +173,19 @@ public class MerchantCompanyController {
|
|
|
page.setCurrent(0);
|
|
|
result = merchantCompanyService.findPage(page, merchantCompanyDTO).getRecords();
|
|
|
}
|
|
|
- EasyExcelUtils.newInstance ( merchantCompanyService, merchantCompanyWrapper ).exportExcel ( result, options.getSheetName ( ), MerchantCompanyDTO.class, fileName,options.getExportFields (), response );
|
|
|
+ EasyExcelUtils.newInstance ( merchantCompanyService, merchantCompanyWrapper ).exportExcel ( result, options.getSheetName ( ), MerchantCompanyExportDTO.class, fileName,options.getExportFields (), response );
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 入驻商家列表数据(大屏数据)
|
|
|
+ */
|
|
|
+ @ApiLog("查询入驻商家列表数据(大屏数据)")
|
|
|
+ @ApiOperation(value = "查询入驻商家列表数据(大屏数据)")
|
|
|
+ @GetMapping("getListJson")
|
|
|
+ public List<MerchantCompanyDTO> getListJson(MerchantCompanyDTO merchantCompanyDTO) throws Exception {
|
|
|
+ List<MerchantCompanyDTO> result = merchantCompanyService.getListJson (merchantCompanyDTO);
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
}
|