Migrate update employeePosLevel.posLevelName Change Int to Number
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m18s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m18s
This commit is contained in:
parent
e8890133bb
commit
cdbdfce7af
4 changed files with 53 additions and 17 deletions
|
|
@ -395,12 +395,14 @@ export class ImportDataController extends Controller {
|
|||
}
|
||||
|
||||
var positionType = "";
|
||||
var positionLevel = 0;
|
||||
// var positionLevel = 0;
|
||||
var positionLevel = "0";
|
||||
const workLevel = item.WORK_LEVEL;
|
||||
const part1 = workLevel.split("/")[0]; // "ส 2"
|
||||
const value2 = part1.split(" ")[1]; // "2"
|
||||
if (value2) {
|
||||
positionLevel = parseInt(value2);
|
||||
// positionLevel = parseInt(value2);
|
||||
positionLevel = value2;
|
||||
}
|
||||
if (item.CATEGORY_SAL_CODE == "11") {
|
||||
positionType = "บริการพื้นฐาน";
|
||||
|
|
@ -530,12 +532,14 @@ export class ImportDataController extends Controller {
|
|||
}
|
||||
|
||||
var positionType = "";
|
||||
var positionLevel = 0;
|
||||
// var positionLevel = 0;
|
||||
var positionLevel = "0";
|
||||
const value2 = item.POSITION_LEVEL;
|
||||
// const part1 = workLevel.split("/")[0]; // "ส 2"
|
||||
// const value2 = part1.split(" ")[1]; // "2"
|
||||
if (value2) {
|
||||
positionLevel = parseInt(value2);
|
||||
// positionLevel = parseInt(value2);
|
||||
positionLevel = value2;
|
||||
}
|
||||
if (item.CATEGORY_SAL_CODE == "11") {
|
||||
positionType = "บริการพื้นฐาน";
|
||||
|
|
@ -4340,12 +4344,14 @@ export class ImportDataController extends Controller {
|
|||
|
||||
let position = new EmployeePosition();
|
||||
var positionType = "";
|
||||
var positionLevel = 0;
|
||||
// var positionLevel = 0;
|
||||
var positionLevel = "0";
|
||||
const workLevel = item.WORK_LEVEL;
|
||||
const part1 = workLevel.split("/")[0]; // "ส 2"
|
||||
const value2 = part1.split(" ")[1]; // "2"
|
||||
if (value2) {
|
||||
positionLevel = parseInt(value2);
|
||||
// positionLevel = parseInt(value2);
|
||||
positionLevel = value2;
|
||||
}
|
||||
if (item.CATEGORY_SAL_CODE == "11") {
|
||||
positionType = "บริการพื้นฐาน";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue