daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 20th, 2018 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*! UTF8 */
  2. //Автор: mdemyanov
  3. //Дата создания: 11.01.2018
  4. //Код:
  5. //Назначение:
  6. /**
  7.  * Количество заявок на КЕ
  8.  */
  9. //Версия: 4.6.*
  10. //Категория:
  11. //Параметры------------------------------------------------------
  12. def LINK_TO_OBJS = 'serviceCalls'
  13. def COUNTER = 'callsCount'
  14. //Функции--------------------------------------------------------
  15. //Основной блок -------------------------------------------------
  16. def attrs = [:]
  17. attrs[COUNTER] = subject[LINK_TO_OBJS].findAll{it.metaClass.toString() == 'serviceCall$serviceCall'}?.size()
  18. try {
  19.     utils.edit(subject, attrs, true)
  20. } catch (Exception e) {
  21.     logger.error("не удалось изменить ${subject.UUID}", e)
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top