search
This commit is contained in:
parent
8ca02710dc
commit
2ba5ac41c4
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ export class kpiPlanController extends Controller {
|
|||
async createKpiPlan(@Body() requestBody: createKpiPlan, @Request() request: RequestWithUser) {
|
||||
await new permission().PermissionCreate(request, "SYS_EVA_INDICATOR");
|
||||
const kpiPlan = Object.assign(new KpiPlan(), requestBody);
|
||||
if (requestBody.year != null && requestBody.period != null) {
|
||||
if (requestBody.period != null) {
|
||||
const kpiPeriod = await this.kpiPeriodRepository
|
||||
.createQueryBuilder("kpiPeriod")
|
||||
.where("kpiPeriod.year = :year", { year: requestBody.year })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue