国贸2.0系统推送合同:接口逻辑修改

This commit is contained in:
guojunyun
2025-10-31 15:21:09 +08:00
parent f657cc8b76
commit 3e0b0cab05
4 changed files with 120 additions and 146 deletions

View File

@@ -26,7 +26,6 @@ import java.util.List;
import static com.zt.plat.framework.common.pojo.CommonResult.error;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_PUSH_FAIL;
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_SUBMIT_ERP_FAIL;
@Slf4j
@@ -197,11 +196,7 @@ public class ContractController implements BusinessControllerMarker {
@Operation(summary = "国贸2.0系统推送合同")
@PreAuthorize("@ss.hasPermission('base:contract:create')")
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) {
try {
return contractApi.push(reqVO);
} catch (Exception e) {
return error(CONTRACT_PUSH_FAIL, e.getMessage());
}
return contractApi.push(reqVO);
}
@PostMapping("/logistics/list/page")