Merge branch 'test' into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
5a44b5d332
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE cache.last_buy
|
||||||
|
DROP FOREIGN KEY IF EXISTS last_buy_FK_1;
|
|
@ -18,6 +18,12 @@ module.exports = Self => {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string'
|
description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
arg: 'isHourlyLabor',
|
||||||
|
type: 'boolean',
|
||||||
|
description: 'isHourlyLabor',
|
||||||
|
http: {source: 'query'}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
arg: 'started',
|
arg: 'started',
|
||||||
type: 'date',
|
type: 'date',
|
||||||
|
@ -108,6 +114,18 @@ module.exports = Self => {
|
||||||
description: 'workerBusinessCategory',
|
description: 'workerBusinessCategory',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
arg: 'workerBusinessAgreementFk',
|
||||||
|
type: 'number',
|
||||||
|
description: 'workerBusinessAgreementFk',
|
||||||
|
http: {source: 'query'}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'workerBusinessAgreementName',
|
||||||
|
type: 'string',
|
||||||
|
description: 'workerBusinessAgreementName',
|
||||||
|
http: {source: 'query'}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
arg: 'occupationCodeFk',
|
arg: 'occupationCodeFk',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -177,6 +195,7 @@ module.exports = Self => {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case 'started':
|
case 'started':
|
||||||
case 'ended':
|
case 'ended':
|
||||||
|
case 'isHourlyLabor':
|
||||||
case 'companyCodeFk':
|
case 'companyCodeFk':
|
||||||
case 'reasonEndFk':
|
case 'reasonEndFk':
|
||||||
case 'reasondEnd':
|
case 'reasondEnd':
|
||||||
|
@ -184,6 +203,8 @@ module.exports = Self => {
|
||||||
case 'department':
|
case 'department':
|
||||||
case 'workerBusinessProfessionalCategoryFk':
|
case 'workerBusinessProfessionalCategoryFk':
|
||||||
case 'workerBusinessProfessionalCategory':
|
case 'workerBusinessProfessionalCategory':
|
||||||
|
case 'workerBusinessAgreementFk':
|
||||||
|
case 'workerBusinessAgreementName':
|
||||||
case 'calendarTypeFk':
|
case 'calendarTypeFk':
|
||||||
case 'calendarType':
|
case 'calendarType':
|
||||||
case 'workcenterFk':
|
case 'workcenterFk':
|
||||||
|
@ -212,6 +233,7 @@ module.exports = Self => {
|
||||||
b.workerFk,
|
b.workerFk,
|
||||||
b.started,
|
b.started,
|
||||||
b.ended,
|
b.ended,
|
||||||
|
b.isHourlyLabor,
|
||||||
b.companyCodeFk,
|
b.companyCodeFk,
|
||||||
b.reasonEndFk,
|
b.reasonEndFk,
|
||||||
bre.reason,
|
bre.reason,
|
||||||
|
@ -229,6 +251,8 @@ module.exports = Self => {
|
||||||
py.description payrollDescription,
|
py.description payrollDescription,
|
||||||
b.workerBusinessTypeFk,
|
b.workerBusinessTypeFk,
|
||||||
wt.name workerBusinessTypeName,
|
wt.name workerBusinessTypeName,
|
||||||
|
b.workerBusinessAgreementFk,
|
||||||
|
wba.name workerBusinessAgreementName,
|
||||||
b.amount,
|
b.amount,
|
||||||
b.basicSalary,
|
b.basicSalary,
|
||||||
b.notes
|
b.notes
|
||||||
|
@ -240,6 +264,7 @@ module.exports = Self => {
|
||||||
JOIN calendarType ct ON ct.id = b.calendarTypeFk
|
JOIN calendarType ct ON ct.id = b.calendarTypeFk
|
||||||
LEFT JOIN workCenter wc ON wc.id = b.workcenterFk
|
LEFT JOIN workCenter wc ON wc.id = b.workcenterFk
|
||||||
LEFT JOIN payrollCategories py ON py.id = b.workerBusinessCategoryFk
|
LEFT JOIN payrollCategories py ON py.id = b.workerBusinessCategoryFk
|
||||||
|
LEFT JOIN workerBusinessAgreement wba ON wba.id = b.workerBusinessAgreementFk
|
||||||
LEFT JOIN workerBusinessType wt ON wt.id = b.workerBusinessTypeFk
|
LEFT JOIN workerBusinessType wt ON wt.id = b.workerBusinessTypeFk
|
||||||
) sub
|
) sub
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue