Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -101,4 +101,12 @@ public class AccountController {
|
||||
BeanUtils.toBean(list, AccountRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新账户条款")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:update')")
|
||||
public CommonResult<Boolean> enableAccountList(@RequestBody List<AccountSaveReqVO> saveReqVOS) {
|
||||
accountService.enableAccountList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import com.zt.plat.module.base.dal.dataobject.base.CompanyRelaDeptDO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -86,22 +87,9 @@ public class CompanyRelativityController {
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得公司关系分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:query')")
|
||||
public CommonResult<PageResult<CompanyRelativityRespVO>> getCompanyRelativityPage(@Valid CompanyRelativityPageReqVO pageReqVO) {
|
||||
PageResult<CompanyRelativityDO> pageResult = companyRelativityService.getCompanyRelativityPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CompanyRelativityRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出公司关系 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportCompanyRelativityExcel(@Valid CompanyRelativityPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<CompanyRelativityDO> list = companyRelativityService.getCompanyRelativityPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "公司关系.xls", "数据", CompanyRelativityRespVO.class,
|
||||
BeanUtils.toBean(list, CompanyRelativityRespVO.class));
|
||||
public CommonResult<PageResult<CompanyRelaDeptDO>> getCompanyRelativityPage(@Valid CompanyRelativityPageReqVO pageReqVO) {
|
||||
PageResult<CompanyRelaDeptDO> pageResult = companyRelativityService.getCompanyRelativityPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CompanyRelaDeptDO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.AccountSaveReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ContactPageReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ContactRespVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ContactSaveReqVO;
|
||||
@@ -101,4 +102,11 @@ public class ContactController {
|
||||
BeanUtils.toBean(list, ContactRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:update')")
|
||||
public CommonResult<Boolean> enableContactList(@RequestBody List<ContactSaveReqVO> saveReqVOS) {
|
||||
contactService.enableContactList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ContactSaveReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ElementPageReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ElementRespVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ElementSaveReqVO;
|
||||
@@ -101,4 +102,11 @@ public class ElementController {
|
||||
BeanUtils.toBean(list, ElementRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:update')")
|
||||
public CommonResult<Boolean> enableElementList(@RequestBody List<ElementRespVO> saveReqVOS) {
|
||||
elementService.enableElementList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.ContactSaveReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.FactoryPageReqVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.FactoryRespVO;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.FactorySaveReqVO;
|
||||
@@ -101,4 +102,11 @@ public class FactoryController {
|
||||
BeanUtils.toBean(list, FactoryRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:update')")
|
||||
public CommonResult<Boolean> enableFactoryList(@RequestBody List<FactoryRespVO> saveReqVOS) {
|
||||
factoryService.enableFactoryList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -104,4 +104,11 @@ public class MaterialDestroyController {
|
||||
BeanUtils.toBean(list, MaterialDestroyRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:update')")
|
||||
public CommonResult<Boolean> enableMaterialDestroyList(@RequestBody List<MaterialDestroyRespVO> saveReqVOS) {
|
||||
materialDestroyService.enableMaterialDestroyList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -104,4 +104,12 @@ public class MaterialOtherController {
|
||||
BeanUtils.toBean(list, MaterialOtherRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:update')")
|
||||
public CommonResult<Boolean> enableMaterialOtherList(@RequestBody List<MaterialOtherRespVO> saveReqVOS) {
|
||||
materialOtherService.enableMaterialOtherList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -104,4 +104,12 @@ public class WarehouseController {
|
||||
BeanUtils.toBean(list, WarehouseRespVO.class));
|
||||
}
|
||||
|
||||
@PutMapping("/enable-list")
|
||||
@Operation(summary = "批量更新")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:update')")
|
||||
public CommonResult<Boolean> enableWarehouseList(@RequestBody List<WarehouseRespVO> saveReqVOS) {
|
||||
warehouseService.enableWarehouseList(saveReqVOS);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,6 +23,12 @@ public class CompanyRelativityPageReqVO extends PageParam {
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "公司名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "ERP公司名称")
|
||||
private String erpName;
|
||||
|
||||
@Schema(description = "负责人")
|
||||
private String manager;
|
||||
|
||||
|
||||
@@ -19,22 +19,4 @@ public class CompanyRelativitySaveReqVO {
|
||||
@Schema(description = "供应链公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链公司编码不能为空")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "供应链公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链公司编号不能为空")
|
||||
private Long companyId;
|
||||
|
||||
@Schema(description = "供应链公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链公司名称不能为空")
|
||||
private String companyName;
|
||||
|
||||
@Schema(description = "供应链部门编号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链部门名称不能为空")
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description = "供应链部门名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链部门名称不能为空")
|
||||
private String deptName;
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user