comnpany to cm
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
-- << Create
|
||||
insert into company ( clid
|
||||
insert into cm ( clid
|
||||
, code
|
||||
, title
|
||||
, name
|
||||
, is_active
|
||||
, notes
|
||||
, tmpl)
|
||||
values ( @clid
|
||||
, @code
|
||||
, @title
|
||||
, @name
|
||||
, @is_active
|
||||
, @notes
|
||||
, @tmpl)
|
||||
@@ -18,20 +18,19 @@ returning id
|
||||
select clid
|
||||
, id
|
||||
, code
|
||||
, title
|
||||
, name
|
||||
, is_active
|
||||
, notes
|
||||
, tmpl
|
||||
|
||||
from company
|
||||
from cm
|
||||
where id = $1
|
||||
-- Read >>
|
||||
|
||||
-- << Update
|
||||
update company
|
||||
set clid = @clid
|
||||
, code = @code
|
||||
, title = @title
|
||||
update cm
|
||||
set code = @code
|
||||
, name = @name
|
||||
, is_active = @is_active
|
||||
, notes = @notes
|
||||
, tmpl = @tmpl
|
||||
@@ -41,7 +40,7 @@ where id = @id
|
||||
|
||||
-- << Delete
|
||||
delete
|
||||
from company
|
||||
from cm
|
||||
where id = $1
|
||||
-- Delete >>
|
||||
|
||||
@@ -49,12 +48,12 @@ where id = $1
|
||||
select clid
|
||||
, id
|
||||
, code
|
||||
, title
|
||||
, name
|
||||
, is_active
|
||||
, notes
|
||||
, tmpl
|
||||
|
||||
from company {{.Where}}
|
||||
from cm {{.Where}}
|
||||
{{.OrderBy}}
|
||||
{{.Rows}}
|
||||
-- List >>
|
||||
Reference in New Issue
Block a user