修改定时任务返回
This commit is contained in:
@@ -23,7 +23,6 @@ public class ErpSubmitReqDTO {
|
|||||||
* "sign": 签名,uuid+srcsys+密码,MD5 32位小写签名,密码另行约定
|
* "sign": 签名,uuid+srcsys+密码,MD5 32位小写签名,密码另行约定
|
||||||
* "req": {具体参数,参见RFC功能列表}
|
* "req": {具体参数,参见RFC功能列表}
|
||||||
*/
|
*/
|
||||||
private String srcsys;
|
|
||||||
private String funcnr;
|
private String funcnr;
|
||||||
private String bskey;
|
private String bskey;
|
||||||
private String usrid;
|
private String usrid;
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public ResponseEntity<String> pushDataToErp(ErpSubmitReqDTO reqDTO) {
|
|||||||
JSONObject requestBody = new JSONObject();
|
JSONObject requestBody = new JSONObject();
|
||||||
requestBody.put("uuid", UUID.randomUUID().toString());
|
requestBody.put("uuid", UUID.randomUUID().toString());
|
||||||
requestBody.put("sapsys", sapsys);
|
requestBody.put("sapsys", sapsys);
|
||||||
requestBody.put("srcsys", reqDTO.getSrcsys());
|
requestBody.put("srcsys", "DSC");
|
||||||
requestBody.put("funcnr", reqDTO.getFuncnr());
|
requestBody.put("funcnr", reqDTO.getFuncnr());
|
||||||
requestBody.put("bskey", reqDTO.getBskey());
|
requestBody.put("bskey", reqDTO.getBskey());
|
||||||
requestBody.put("usrid", reqDTO.getUsrid());
|
requestBody.put("usrid", reqDTO.getUsrid());
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ 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:create')")
|
||||||
public void getErpCompanyTask() {
|
public CommonResult<Boolean> getErpCompanyTask() {
|
||||||
erpAssetService.callErpRfcInterface();
|
erpAssetService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,8 +104,9 @@ 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:create')")
|
||||||
public void getErpBomTask() {
|
public CommonResult<Boolean> getErpBomTask() {
|
||||||
erpBomService.callErpRfcInterface();
|
erpBomService.callErpRfcInterface();
|
||||||
|
return CommonResult.success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/submitDataToErp")
|
@PostMapping("/submitDataToErp")
|
||||||
|
|||||||
@@ -104,8 +104,9 @@ 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:create')")
|
||||||
public void getErpCompanyTask() {
|
public CommonResult<Boolean> getErpCompanyTask() {
|
||||||
erpCompanyService.callErpRfcInterface();
|
erpCompanyService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ 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:create')")
|
||||||
public void getErpContractTask() {
|
public CommonResult<Boolean> getErpContractTask() {
|
||||||
erpContractService.callErpRfcInterface();
|
erpContractService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,8 +104,9 @@ 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:create')")
|
||||||
public void getErpCostcenterTask() {
|
public CommonResult<Boolean> getErpCostcenterTask() {
|
||||||
erpCostcenterService.callErpRfcInterface();
|
erpCostcenterService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ 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:create')")
|
||||||
public void getErpCustomerTask() {
|
public CommonResult<Boolean> getErpCustomerTask() {
|
||||||
erpCustomerService.callErpRfcInterface();
|
erpCustomerService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,8 +104,9 @@ public class ErpFactoryController {
|
|||||||
@PostMapping("/getErpFactoryTask")
|
@PostMapping("/getErpFactoryTask")
|
||||||
@Operation(summary = "定时获得erp工厂数据")
|
@Operation(summary = "定时获得erp工厂数据")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
|
||||||
public void getErpFactoryTask() {
|
public CommonResult<Boolean> getErpFactoryTask() {
|
||||||
erpFactoryService.callErpRfcInterface();
|
erpFactoryService.callErpRfcInterface();
|
||||||
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -104,8 +104,9 @@ 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:create')")
|
||||||
public void getErpInternalOrderTask() {
|
public CommonResult<Boolean> getErpInternalOrderTask() {
|
||||||
erpInternalOrderService.callErpRfcInterface();
|
erpInternalOrderService.callErpRfcInterface();
|
||||||
|
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