Browse Source

change

feature/teamB_zz_wgh
yinzuomei 3 years ago
parent
commit
62451d7338
  1. 5
      epmet-module/oper-customize/oper-customize-server/src/main/resources/db/migration/V0.0.30__item_query.sql
  2. 7
      epmet-module/oper-customize/oper-customize-server/src/main/resources/db/migration/V0.0.31__item_query2.sql

5
epmet-module/oper-customize/oper-customize-server/src/main/resources/db/migration/V0.0.30__item_query.sql

@ -1,7 +1,2 @@
alter TABLE ic_form_query_builder add COLUMN `MULTI_SELECT` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1可以多选,0单选,默认0' after VALID_TYPE; alter TABLE ic_form_query_builder add COLUMN `MULTI_SELECT` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1可以多选,0单选,默认0' after VALID_TYPE;
update ic_form_query_builder set MULTI_SELECT=(
select ic_form_item.MULTI_SELECT from ic_form_item where ic_form_item.CUSTOMER_ID=ic_form_query_builder.CUSTOMER_ID
and ic_form_item.ID=ic_form_query_builder.FORM_ITEM_ID
)where ic_form_query_builder.DEL_FLAG='0'
;

7
epmet-module/oper-customize/oper-customize-server/src/main/resources/db/migration/V0.0.31__item_query2.sql

@ -0,0 +1,7 @@
update ic_form_query_builder b set b.MULTI_SELECT=(
select i.MULTI_SELECT
from ic_form_item i
where i.CUSTOMER_ID=b.CUSTOMER_ID
and i.ID=b.FORM_ITEM_ID
and i.del_flag='0'
)where b.DEL_FLAG='0';
Loading…
Cancel
Save