修改定时任务返回
This commit is contained in:
@@ -23,7 +23,6 @@ public class ErpSubmitReqDTO {
|
||||
* "sign": 签名,uuid+srcsys+密码,MD5 32位小写签名,密码另行约定
|
||||
* "req": {具体参数,参见RFC功能列表}
|
||||
*/
|
||||
private String srcsys;
|
||||
private String funcnr;
|
||||
private String bskey;
|
||||
private String usrid;
|
||||
|
||||
@@ -93,7 +93,7 @@ public ResponseEntity<String> pushDataToErp(ErpSubmitReqDTO reqDTO) {
|
||||
JSONObject requestBody = new JSONObject();
|
||||
requestBody.put("uuid", UUID.randomUUID().toString());
|
||||
requestBody.put("sapsys", sapsys);
|
||||
requestBody.put("srcsys", reqDTO.getSrcsys());
|
||||
requestBody.put("srcsys", "DSC");
|
||||
requestBody.put("funcnr", reqDTO.getFuncnr());
|
||||
requestBody.put("bskey", reqDTO.getBskey());
|
||||
requestBody.put("usrid", reqDTO.getUsrid());
|
||||
|
||||
@@ -104,7 +104,8 @@ public class ErpAssetController {
|
||||
@PostMapping("/getErpAssetTask")
|
||||
@Operation(summary = "定时获得erp更新资产卡片")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-asset:create')")
|
||||
public void getErpCompanyTask() {
|
||||
public CommonResult<Boolean> getErpCompanyTask() {
|
||||
erpAssetService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -104,8 +104,9 @@ public class ErpBomController {
|
||||
@PostMapping("/getErpBomTask")
|
||||
@Operation(summary = "定时获得erp更新物料清单(BOM)")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-bom:create')")
|
||||
public void getErpBomTask() {
|
||||
public CommonResult<Boolean> getErpBomTask() {
|
||||
erpBomService.callErpRfcInterface();
|
||||
return CommonResult.success(true);
|
||||
}
|
||||
|
||||
@PostMapping("/submitDataToErp")
|
||||
|
||||
@@ -104,8 +104,9 @@ public class ErpCompanyController {
|
||||
@PostMapping("/getErpCompanyTask")
|
||||
@Operation(summary = "定时获得erp更新公司")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-company:create')")
|
||||
public void getErpCompanyTask() {
|
||||
public CommonResult<Boolean> getErpCompanyTask() {
|
||||
erpCompanyService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,8 @@ public class ErpContractController {
|
||||
@PostMapping("/getErpContractTask")
|
||||
@Operation(summary = "定时获得erp更新合同")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-contract:create')")
|
||||
public void getErpContractTask() {
|
||||
public CommonResult<Boolean> getErpContractTask() {
|
||||
erpContractService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -104,8 +104,9 @@ public class ErpCostcenterController {
|
||||
@PostMapping("/getErpCostcenterTask")
|
||||
@Operation(summary = "定时获得erp更新成本中心")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:create')")
|
||||
public void getErpCostcenterTask() {
|
||||
public CommonResult<Boolean> getErpCostcenterTask() {
|
||||
erpCostcenterService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,8 @@ public class ErpCustomerController {
|
||||
@PostMapping("/getErpCustomerTask")
|
||||
@Operation(summary = "定时获得erp更新客商主数据")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-customer:create')")
|
||||
public void getErpCustomerTask() {
|
||||
public CommonResult<Boolean> getErpCustomerTask() {
|
||||
erpCustomerService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
}
|
||||
@@ -104,8 +104,9 @@ public class ErpFactoryController {
|
||||
@PostMapping("/getErpFactoryTask")
|
||||
@Operation(summary = "定时获得erp工厂数据")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
|
||||
public void getErpFactoryTask() {
|
||||
public CommonResult<Boolean> getErpFactoryTask() {
|
||||
erpFactoryService.callErpRfcInterface();
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -104,8 +104,9 @@ public class ErpInternalOrderController {
|
||||
@PostMapping("/getErpInternalOrderTask")
|
||||
@Operation(summary = "定时获得erp更新内部订单数据")
|
||||
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:create')")
|
||||
public void getErpInternalOrderTask() {
|
||||
public CommonResult<Boolean> getErpInternalOrderTask() {
|
||||
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