Changing dependency of m_entity_to_entity_access to m_entity_mapping and adding validation for new loan application

This commit is contained in:
jinjurajan
2016-06-09 16:29:04 +05:30
parent b4cb1a5702
commit 66f8d7ce43
17 changed files with 251 additions and 117 deletions
@@ -0,0 +1,9 @@
insert ignore into m_entity_to_entity_mapping (from_id,to_id,rel_id)
select mea.entity_id as fromId,
mea.second_entity_id as toid,
case mea.access_type_code_value_id
when 10 then 1
when 11 then 2
when 12 then 3
end as reId
from m_entity_to_entity_access mea