|
|
@ -5,6 +5,7 @@ import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.constant.BasicProcessStatus;
|
|
|
|
import com.glxp.api.constant.BasicProcessStatus;
|
|
|
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsExportLogEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrProductsExportLogEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
|
|
|
|
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
|
|
|
|
import com.glxp.api.http.ErpBasicClient;
|
|
|
|
import com.glxp.api.http.ErpBasicClient;
|
|
|
@ -118,6 +119,11 @@ public class ThrProductsExportLogController {
|
|
|
|
@PostMapping("/udiwms/thrProducts/importLog/export")
|
|
|
|
@PostMapping("/udiwms/thrProducts/importLog/export")
|
|
|
|
public BaseResponse excelDownload(@RequestBody ThrProductsExportRequest thrProductsExportRequest) {
|
|
|
|
public BaseResponse excelDownload(@RequestBody ThrProductsExportRequest thrProductsExportRequest) {
|
|
|
|
ThrProductsExportLogEntity thrProductsExportLogEntity = new ThrProductsExportLogEntity();
|
|
|
|
ThrProductsExportLogEntity thrProductsExportLogEntity = new ThrProductsExportLogEntity();
|
|
|
|
|
|
|
|
FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest();
|
|
|
|
|
|
|
|
filterThrProductsRequest.setThirdSysFk(thrProductsExportRequest.getThirdSys());
|
|
|
|
|
|
|
|
filterThrProductsRequest.setThirdSys(thrProductsExportRequest.getThirdSys());
|
|
|
|
|
|
|
|
List<ThrProductsEntity> thrProductsEntities = thrProductsService.filterThrProducts1(filterThrProductsRequest);
|
|
|
|
|
|
|
|
thrProductsExportRequest.setThrProductsEntities(thrProductsEntities);
|
|
|
|
thrProductsExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_PROCESS);
|
|
|
|
thrProductsExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_PROCESS);
|
|
|
|
String genKey = CustomUtil.getId();
|
|
|
|
String genKey = CustomUtil.getId();
|
|
|
|
String fileName = "D:\\udiwms\\exportFile\\" + "第三方产品信息" + genKey + ".UpperIn";
|
|
|
|
String fileName = "D:\\udiwms\\exportFile\\" + "第三方产品信息" + genKey + ".UpperIn";
|
|
|
|