国贸2.0系统推送合同:接口逻辑修改
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user