|
|
@ -534,7 +534,7 @@ async function postMetadataResourceApplications(ctx) { |
|
|
|
} else { |
|
|
|
const models = ctx.fs.dc.models; |
|
|
|
const postOne = await models.ResourceConsumption.findOne({ |
|
|
|
where: { applyBy: applyBy, resourceName: resourceName, resourceId, resourceType } |
|
|
|
where: { applyBy: applyBy, resourceName: resourceName, resourceId, resourceType, approve_remarks: null } |
|
|
|
}); |
|
|
|
if (postOne) { |
|
|
|
ctx.status = 400; |
|
|
|