erp 代码权限修改
This commit is contained in:
@@ -103,7 +103,7 @@ public class ErpAssetController {
|
|||||||
|
|
||||||
@PostMapping("/getErpAssetTask")
|
@PostMapping("/getErpAssetTask")
|
||||||
@Operation(summary = "定时获得erp更新资产卡片")
|
@Operation(summary = "定时获得erp更新资产卡片")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-asset:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-asset:sync')")
|
||||||
public CommonResult<Boolean> getErpAssetTask() {
|
public CommonResult<Boolean> getErpAssetTask() {
|
||||||
erpAssetService.callErpRfcInterface();
|
erpAssetService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpBomController {
|
|||||||
|
|
||||||
@PostMapping("/getErpBomTask")
|
@PostMapping("/getErpBomTask")
|
||||||
@Operation(summary = "定时获得erp更新物料清单(BOM)")
|
@Operation(summary = "定时获得erp更新物料清单(BOM)")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-bom:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-bom:sync')")
|
||||||
public CommonResult<Boolean> getErpBomTask() {
|
public CommonResult<Boolean> getErpBomTask() {
|
||||||
erpBomService.callErpRfcInterface();
|
erpBomService.callErpRfcInterface();
|
||||||
return CommonResult.success(true);
|
return CommonResult.success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpCompanyController {
|
|||||||
|
|
||||||
@PostMapping("/getErpCompanyTask")
|
@PostMapping("/getErpCompanyTask")
|
||||||
@Operation(summary = "定时获得erp更新公司")
|
@Operation(summary = "定时获得erp更新公司")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-company:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-company:sync')")
|
||||||
public CommonResult<Boolean> getErpCompanyTask() {
|
public CommonResult<Boolean> getErpCompanyTask() {
|
||||||
erpCompanyService.callErpRfcInterface();
|
erpCompanyService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ public class ErpContractController {
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建ERP合同映射")
|
@Operation(summary = "创建ERP合同映射")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:create')")
|
||||||
public CommonResult<ErpContractRespVO> createErpContract(@Valid @RequestBody ErpContractSaveReqVO createReqVO) {
|
public CommonResult<ErpContractRespVO> createErpContract(@Valid @RequestBody ErpContractSaveReqVO createReqVO) {
|
||||||
return success(erpContractService.createErpContract(createReqVO));
|
return success(erpContractService.createErpContract(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新ERP合同映射")
|
@Operation(summary = "更新ERP合同映射")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:update')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:update')")
|
||||||
public CommonResult<Boolean> updateErpContract(@Valid @RequestBody ErpContractSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateErpContract(@Valid @RequestBody ErpContractSaveReqVO updateReqVO) {
|
||||||
erpContractService.updateErpContract(updateReqVO);
|
erpContractService.updateErpContract(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -56,7 +56,7 @@ public class ErpContractController {
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除ERP合同映射")
|
@Operation(summary = "删除ERP合同映射")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:delete')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:delete')")
|
||||||
public CommonResult<Boolean> deleteErpContract(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteErpContract(@RequestParam("id") Long id) {
|
||||||
erpContractService.deleteErpContract(id);
|
erpContractService.deleteErpContract(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -65,7 +65,7 @@ public class ErpContractController {
|
|||||||
@DeleteMapping("/delete-list")
|
@DeleteMapping("/delete-list")
|
||||||
@Parameter(name = "ids", description = "编号", required = true)
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
@Operation(summary = "批量删除ERP合同映射")
|
@Operation(summary = "批量删除ERP合同映射")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:delete')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:delete')")
|
||||||
public CommonResult<Boolean> deleteErpContractList(@RequestBody BatchDeleteReqVO req) {
|
public CommonResult<Boolean> deleteErpContractList(@RequestBody BatchDeleteReqVO req) {
|
||||||
erpContractService.deleteErpContractListByIds(req.getIds());
|
erpContractService.deleteErpContractListByIds(req.getIds());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -74,7 +74,7 @@ public class ErpContractController {
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得ERP合同映射")
|
@Operation(summary = "获得ERP合同映射")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:query')")
|
||||||
public CommonResult<ErpContractRespVO> getErpContract(@RequestParam("id") Long id) {
|
public CommonResult<ErpContractRespVO> getErpContract(@RequestParam("id") Long id) {
|
||||||
ErpContractDO erpContract = erpContractService.getErpContract(id);
|
ErpContractDO erpContract = erpContractService.getErpContract(id);
|
||||||
return success(BeanUtils.toBean(erpContract, ErpContractRespVO.class));
|
return success(BeanUtils.toBean(erpContract, ErpContractRespVO.class));
|
||||||
@@ -82,7 +82,7 @@ public class ErpContractController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得ERP合同映射分页")
|
@Operation(summary = "获得ERP合同映射分页")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:query')")
|
||||||
public CommonResult<PageResult<ErpContractRespVO>> getErpContractPage(@Valid ErpContractPageReqVO pageReqVO) {
|
public CommonResult<PageResult<ErpContractRespVO>> getErpContractPage(@Valid ErpContractPageReqVO pageReqVO) {
|
||||||
PageResult<ErpContractDO> pageResult = erpContractService.getErpContractPage(pageReqVO);
|
PageResult<ErpContractDO> pageResult = erpContractService.getErpContractPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, ErpContractRespVO.class));
|
return success(BeanUtils.toBean(pageResult, ErpContractRespVO.class));
|
||||||
@@ -90,7 +90,7 @@ public class ErpContractController {
|
|||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出ERP合同映射 Excel")
|
@Operation(summary = "导出ERP合同映射 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('bse:erp-contract:export')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:export')")
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
public void exportErpContractExcel(@Valid ErpContractPageReqVO pageReqVO,
|
public void exportErpContractExcel(@Valid ErpContractPageReqVO pageReqVO,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
@@ -103,7 +103,7 @@ public class ErpContractController {
|
|||||||
|
|
||||||
@PostMapping("/getErpContractTask")
|
@PostMapping("/getErpContractTask")
|
||||||
@Operation(summary = "定时获得erp更新合同")
|
@Operation(summary = "定时获得erp更新合同")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-contract:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-contract:sync')")
|
||||||
public CommonResult<Boolean> getErpContractTask() {
|
public CommonResult<Boolean> getErpContractTask() {
|
||||||
erpContractService.callErpRfcInterface();
|
erpContractService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpCostcenterController {
|
|||||||
|
|
||||||
@PostMapping("/getErpCostcenterTask")
|
@PostMapping("/getErpCostcenterTask")
|
||||||
@Operation(summary = "定时获得erp更新成本中心")
|
@Operation(summary = "定时获得erp更新成本中心")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:sync')")
|
||||||
public CommonResult<Boolean> getErpCostcenterTask() {
|
public CommonResult<Boolean> getErpCostcenterTask() {
|
||||||
erpCostcenterService.callErpRfcInterface();
|
erpCostcenterService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpCustomerController {
|
|||||||
|
|
||||||
@PostMapping("/getErpCustomerTask")
|
@PostMapping("/getErpCustomerTask")
|
||||||
@Operation(summary = "定时获得erp更新客商主数据")
|
@Operation(summary = "定时获得erp更新客商主数据")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-customer:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-customer:sync')")
|
||||||
public CommonResult<Boolean> getErpCustomerTask() {
|
public CommonResult<Boolean> getErpCustomerTask() {
|
||||||
erpCustomerService.callErpRfcInterface();
|
erpCustomerService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ public class ErpFactoryController {
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建ERP工厂")
|
@Operation(summary = "创建ERP工厂")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
|
||||||
public CommonResult<ErpFactoryRespVO> createErpFactory(@Valid @RequestBody ErpFactorySaveReqVO createReqVO) {
|
public CommonResult<ErpFactoryRespVO> createErpFactory(@Valid @RequestBody ErpFactorySaveReqVO createReqVO) {
|
||||||
return success(erpFactoryService.createErpFactory(createReqVO));
|
return success(erpFactoryService.createErpFactory(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新ERP工厂")
|
@Operation(summary = "更新ERP工厂")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:update')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:update')")
|
||||||
public CommonResult<Boolean> updateErpFactory(@Valid @RequestBody ErpFactorySaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateErpFactory(@Valid @RequestBody ErpFactorySaveReqVO updateReqVO) {
|
||||||
erpFactoryService.updateErpFactory(updateReqVO);
|
erpFactoryService.updateErpFactory(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -56,7 +56,7 @@ public class ErpFactoryController {
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除ERP工厂")
|
@Operation(summary = "删除ERP工厂")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:delete')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:delete')")
|
||||||
public CommonResult<Boolean> deleteErpFactory(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteErpFactory(@RequestParam("id") Long id) {
|
||||||
erpFactoryService.deleteErpFactory(id);
|
erpFactoryService.deleteErpFactory(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -65,7 +65,7 @@ public class ErpFactoryController {
|
|||||||
@DeleteMapping("/delete-list")
|
@DeleteMapping("/delete-list")
|
||||||
@Parameter(name = "ids", description = "编号", required = true)
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
@Operation(summary = "批量删除ERP工厂")
|
@Operation(summary = "批量删除ERP工厂")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:delete')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:delete')")
|
||||||
public CommonResult<Boolean> deleteErpFactoryList(@RequestBody BatchDeleteReqVO req) {
|
public CommonResult<Boolean> deleteErpFactoryList(@RequestBody BatchDeleteReqVO req) {
|
||||||
erpFactoryService.deleteErpFactoryListByIds(req.getIds());
|
erpFactoryService.deleteErpFactoryListByIds(req.getIds());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -74,7 +74,7 @@ public class ErpFactoryController {
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得ERP工厂")
|
@Operation(summary = "获得ERP工厂")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:query')")
|
||||||
public CommonResult<ErpFactoryRespVO> getErpFactory(@RequestParam("id") Long id) {
|
public CommonResult<ErpFactoryRespVO> getErpFactory(@RequestParam("id") Long id) {
|
||||||
ErpFactoryDO erpFactory = erpFactoryService.getErpFactory(id);
|
ErpFactoryDO erpFactory = erpFactoryService.getErpFactory(id);
|
||||||
return success(BeanUtils.toBean(erpFactory, ErpFactoryRespVO.class));
|
return success(BeanUtils.toBean(erpFactory, ErpFactoryRespVO.class));
|
||||||
@@ -82,7 +82,7 @@ public class ErpFactoryController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得ERP工厂分页")
|
@Operation(summary = "获得ERP工厂分页")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:query')")
|
||||||
public CommonResult<PageResult<ErpFactoryRespVO>> getErpFactoryPage(@Valid ErpFactoryPageReqVO pageReqVO) {
|
public CommonResult<PageResult<ErpFactoryRespVO>> getErpFactoryPage(@Valid ErpFactoryPageReqVO pageReqVO) {
|
||||||
PageResult<ErpFactoryDO> pageResult = erpFactoryService.getErpFactoryPage(pageReqVO);
|
PageResult<ErpFactoryDO> pageResult = erpFactoryService.getErpFactoryPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, ErpFactoryRespVO.class));
|
return success(BeanUtils.toBean(pageResult, ErpFactoryRespVO.class));
|
||||||
@@ -90,7 +90,7 @@ public class ErpFactoryController {
|
|||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出ERP工厂 Excel")
|
@Operation(summary = "导出ERP工厂 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:export')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:export')")
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
public void exportErpFactoryExcel(@Valid ErpFactoryPageReqVO pageReqVO,
|
public void exportErpFactoryExcel(@Valid ErpFactoryPageReqVO pageReqVO,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
@@ -103,7 +103,7 @@ public class ErpFactoryController {
|
|||||||
|
|
||||||
@PutMapping("/enable-list")
|
@PutMapping("/enable-list")
|
||||||
@Operation(summary = "批量更新")
|
@Operation(summary = "批量更新")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:update')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:update')")
|
||||||
public CommonResult<Boolean> enableFactoryList(@RequestBody List<ErpFactoryRespVO> saveReqVOS) {
|
public CommonResult<Boolean> enableFactoryList(@RequestBody List<ErpFactoryRespVO> saveReqVOS) {
|
||||||
erpFactoryService.enableFactoryList(saveReqVOS);
|
erpFactoryService.enableFactoryList(saveReqVOS);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -111,7 +111,7 @@ public class ErpFactoryController {
|
|||||||
|
|
||||||
@PostMapping("/getErpFactoryTask")
|
@PostMapping("/getErpFactoryTask")
|
||||||
@Operation(summary = "定时获得erp工厂数据")
|
@Operation(summary = "定时获得erp工厂数据")
|
||||||
@PreAuthorize("@ss.hasPermission('base:erp-factory:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:sync')")
|
||||||
public CommonResult<Boolean> getErpFactoryTask() {
|
public CommonResult<Boolean> getErpFactoryTask() {
|
||||||
erpFactoryService.callErpRfcInterface();
|
erpFactoryService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpInternalOrderController {
|
|||||||
|
|
||||||
@PostMapping("/getErpInternalOrderTask")
|
@PostMapping("/getErpInternalOrderTask")
|
||||||
@Operation(summary = "定时获得erp更新内部订单数据")
|
@Operation(summary = "定时获得erp更新内部订单数据")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:sync')")
|
||||||
public CommonResult<Boolean> getErpInternalOrderTask() {
|
public CommonResult<Boolean> getErpInternalOrderTask() {
|
||||||
erpInternalOrderService.callErpRfcInterface();
|
erpInternalOrderService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public class ErpMaterialController {
|
|||||||
|
|
||||||
@PostMapping("/getErpMaterialTask")
|
@PostMapping("/getErpMaterialTask")
|
||||||
@Operation(summary = "定时获得erp更新物料")
|
@Operation(summary = "定时获得erp更新物料")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-material:sync')")
|
||||||
public CommonResult<Boolean> getErpMaterialTask() {
|
public CommonResult<Boolean> getErpMaterialTask() {
|
||||||
erpMaterialService.callErpRfcInterface();
|
erpMaterialService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ public class ErpProcessController {
|
|||||||
|
|
||||||
@PostMapping("/getErpProcessTask")
|
@PostMapping("/getErpProcessTask")
|
||||||
@Operation(summary = "定时获得erp更新工艺路线")
|
@Operation(summary = "定时获得erp更新工艺路线")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-process:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-process:sync')")
|
||||||
public CommonResult<Boolean> getErpProcessTask() {
|
public CommonResult<Boolean> getErpProcessTask() {
|
||||||
erpProcessService.callErpRfcInterface();
|
erpProcessService.callErpRfcInterface();
|
||||||
return success(true);
|
return success(true);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user