Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public List<Object> getRegistry(String sub, String ticketP,
- String extension_date, String req_num,
- String execution_date, String executor,
- String inn_company, String performer_status) {
- List<String> all = new ArrayList<>();
- if (sub != null && !sub.equals("")){
- all.add(sub);
- }
- if (ticketP != null && !ticketP.equals("")){
- all.add(ticketP);
- }
- if (extension_date != null && !extension_date.equals("")){
- all.add(extension_date);
- }
- if (req_num != null && !req_num.equals("")){
- all.add(req_num);
- }
- if (execution_date != null && !execution_date.equals("")){
- all.add(extension_date);
- }
- if (executor != null && !executor.equals("")){
- all.add(executor);
- }
- if (inn_company != null && !inn_company.equals("")){
- all.add(inn_company);
- }
- if (performer_status != null && !performer_status.equals("")){
- all.add(performer_status);
- }
- if (sub != null){
- UUID idSub = iSubsidiary.findByFullName(sub).getId();
- return iRequirements.getAllByIdSub(idSub);
- }else {
- return iRequirements.getAlls();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement