修改 供应商字典导出id问题

pro
wangwei 2 years ago
parent 035c05c4f5
commit a5db577785

@ -84,8 +84,10 @@ public class BasicGenExcelService {
excelData.add(head);
//选中导出
if (basicCorpsExportRequest.getIds() != null && basicCorpsExportRequest.getIds().size() > 0) {
List<Integer> ids = basicCorpsExportRequest.getIds();
for (Integer id : ids) {
// List<Integer> ids = basicCorpsExportRequest.getIds();
List<Long> ids =basicCorpsExportRequest.getIds();
for (Long id : ids) {
BasicUnitMaintainFilterRequest filterRequest = new BasicUnitMaintainFilterRequest();
filterRequest.setId(id);
List<List<String>> genDatas = genExcelData(filterRequest);

@ -67,7 +67,8 @@ public class BasicGenJsonService {
List<BasicCorpEntity> unitMaintainEntities = new ArrayList<>();
if (basicCorpsExportRequest.getIds() != null && basicCorpsExportRequest.getIds().size() > 0) {
List<Integer> ids = basicCorpsExportRequest.getIds();
// List<Integer> ids = basicCorpsExportRequest.getIds();
List<Long> ids = basicCorpsExportRequest.getIds();
ids.forEach(id -> {
BasicUnitMaintainFilterRequest request = new BasicUnitMaintainFilterRequest();
request.setId(id);
@ -97,7 +98,8 @@ public class BasicGenJsonService {
BasicCorpExportLogResponse exportData = new BasicCorpExportLogResponse();
List<BasicCorpEntity> unitMaintainEntities = new ArrayList<>();
if (corpsExportRequest.getIds() != null && corpsExportRequest.getIds().size() > 0) {
List<Integer> ids = corpsExportRequest.getIds();
// List<Integer> ids = corpsExportRequest.getIds();
List<Long> ids = corpsExportRequest.getIds();
ids.forEach(id -> {
BasicUnitMaintainFilterRequest request = new BasicUnitMaintainFilterRequest();
request.setId(id);

@ -6,7 +6,7 @@ import java.util.List;
@Data
public class BasicCorpsExportRequest {
List<Integer> ids;
List<Long> ids;
private Integer id;
private String key;
private String unitId;

@ -9,7 +9,7 @@ import java.util.List;
@Data
public class BasicUnitMaintainFilterRequest extends ListPageRequest {
private Integer id;
private Long id;
private String key;
private String unitId;
private String name;

Loading…
Cancel
Save