fix: [production] 절곡 검사 products 배열 FormRequest 검증 규칙 추가
- StoreItemInspectionRequest에 inspection_data.products 검증 규칙 누락으로 validated()에서 제거되던 버그 수정 - products.*.id, bendingStatus, lengthMeasured, widthMeasured, gapPoints 규칙 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@ class RecordStorageUsage extends Command
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
$tenants = Tenant::active()->get();
|
||||
$tenants = Tenant::where('tenant_st_code', 'active')->get();
|
||||
|
||||
$recorded = 0;
|
||||
foreach ($tenants as $tenant) {
|
||||
|
||||
@@ -39,6 +39,16 @@ public function rules(): array
|
||||
'inspection_data.nonConformingContent' => 'nullable|string|max:1000',
|
||||
'inspection_data.templateValues' => 'nullable|array',
|
||||
'inspection_data.templateValues.*' => 'nullable',
|
||||
// 절곡 제품별 검사 데이터
|
||||
'inspection_data.products' => 'nullable|array',
|
||||
'inspection_data.products.*.id' => 'required_with:inspection_data.products|string',
|
||||
'inspection_data.products.*.bendingStatus' => ['nullable', Rule::in(['양호', '불량'])],
|
||||
'inspection_data.products.*.lengthMeasured' => 'nullable|string|max:50',
|
||||
'inspection_data.products.*.widthMeasured' => 'nullable|string|max:50',
|
||||
'inspection_data.products.*.gapPoints' => 'nullable|array',
|
||||
'inspection_data.products.*.gapPoints.*.point' => 'nullable|string',
|
||||
'inspection_data.products.*.gapPoints.*.designValue' => 'nullable|string',
|
||||
'inspection_data.products.*.gapPoints.*.measured' => 'nullable|string|max:50',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user