国贸2.0系统推送合同:接口逻辑修改
This commit is contained in:
@@ -42,7 +42,7 @@ public interface ContractApi {
|
|||||||
|
|
||||||
@PostMapping(PREFIX + "/push")
|
@PostMapping(PREFIX + "/push")
|
||||||
@Operation(summary = "国贸2.0系统推送合同")
|
@Operation(summary = "国贸2.0系统推送合同")
|
||||||
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) throws Exception;
|
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO);
|
||||||
|
|
||||||
@GetMapping(PREFIX + "/logistics/list/page")
|
@GetMapping(PREFIX + "/logistics/list/page")
|
||||||
@Operation(summary = "国贸2.0系统合同分页查询")
|
@Operation(summary = "国贸2.0系统合同分页查询")
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import lombok.Getter;
|
|||||||
@Getter
|
@Getter
|
||||||
public enum DictEnum {
|
public enum DictEnum {
|
||||||
|
|
||||||
|
/** 方式系统 */
|
||||||
|
BSE_SYS_REL_WY_EXTERNAL("系统外关联","EXTERNAL",null),
|
||||||
|
BSE_SYS_REL_WY_INTERNAL("内关联","INTERNAL",null),
|
||||||
/** 供应链业务大类 */
|
/** 供应链业务大类 */
|
||||||
SPLY_BSN_TP_03BX("货物保险","03BX",null),
|
SPLY_BSN_TP_03BX("货物保险","03BX",null),
|
||||||
SPLY_BSN_TP_11CC("货物保管仓储","11CC",null),
|
SPLY_BSN_TP_11CC("货物保管仓储","11CC",null),
|
||||||
|
|||||||
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.error;
|
||||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
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;
|
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_SUBMIT_ERP_FAIL;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -197,11 +196,7 @@ public class ContractController implements BusinessControllerMarker {
|
|||||||
@Operation(summary = "国贸2.0系统推送合同")
|
@Operation(summary = "国贸2.0系统推送合同")
|
||||||
@PreAuthorize("@ss.hasPermission('base:contract:create')")
|
@PreAuthorize("@ss.hasPermission('base:contract:create')")
|
||||||
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) {
|
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) {
|
||||||
try {
|
return contractApi.push(reqVO);
|
||||||
return contractApi.push(reqVO);
|
|
||||||
} catch (Exception e) {
|
|
||||||
return error(CONTRACT_PUSH_FAIL, e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/logistics/list/page")
|
@PostMapping("/logistics/list/page")
|
||||||
|
|||||||
Reference in New Issue
Block a user