fix(crm): 如果查不到信息默认返回空值

This commit is contained in:
2026-05-15 09:52:30 +08:00
parent aa6fa77842
commit 247a443327

View File

@@ -128,7 +128,7 @@ public class CrmOrderController extends BaseController {
calendar.set(java.util.Calendar.SECOND, 0);
calendar.set(java.util.Calendar.MILLISECOND, 0);
planDate = calendar.getTime();
ApsPlanSheetBo bo = new ApsPlanSheetBo();
bo.setPlanDate(planDate);
List<ApsPlanSheetVo> planSheetList = iApsPlanSheetService.queryList(bo);
@@ -168,9 +168,6 @@ public class CrmOrderController extends BaseController {
public R<CrmOrderVo> getOrderByCoilId(@NotNull(message = "钢卷ID不能为空")
@PathVariable Long coilId) {
CrmOrderVo order = iCrmOrderService.getOrderByCoilId(coilId);
if (order == null) {
return R.fail("未找到该钢卷对应的订单信息");
}
return R.ok(order);
}
}