delete import dont use
This commit is contained in:
parent
5c2569e5b4
commit
39b239eb97
11 changed files with 26 additions and 56 deletions
|
|
@ -2,19 +2,14 @@ import {
|
|||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
Put,
|
||||
Delete,
|
||||
Patch,
|
||||
Route,
|
||||
Security,
|
||||
Tags,
|
||||
Body,
|
||||
Path,
|
||||
Request,
|
||||
Example,
|
||||
SuccessResponse,
|
||||
Response,
|
||||
Query,
|
||||
} from "tsoa";
|
||||
import { AppDataSource } from "../database/data-source";
|
||||
import HttpSuccess from "../interfaces/http-success";
|
||||
|
|
@ -35,7 +30,7 @@ import { EmployeePosType } from "../entities/EmployeePosType";
|
|||
import { EmployeePosLevel } from "../entities/EmployeePosLevel";
|
||||
import { SalaryOrgEmployee } from "../entities/SalaryOrgEmployee";
|
||||
import { SalaryProfileEmployee } from "../entities/SalaryProfileEmployee";
|
||||
import { addLogSequence, setLogDataDiff } from "../interfaces/utils";
|
||||
import { setLogDataDiff } from "../interfaces/utils";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
|
||||
import CallAPI from "../interfaces/call-api";
|
||||
|
|
@ -54,9 +49,7 @@ export class ReportController extends Controller {
|
|||
private salaryRankRepository = AppDataSource.getRepository(SalaryRanks);
|
||||
private salaryEmployeeRankRepository = AppDataSource.getRepository(SalaryRankEmployee);
|
||||
private poTypeRepository = AppDataSource.getRepository(PosType);
|
||||
private poTypeEmployeeRepository = AppDataSource.getRepository(EmployeePosType);
|
||||
private posLevelRepository = AppDataSource.getRepository(PosLevel);
|
||||
private posLevelEmployeeRepository = AppDataSource.getRepository(EmployeePosLevel);
|
||||
private salaryOrgRepository = AppDataSource.getRepository(SalaryOrg);
|
||||
private salaryOrgEmployeeRepository = AppDataSource.getRepository(SalaryOrgEmployee);
|
||||
private salaryProfileRepository = AppDataSource.getRepository(SalaryProfile);
|
||||
|
|
@ -103,7 +96,7 @@ export class ReportController extends Controller {
|
|||
},
|
||||
});
|
||||
|
||||
const mapSalaryRank = salaryRank.map((item, index) => ({
|
||||
const mapSalaryRank = salaryRank.map((item) => ({
|
||||
// no: index + 1,
|
||||
// id: item.id,
|
||||
salary: item.salary == null || item.salary == 0 ? "" : item.salary.toLocaleString(),
|
||||
|
|
@ -194,7 +187,7 @@ export class ReportController extends Controller {
|
|||
},
|
||||
});
|
||||
|
||||
const mapSalaryRank = salaryRank.map((item, index) => ({
|
||||
const mapSalaryRank = salaryRank.map((item) => ({
|
||||
step: item.step == null || item.step == 0 ? "" : item.step.toLocaleString(),
|
||||
salaryMonth:
|
||||
item.salaryMonth == null || item.salaryMonth == 0 ? "" : item.salaryMonth.toLocaleString(),
|
||||
|
|
@ -6304,7 +6297,7 @@ export class ReportController extends Controller {
|
|||
refCommandNo: v.refCommandNo,
|
||||
templateDoc: v.templateDoc,
|
||||
})
|
||||
.then(async (x) => {
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
salary.status = "DONE";
|
||||
salary.lastUpdateUserId = request.user.sub;
|
||||
|
|
@ -6357,7 +6350,7 @@ export class ReportController extends Controller {
|
|||
refCommandNo: v.refCommandNo,
|
||||
templateDoc: v.templateDoc,
|
||||
})
|
||||
.then(async (x) => {
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
salary.status = "DONE";
|
||||
salary.lastUpdateUserId = request.user.sub;
|
||||
|
|
@ -6410,7 +6403,7 @@ export class ReportController extends Controller {
|
|||
refCommandNo: v.refCommandNo,
|
||||
templateDoc: v.templateDoc,
|
||||
})
|
||||
.then(async (x) => {
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
salary.status = "DONE";
|
||||
salary.lastUpdateUserId = request.user.sub;
|
||||
|
|
@ -6463,7 +6456,7 @@ export class ReportController extends Controller {
|
|||
refCommandNo: v.refCommandNo,
|
||||
templateDoc: v.templateDoc,
|
||||
})
|
||||
.then(async (x) => {
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
salary.status = "DONE";
|
||||
salary.lastUpdateUserId = request.user.sub;
|
||||
|
|
@ -6516,7 +6509,7 @@ export class ReportController extends Controller {
|
|||
refCommandNo: v.refCommandNo,
|
||||
templateDoc: v.templateDoc,
|
||||
})
|
||||
.then(async (x) => {
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
salary.status = "DONE";
|
||||
salary.lastUpdateUserId = request.user.sub;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue