This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create or replace function doc_counters( | |
mailbox_id_in text, | |
profile_id_in text, | |
structure_id_in text | |
) | |
RETURNS json | |
AS | |
$$ | |
DECLARE owner_reaction integer; | |
DECLARE partner_reaction integer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /** @noinspection PhpUndefinedMethodInspection PhpUnused */ | |
/*************************************************************************************************************************************************************************** | |
* Разработчик Хакимов Александр https://github.com/hackimov * | |
* Данный класс занимается получением данных из подписи формата pkcs7 ГНК РУз. * | |
* Подпись расшифровывается с помощью phpseclib из X509 вытаскивается BER формат далее декодируется через ASN1 * | |
* Существует ещё дофига OID политик, можно их дополнить в маппинге но я использовал только самые нужные. * | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT maintable.* | |
FROM TABLE_NAME maintable | |
LEFT OUTER JOIN TABLE_NAME temporarytable | |
ON maintable.GROUPING_BY_COLUMN = temporarytable.GROUPING_BY_COLUMN | |
AND maintable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED < temporarytable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED | |
WHERE temporarytable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED IS NULL | |
ORDER BY PRIMARY_KEY_COLUMN DESC | |
LIMIT 50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\API; | |
use Illuminate\Http\Request; | |
use DB; | |
use App\Quotation; | |
use Carbon\Carbon; | |
class GetAllCVsAPIController extends BaseApiController | |
{ |