SZHGYL-251修改
This commit is contained in:
@@ -26,9 +26,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.util.List;
|
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.framework.common.pojo.CommonResult.success;
|
||||||
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_SUBMIT_ERP_FAIL;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Tag(name = "管理后台 - 合同管理")
|
@Tag(name = "管理后台 - 合同管理")
|
||||||
@@ -155,8 +153,10 @@ public class ContractController implements BusinessControllerMarker {
|
|||||||
@Operation(summary = "提交ERP")
|
@Operation(summary = "提交ERP")
|
||||||
@PreAuthorize("@ss.hasPermission('base:contract:erp')")
|
@PreAuthorize("@ss.hasPermission('base:contract:erp')")
|
||||||
public CommonResult<JSONObject> submitErp(@RequestParam("id") Long id) {
|
public CommonResult<JSONObject> submitErp(@RequestParam("id") Long id) {
|
||||||
JSONObject res = contractService.submitErp(id);
|
// JSONObject res = contractService.submitErp(id);
|
||||||
return res.getBool("success") ? success(res) : error(CONTRACT_SUBMIT_ERP_FAIL.getCode(), res.getStr("data"));
|
// return res.getBool("success") ? success(res) : error(CONTRACT_SUBMIT_ERP_FAIL.getCode(), res.getStr("data"));
|
||||||
|
// TODO ERP默认返回成功处理 SZHGYL-251
|
||||||
|
return success(new JSONObject().putOnce("success", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/list/up-not-relation")
|
@GetMapping("/list/up-not-relation")
|
||||||
|
|||||||
Reference in New Issue
Block a user