{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/968","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/968/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/968/events","html_url":"https://github.com/e-government-ua/i/issues/968","id":118043986,"number":968,"title":"Создать сущность ObjectCustoms и сервисы к ней","user":{"login":"OlgaTurenko","id":10909557,"avatar_url":"https://avatars.githubusercontent.com/u/10909557?v=3","gravatar_id":"","url":"https://api.github.com/users/OlgaTurenko","html_url":"https://github.com/OlgaTurenko","followers_url":"https://api.github.com/users/OlgaTurenko/followers","following_url":"https://api.github.com/users/OlgaTurenko/following{/other_user}","gists_url":"https://api.github.com/users/OlgaTurenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaTurenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaTurenko/subscriptions","organizations_url":"https://api.github.com/users/OlgaTurenko/orgs","repos_url":"https://api.github.com/users/OlgaTurenko/repos","events_url":"https://api.github.com/users/OlgaTurenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaTurenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/hi%20priority","name":"hi priority","color":"e11d21"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/_wf-central","name":"_wf-central","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"lesha1980","id":12561441,"avatar_url":"https://avatars.githubusercontent.com/u/12561441?v=3","gravatar_id":"","url":"https://api.github.com/users/lesha1980","html_url":"https://github.com/lesha1980","followers_url":"https://api.github.com/users/lesha1980/followers","following_url":"https://api.github.com/users/lesha1980/following{/other_user}","gists_url":"https://api.github.com/users/lesha1980/gists{/gist_id}","starred_url":"https://api.github.com/users/lesha1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesha1980/subscriptions","organizations_url":"https://api.github.com/users/lesha1980/orgs","repos_url":"https://api.github.com/users/lesha1980/repos","events_url":"https://api.github.com/users/lesha1980/events{/privacy}","received_events_url":"https://api.github.com/users/lesha1980/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/5","html_url":"https://github.com/e-government-ua/i/milestones/BackEnd_Java","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/5/labels","id":1063352,"number":5,"title":"BackEnd_Java","description":"Разработка кастомных общих API/REST, которые вначале позволят реализовывать  нужные нам сервисы по авторизации(и не только), а потом станут общей-единой точкой входа, включающую текущие REST Activiti","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":165,"state":"open","created_at":"2015-04-11T19:27:45Z","updated_at":"2015-12-02T11:44:53Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2015-11-20T13:36:54Z","updated_at":"2015-12-02T14:24:43Z","closed_at":null,"body":"\r\nИсточник данных в приложении:\r\nhttps://drive.google.com/file/d/0Bzn9Xk_GDNRUa3NLUk5vRXBkc2s/view?usp=sharing\r\n\r\n1) Название сущности: ObjectCustoms\r\nnID - ИД-номер Код внутренний (уникальный-ключ, автоитерируемый, long)\r\nsID_UA - ИД-номер Код, в Украинском классификкаторе (уникальный-ключ, String < 30 символов)\r\nsName_UA - название на украинском (уникальный, String < 200 символов)\r\nsMeasure_UA - мера  (String < 20 символов)\r\n\r\nПример объкта сущности:\r\n{\r\n  nID:3\r\n, \"sID_UA\":\"008 \"\r\n, \"sName_UA\":\"Пряжа\"\r\n, \"sMeasure_UA\" : \"кг\"\r\n}\r\n\r\n2) сервисы:\r\n\r\n2.1) getObjectCustoms - отдает массив объектов сущности, подпадающих под критерии\r\nпараметры:\r\nsID_UA //опциональный\r\nsName_UA//опциональный\r\n\r\n2.2) setObjectCustoms - апдейтит элемент(если задан один из уникальных-ключей) или вставляет (если не задан nID), и отдает экземпляр нового объекта\r\nпараметры:\r\nnID //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_UA //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsName_UA//опциональный, если nID задан и по нему найдена запись\r\n\r\n2.3) removeObjectCustoms - удаляет элемент(по ОБЯЗАТЕЛЬНО заданому одому из уникальных-ключей)\r\nпараметры:\r\nnID //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\nsID_UA //опциональный, если другой уникальный-ключ задан и по нему найдена запись\r\n\r\n3) Наполнить данными csv\r\n\r\n4) Добавить документацию"},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/161313545","html_url":"https://github.com/e-government-ua/i/issues/968#issuecomment-161313545","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/968","id":161313545,"user":{"login":"lesha1980","id":12561441,"avatar_url":"https://avatars.githubusercontent.com/u/12561441?v=3","gravatar_id":"","url":"https://api.github.com/users/lesha1980","html_url":"https://github.com/lesha1980","followers_url":"https://api.github.com/users/lesha1980/followers","following_url":"https://api.github.com/users/lesha1980/following{/other_user}","gists_url":"https://api.github.com/users/lesha1980/gists{/gist_id}","starred_url":"https://api.github.com/users/lesha1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesha1980/subscriptions","organizations_url":"https://api.github.com/users/lesha1980/orgs","repos_url":"https://api.github.com/users/lesha1980/repos","events_url":"https://api.github.com/users/lesha1980/events{/privacy}","received_events_url":"https://api.github.com/users/lesha1980/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T14:24:43Z","updated_at":"2015-12-02T14:24:43Z","body":"ненужно там сложной структуры...\r\nнужно просто во всех записях типа \"---на убой\"\r\nвместо \"---\" продублировать вышестоящие участки дерева... \r\nэто реализуется через формулы в экселе, я такое делал, в свое время...\r\n\r\nТ.е. оставить одной таблицей, простым списком записей. А то я сел уже делать несколько таблиц: \"Разделы\", \"Группы\", \"Товарная позиция\"... Ок. тогда просто отредактирую записи. Соответственно записи с пустыми кодами я удалю, так как проект воспримет их как неуникальные с неуникальными значениями... "}}