susee
This commit is contained in:
parent
f44969a8c5
commit
4d2adf5968
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,3 +1,7 @@
|
|||||||
|
.env
|
||||||
/node_modules
|
/node_modules
|
||||||
/storage
|
/storage/log/
|
||||||
.env
|
/storage/uploads/
|
||||||
|
!storage
|
||||||
|
storage/*
|
||||||
|
!storage/uploads/
|
||||||
@ -198,7 +198,7 @@ exports.PullCreditPdPhotographsData = async (req, res) =>
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MWISE00840
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ exports.GetCreditPdData = async (req, res) =>
|
|||||||
{model: CreditKeyProductBusinessContribution }, {model: EmployeeStrength },
|
{model: CreditKeyProductBusinessContribution }, {model: EmployeeStrength },
|
||||||
{model: ClientDetail }, {model: StockDetail },
|
{model: ClientDetail }, {model: StockDetail },
|
||||||
{model: CreditExistingLoanObligation }, {model: FamilyMemberInvolvedInBusiness },
|
{model: CreditExistingLoanObligation }, {model: FamilyMemberInvolvedInBusiness },
|
||||||
{model : CreditManager }, // {model: Photograph },
|
{model : CreditManager }, {model: Photograph },
|
||||||
{model: CreditFinalRemarks }, {model: CreditLoanDetail },
|
{model: CreditFinalRemarks }, {model: CreditLoanDetail },
|
||||||
{model: CreditGeneralBusinessInformation }, {model: SupplierDetail }
|
{model: CreditGeneralBusinessInformation }, {model: SupplierDetail }
|
||||||
]
|
]
|
||||||
|
|||||||
@ -99,6 +99,10 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
foreignKey: 'pd_id',
|
foreignKey: 'pd_id',
|
||||||
sourceKey : 'pd_id'
|
sourceKey : 'pd_id'
|
||||||
});
|
});
|
||||||
|
CreditGeneralInformation.hasMany(models.Photograph, {
|
||||||
|
foreignKey: 'pd_id',
|
||||||
|
sourceKey : 'pd_id'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return CreditGeneralInformation
|
return CreditGeneralInformation
|
||||||
|
|||||||
@ -153,9 +153,9 @@ router.post('/PullCreditPdPhotographsData', upload.single('img'),function(req,re
|
|||||||
* - in: query
|
* - in: query
|
||||||
* name: img_name
|
* name: img_name
|
||||||
* schema:
|
* schema:
|
||||||
* type: integer
|
* type: string
|
||||||
* required: true
|
* required: true
|
||||||
* example:
|
* example: 1652702282873-tree-736885__480
|
||||||
* responses:
|
* responses:
|
||||||
* 200:
|
* 200:
|
||||||
* description: success
|
* description: success
|
||||||
|
|||||||
BIN
storage/uploads/1652702282873-tree-736885__480.jpg
Normal file
BIN
storage/uploads/1652702282873-tree-736885__480.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
BIN
storage/uploads/1652702321006-tree-736885__480.jpg
Normal file
BIN
storage/uploads/1652702321006-tree-736885__480.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
BIN
storage/uploads/1652765011227-download.jpg
Normal file
BIN
storage/uploads/1652765011227-download.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
BIN
storage/uploads/1652771595904-download.jpg
Normal file
BIN
storage/uploads/1652771595904-download.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
BIN
storage/uploads/1652771661979-download.jpg
Normal file
BIN
storage/uploads/1652771661979-download.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
BIN
storage/uploads/1652771695177-download.jpg
Normal file
BIN
storage/uploads/1652771695177-download.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
Loading…
Reference in New Issue
Block a user