|
|
@ -45,6 +45,7 @@ import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.validation.Valid; |
|
|
|
import javax.validation.Valid; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
@ -160,6 +161,23 @@ public class BasicMaterialController extends BladeController { |
|
|
|
ExcelUtil.export(response, "物料基础信息数据" + DateUtil.time(), "物料基础信息数据表", list, BasicMaterialExcel.class); |
|
|
|
ExcelUtil.export(response, "物料基础信息数据" + DateUtil.time(), "物料基础信息数据表", list, BasicMaterialExcel.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 导出数据模板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@GetMapping("/export-basicMaterialMb") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
|
|
|
@ApiOperation(value = "导出数据模板", notes = "传入basicMaterial") |
|
|
|
|
|
|
|
public void exportBasicMaterialMb(@ApiIgnore @RequestParam Map<String, Object> basicMaterial, BladeUser bladeUser, HttpServletResponse response) { |
|
|
|
|
|
|
|
// QueryWrapper<BasicMaterialEntity> queryWrapper = Condition.getQueryWrapper(basicMaterial, BasicMaterialEntity.class);
|
|
|
|
|
|
|
|
// //if (!AuthUtil.isAdministrator()) {
|
|
|
|
|
|
|
|
// // queryWrapper.lambda().eq(BasicMaterial::getTenantId, bladeUser.getTenantId());
|
|
|
|
|
|
|
|
// //}
|
|
|
|
|
|
|
|
// queryWrapper.lambda().eq(BasicMaterialEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
|
|
|
|
|
|
|
// List<BasicMaterialExcel> list = basicMaterialService.exportBasicMaterial(queryWrapper);
|
|
|
|
|
|
|
|
List<BasicMaterialExcel> list = new ArrayList<>(); |
|
|
|
|
|
|
|
ExcelUtil.export(response, "物料基础信息数据模板" + DateUtil.time(), "物料基础信息数据模板表", list, BasicMaterialExcel.class); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 导入物料基础信息 |
|
|
|
* 导入物料基础信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|