erp定时任务
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ public class OftenEnum {
|
||||
//接口编号枚举
|
||||
public enum FuncnrEnum {
|
||||
公司代码("001", "BUKRS", ""),
|
||||
工厂信息("002", "", ""),
|
||||
工厂信息("002", "WERKS", ""),
|
||||
客商信息("003", "PARTNER", "DATUM"),
|
||||
成本中心("004", "", ""),
|
||||
内部订单("005", "", ""),
|
||||
@@ -22,11 +22,11 @@ public class OftenEnum {
|
||||
采购组织("007", "", ""),
|
||||
销售组织("008", "", ""),
|
||||
合同信息("009", "", ""),
|
||||
资产卡片("010", "", ""),
|
||||
资产卡片("010", "ANLN1-BUKRS", "ERDAT"),
|
||||
库存信息("011", "", ""),
|
||||
辅组编码("012", "", ""),
|
||||
生产订单("013", "", ""),
|
||||
BOM清单("014", "", ""),
|
||||
BOM清单("014", "MATNR-STLAL-WERKS", ""),
|
||||
工艺路线("015", "", ""),
|
||||
生产版本("016", "", ""),
|
||||
生产投料("017", "", ""),
|
||||
|
||||
@@ -101,4 +101,11 @@ public class ErpAssetController {
|
||||
BeanUtils.toBean(list, ErpAssetRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpAssetTask")
|
||||
@Operation(summary = "定时获得erp更新资产卡片")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-asset:query')")
|
||||
public void getErpCompanyTask() {
|
||||
erpAssetService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,4 +101,11 @@ public class ErpBomController {
|
||||
BeanUtils.toBean(list, ErpBomRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpBomTask")
|
||||
@Operation(summary = "定时获得erp更新物料清单(BOM)")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-bom:query')")
|
||||
public void getErpBomTask() {
|
||||
erpBomService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,4 +101,10 @@ public class ErpContractController {
|
||||
BeanUtils.toBean(list, ErpContractRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpContractTask")
|
||||
@Operation(summary = "定时获得erp更新合同")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-contract:query')")
|
||||
public void getErpContractTask() {
|
||||
erpContractService.callErpRfcInterface();
|
||||
}
|
||||
}
|
||||
@@ -101,4 +101,12 @@ public class ErpCostcenterController {
|
||||
BeanUtils.toBean(list, ErpCostcenterRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpCostcenterTask")
|
||||
@Operation(summary = "定时获得erp更新成本中心")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:query')")
|
||||
public void getErpCostcenterTask() {
|
||||
erpCostcenterService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -101,4 +101,11 @@ public class ErpFactoryController {
|
||||
BeanUtils.toBean(list, ErpFactoryRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpFactoryTask")
|
||||
@Operation(summary = "定时获得erp工厂数据")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
|
||||
public void getErpFactoryTask() {
|
||||
erpFactoryService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,4 +101,11 @@ public class ErpInternalOrderController {
|
||||
BeanUtils.toBean(list, ErpInternalOrderRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpInternalOrderTask")
|
||||
@Operation(summary = "定时获得erp更新内部订单数据")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:create')")
|
||||
public void getErpInternalOrderTask() {
|
||||
erpInternalOrderService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,4 +101,11 @@ public class ErpProcessController {
|
||||
BeanUtils.toBean(list, ErpProcessRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpProcessTask")
|
||||
@Operation(summary = "定时获得erp更新工艺路线")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-process:create')")
|
||||
public void getErpProcessTask() {
|
||||
erpProcessService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -101,4 +101,11 @@ public class ErpProductiveOrderController {
|
||||
BeanUtils.toBean(list, ErpProductiveOrderRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/getErpProductiveOrderTask")
|
||||
@Operation(summary = "定时获得erp更新生产订单")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:create')")
|
||||
public void getErpProductiveOrderTask() {
|
||||
erpProductiveOrderService.callErpRfcInterface();
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user