Jun

crm-20160906

Showing 1000 changed files with 4780 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 +<script type="text/javascript">window.location.href="./portal.web/";</script>
...\ No newline at end of file ...\ No newline at end of file
1 +DELETE FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='e0e0f773-34a1-450c-8868-60433a245eb8' ORDER BY dt_sort);
2 +DELETE FROM pl_dynamic_table WHERE ds_id='e0e0f773-34a1-450c-8868-60433a245eb8' ORDER BY dt_sort;
3 +DELETE FROM pl_dynamic_select WHERE ds_id='e0e0f773-34a1-450c-8868-60433a245eb8';
4 +
5 +INSERT INTO `pl_dynamic_select` (`ds_id`, `ds_name`, `ds_describe`, `ds_create_time`) VALUES ('e0e0f773-34a1-450c-8868-60433a245eb8', '网点', NULL, NULL);
6 +
7 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('7300dbd7-3aae-4793-922a-0e3cbffea5ac', 'e0e0f773-34a1-450c-8868-60433a245eb8', '网点', 'mtSite', '1', NULL, NULL, '1', '1', NULL, NULL);
8 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('5c4a968a-0b47-48a6-a591-b68c3e36befb', 'e0e0f773-34a1-450c-8868-60433a245eb8', '经营主体', 'mtbizentity', '3', NULL, 't2.beId = t1.beId', '1', '2', NULL, NULL);
9 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('1d24752b-ed06-424e-9419-deb8c3d80ab0', 'e0e0f773-34a1-450c-8868-60433a245eb8', '结算账套', 'mtbizsetofbook', '3', NULL, 't3.bebId = t1.bebId', '1', '3', NULL, NULL);
10 +
11 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('582669e6-c8a6-4149-9798-8c95895ea42f', '1d24752b-ed06-424e-9419-deb8c3d80ab0', '结算账套名称', NULL, 'bebName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, '不限', '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
12 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('067cba2d-e1a1-4db1-aa28-cb0185faec44', '5c4a968a-0b47-48a6-a591-b68c3e36befb', '主体名称', NULL, 'beName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
13 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('03082780-b4ce-495d-89f2-f4faf6e7e6f1', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '结算账套', NULL, 'bebId', false, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '200', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '4', false, true);
14 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('9e94a9c9-ed93-4a46-a2cb-df6552588b42', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '经营主体', NULL, 'beId', false, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '200', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '3', false, true);
15 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('bcfa137e-d5d5-4568-a1b0-50b863a94a98', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '网点名称', NULL, 'siName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '200', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '2', false, false);
16 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('c75b9a41-0c4f-463d-a028-45d8cffe6ff9', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '网点ID', NULL, 'siId', true, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
17 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('cc0c157e-b4a1-4ae1-97ea-1f753c67d5a5', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '网点编号', NULL, 'siCode', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '200', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
18 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('f55883c9-d77a-4224-88bd-25cd4c0b201a', '7300dbd7-3aae-4793-922a-0e3cbffea5ac', '经营主体ID', NULL, 'beId', false, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, '不限', NULL, NULL, NULL, NULL, '200', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa');
9 +
10 +delete from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa';
11 +
12 +delete from pl_dynamic_select where ds_id ='22726b54-5748-4926-82ed-abe076caecfa';
13 +
14 +/******************************添加****************************************************************************/
15 +
16 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('22726b54-5748-4926-82ed-abe076caecfa', '品牌查询', null, null);
17 +
18 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('72324598-9665-4985-9417-b65ae9d8ad9e', '22726b54-5748-4926-82ed-abe076caecfa', '品牌表', 'mtBrand', 1, null, null, 1, 1, null, null);
19 +
20 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('9e31fa17-c545-4dca-881f-ef64aac37af6', '72324598-9665-4985-9417-b65ae9d8ad9e', '过滤品牌', null, 'filter', false, 4, 1, 1, 1, true, 1, null, 1, null, 'CASE WHEN ${filter}=1 THEN 1=1 WHEN ${filter}<>1 THEN t1.brId IN ( SELECT br.brId FROM smUsers us LEFT JOIN smUsPermission usp ON usp.usId = us.usId LEFT JOIN smUsPermBrand usb ON usp.uspId = usb.uspId LEFT JOIN mtBrand br ON usb.brId = br.brId WHERE us.usId=${filter} )END', null, null, null, '${userId}', null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, true);
21 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('fe76e39b-d6d4-497d-9bbb-6be3b9c9b4ea', '72324598-9665-4985-9417-b65ae9d8ad9e', '代号', null, 'brId', true, 3, 1, 2, 21, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, false);
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('9c7017f5-62cb-4584-a637-dcbaa901543d', '72324598-9665-4985-9417-b65ae9d8ad9e', '名称', null, 'brName', false, 1, 1, 1, 1, false, 1, null, null, null, '${thisTable}.brName like CONCAT(''%'',${brName},''%'')', null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('c881ae5c-a650-4635-9a89-9e73eefaac9b', '72324598-9665-4985-9417-b65ae9d8ad9e', '描述 ', null, 'brDesc', false, 3, 1, 1, 1, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('33779476-472b-41e4-b24c-29a432fca8ed', '72324598-9665-4985-9417-b65ae9d8ad9e', '编码值', null, 'brCode', false, 1, 1, 1, 1, false, 1, null, null, null, '${thisTable}.brCode like CONCAT(''%'',${brCode},''%'')', null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
25 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('63781d57-a2af-484d-bcbb-b62fd5d6585d', '72324598-9665-4985-9417-b65ae9d8ad9e', '可用', null, 'ptValid', false, 1, 1, 2, 21, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
26 +
27 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('34009937-ef4c-4c6c-b4de-1bc5f74e735a', '63781d57-a2af-484d-bcbb-b62fd5d6585d', '1', '是', null, null, null);
28 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('99e2ef1b-6fe9-4e60-a0f2-810fde3c1ae1', '63781d57-a2af-484d-bcbb-b62fd5d6585d', '0', '否', null, null, null);
29 +
30 +/******************************查询****************************************************************************/
31 +select * from pl_dynamic_select where ds_id ='22726b54-5748-4926-82ed-abe076caecfa'
32 +select * from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa' order by dt_sort asc
33 +
34 +select * from pl_dynamic_field
35 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
36 +order by df_sort asc
37 +
38 +select * from pl_dynamic_field_data where df_id in(
39 +select df_id from pl_dynamic_field
40 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
41 +)
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df');
9 +
10 +delete from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df';
11 +
12 +delete from pl_dynamic_select where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df';
13 +/******************************添加****************************************************************************/
14 +
15 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('d3f29dd6-d085-45b9-b83d-c8dc07c095df', 'CRM帐套查询', null, null);
16 +
17 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('92a1dc61-8dda-4a75-8d2d-db3e582da6e0', 'd3f29dd6-d085-45b9-b83d-c8dc07c095df', 'CRM帐套表', 'crm_account_set', 1, null, null, 1, 1, null, null);
18 +
19 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('595e0bce-00fc-4568-ac43-b1f937e99139', '92a1dc61-8dda-4a75-8d2d-db3e582da6e0', '账套ID', null, 'ACT_ID', true, 3, 1, 2, 11, false, 1, null, 1, null, null, null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, true);
20 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('1e3bac18-6f5d-47ea-b053-da0c63dde45b', '92a1dc61-8dda-4a75-8d2d-db3e582da6e0', '账套代号', null, 'ACT_CODE', false, 1, 1, 1, 1, false, 1, null, 1, null, '', null, null, false, null, null, null, 120, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
21 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('74ccc346-dc43-4013-a66b-260cec407753', '92a1dc61-8dda-4a75-8d2d-db3e582da6e0', '账套名称', null, 'ACT_NAME', false, 1, 1, 1, 1, false, 1, null, 1, null, 'locate(${ACT_NAME},${masterTable}.ACT_NAME)>0', null, null, false, null, null, null, 300, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('0937b361-d6d7-4bcf-8a0f-1bb670ac457d', '92a1dc61-8dda-4a75-8d2d-db3e582da6e0', '主管平台ID', null, 'PTF_ID', false, 4, 1, 2, 11, true, 1, null, 1, null, null, null, null, false, '${platId}', null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, true);
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('981b911a-c178-4263-aefe-b115171f3711', '92a1dc61-8dda-4a75-8d2d-db3e582da6e0', '是否可用', null, 'ENABLE', false, 4, 1, 2, 11, true, 1, null, 1, null, null, null, null, false, '1', null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 5, false, true);
24 +
25 +/******************************查询****************************************************************************/
26 +select * from pl_dynamic_select where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df';
27 +select * from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df' order by dt_sort asc;
28 +select * from pl_dynamic_field
29 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df')
30 +order by df_sort asc;
31 +
32 +select * from pl_dynamic_field_data where df_id in(
33 +select df_id from pl_dynamic_field
34 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='d3f29dd6-d085-45b9-b83d-c8dc07c095df')
35 +);
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99');
9 +
10 +delete from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99';
11 +
12 +delete from pl_dynamic_select where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99';
13 +/******************************添加****************************************************************************/
14 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('99f54539-c5aa-40c3-9ced-ab943a441b99', '顾客移动平台', null, null);
15 +
16 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('57d22c3d-1dc4-46f9-8111-ad44a5882dbb', '99f54539-c5aa-40c3-9ced-ab943a441b99', '微信公众号', 'crm_wxgzh', 1, null, null, 1, 1, null, null);
17 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('f8a470b6-fafb-4f5f-ae70-a4da85d15060', '99f54539-c5aa-40c3-9ced-ab943a441b99', '推送通道', 'smMsgChannel', 2, null, '${thisTable}.GZH_ID = ${masterTable}.GZH_ID AND ${thisTable}.mcType = 3', 1, 2, null, null);
18 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('f5134c13-a11e-4bfe-96cc-9c7f09c5174d', '99f54539-c5aa-40c3-9ced-ab943a441b99', '微信公众号类型', 'pl_dynamic_field_data', 3, null, '${masterTable}.GZH_TYPE=${thisTable}.dfd_code and ${thisTable}.df_id=''f6fb28fd-2683-4b36-b053-3ba0f96f7ce5''', 1, 3, null, null);
19 +
20 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('3aa6aacd-51ef-4e12-a4bb-ef0d5b1de856', '57d22c3d-1dc4-46f9-8111-ad44a5882dbb', '编号', null, 'GZH_ID', true, 1, 1, 1, 1, false, 1, null, 1, null, 'locate(${GZH_ID},${masterTable}.GZH_ID)>0', null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, false);
21 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '57d22c3d-1dc4-46f9-8111-ad44a5882dbb', '类型', null, 'GZH_TYPE', false, 4, 1, 2, 21, false, 1, null, 1, null, null, null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('0dc16639-9ecb-4fbd-8b48-bc840cc67643', 'f5134c13-a11e-4bfe-96cc-9c7f09c5174d', '类型', 'GZH_TYPE', 'dfd_name', false, 3, 1, 2, 1, false, 1, null, 1, null, null, null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('c92256db-2391-49d2-a7c6-854446c5791f', '57d22c3d-1dc4-46f9-8111-ad44a5882dbb', '昵称', null, 'NICK_NAME', false, 1, 1, 1, 1, false, 1, null, 1, null, 'locate(${NICK_NAME},${masterTable}.NICK_NAME)>0', null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('10b8e81d-cea6-4be1-a955-90f2bdd10718', '57d22c3d-1dc4-46f9-8111-ad44a5882dbb', '图片', null, 'HEAD_IMG', false, 3, 1, 1, 1, false, 1, null, 1, null, null, null, null, false, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 5, false, false);
25 +
26 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('205c02e2-8ecf-411a-a1d6-27ca8f38c3fd', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '5', '资质认证通过、还未通过名称认证,但通过了腾讯微博认证', null, null, null);
27 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('26a326c4-2dd2-488a-b296-2d8284f0d546', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '1', '新浪微博认证', null, null, null);
28 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('2d70dde7-9035-4245-a265-e2c4d4457819', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '3', '资质认证通过但还未通过名称认证', null, null, null);
29 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('39670158-ed19-46d8-a363-f32c9c082c09', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '4', '资质认证通过、还未通过名称认证,但通过了新浪微博认证', null, null, null);
30 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('43a4f885-a6aa-496d-a090-c2b4add8a5f8', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '-1', '未认证', null, null, null);
31 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('d289be9e-726f-40cd-ad8c-b3175af93c5e', 'f6fb28fd-2683-4b36-b053-3ba0f96f7ce5', '2', '腾讯微博认证', null, null, null);
32 +
33 +/******************************查询****************************************************************************/
34 +select * from pl_dynamic_select where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99';
35 +select * from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99' order by dt_sort asc;
36 +select * from pl_dynamic_field
37 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99')
38 +order by df_sort asc;
39 +
40 +select * from pl_dynamic_field_data where df_id in(
41 +select df_id from pl_dynamic_field
42 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='99f54539-c5aa-40c3-9ced-ab943a441b99')
43 +);
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345');
9 +
10 +delete from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345';
11 +
12 +delete from pl_dynamic_select where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345';
13 +/******************************添加****************************************************************************/
14 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('37c565c4-4ec7-495e-9864-4f449bece345', '常用变量查询', null, null);
15 +
16 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('dc848642-6365-4659-a447-ca98fae4e55d', '37c565c4-4ec7-495e-9864-4f449bece345', '常用变量表', 'mtVariable', 1, null, null, 1, 1, null, null);
17 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('abbf9927-92c4-4060-a54d-936c1b48fb9b', '37c565c4-4ec7-495e-9864-4f449bece345', '常用变量值表', 'mtVarItem', 3, null, '${thisTable}.vaId=${masterTable}.vaId', 2, 2, null, null);
18 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('f1d92754-4c0d-441b-9458-f07429b81a5d', '37c565c4-4ec7-495e-9864-4f449bece345', '变量平台表', 'mtVarPlatform', 3, null, '${thisTable}.vaId=${masterTable}.vaId', 1, 3, null, null);
19 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('540587da-1604-401d-8923-4f89de8f7d67', '37c565c4-4ec7-495e-9864-4f449bece345', '平台表', 'smPlatform', 3, null, '${thisTable}.plId=t3.plId', 2, 4, null, null);
20 +
21 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('7cb5bd50-44c9-4fa1-92c3-ebdc8750ed6a', 'dc848642-6365-4659-a447-ca98fae4e55d', '编号', null, 'vaId', true, 3, 1, 2, 11, false, 1, null, 1, null, null, null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, 1, null, 1, false, true);
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('8c1e3cf4-e875-466f-abdd-1a54e40353bf', 'dc848642-6365-4659-a447-ca98fae4e55d', '系统ID', null, 'vaCode', false, 1, 1, 1, 1, false, 1, null, 1, null, 'locate(${vaCode},${thisTable}.vaCode)>0', null, null, null, null, null, null, 150, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('e229e79d-e06d-4fbd-ad93-4f2a5a238280', 'dc848642-6365-4659-a447-ca98fae4e55d', '名称', null, 'vaName', false, 1, 1, 1, 1, false, 1, null, 1, null, 'locate(${vaName},${thisTable}.vaName)>0', null, null, null, null, null, null, 300, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('1f1a06a3-a1c6-46a6-bce3-a7b9597698d3', 'abbf9927-92c4-4060-a54d-936c1b48fb9b', '变量值', null, 'vaiName', false, 3, 1, 1, 1, false, 1, null, 1, null, null, null, null, null, null, null, null, 300, null, null, null, null, null, null, null, 1, 1, null, 1, true, 4, false, false);
25 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('e95d13c7-2578-4b56-92f2-d682f87e8baa', 'dc848642-6365-4659-a447-ca98fae4e55d', '变量类型', null, 'vaType', false, 1, 1, 2, 21, false, 1, null, 1, null, null, null, null, false, null, null, null, 80, null, null, null, null, null, null, null, 1, 1, null, null, null, 5, false, false);
26 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('ae8bcae9-6b19-4aac-87f1-bf015636b41b', '540587da-1604-401d-8923-4f89de8f7d67', '适用平台', null, 'plName', false, 3, 1, 1, 1, false, 1, null, 1, null, '${thisTable}.plName like CONCAT(''%'',${plName},''%'')', null, null, null, null, null, null, 300, null, null, null, null, null, null, null, 1, 1, null, null, true, 6, false, false);
27 +
28 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('142f392c-bd19-4df2-aec1-bb3244babe76', 'e95d13c7-2578-4b56-92f2-d682f87e8baa', '1', '全局类型', null, null, null);
29 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('1a2746ce-7a7c-4b54-82f9-0d71081b9d2b', 'e95d13c7-2578-4b56-92f2-d682f87e8baa', '2', '局部类型', null, null, null);
30 +
31 +
32 +/******************************查询****************************************************************************/
33 +select * from pl_dynamic_select where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345';
34 +select * from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345' order by dt_sort asc;
35 +
36 +select * from pl_dynamic_field
37 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345')
38 +order by df_sort asc;
39 +
40 +select * from pl_dynamic_field_data where df_id in(
41 +select df_id from pl_dynamic_field
42 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='37c565c4-4ec7-495e-9864-4f449bece345')
43 +);
1 +DELETE FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='f1fd6213-c928-4e72-87f2-f8bfe8589b19' ORDER BY dt_sort);
2 +DELETE FROM pl_dynamic_table WHERE ds_id='f1fd6213-c928-4e72-87f2-f8bfe8589b19' ORDER BY dt_sort;
3 +DELETE FROM pl_dynamic_select WHERE ds_id='f1fd6213-c928-4e72-87f2-f8bfe8589b19';
4 +
5 +INSERT INTO `pl_dynamic_select` (`ds_id`, `ds_name`, `ds_describe`, `ds_create_time`) VALUES ('f1fd6213-c928-4e72-87f2-f8bfe8589b19', '查询网店组', '', NULL);
6 +
7 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('f89a34a1-dff0-4b6e-8116-adbb3a3c0529', 'f1fd6213-c928-4e72-87f2-f8bfe8589b19', '网点表', 'mtSite', '1', NULL, NULL, '1', '1', NULL, NULL);
8 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('1b3e3cd9-70d5-474d-97ab-3624bb9f0e5b', 'f1fd6213-c928-4e72-87f2-f8bfe8589b19', '网点组关联表', 'crm_site_group_site', '2', NULL, 't2.SIT_ID = t1.siId', '1', '2', NULL, NULL);
9 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('9651abf8-1b3a-4752-ae3a-b8bdbd3fff28', 'f1fd6213-c928-4e72-87f2-f8bfe8589b19', '经营主体', 'mtBizEntity', '3', NULL, 't3.beId = t1.beId', '1', '3', NULL, NULL);
10 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('77598b0e-e0e4-46c6-b8ec-cffdc2eb1664', 'f1fd6213-c928-4e72-87f2-f8bfe8589b19', '结算主体', 'mtBizSetOfBook', '3', NULL, 't4.bebId = t1.bebId', '1', '4', NULL, NULL);
11 +
12 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('86d9d5cc-0f84-40bc-8683-6e9330b7d0a8', 'f89a34a1-dff0-4b6e-8116-adbb3a3c0529', '网点编号', NULL, 'siCode', true, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
13 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('8d7bca20-08d8-48e3-94eb-a913e61f55ee', 'f89a34a1-dff0-4b6e-8116-adbb3a3c0529', '网点名称', NULL, 'siName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
14 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('18835180-814b-47c7-98ff-7523722bc038', '9651abf8-1b3a-4752-ae3a-b8bdbd3fff28', '经营主体', NULL, 'beName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
15 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('da0bd502-b666-45c2-be5e-d8f173215729', '77598b0e-e0e4-46c6-b8ec-cffdc2eb1664', '结算主体', NULL, 'bebName', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
16 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('c475cd0d-87b1-4ab8-adc2-9097cd7d4cb5', '1b3e3cd9-70d5-474d-97ab-3624bb9f0e5b', '网点组ID', NULL, 'GRP_ID', false, '4', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
17 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('f75b1917-980d-4796-9ad5-03d976125d20', 'f89a34a1-dff0-4b6e-8116-adbb3a3c0529', '网点ID', NULL, 'siId', true, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
1 +DELETE FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a' ORDER BY dt_sort);
2 +DELETE FROM pl_dynamic_table WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a' ORDER BY dt_sort;
3 +DELETE FROM pl_dynamic_select WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a';
4 +
5 +SELECT * FROM pl_dynamic_select WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a';
6 +SELECT * FROM pl_dynamic_table WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a' ORDER BY dt_sort;
7 +SELECT * FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a' ORDER BY dt_sort);
8 +SELECT * from pl_dynamic_field_data WHERE df_id ='a88a0f33-ca99-41f8-967d-3b31cec1e5e4';
9 +
10 +INSERT INTO `pl_dynamic_select` (`ds_id`, `ds_name`, `ds_describe`, `ds_create_time`) VALUES ('7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a', '积点账套查询', NULL, NULL);
11 +
12 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('ff0d6577-61b2-4577-b1dd-1276a998d07f', '7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a', 'CRM积点账套', 'crm_points_set', '1', NULL, NULL, '1', '1', NULL, NULL);
13 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('1c8942f0-bfcd-4c9d-b5a7-418d2a85b114', '7b2f3e38-3b3f-4f24-91f3-48e3ea79fb5a', 'CRM账套', 'crm_account_set', '3', NULL, 't2.ACT_ID = t1.ACT_ID', '1', '2', NULL, NULL);
14 +
15 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('4c8abccb-f003-4d4a-a3ca-39ce2d46ca09', '1c8942f0-bfcd-4c9d-b5a7-418d2a85b114', '账套名称', 'actName', 'ACT_NAME', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, 'locate(${ACT_NAME},${masterTable}.ACT_NAME)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '6', false, false);
16 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('fc180d48-6b5b-4d9c-ac67-67d245b032e7', '1c8942f0-bfcd-4c9d-b5a7-418d2a85b114', '账套ID', 'actId', 'ACT_ID', false, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '7', false, true);
17 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('2f21a587-3164-45ae-9d23-9de31470ed3f', 'ff0d6577-61b2-4577-b1dd-1276a998d07f', '积分单位', 'pntUnit', 'PNT_UNIT', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, 'locate(${PNT_UNIT},${masterTable}.PNT_UNIT)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '3', false, false);
18 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('5d2353eb-074d-4e08-8f92-b98c41b18996', 'ff0d6577-61b2-4577-b1dd-1276a998d07f', '积点名称', 'pntSetName', 'PNT_SET_NAME', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, 'locate(${PNT_SET_NAME},${masterTable}.PNT_SET_NAME)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '2', false, false);
19 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('a88a0f33-ca99-41f8-967d-3b31cec1e5e4', 'ff0d6577-61b2-4577-b1dd-1276a998d07f', '是否可用', 'enable', 'ENABLE', false, '1', '1', '1', '21', false, '1', NULL, NULL, NULL, 'locate(${ENABLE},${masterTable}.ENABLE)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '5', false, false);
20 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('b2497359-01ac-489b-a875-2aecf517993f', 'ff0d6577-61b2-4577-b1dd-1276a998d07f', '积点ID', 'pntId', 'PNT_ID', true, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, 'locate(${PNT_ID},${masterTable}.PNT_ID)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
21 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('ff2358a9-1011-4f6d-9471-b501d2e3810a', 'ff0d6577-61b2-4577-b1dd-1276a998d07f', '积分单位价值', 'pntUV', 'PNT_U_V', false, '1', '1', '1', '1', false, '1', NULL, '1', NULL, 'locate(${PNT_U_V},${masterTable}.PNT_U_V)>0', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '4', false, false);
22 +
23 +INSERT INTO `pl_dynamic_field_data` (`dfd_id`, `df_id`, `dfd_code`, `dfd_name`, `dfd_ext`, `dfd_group`, `dfd_parent`) VALUES ('1b9ac5d1-ab92-4ab3-9a78-dd61c4e549e3', 'a88a0f33-ca99-41f8-967d-3b31cec1e5e4', '1', '是', NULL, NULL, NULL);
24 +INSERT INTO `pl_dynamic_field_data` (`dfd_id`, `df_id`, `dfd_code`, `dfd_name`, `dfd_ext`, `dfd_group`, `dfd_parent`) VALUES ('7c7f33cc-7ab0-4827-b16b-a0383b2bf0ad', 'a88a0f33-ca99-41f8-967d-3b31cec1e5e4', '0', '否', NULL, NULL, NULL);
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa');
9 +
10 +delete from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa';
11 +
12 +delete from pl_dynamic_select where ds_id ='22726b54-5748-4926-82ed-abe076caecfa';
13 +
14 +/******************************添加****************************************************************************/
15 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('22726b54-5748-4926-82ed-abe076caecfa', '品牌查询', null, null);
16 +
17 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('72324598-9665-4985-9417-b65ae9d8ad9e', '22726b54-5748-4926-82ed-abe076caecfa', '品牌表', 'mtBrand', 1, null, null, 1, 1, null, null);
18 +
19 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('9e31fa17-c545-4dca-881f-ef64aac37af6', '72324598-9665-4985-9417-b65ae9d8ad9e', '过滤品牌', null, 'filter', false, 4, 1, 1, 1, true, 1, null, 1, null, 'CASE WHEN ${filter}=1 THEN 1=1 WHEN ${filter}<>1 THEN t1.brId IN ( SELECT br.brId FROM smUsers us LEFT JOIN smUsPermission usp ON usp.usId = us.usId LEFT JOIN smUsPermBrand usb ON usp.uspId = usb.uspId LEFT JOIN mtBrand br ON usb.brId = br.brId WHERE us.usId=${filter} )END', null, null, null, '${userId}', null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, true);
20 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('fe76e39b-d6d4-497d-9bbb-6be3b9c9b4ea', '72324598-9665-4985-9417-b65ae9d8ad9e', '代号', null, 'brId', true, 3, 1, 2, 21, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, false);
21 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('9c7017f5-62cb-4584-a637-dcbaa901543d', '72324598-9665-4985-9417-b65ae9d8ad9e', '名称', null, 'brName', false, 1, 1, 1, 1, false, 1, null, null, null, 'locate(${brName},${masterTable}.brName)>0', null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('c881ae5c-a650-4635-9a89-9e73eefaac9b', '72324598-9665-4985-9417-b65ae9d8ad9e', '描述 ', null, 'brDesc', false, 3, 1, 1, 1, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('33779476-472b-41e4-b24c-29a432fca8ed', '72324598-9665-4985-9417-b65ae9d8ad9e', '编码值', null, 'brCode', false, 1, 1, 1, 1, false, 1, null, null, null, 'locate(${brCode},${masterTable}.brCode)>0', null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('63781d57-a2af-484d-bcbb-b62fd5d6585d', '72324598-9665-4985-9417-b65ae9d8ad9e', '可用', null, 'ptValid', false, 1, 1, 2, 21, false, 1, null, null, null, null, null, '不限', null, null, null, null, 200, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
25 +
26 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('34009937-ef4c-4c6c-b4de-1bc5f74e735a', '63781d57-a2af-484d-bcbb-b62fd5d6585d', '1', '是', null, null, null);
27 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('99e2ef1b-6fe9-4e60-a0f2-810fde3c1ae1', '63781d57-a2af-484d-bcbb-b62fd5d6585d', '0', '否', null, null, null);
28 +
29 +
30 +/******************************查询****************************************************************************/
31 +select * from pl_dynamic_select where ds_id ='22726b54-5748-4926-82ed-abe076caecfa';
32 +select * from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa' order by dt_sort asc;
33 +
34 +select * from pl_dynamic_field
35 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
36 +order by df_sort asc;
37 +
38 +select * from pl_dynamic_field_data where df_id in(
39 +select df_id from pl_dynamic_field
40 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='22726b54-5748-4926-82ed-abe076caecfa')
41 +);
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c');
9 +
10 +delete from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c';
11 +
12 +delete from pl_dynamic_select where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c';
13 +
14 +/******************************添加****************************************************************************/
15 +
16 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('724e4fca-4e91-4888-bc18-1ba639b4460c', '经营渠道', null, null);
17 +
18 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('6f8e0b82-33e4-4a56-9844-5efdf078b368', '724e4fca-4e91-4888-bc18-1ba639b4460c', '经营渠道表', 'mtChannel', 1, null, null, 1, 1, null, null);
19 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('1a3b8ddb-fbb9-4ccd-9890-2b3bdc7e8310', '724e4fca-4e91-4888-bc18-1ba639b4460c', '经营渠道-品牌表', 'mtChannelBrand', 3, null, '${thisTable}.chId=${masterTable}.chId', 1, 2, null, null);
20 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('9fb16698-df4b-4738-a5ad-539861be9a6f', '724e4fca-4e91-4888-bc18-1ba639b4460c', '经营品牌表', 'mtBrand', 3, null, '${thisTable}.brId=t2.brId', 2, 3, null, null);
21 +
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('029ec0af-814d-4e15-84e5-db558b780bd2', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '经营主体Id', NULL, 'beId', '\0', '4', '1', '1', '1', '', '1', NULL, '1', NULL, 't1.chId IN (SELECT chId FROM mtBizChannel WHERE beId=${beId})', NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '');
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('4dbe8fb2-cbeb-40cd-ba68-208e8acc4a0e', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '编号', null, 'chId', true, 3, 1, 2, 11, false, 1, null, 1, null, null, null, '不限', null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, true);
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('d0050078-855d-47f2-95f6-500949ea2106', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '过滤已选渠道', null, 'filter', false, 4, 1, 1, 1, true, 1, null, 1, null, 'CASE WHEN (SELECT plId FROM smUsers WHERE usId = ${filter}) = 1 THEN 1 = 1 WHEN (SELECT plId FROM smUsers WHERE usId = ${filter}) <> 1 THEN t1.chId IN ( SELECT usp.chId FROM smUsers us LEFT JOIN smUsPermission usp ON us.usId = usp.usId WHERE us.usId = ${filter} AND us.plId = ( SELECT plId FROM smUsers WHERE usId = ${filter} ) ) END', null, '', null, '${userId}', null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, false);
25 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('a3e7dae9-014a-46d8-be37-9cb9154b9bd0', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '名称', null, 'chName', false, 1, 1, 1, 1, false, 1, null, 1, null, '${thisTable}.chName like CONCAT(''%'',${chName},''%'')', null, '不限', null, null, null, null, 150, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
26 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('3cdcdc67-cf72-4f79-9a0a-469a88188fe5', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '描述', null, 'chDesc', false, 1, 1, 1, 1, false, 1, null, 1, null, '${thisTable}.chDesc like CONCAT(''%'',${chDesc},''%'')', null, '不限', null, null, null, null, 300, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
27 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('64b01f21-524a-40f4-80f0-40a669029f29', '9fb16698-df4b-4738-a5ad-539861be9a6f', '经营品牌', null, 'brName', false, 3, 1, 1, 1, false, 1, null, 1, null, null, null, '不限', null, null, null, null, 260, null, null, null, null, null, null, null, 1, 1, null, null, true, 4, false, false);
28 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('776c56a5-4eb2-4849-8ea7-93d0996454fd', '6f8e0b82-33e4-4a56-9844-5efdf078b368', '可用', null, 'ptValid', false, 1, 1, 2, 21, false, 1, null, 1, null, null, null, '不限', null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 5, false, true);
29 +
30 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('68f40c3e-beed-41ad-b4e5-f04e36bec979', '776c56a5-4eb2-4849-8ea7-93d0996454fd', '1', '是', null, null, null);
31 +INSERT INTO pl_dynamic_field_data (dfd_id, df_id, dfd_code, dfd_name, dfd_ext, dfd_group, dfd_parent) VALUES ('d54b56f1-6a14-483b-8afd-bedfe4ef86dc', '776c56a5-4eb2-4849-8ea7-93d0996454fd', '0', '否', null, null, null);
32 +
33 +
34 +/******************************查询****************************************************************************/
35 +select * from pl_dynamic_select where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c';
36 +select * from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c' order by dt_sort asc;
37 +
38 +select * from pl_dynamic_field
39 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c')
40 +order by df_sort asc;
41 +
42 +select * from pl_dynamic_field_data where df_id in(
43 +select df_id from pl_dynamic_field
44 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='724e4fca-4e91-4888-bc18-1ba639b4460c')
45 +);
...\ No newline at end of file ...\ No newline at end of file
1 +/******************************删除****************************************************************************/
2 +delete from pl_dynamic_field_data where df_id in(
3 +select df_id from pl_dynamic_field
4 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721')
5 +);
6 +
7 +delete from pl_dynamic_field
8 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721');
9 +
10 +delete from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721';
11 +
12 +delete from pl_dynamic_select where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721';
13 +
14 +/******************************添加****************************************************************************/
15 +
16 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('823a7361-dbb8-44c2-a3d4-af3323203721', '结算账套', NULL, NULL);
17 +
18 +
19 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('871e2bb6-850c-4e16-9eca-1a6c030606f6', '823a7361-dbb8-44c2-a3d4-af3323203721', '结算账套', 'mtBizSetOfBook', '1', NULL, NULL, '1', '1', NULL, NULL);
20 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select, dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('31f95b38-35d5-44ef-a5c6-075a65a43b8b', '823a7361-dbb8-44c2-a3d4-af3323203721', '经营主体', 'mtBizEntity', '3', NULL, 't1.beId = t2.beId', '1', '2', NULL, NULL);
21 +
22 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('6404e689-33d4-4420-baf6-3e1955b7e983', '31f95b38-35d5-44ef-a5c6-075a65a43b8b', '主体名称', NULL, 'beName', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
23 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('7777ccd7-993e-4903-94d7-ee1c67ac948b', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '备注', NULL, 'ptRemark', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
24 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('792be0ce-468d-4109-938b-3ffc5265b1a3', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '经营主体ID', NULL, 'beId', '\0', '4', '1', '1', '1', '\0', '1', NULL, '1', NULL, 't1.beId=${beId}', NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
25 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('79581478-638d-47d1-b7d6-23274922fc65', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '渠道有效性', NULL, 'ptValid', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
26 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('a7583e34-b92a-4110-9402-b07b5f6ce693', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '结算账套编号', NULL, 'bebCode', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
27 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('ac67f207-6785-4f9e-b3d3-253d39cd0b27', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '结算账套ID', NULL, 'bebId', '\0', '1', '1', '1', '1', '', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
28 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('af1b61d9-c59b-4b94-9cbd-ddd47532716e', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '结算账套详情', NULL, 'bebDesc', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
29 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('e131ace0-cf22-47b0-9d16-6926f68f539f', '871e2bb6-850c-4e16-9eca-1a6c030606f6', '结算账套名称', NULL, 'bebName', '\0', '1', '1', '1', '1', '\0', '1', NULL, '1', NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', '\0', '\0');
30 +
31 +/******************************查询****************************************************************************/
32 +select * from pl_dynamic_select where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721';
33 +select * from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721' order by dt_sort asc;
34 +select * from pl_dynamic_field
35 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721')
36 +order by df_sort asc;
37 +
38 +select * from pl_dynamic_field_data where df_id in(
39 +select df_id from pl_dynamic_field
40 +where dt_id in (select dt_id from pl_dynamic_table where ds_id ='823a7361-dbb8-44c2-a3d4-af3323203721')
41 +);
...\ No newline at end of file ...\ No newline at end of file
1 +DELETE FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08' ORDER BY dt_sort);
2 +DELETE FROM pl_dynamic_table WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08' ORDER BY dt_sort;
3 +DELETE FROM pl_dynamic_select WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08';
4 +
5 +SELECT * FROM pl_dynamic_select WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08';
6 +SELECT * FROM pl_dynamic_table WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08' ORDER BY dt_sort;
7 +SELECT * FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='2582a029-3902-4934-a206-d638f96d4b08' ORDER BY dt_sort);
8 +
9 +INSERT INTO `pl_dynamic_select` (`ds_id`, `ds_name`, `ds_describe`, `ds_create_time`) VALUES ('2582a029-3902-4934-a206-d638f96d4b08', '账套-顾客移动平台查询', NULL, NULL);
10 +
11 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('0e3850d0-5ef9-417d-a153-d1abfee4a67a', '2582a029-3902-4934-a206-d638f96d4b08', '微信公众号', 'crm_wxgzh', '1', NULL, NULL, '1', '1', NULL, NULL);
12 +INSERT INTO `pl_dynamic_table` (`dt_id`, `ds_id`, `dt_name`, `dt_tablename`, `dt_type`, `dt_ref_select`, `dt_on`, `dt_relation`, `dt_sort`, `dt_create_time`, `dt_update_time`) VALUES ('0494c8fc-d9c6-45b6-bb6e-453b17c351e1', '2582a029-3902-4934-a206-d638f96d4b08', '帐户数据项限制', 'smUsDataItem', '3', NULL, 't2.extStringId = t1.GZH_ID', '1', '2', NULL, NULL);
13 +
14 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('8b1dc08a-0171-4d0e-9f43-bf338537731d', '0494c8fc-d9c6-45b6-bb6e-453b17c351e1', '用户ID', NULL, 'usId', false, '4', '1', '1', '1', true, '1', NULL, NULL, NULL, 't2.usId = ${usId}', NULL, NULL, NULL, '${userId}', NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
15 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('3de5e308-3169-49ab-83d4-bbbd87c142b1', '0e3850d0-5ef9-417d-a153-d1abfee4a67a', '名称', NULL, 'NICK_NAME', false, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
16 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('b854f110-bcf3-4cc4-bb0a-f56ab043c517', '0e3850d0-5ef9-417d-a153-d1abfee4a67a', '类型', NULL, 'GZH_TYPE', false, '1', '1', '1', '1', true, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, true);
17 +INSERT INTO `pl_dynamic_field` (`df_id`, `dt_id`, `df_name`, `df_field_asname`, `df_field_name`, `df_primary`, `df_type`, `df_group`, `df_data_type`, `df_filter_type`, `df_filter_hidden`, `df_select_type`, `df_ref_select`, `df_ref_type`, `df_select_format`, `df_where_format`, `df_having_format`, `df_empty_tips`, `df_notnull`, `df_defval`, `df_regex`, `df_regex_error`, `df_width`, `df_decimals`, `df_maxvalue`, `df_minvalue`, `df_maxlength`, `df_minlength`, `df_temp_text`, `df_temp_sql`, `df_data_use_type`, `df_data_show_type`, `df_data_sql`, `df_orderby`, `df_group_concat`, `df_sort`, `df_disable`, `df_select_hidden`) VALUES ('e9b80178-085d-4b9b-8822-19d2dc007e00', '0e3850d0-5ef9-417d-a153-d1abfee4a67a', '公众号ID', NULL, 'GZH_ID', true, '1', '1', '1', '1', false, '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, '1', false, false);
This diff is collapsed. Click to expand it.
1 +/**登录账户-操作权限--操作角色DELEETE*******************************************************************************************************/
2 +DELETE FROM pl_dynamic_field WHERE dt_id in(SELECT dt_id FROM pl_dynamic_table WHERE ds_id='e3b6fe1f-62bd-4e50-973b-025dba1ae759' ORDER BY dt_sort);
3 +DELETE FROM pl_dynamic_table WHERE ds_id='e3b6fe1f-62bd-4e50-973b-025dba1ae759' ORDER BY dt_sort;
4 +DELETE FROM pl_dynamic_select WHERE ds_id='e3b6fe1f-62bd-4e50-973b-025dba1ae759';
5 +
6 +/**登录账户-操作权限--操作角色INSERT*******************************************************************************************************/
7 +INSERT INTO pl_dynamic_select (ds_id, ds_name, ds_describe, ds_create_time) VALUES ('e3b6fe1f-62bd-4e50-973b-025dba1ae759', '登录账户-角色查询', NULL, NULL);
8 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select ,dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('e6d70656-af2a-41ec-96c4-92106372101c', 'e3b6fe1f-62bd-4e50-973b-025dba1ae759', '用户角色', 'smRole', '1', NULL, NULL, '1', '1', NULL, NULL);
9 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select ,dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('154a8b3c-8d70-4a19-8aad-14a10cbe882c', 'e3b6fe1f-62bd-4e50-973b-025dba1ae759', '用户平台类型', 'smPlatformType', '3', NULL, 't2.pltId = t1.pltId', '1', '2', NULL, NULL);
10 +INSERT INTO pl_dynamic_table (dt_id, ds_id, dt_name, dt_tablename, dt_type, dt_ref_select ,dt_on, dt_relation, dt_sort, dt_create_time, dt_update_time) VALUES ('bc608e67-69d2-450e-a0ca-74d84b355ab3', 'e3b6fe1f-62bd-4e50-973b-025dba1ae759', '用户平台', 'smPlatform', '3', NULL, 't3.plId = t1.plId', '1', '3', NULL, NULL);
11 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('03799b59-b784-4be9-9c58-3a97f7ae1f5e', 'e6d70656-af2a-41ec-96c4-92106372101c', '角色ID', null, 'roId', true, 1, 1, 1, 1, true, 1, null, null, null, null, null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 1, false, true);
12 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('80da2ad7-3556-4917-9f52-8a923ef0378c', 'e6d70656-af2a-41ec-96c4-92106372101c', '角色编号', null, 'roCode', false, 1, 1, 1, 1, false, 1, null, null, 'LPAD(roId,3,''0'')', 'locate(${roCode},LPAD(${masterTable}.roId,3,''0''))>0', null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 2, false, false);
13 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('7d01d471-dce9-459e-b836-3dc338100ea3', 'e6d70656-af2a-41ec-96c4-92106372101c', '角色名称', null, 'roName', false, 1, 1, 1, 1, false, 1, null, null, null, 'locate(${roName},${masterTable}.roName)>0', null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 3, false, false);
14 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('8e99e5eb-1d74-4bda-94ff-dc2ae243aaf5', 'e6d70656-af2a-41ec-96c4-92106372101c', '角色描述', null, 'roDesc', false, 1, 1, 1, 1, false, 1, null, null, null, 'locate(${roDesc},${masterTable}.roDesc)>0', null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 4, false, false);
15 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('8687bc4d-9a59-47da-b1d7-3277e009d790', 'bc608e67-69d2-450e-a0ca-74d84b355ab3', '创建平台', null, 'plName', false, 1, 1, 1, 1, true, 1, null, null, null, null, null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 5, false, false);
16 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('40399d6f-ec35-4ba7-9cb4-1bda0ec274dc', '154a8b3c-8d70-4a19-8aad-14a10cbe882c', '平台类型', null, 'pltName', false, 1, 1, 1, 1, true, 1, null, null, null, null, null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 6, false, false);
17 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('00b494b1-87a4-402d-86a3-1f0dfe39b0cc', 'e6d70656-af2a-41ec-96c4-92106372101c', '按平台过滤角色', null, 'filter', false, 4, 1, 1, 1, true, 1, null, 1, null, 't2.pltId =( SELECT pltId FROM smPlatform WHERE plId=${filter} ) AND t1.ptValid=1', null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 7, false, true);
18 +INSERT INTO pl_dynamic_field (df_id, dt_id, df_name, df_field_asname, df_field_name, df_primary, df_type, df_group, df_data_type, df_filter_type, df_filter_hidden, df_select_type, df_ref_select, df_ref_type, df_select_format, df_where_format, df_having_format, df_empty_tips, df_notnull, df_defval, df_regex, df_regex_error, df_width, df_decimals, df_maxvalue, df_minvalue, df_maxlength, df_minlength, df_temp_text, df_temp_sql, df_data_use_type, df_data_show_type, df_data_sql, df_orderby, df_group_concat, df_sort, df_disable, df_select_hidden) VALUES ('7468b187-9773-43aa-b694-7dc6858918af', 'e6d70656-af2a-41ec-96c4-92106372101c', '有效性', null, 'ptValid', false, 4, 1, 1, 1, true, 1, null, 1, null, 't1.ptValid=1', null, null, null, null, null, null, 100, null, null, null, null, null, null, null, 1, 1, null, null, null, 8, false, true);
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +ALTER TABLE mtCorp MODIFY COLUMN ptChief VARCHAR(20) COMMENT '负责人';
2 +ALTER TABLE mtCorp ADD COLUMN plId int null comment '创建平台';
3 +
4 +/*收/付款方式20160216*/
5 +create table mtPayway
6 +(
7 + pwId int not null auto_increment comment '收款方式ID',
8 + pwCode varchar(30) comment '助记码',
9 + pwName varchar(120) not null comment '收款方式名称',
10 + cuId int not null comment '币种单位ID',
11 + pwChange bit comment '是否找零',
12 + pwSort int null default 1 comment '排序',
13 + ptValid smallint default 1 comment '有效性',
14 + ptRemark1 varchar(100) comment '备用字段',
15 + ptRemark2 varchar(200) comment '备用字段2',
16 + ptUpTime datetime comment '最新修改时间',
17 + ptUpdater int comment '最新修改人',
18 + primary key (pwId)
19 +);
20 +alter table mtPayway comment '收/付款方式,字段前缀(pw)';
21 +
22 +
23 +ALTER TABLE mtBizPayway ADD COLUMN pwId int null comment '付款方式';
24 +
25 +ALTER TABLE mtBizPayway DROP COLUMN cuId;
26 +ALTER TABLE mtBizPayway DROP COLUMN bepRate;
27 +
28 +create index idx_mtBizPayway_pwId on mtBizPayway(pwId); /*20160518*/
29 +
30 +ALTER TABLE mtSitePayway DROP COLUMN sipName;
31 +ALTER TABLE mtSitePayway DROP COLUMN cuId;
32 +ALTER TABLE mtSitePayway DROP COLUMN sipRate;
33 +ALTER TABLE mtSitePayway DROP COLUMN beaId;
34 +ALTER TABLE mtSitePayway DROP COLUMN sipAccount;
35 +ALTER TABLE mtSitePayway DROP COLUMN sipProceeds;
36 +ALTER TABLE mtSitePayway DROP COLUMN sipPayee;
37 +
38 +ALTER TABLE mtPost MODIFY poId INT UNSIGNED AUTO_INCREMENT;
39 +
40 +ALTER TABLE mtBizEntityInfo ADD COLUMN chId int not null comment '经营渠道ID';
41 +create index idx_mtBizEntityInfo on mtBizEntityInfo(beId,chId);
42 +
43 +
44 +ALTER TABLE mtOrganization ADD COLUMN orSort int null default 1 comment '组织排序'
45 +
46 +drop table mtOrgLevel;
47 +/*管辖组织层级*/
48 +create table mtOrgLevel
49 +(
50 + orlId int not null comment '管辖组织层级名称ID',
51 + beId int comment '经营主体ID',
52 + orlName varchar(120) comment '管理组织名称',
53 + ptUpTime datetime comment '最新修改时间',
54 + ptUpdater int comment '最新修改人',
55 + primary key (orlId,beId)
56 +);
57 +alter table mtOrgLevel comment '管辖组织';
58 +
59 +
60 +ALTER TABLE smUsDataItem ADD COLUMN extStringId varchar(60) comment '关联 String ID';
61 +/*ALTER TABLE smUsPermission CHANGE moId orId INT NOT NULL COMMENT '管辖组织ID';*/
62 +
63 +ALTER TABLE mtSite ADD COLUMN orId int comment '管辖组织';
64 +ALTER TABLE mtSite ADD COLUMN chId int comment '短信通道';
65 +
66 +ALTER TABLE mtBizSetOfBook ADD COLUMN bebDefault bit null default 0 comment '是否默认结算主体'; /*20160624*/
67 +ALTER TABLE mtBizSetOfBook ADD COLUMN bebSort int null default 1 comment '结算主体排序'; /*20160624*/
...\ No newline at end of file ...\ No newline at end of file
1 +ALTER TABLE mtOrgSetOfBook ADD COLUMN orbDefault bit null comment '适用/不适用';
2 +ALTER TABLE mtOrgSetOfBook ADD COLUMN orbSort int null default 1 comment '排序'; /*20160624*/
3 +ALTER TABLE mtOrgSetOfBook MODIFY COLUMN bebId INT COMMENT '结算主体ID';
4 +ALTER TABLE smMsgChannel MODIFY COLUMN mcAccount varchar(100) comment '登录到邮箱服务器的账户 ';
5 +
6 +ALTER TABLE smMenu ADD COLUMN meDisable bit null default 0 comment '禁用';
7 +
8 +ALTER TABLE smMenu MODIFY COLUMN meSys bit null default 1 comment '是否为系统菜单';
9 +
10 +drop view if exists vOrgParentSetOfBook;
11 +
12 +drop view if exists vOrgSetOfBook;
13 +create view vOrgSetOfBook
14 +as
15 +SELECT
16 + t1.orId,
17 + t5.chId chId,
18 + ifnull(t3.bebId,t2.bebId) bebId,
19 + ifnull(t3.orbDefault,ifnull(t2.orbDefault,0)) orbDefault,
20 + ifnull(t2.orbDefault,1) orbEnable,
21 + ifnull(t3.orbSort,t2.orbSort) orbSort
22 +FROM mtOrgInfo t1
23 +INNER JOIN mtOrganization t4 on t1.orParent=t4.orId
24 +INNER JOIN mtBizChannel t5 on t5.beId=t4.beId
25 +LEFT JOIN mtOrgSetOfBook t2 ON t1.orParent = t2.orId and t2.chId=t5.chId
26 +LEFT JOIN mtOrgSetOfBook t3 ON t1.orId = t3.orId and t3.chId=t5.chId
27 +WHERE t1.orLevel = (
28 + SELECT ifnull(max(orLevel),t1.orLevel)
29 + FROM mtOrgInfo s1
30 + INNER JOIN mtOrgSetOfBook s2 ON s1.orParent = s2.orId
31 + WHERE s1.orId<>s1.orParent and s1.orId = t1.orId
32 +);
33 +delete from smRoleMenuAction where roId=1;
34 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 1);
35 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 130);
36 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 2);
37 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 124);
38 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 36);
39 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 125);
40 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 37);
41 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 126);
42 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 38);
43 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 127);
44 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 3);
45 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 140);
46 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 4);
47 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 141);
48 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 39);
49 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 40);
50 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 5);
51 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 108);
52 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 41);
53 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 122);
54 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 42);
55 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 123);
56 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 6);
57 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 131);
58 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 43);
59 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 132);
60 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 44);
61 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 133);
62 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 7);
63 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 99);
64 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 45);
65 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 121);
66 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 8);
67 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 16);
68 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 9);
69 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 19);
70 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 46);
71 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 59);
72 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 47);
73 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 60);
74 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 15);
75 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 20);
76 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 48);
77 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 61);
78 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 49);
79 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 62);
80 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 50);
81 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 63);
82 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 51);
83 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 64);
84 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 52);
85 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 65);
86 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 53);
87 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 66);
88 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 11);
89 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 98);
90 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 12);
91 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 25);
92 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 13);
93 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 134);
94 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 54);
95 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 135);
96 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 55);
97 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 136);
98 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 56);
99 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 137);
100 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 57);
101 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 138);
102 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 58);
103 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 139);
104 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 14);
105 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 26);
106 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 27);
107 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 74);
108 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 106);
109 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 107);
110 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 94);
111 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 95);
112 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 75);
113 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 194);
114 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 195);
115 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 196);
116 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 197);
117 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 198);
118 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 199);
119 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 200);
120 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 201);
121 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 202);
122 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 203);
123 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 204);
124 +INSERT INTO smRoleMenuAction (roId, meaId) VALUES (1, 205);
1 +--ALTER TABLE pl_dynamic_field MODIFY COLUMN df_field_name VARCHAR(500) NOT NULL;
2 +
3 +ALTER TABLE mtSite CHANGE chId mcId INT COMMENT '短信通道';
4 +
5 +ALTER TABLE mtSiteRange ADD COLUMN sirCode varchar(100) null COMMENT '网点范围code';
...\ No newline at end of file ...\ No newline at end of file
1 +drop view if exists vOrgChannel;
2 +create view vOrgChannel
3 +as
4 + select concat('-',chId) id,chId itemId,chName name,chId,null parent,1 sort from mtChannel where ptValid=1
5 + union all
6 + select
7 + concat(t1.orId,concat('-',t1.chId)) id,t1.orId itemId,t2.orName name,t1.chId,
8 + concat(ifnull(t2.orParent,''),concat('-',t1.chId)) parent,
9 + t2.orSort sort
10 + from vOrgSetOfBook t1
11 + inner join mtOrganization t2 on t1.orId=t2.orId
12 + where t1.orbDefault=1 AND t1.orbEnable = 1
13 +;
14 +
15 +drop view if exists vPlatform;
16 +create view vPlatform
17 +as
18 + SELECT
19 + plId, pltId, beId,siId, plCode, plName, plLoginType, ptValid, plReg, plLogo, plPermNum, plStartDate, plEndDate, ptUpdater, ptUpTime,
20 + ifnull((select 1 from dual where (NOW() BETWEEN IFNULL(t.plStartDate,now()) AND IFNULL(t.plEndDate,now())) and t.ptValid),0) plStatus
21 + FROM smPlatform t
22 +;
23 +
24 +truncate table qrtz_cron_triggers;
25 +truncate table qrtz_blob_triggers;
26 +truncate table qrtz_triggers;
27 +truncate table qrtz_scheduler_state;
28 +truncate table qrtz_locks;
29 +truncate table qrtz_job_details;
30 +
31 +
32 +DELETE FROM smusdataitem WHERE usId = 0;
33 +drop index idx_mtOrgSetOfBook on mtOrgSetOfBook;
34 +create index idx_mtOrgSetOfBook_orId on mtOrgSetOfBook(orId);
35 +create index idx_mtOrgSetOfBook_chId on mtOrgSetOfBook(chId);
36 +
37 +ALTER TABLE smMsgChannel CHANGE mcPassword mcPassword varchar(1200) comment '登录到邮箱服务器的密码';
38 +
1 +INSERT INTO smMsgProvider (mpId, mpName, mpDesc, mpUrl, mpAuthType, mpServiceType, mpClassname, mpRemark, mpUpdater, mpUpTime) VALUES ('5', '凹凸租车', '凹凸租车', 'http://120.27.145.96:9020/v1/sms', '5', '0', 'cn.runsa.portal.base.utils.sender.sms.auto.AutoSmsSender', NULL, NULL, NULL);
2 +ALTER TABLE pl_dynamic_field MODIFY COLUMN df_field_name VARCHAR(500) NOT NULL;
...\ No newline at end of file ...\ No newline at end of file
1 +create index idx_mtSiteBrand_sirId on mtSiteBrand(sirId);
2 +
3 +ALTER TABLE smusdataitem MODIFY COLUMN usdStatus INT COMMENT '1: 可见范围的条件 2:可编辑范围';
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 + <modelVersion>4.0.0</modelVersion>
4 + <groupId>cn.runsa</groupId>
5 + <artifactId>portal</artifactId>
6 + <version>0.0.1-SNAPSHOT</version>
7 + <packaging>pom</packaging>
8 + <name>浪沙门户</name>
9 + <description>浪沙门户,基础资料,权限管理</description>
10 + <properties>
11 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12 + <runsa_crm_version>1.0.1-SNAPSHOT</runsa_crm_version>
13 + <servlet_version>3.1.0</servlet_version>
14 + <junit_version>4.11</junit_version>
15 + <spring_version>4.1.1.RELEASE</spring_version>
16 + <aspectj_version>1.7.4</aspectj_version>
17 + <jackson_version>1.9.13</jackson_version>
18 + <jackson_xml_version>2.3.1</jackson_xml_version>
19 + <xml_version>2.2.11</xml_version>
20 + <mybatis_version>3.2.6</mybatis_version>
21 + <mybatis_spring_version>1.2.2</mybatis_spring_version>
22 + <druid_version>1.0.9</druid_version>
23 + <mysql_version>5.1.38</mysql_version>
24 + <logback_version>1.1.2</logback_version>
25 + <logback_spring_version>0.1.2</logback_spring_version>
26 + <jcl_slf4j_version>1.7.6</jcl_slf4j_version>
27 + <janino_version>2.7.5</janino_version>
28 + <ehcache_core_version>2.5.0</ehcache_core_version>
29 + <ehcache_web_version>2.0.4</ehcache_web_version>
30 + <commons_lang_version>3.4</commons_lang_version>
31 + <commons_io_version>2.4</commons_io_version>
32 + <commons_beanutils_version>1.9.2</commons_beanutils_version>
33 + <commoms_vfs2_version>2.0</commoms_vfs2_version>
34 + <jcraft_version>0.1.53</jcraft_version>
35 + <commoms_fileupload_version>1.3.1</commoms_fileupload_version>
36 + <commons_configuration_version>1.10</commons_configuration_version>
37 + <commons_codec_version>1.10</commons_codec_version>
38 + <httpcomponents_version>4.5.2</httpcomponents_version>
39 + <fastjson_version>1.2.7</fastjson_version>
40 + <shiro_version>1.2.3</shiro_version>
41 + <shiro_redis_version>2.4.2.1-RELEASE</shiro_redis_version>
42 + <fastjson_version>1.2.7</fastjson_version>
43 + <kaptcha_version>2.3.2</kaptcha_version>
44 + <apache_oltu_version>1.0.1</apache_oltu_version>
45 +
46 + <jtds_version>1.3.1</jtds_version>
47 + <jackson_other_version>2.5.0</jackson_other_version>
48 + <dubbo_version>2.5.3</dubbo_version>
49 + <zkclient_version>0.4</zkclient_version>
50 + <spring_redis_version>1.6.4.RELEASE</spring_redis_version>
51 + <redis_version>2.7.3</redis_version>
52 + <jstl_version>1.2</jstl_version>
53 + </properties>
54 + <build>
55 + <plugins>
56 + <plugin>
57 + <groupId>org.apache.maven.plugins</groupId>
58 + <artifactId>maven-compiler-plugin</artifactId>
59 + <version>3.1</version>
60 + <configuration>
61 + <source>1.7</source>
62 + <target>1.7</target>
63 + <encoding>${project.build.sourceEncoding}</encoding>
64 + </configuration>
65 + </plugin>
66 + </plugins>
67 + </build>
68 + <distributionManagement>
69 + <repository>
70 + <id>runsa-release</id> <!-- 保证和server id-->
71 + <name>Releases Maven Repository</name>
72 + <url>http://reg.runsa.cn:8089/maven/content/repositories/releases/</url>
73 + </repository>
74 + <snapshotRepository>
75 + <id>runsa-snap</id> <!-- 保证和server id-->
76 + <name>Snapshots Maven Repository</name>
77 + <url>http://reg.runsa.cn:8089/maven/content/repositories/snapshots/</url>
78 + </snapshotRepository>
79 + </distributionManagement>
80 +
81 + <modules>
82 + <module>portal.base</module>
83 + <module>portal.query</module>
84 + </modules>
85 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0"?>
2 +<project
3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4 + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5 + <modelVersion>4.0.0</modelVersion>
6 + <parent>
7 + <groupId>cn.runsa</groupId>
8 + <artifactId>portal</artifactId>
9 + <version>0.0.1-SNAPSHOT</version>
10 + </parent>
11 + <artifactId>portal.base</artifactId>
12 + <name>portal.base</name>
13 + <url>http://maven.apache.org</url>
14 + <properties>
15 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16 + </properties>
17 + <dependencies>
18 + <dependency>
19 + <groupId>junit</groupId>
20 + <artifactId>junit</artifactId>
21 + <version>${junit_version}</version>
22 + <scope>test</scope>
23 + </dependency>
24 +
25 + <!-- JSTL -->
26 + <dependency>
27 + <groupId>javax.servlet</groupId>
28 + <artifactId>jstl</artifactId>
29 + <version>${jstl_version}</version>
30 + </dependency>
31 +
32 + <!-- servlet -->
33 + <dependency>
34 + <groupId>javax.servlet</groupId>
35 + <artifactId>javax.servlet-api</artifactId>
36 + <version>${servlet_version}</version>
37 + </dependency>
38 +
39 + <!-- utils -->
40 + <dependency>
41 + <groupId>org.apache.commons</groupId>
42 + <artifactId>commons-lang3</artifactId>
43 + <version>${commons_lang_version}</version>
44 + </dependency>
45 + <dependency>
46 + <groupId>commons-io</groupId>
47 + <artifactId>commons-io</artifactId>
48 + <version>${commons_io_version}</version>
49 + </dependency>
50 + <dependency>
51 + <groupId>commons-beanutils</groupId>
52 + <artifactId>commons-beanutils</artifactId>
53 + <version>${commons_beanutils_version}</version>
54 + </dependency>
55 + <dependency>
56 + <groupId>org.apache.commons</groupId>
57 + <artifactId>commons-vfs2</artifactId>
58 + <version>${commoms_vfs2_version}</version>
59 + </dependency>
60 + <dependency>
61 + <groupId>com.jcraft</groupId>
62 + <artifactId>jsch</artifactId>
63 + <version>${jcraft_version}</version>
64 + </dependency>
65 + <dependency>
66 + <groupId>commons-fileupload</groupId>
67 + <artifactId>commons-fileupload</artifactId>
68 + <version>${commoms_fileupload_version}</version>
69 + </dependency>
70 + <dependency>
71 + <groupId>commons-configuration</groupId>
72 + <artifactId>commons-configuration</artifactId>
73 + <version>${commons_configuration_version}</version>
74 + </dependency>
75 + <dependency>
76 + <groupId>commons-codec</groupId>
77 + <artifactId>commons-codec</artifactId>
78 + <version>${commons_codec_version}</version>
79 + </dependency>
80 + <dependency>
81 + <groupId>org.apache.httpcomponents</groupId>
82 + <artifactId>httpclient</artifactId>
83 + <version>${httpcomponents_version}</version>
84 + </dependency>
85 + <dependency>
86 + <groupId>org.apache.commons</groupId>
87 + <artifactId>commons-email</artifactId>
88 + <version>1.4</version>
89 + </dependency>
90 +
91 + <!-- logback -->
92 + <dependency>
93 + <groupId>ch.qos.logback</groupId>
94 + <artifactId>logback-classic</artifactId>
95 + <version>${logback_version}</version>
96 + </dependency>
97 + <dependency>
98 + <groupId>org.logback-extensions</groupId>
99 + <artifactId>logback-ext-spring</artifactId>
100 + <version>${logback_spring_version}</version>
101 + </dependency>
102 + <dependency>
103 + <groupId>org.slf4j</groupId>
104 + <artifactId>jcl-over-slf4j</artifactId>
105 + <version>${jcl_slf4j_version}</version>
106 + </dependency>
107 + <dependency>
108 + <groupId>org.codehaus.janino</groupId>
109 + <artifactId>janino</artifactId>
110 + <version>${janino_version}</version>
111 + </dependency>
112 + <!-- spring jdbc -->
113 + <dependency>
114 + <groupId>org.springframework</groupId>
115 + <artifactId>spring-jdbc</artifactId>
116 + <version>${spring_version}</version>
117 + </dependency>
118 + <dependency>
119 + <groupId>org.springframework</groupId>
120 + <artifactId>spring-beans</artifactId>
121 + <version>${spring_version}</version>
122 + </dependency>
123 + <dependency>
124 + <groupId>org.springframework</groupId>
125 + <artifactId>spring-orm</artifactId>
126 + <version>${spring_version}</version>
127 + </dependency>
128 + <dependency>
129 + <groupId>org.springframework</groupId>
130 + <artifactId>spring-oxm</artifactId>
131 + <version>${spring_version}</version>
132 + </dependency>
133 + <dependency>
134 + <groupId>org.springframework</groupId>
135 + <artifactId>spring-web</artifactId>
136 + <version>${spring_version}</version>
137 + </dependency>
138 + <dependency><!-- spring test -->
139 + <groupId>org.springframework</groupId>
140 + <artifactId>spring-test</artifactId>
141 + <version>${spring_version}</version>
142 + </dependency>
143 + <dependency><!-- spring AOP所属包 -->
144 + <groupId>org.aspectj</groupId>
145 + <artifactId>aspectjrt</artifactId>
146 + <version>${aspectj_version}</version>
147 + </dependency>
148 + <dependency><!-- spring AOP所属包 -->
149 + <groupId>org.aspectj</groupId>
150 + <artifactId>aspectjweaver</artifactId>
151 + <version>${aspectj_version}</version>
152 + </dependency>
153 + <dependency>
154 + <groupId>org.mybatis</groupId>
155 + <artifactId>mybatis</artifactId>
156 + <version>${mybatis_version}</version>
157 + </dependency>
158 + <dependency>
159 + <groupId>org.mybatis</groupId>
160 + <artifactId>mybatis-spring</artifactId>
161 + <version>${mybatis_spring_version}</version>
162 + </dependency>
163 +
164 + <dependency>
165 + <groupId>redis.clients</groupId>
166 + <artifactId>jedis</artifactId>
167 + <version>${redis_version}</version>
168 + </dependency>
169 + <dependency>
170 + <groupId>org.springframework.data</groupId>
171 + <artifactId>spring-data-redis</artifactId>
172 + <version>${spring_redis_version}</version>
173 + </dependency>
174 +
175 + <dependency>
176 + <groupId>com.alibaba</groupId>
177 + <artifactId>druid</artifactId>
178 + <version>${druid_version}</version>
179 + <exclusions>
180 + <exclusion>
181 + <groupId>org.springframework</groupId>
182 + <artifactId>spring</artifactId>
183 + </exclusion>
184 + </exclusions>
185 + </dependency>
186 +
187 + <dependency>
188 + <groupId>mysql</groupId>
189 + <artifactId>mysql-connector-java</artifactId>
190 + <version>${mysql_version}</version>
191 + </dependency>
192 +
193 + <!-- ehcache -->
194 + <dependency>
195 + <groupId>net.sf.ehcache</groupId>
196 + <artifactId>ehcache-core</artifactId>
197 + <version>${ehcache_core_version}</version>
198 + </dependency>
199 + <!-- fastjson -->
200 + <dependency>
201 + <groupId>com.alibaba</groupId>
202 + <artifactId>fastjson</artifactId>
203 + <version>${fastjson_version}</version>
204 + </dependency>
205 +
206 + <!-- mail -->
207 + <dependency>
208 + <groupId>com.microsoft.ews-java-api</groupId>
209 + <artifactId>ews-java-api</artifactId>
210 + <version>2.0</version>
211 + </dependency>
212 +
213 + <!-- crm -->
214 + <dependency>
215 + <groupId>cn.runsa</groupId>
216 + <artifactId>crm-base</artifactId>
217 + <version>${runsa_crm_version}</version>
218 + <exclusions>
219 + <exclusion>
220 + <groupId>redis.clients</groupId>
221 + <artifactId>jedis</artifactId>
222 + </exclusion>
223 + <exclusion>
224 + <groupId>org.springframework.data</groupId>
225 + <artifactId>spring-data-redis</artifactId>
226 + </exclusion>
227 + </exclusions>
228 + </dependency>
229 + </dependencies>
230 + <build>
231 + <plugins>
232 + <plugin>
233 + <groupId>org.mybatis.generator</groupId>
234 + <artifactId>mybatis-generator-maven-plugin</artifactId>
235 + <version>1.3.2</version>
236 + <configuration>
237 + <!--允许覆盖生成的文件 -->
238 + <overwrite>true</overwrite>
239 + </configuration>
240 + <dependencies>
241 + <dependency>
242 + <groupId>mysql</groupId>
243 + <artifactId>mysql-connector-java</artifactId>
244 + <version>${mysql_version}</version>
245 + </dependency>
246 + </dependencies>
247 + </plugin>
248 + </plugins>
249 + </build>
250 +</project>
1 +package cn.runsa.portal.base;
2 +
3 +import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
4 +import org.springframework.beans.factory.config.BeanDefinition;
5 +import org.springframework.beans.factory.support.BeanDefinitionRegistry;
6 +import org.springframework.context.annotation.AnnotationBeanNameGenerator;
7 +import org.springframework.util.StringUtils;
8 +
9 +/**
10 + *
11 + * @author Yijun
12 + *
13 + */
14 +public class QualifiedBeanNameGenerator extends AnnotationBeanNameGenerator{
15 +
16 + @Override
17 + public String generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) {
18 + //先取定义名称
19 + if (definition instanceof AnnotatedBeanDefinition) {
20 + String beanName = determineBeanNameFromAnnotation((AnnotatedBeanDefinition) definition);
21 + if (StringUtils.hasText(beanName)) {
22 + // Explicit bean name found.
23 + return beanName;
24 + }
25 + }
26 + return definition.getBeanClassName();
27 + }
28 +
29 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.Account;
4 +
5 +public interface AccountMapper {
6 + int deleteByPrimaryKey(Integer id);
7 +
8 + int insert(Account record);
9 +
10 + int insertSelective(Account record);
11 +
12 + Account selectByPrimaryKey(Integer id);
13 +
14 + int updateByPrimaryKeySelective(Account record);
15 +
16 + int updateByPrimaryKey(Account record);
17 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.BizAccount;
6 +/**
7 + * 常用账户 BizAccountMapper
8 + * @author hehongjian
9 + * @date 2016年2月23日
10 + */
11 +public interface BizAccountMapper {
12 + /**
13 + * 删除常用账户
14 + * @param beaid
15 + * @return
16 + */
17 + int delete(Integer beaid);
18 + /**
19 + * 新增常用账户
20 + * @param record
21 + * @return
22 + */
23 + int insert(BizAccount record);
24 + /**
25 + * 新增常用账户(字段不为空)
26 + * @param record
27 + * @return
28 + */
29 + int insertSelective(BizAccount record);
30 + /**
31 + * 查询常用账户ById
32 + * @param beaid
33 + * @return
34 + */
35 + BizAccount findById(Integer beaid);
36 + /**
37 + * 编辑常用账户(字段不为空)
38 + * @param record
39 + * @return
40 + */
41 + int updateSelective(BizAccount record);
42 + /**
43 + * 编辑常用账户
44 + * @param record
45 + * @return
46 + */
47 + int update(BizAccount record);
48 + /**
49 + * 根据结算账套查询
50 + * @param record
51 + * @return
52 + */
53 + List<BizAccount> findList(BizAccount record);
54 + /**
55 + * 删除常用账户
56 + * @param bebid
57 + * @return
58 + */
59 + int deleteByBebId(Integer bebid);
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.omg.CORBA.INTERNAL;
7 +
8 +import cn.runsa.portal.base.entity.BizBrand;
9 +import cn.runsa.portal.base.entity.BizChannel;
10 +/**
11 + * 经营主体和渠道的关系 BizChannelMapper
12 + * @author hehongjian
13 + * @date 2016年2月25日
14 + */
15 +public interface BizChannelMapper {
16 + /**
17 + * 删除
18 + * @param id
19 + * @return
20 + */
21 + int delete(Integer id);
22 + /**
23 + * 删除渠道和品牌关系
24 + * @param id
25 + * @return
26 + */
27 + int deleteBizBr(Integer id);
28 + /**
29 + * 新增(全部)
30 + * @param record
31 + * @return
32 + */
33 + int insert(BizChannel record);
34 + /**
35 + * 新增(不为空字段)
36 + * @param record
37 + * @return
38 + */
39 + int insertSelective(BizChannel record);
40 + /**
41 + * 新增渠道和品牌关系
42 + * @param record
43 + * @return
44 + */
45 + int insertBizBr(@Param("id") Integer id,@Param("brId") Integer brId);
46 + /**
47 + * 查询(ID)
48 + * @param id
49 + * @return
50 + */
51 + BizChannel findById(Integer id);
52 + /**
53 + * 更新(字段不为空)
54 + * @param record
55 + * @return
56 + */
57 + int updateSelective(BizChannel record);
58 + /**
59 + * 更新
60 + * @param record
61 + * @return
62 + */
63 + int update(BizChannel record);
64 + /**
65 + * 查询全部
66 + * @param record
67 + * @return
68 + */
69 + List<BizChannel> findList(BizChannel record);
70 + /**
71 + * 根据经营主体删除
72 + * @param beId
73 + * @return
74 + */
75 + int deleteBybeId(Integer beId);
76 + /**
77 + * 根据关系Id查询
78 + */
79 + BizChannel findByBecId(Integer becid);
80 +
81 + int findBecId(Integer beId);
82 +
83 + int updateBrank(@Param("becId") Integer becId,@Param("be") Integer be);
84 +
85 + List<BizBrand> findBizBrandByBeid(Integer beid);
86 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.BizEntity;
8 +import cn.runsa.portal.base.entity.BizEntityInfo;
9 +import cn.runsa.portal.base.entity.CurrencyUnit;
10 +import cn.runsa.portal.base.entity.PayWay;
11 +
12 +/**
13 + * 经营主体BizEntityMapper
14 + *
15 + * @author zhangJian
16 + * @date 2016年5月25日
17 + */
18 +public interface BizEntityMapper {
19 + /**
20 + * 删除经营主体
21 + *
22 + * @param beid
23 + * @return
24 + */
25 + int delete(Integer beid);
26 +
27 + /**
28 + * 新增所有(经营主体)
29 + *
30 + * @param record
31 + * @return
32 + */
33 + int insert(BizEntity record);
34 +
35 + /**
36 + * 新增(经营主体)---按部分(不为空)
37 + *
38 + * @param record
39 + * @return
40 + */
41 + int insertSelective(BizEntity record);
42 +
43 + /**
44 + * 查询单条
45 + *
46 + * @param beid
47 + * @return
48 + */
49 + BizEntity findById(Integer beid);
50 +
51 + /**
52 + * 经营主体(部分字段更新)
53 + *
54 + * @param record
55 + * @return
56 + */
57 + int updateSelective(BizEntity record);
58 +
59 + /**
60 + * 经营主体(更新所有字段)
61 + *
62 + * @param record
63 + * @return
64 + */
65 + int update(BizEntity record);
66 +
67 + /**
68 + * 查询所有
69 + *
70 + * @param record
71 + * @return
72 + */
73 + List<BizEntity> findAll(BizEntity record);
74 +
75 + /**
76 + * 根据编号或名称模糊查询
77 + *
78 + * @param record
79 + * @return
80 + */
81 + List<BizEntity> fuzzyByCodeOrName(BizEntity record);
82 +
83 + /**
84 + * 生成主体编号
85 + */
86 + BizEntity findBizCode();
87 +
88 + /**
89 + * 查询币种单位
90 + */
91 + List<CurrencyUnit> findCurrencyUnit();
92 +
93 + /**
94 + * 查询收款方式
95 + *
96 + * @return
97 + */
98 + List<PayWay> findPayWay();
99 +
100 + /**
101 + * 根据币种单位ID查询币种信息
102 + *
103 + * @param cuid
104 + * @return
105 + */
106 + CurrencyUnit findCurrencyUnitByPwid(Integer cuid);
107 +
108 + /**
109 + * 插入所属经营主体上下级关系
110 + *
111 + * @param record
112 + * @return
113 + */
114 + int insertbizEntityInfo(BizEntityInfo record);
115 +
116 + /**
117 + *
118 + * @Description: 根据编号或者名称模糊查询未被使用的经销商经营主体列表
119 + * @param record
120 + * @return List<BizEntity>
121 + * @throws
122 + * @author chenchao
123 + * @date 2016年5月24日 下午2:08:00
124 + */
125 + List<BizEntity> fuzzyUnusedDisByCodeOrName(@Param("code") String code,
126 + @Param("name") String name, @Param("plId") Integer plId);
127 +
128 + /**
129 + *
130 + * @Description: 判断编码是否在未被使用过的经销商经营主体列表里存在
131 + * @param code
132 + * @return boolean
133 + * @throws
134 + * @author chenchao
135 + * @date 2016年6月16日 下午3:19:14
136 + */
137 + BizEntity existsUnusedDisByCodeAndName(@Param("code") String code,
138 + @Param("name") String name);
139 +
140 + /**
141 + * 删除所属经营主体上下级关系
142 + *
143 + * @param id
144 + * @return
145 + */
146 + int deleteBizEntityInfo(Integer id);
147 +
148 + /**
149 + * 判断编码是否存在
150 + *
151 + * @param code
152 + * @return
153 + */
154 + boolean existsCode(@Param("code") String code);
155 +
156 + /**
157 + * 判断名称是否重值
158 + *
159 + * @param name
160 + * @return
161 + */
162 + boolean existsName(@Param("name") String name);
163 +
164 + /**
165 + * 上级主体是分销时间插入经营主体上下级关系
166 + *
167 + * @return
168 + */
169 + int insertbizEntityInfoLoop(@Param("beId") Integer beId,
170 + @Param("parent") Integer parent);
171 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.BizInvoice;
6 +/**
7 + * 开票信息 BizInvoiceMapper
8 + * @author hehongjian
9 + * @date 2016年2月23日
10 + */
11 +public interface BizInvoiceMapper {
12 + /**
13 + * 删除
14 + * @param beiid
15 + * @return
16 + */
17 + int delete(Integer beiid);
18 + /**
19 + * 新增
20 + * @param record
21 + * @return
22 + */
23 + int insert(BizInvoice record);
24 + /**
25 + * 新增(字段不为空)
26 + * @param record
27 + * @return
28 + */
29 + int insertSelective(BizInvoice record);
30 + /**
31 + * 单条查询
32 + * @param beiid
33 + * @return
34 + */
35 + BizInvoice findById(Integer beiid);
36 + /**
37 + * 修改(按字段不为空)
38 + * @param record
39 + * @return
40 + */
41 + int updateSelective(BizInvoice record);
42 + /**
43 + * 修改
44 + * @param record
45 + * @return
46 + */
47 + int update(BizInvoice record);
48 + /**
49 + * 根据结算账套查询
50 + * @param record
51 + * @return
52 + */
53 + List<BizInvoice> findList(BizInvoice record);
54 + /**
55 + * 删除
56 + * @param bebId
57 + * @return
58 + */
59 + int deleteByBebId(Integer bebId);
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.BizPayway;
6 +/**
7 + * 收款方式 BizPaywayMapper
8 + * @author hehongjian
9 + * @date 2016年2月23日
10 + */
11 +public interface BizPaywayMapper {
12 + /**
13 + * 删除收款方式
14 + * @param bepid
15 + * @return
16 + */
17 + int delete(Integer bepid);
18 + /**
19 + * 新增收款账户
20 + * @param record
21 + * @return
22 + */
23 + int insert(BizPayway record);
24 + /**
25 + * 新增收款账户(字段不为空)
26 + * @param record
27 + * @return
28 + */
29 + int insertSelective(BizPayway record);
30 + /**
31 + * 检索单条收款账户信息
32 + * @param bepid
33 + * @return
34 + */
35 + BizPayway findById(Integer bepid);
36 + /**
37 + * 更新收款账户(字段不为空)
38 + * @param record
39 + * @return
40 + */
41 + int updateSelective(BizPayway record);
42 + /**
43 + * 更新收款账户(全部)
44 + * @param record
45 + * @return
46 + */
47 + int update(BizPayway record);
48 + /**
49 + * 根据结算账套查询
50 + * @param record
51 + * @return
52 + */
53 + List<BizPayway> findList(BizPayway record);
54 + /**
55 + * 删除收款方式
56 + * @param bepid
57 + * @return
58 + */
59 + int deleteByebId(Integer bebId);
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.BizAccount;
8 +import cn.runsa.portal.base.entity.BizSetOfBook;
9 +/**
10 + * 经营主体-结算帐套 BizSetOfBookMapper
11 + * @author zhangJian
12 + * @date 2016年6月2日
13 + */
14 +public interface BizSetOfBookMapper {
15 + /**
16 + * 删除经营主体-结算帐套
17 + * @param bebid
18 + * @return
19 + */
20 + int delete(Integer bebid);
21 + /**
22 + * 新增经营主体-结算帐套()
23 + * @param record
24 + * @return
25 + */
26 + int insert(BizSetOfBook record);
27 + /**
28 + * 新增经营主体-结算帐套(根据字段是否为空)
29 + * @param record
30 + * @return
31 + */
32 + int insertSelective(BizSetOfBook record);
33 + /**
34 + * 查询经营主体-结算帐套
35 + * @param bebid
36 + * @return
37 + */
38 + BizSetOfBook findById(Integer bebid);
39 + /**
40 + * 更新(按字段值)
41 + * @param record
42 + * @return
43 + */
44 + int update(BizSetOfBook record);
45 + /**
46 + * 查询经营主体对应的结算账套
47 + * @param bizSetOfBook
48 + * @return
49 + */
50 + List<BizSetOfBook> findByBeId(BizSetOfBook bizSetOfBook);
51 + /**
52 + * 查询经营主体对应的结算账套
53 + * @param beID
54 + * @return
55 + */
56 + List<BizSetOfBook> findSetByBeId(Integer beID);
57 + /**
58 + * 修改
59 + * @param bizSetOfBook
60 + * @return
61 + */
62 + int updateSelective(BizSetOfBook bizSetOfBook);
63 + /**
64 + *校验结算主体等是否引用
65 + */
66 + int exists(Integer id);
67 +
68 + List<BizSetOfBook> queryBizSetList();
69 + /**
70 + * 插入开户信息
71 + * @param record
72 + * @return
73 + */
74 + int insertInvoiceList(BizSetOfBook record);
75 + /**
76 + * 插入常用账户
77 + * @param record
78 + * @return
79 + */
80 + int insertbizAccountList(BizSetOfBook record);
81 + /**
82 + * 插入收款方式
83 + * @param record
84 + * @return
85 + */
86 + int insertbizPaywayList(BizSetOfBook record);
87 +
88 + /**
89 + * 插入常用账户
90 + * @param record
91 + * @return
92 + */
93 + int insertbizAccount(BizAccount record);
94 +
95 + /**
96 + * 判断结算主体名称在全联盟范围内唯一
97 + * @param name
98 + * @return
99 + */
100 + boolean existsName(String name);
101 +
102 + /**
103 + * 根据经营主体查询结算帐套
104 + * @param beid
105 + * @return
106 + */
107 + List<BizSetOfBook> selectSetByBeId(Integer beid);
108 +
109 + /**
110 + * 查询目前最大的排序数
111 + * @return
112 + */
113 + Integer findmaxsort();
114 +
115 + /**
116 + * 根据用户ID查询结算账套
117 + */
118 + List<BizSetOfBook> findSetByUserId(@Param("userId")Integer userId);
119 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.Brand;
6 +/**
7 + * 经营品牌
8 + * @author hehongjian
9 + * @date 2016年2月25日
10 + */
11 +public interface BrandMapper {
12 + /**
13 + * 删除
14 + * @param id
15 + * @return
16 + */
17 + int delete(Integer id);
18 + /**
19 + * 新增(全部)
20 + * @param record
21 + * @return
22 + */
23 + int insert(Brand record);
24 + /**
25 + * 新增(不为空字段)
26 + * @param record
27 + * @return
28 + */
29 + int insertSelective(Brand record);
30 + /**
31 + * 查找单条
32 + * @param id
33 + * @return
34 + */
35 + Brand findById(Integer id);
36 + /**
37 + * 编辑(不为空字段)
38 + * @param record
39 + * @return
40 + */
41 + int updateSelective(Brand record);
42 + /**
43 + * 编辑(全部字段)
44 + * @param record
45 + * @return
46 + */
47 + int update(Brand record);
48 + /**
49 + * 查询全部
50 + * @param record
51 + * @return
52 + */
53 + List<Brand> findList(Brand record);
54 + /**
55 + * 经营品牌名称校验
56 + * @param record
57 + * @return
58 + */
59 + int existsByName(Brand record);
60 + int existsChannel(Brand record);
61 + int existsSite(Brand record);
62 +
63 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.BizChannel;
8 +import cn.runsa.portal.base.entity.Channel;
9 +/**
10 + * 经营渠道
11 + * @author hehongjian
12 + * @date 2016年2月23日
13 + */
14 +public interface ChannelMapper {
15 + /**
16 + * 删除经营渠道
17 + * @param chid
18 + * @return
19 + */
20 + int delete(Integer chid);
21 + /**
22 + * 删除品牌
23 + * @param chid
24 + * @return
25 + */
26 + int delChannelBrand(Integer chid);
27 + /**
28 + * 新增经营渠道(全部)
29 + * @param record
30 + * @return
31 + */
32 + int insert(Channel record);
33 + /**
34 + * 新增经营渠道(字段不为空)
35 + * @param record
36 + * @return
37 + */
38 + int insertSelective(Channel record);
39 + /**
40 + * 查找经营渠道
41 + * @param chid
42 + * @return
43 + */
44 + Channel findById(Integer chid);
45 + /**
46 + * 修改经营渠道(字段不为空)
47 + * @param record
48 + * @return
49 + */
50 + int updateSelective(Channel record);
51 + /**
52 + * 修改经营渠道(全部)
53 + * @param record
54 + * @return
55 + */
56 + int update(Channel record);
57 + /**
58 + * 取得经营渠道信息 登录账户用
59 + * @param platform
60 + * @return
61 + */
62 + List<Channel> findChannel(Channel channel);
63 + /**
64 + * 插入经营品牌
65 + * @param channel
66 + * @return
67 + */
68 + int insertBrank(Channel channel);
69 + /**
70 + * 验证全局名称是否重复
71 + */
72 + int existsName(@Param("name") String name,@Param("chId") Integer chId);
73 + /**
74 + * 查询渠道是否被引用
75 + * @param chId渠道id
76 + * @return
77 + */
78 + int existsChannel(Integer chId);
79 + /**
80 + * 查找未分配给总部的经营渠道
81 + * @return
82 + */
83 + List<Channel> findListByBeId();
84 + /**
85 + * 查询已存在的经营渠道
86 + */
87 + List<Channel> findList(Integer id);
88 + /**
89 + * 查询带品牌
90 + * @param id
91 + * @return
92 + */
93 + Channel findChannelDetiles(Integer id);
94 +
95 + List<Channel> findChannelByOrId(int orId);
96 +
97 + List<Channel> findChannelByOrIdAndUsId(int orId, int usId);
98 +
99 + /**
100 + * 查询经营主体渠道的关系
101 + * @param chId渠道id
102 + * @return
103 + */
104 + int existsMtBizChannel(Integer chId);
105 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.City;
6 +
7 +/**
8 + * 城市
9 + * @author zhangJian
10 + *
11 + */
12 +public interface CityMapper {
13 +
14 + /**
15 + * 按省份ID查询城市
16 + * @param prid
17 + * @return
18 + */
19 + List<City> selectByPrId(Integer prid);
20 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.Company;
4 +
5 +/**
6 + *
7 + * Title: CompanyMapper Description:公司的底层数据Mapper
8 + *
9 + * @author chenchao
10 + * @date 2016年5月7日 下午5:13:04
11 + */
12 +public interface CompanyMapper {
13 + /**
14 + *
15 + * @Description: 新增公司基本信息
16 + * @param company
17 + * @return int
18 + * @throws
19 + * @author chenchao
20 + * @date 2016年5月10日 上午10:43:10
21 + */
22 + int insertCompany(Company company);
23 +
24 + /**
25 + *
26 + * @Description: 判断公司名称在本公司的适用经营主体范围内是否重值
27 + * @param company
28 + * @return boolean
29 + * @throws
30 + * @author chenchao
31 + * @date 2016年5月10日 下午2:11:44
32 + */
33 + boolean existsCoName(Company company);
34 +
35 + /**
36 + *
37 + * @Description: 判断公司税务登记号是否重值
38 + * @param company
39 + * @return boolean
40 + * @throws
41 + * @author chenchao
42 + * @date 2016年5月10日 下午6:55:28
43 + */
44 + boolean existsTaxId(Company company);
45 +
46 + /**
47 + *
48 + * @Description: 新增公司-适用经营主体中间表的数据
49 + * @param company
50 + * @return int
51 + * @throws
52 + * @author chenchao
53 + * @date 2016年5月10日 下午2:25:34
54 + */
55 + int insertCorpBiz(Company company);
56 +
57 + /**
58 + *
59 + * @Description: 根据id查询公司基本信息
60 + * @param id
61 + * @return Company
62 + * @throws
63 + * @author chenchao
64 + * @date 2016年5月10日 下午7:33:19
65 + */
66 + Company selectById(Integer id);
67 +
68 + /**
69 + *
70 + * @Description: 修改公司基本信息
71 + * @param company
72 + * @return int
73 + * @throws
74 + * @author chenchao
75 + * @date 2016年5月11日 下午4:07:54
76 + */
77 + int updateCompany(Company company);
78 +
79 + /**
80 + *
81 + * @Description: 根据公司id删除中间表数据
82 + * @param coId
83 + * @return int
84 + * @throws
85 + * @author chenchao
86 + * @date 2016年5月11日 下午4:34:44
87 + */
88 + int deleteCorpBiz(Integer coId);
89 +
90 + /**
91 + *
92 + * @Description: 删除公司
93 + * @param coId
94 + * @return int
95 + * @throws
96 + * @author chenchao
97 + * @date 2016年5月11日 下午7:24:07
98 + */
99 + int deleteCompany(Integer coId);
100 +
101 + /**
102 + *
103 + * @Description: 根据公司id判断公司旗下是否有员工
104 + * @param coId
105 + * @return boolean
106 + * @throws
107 + * @author chenchao
108 + * @date 2016年5月11日 下午7:31:12
109 + */
110 + boolean existsEmployee(Integer coId);
111 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.Country;
6 +
7 +/**
8 + * 国家
9 + * @author zhangJian
10 + *
11 + */
12 +public interface CountryMapper {
13 +
14 + /**
15 + * 查询所有国家信息
16 + * @return
17 + */
18 + List<Country> selectAll();
19 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.CrmAccountSet;
9 +
10 +/**
11 + * crm帐套
12 + * @author Yijun
13 + *
14 + */
15 +@Repository
16 +public interface CrmAccountSetMapper {
17 +
18 + /**
19 + * 按平台查询
20 + * @param userId
21 + * @return
22 + */
23 + List<CrmAccountSet> selectByUserId(@Param("userIds") Integer... userId);
24 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.CrmGuider;
4 +
5 +
6 +/**
7 + * 导购
8 + * @author zhangJian
9 + *
10 + */
11 +public interface CrmGuiderMapper {
12 +
13 + /**
14 + * 新增导购
15 + * @param record
16 + * @return
17 + */
18 + int insert(CrmGuider record);
19 +
20 + /**
21 + * 删除导购
22 + * @param guiderId
23 + * @return
24 + */
25 + int deleteByPrimaryKey(Integer id);
26 +
27 + /**
28 + * 编辑导购
29 + * @param record
30 + * @return
31 + */
32 + int updateByPrimaryKey(CrmGuider record);
33 +
34 + /**
35 + * 根据ID查询单个导购信息
36 + * @param guiderId
37 + * @return
38 + */
39 + CrmGuider selectByPrimaryKey(Integer id);
40 +
41 + /**
42 + * 根据Id更改该雇员角色
43 + * @param id
44 + * @return
45 + */
46 + int updateRoleByPrimaryKey(CrmGuider record);
47 +
48 + /**
49 + * 根据网点ID删除导购
50 + * @param guiderId
51 + * @return
52 + */
53 + int deleteBySiid(Integer siid);
54 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.CrmVariable;
6 +import cn.runsa.portal.base.entity.CrmVariableKey;
7 +
8 +public interface CrmVariableMapper {
9 + /**
10 + * @mbggenerated
11 + */
12 + int deleteByPrimaryKey(CrmVariableKey key);
13 +
14 + /**
15 + * @mbggenerated
16 + */
17 + int insert(CrmVariable record);
18 +
19 + /**
20 + * @mbggenerated
21 + */
22 + int insertSelective(CrmVariable record);
23 +
24 + /**
25 + * @mbggenerated
26 + */
27 + CrmVariable selectByPrimaryKey(CrmVariableKey key);
28 +
29 + /**
30 + * @mbggenerated
31 + */
32 + int updateByPrimaryKeySelective(CrmVariable record);
33 +
34 + /**
35 + * @mbggenerated
36 + */
37 + int updateByPrimaryKey(CrmVariable record);
38 +
39 + /**
40 + * 根据VarScope查询CRM系统变量
41 + */
42 + List<CrmVariable> selectCrmVariableByVarScope(CrmVariableKey record);
43 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.Dept;
8 +
9 +/**
10 + *
11 + * Title: DeptMapper Description: 部门的底层数据操作接口
12 + *
13 + * @author chenchao
14 + * @date 2016年5月12日 下午4:27:11
15 + */
16 +public interface DeptMapper {
17 + /**
18 + *
19 + * @Description: 根据id删除部门
20 + * @param id
21 + * @return int
22 + * @throws
23 + * @author chenchao
24 + * @date 2016年5月12日 下午3:54:34
25 + */
26 + int deleteById(Integer id);
27 +
28 + /**
29 + *
30 + * @Description: 新增部门
31 + * @param dept
32 + * @return int
33 + * @throws
34 + * @author chenchao
35 + * @date 2016年5月12日 下午3:54:53
36 + */
37 + int insertDept(Dept dept);
38 +
39 + /**
40 + *
41 + * @Description: 根据部门id查询部门信息
42 + * @param id
43 + * @return Dept
44 + * @throws
45 + * @author chenchao
46 + * @date 2016年5月12日 下午3:55:18
47 + */
48 + Dept selectById(Integer id);
49 +
50 + /**
51 + *
52 + * @Description: 根据部门id修改部门信息
53 + * @param dept
54 + * @return int
55 + * @throws
56 + * @author chenchao
57 + * @date 2016年5月12日 下午3:55:51
58 + */
59 + int updateById(Dept dept);
60 +
61 + /**
62 + *
63 + * @Description: 根据公司id和父节点部门id查询子节点部门列表
64 + * @param coid
65 + * @param pid
66 + * @return List<Dept>
67 + * @throws
68 + * @author chenchao
69 + * @date 2016年5月12日 下午4:19:59
70 + */
71 + List<Dept> selectDeptsByPid(@Param("coid") Integer coid,
72 + @Param("pid") Integer pid);
73 +
74 + /**
75 + *
76 + * @Description: 判断部门名称在此公司里是否重值
77 + * @param dept
78 + * @return boolean
79 + * @throws
80 + * @author chenchao
81 + * @date 2016年5月16日 上午9:55:49
82 + */
83 + boolean existsDeName(Dept dept);
84 +
85 + /**
86 + *
87 + * @Description: 根据部门id查询自己及其下属部门id列表
88 + * @param pid
89 + * @return List<Integer>
90 + * @throws
91 + * @author chenchao
92 + * @date 2016年5月16日 下午2:02:53
93 + */
94 + List<Integer> selectDeptIdsByPid(@Param("pid") Integer pid);
95 +
96 + /**
97 + *
98 + * @Description: 根据部门id列表删除所有部门
99 + * @param list
100 + * @return int
101 + * @throws
102 + * @author chenchao
103 + * @date 2016年5月16日 下午3:03:47
104 + */
105 + int deleteByIds(List<Integer> list);
106 +
107 + /**
108 + *
109 + * @Description: 删除部门信息上下级关系数据
110 + * @param list
111 + * @return int
112 + * @throws
113 + * @author chenchao
114 + * @date 2016年5月16日 下午7:13:43
115 + */
116 + int deleteDeptInfoByIds(List<Integer> list);
117 +
118 + /**
119 + *
120 + * @Description: 判断部门列表里是否存在员工
121 + * @param list
122 + * @return boolean
123 + * @throws
124 + * @author chenchao
125 + * @date 2016年5月16日 下午3:36:11
126 + */
127 + boolean existsEmployee(List<Integer> list);
128 +
129 + /**
130 + *
131 + * @Description: 新增部门信息表数据(其上的父节点)
132 + * @param dept
133 + * @return int
134 + * @throws
135 + * @author chenchao
136 + * @date 2016年5月16日 下午4:47:55
137 + */
138 + int insertDeptInfo(Dept dept);
139 +
140 + /**
141 + *
142 + * @Description: 新增部门信息表数据(自关联的数据)
143 + * @param deId
144 + * @param deLevel
145 + * @return int
146 + * @throws
147 + * @author chenchao
148 + * @date 2016年5月16日 下午5:23:32
149 + */
150 + int insertDeptInfoSelf(@Param("deId") Integer deId,
151 + @Param("deLevel") Integer deLevel);
152 +
153 + /**
154 + *
155 + * @Description: 查询当前部门最大级别
156 + * @param deId
157 + * @return Integer
158 + * @throws
159 + * @author chenchao
160 + * @date 2016年5月16日 下午5:20:37
161 + */
162 + Integer selectMaxLevel(Integer deId);
163 +
164 + /**
165 + *
166 + * @Description: 根据父部门id查询最大的子部门排序数
167 + * @param coid
168 + * @param pid
169 + * @param @return
170 + * @return Integer
171 + * @throws
172 + * @author chenchao
173 + * @date 2016年5月16日 下午7:41:05
174 + */
175 + Integer selectMaxSort(@Param("coid") Integer coid, @Param("pid") Integer pid);
176 +
177 + /**
178 + *
179 + * @Description: 排序后查找上一个部门
180 + * @param dept
181 + * @return Dept
182 + * @throws
183 + * @author chenchao
184 + * @date 2016年5月16日 下午8:11:26
185 + */
186 + Dept selectPreviousDept(Dept dept);
187 +
188 + /**
189 + *
190 + * @Description: 排序后查找下一个部门
191 + * @param dept
192 + * @return Dept
193 + * @throws
194 + * @author chenchao
195 + * @date 2016年5月16日 下午8:11:59
196 + */
197 + Dept selectNextDept(Dept dept);
198 +
199 + /**
200 + *
201 + * @Description: 删除雇员和部门的关系
202 + * @param @param emId
203 + * @param @param int
204 + * @return void
205 + * @throws
206 + * @author chenchao
207 + * @date 2016年5月18日 下午4:10:47
208 + */
209 + int deleteEmployeeDeptById(@Param("emId") Integer emId,
210 + @Param("deId") Integer deId);
211 +
212 + /**
213 + *
214 + * @Description: 新增雇员部门关系数据
215 + * @param emId
216 + * @param deId
217 + * @return int
218 + * @throws
219 + * @author chenchao
220 + * @date 2016年5月18日 下午9:55:04
221 + */
222 + int insertEmployeeDept(@Param("emId") Integer emId,
223 + @Param("deId") Integer deId);
224 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.District;
6 +
7 +/**
8 + * 区/县
9 + * @author zhangJian
10 + *
11 + */
12 +public interface DistrictMapper {
13 +
14 + /**
15 + * 按市ID查询区县
16 + * @param ciid
17 + * @return
18 + */
19 + List<District> selectByCiId(Integer ciid);
20 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.Employee;
8 +import cn.runsa.portal.base.entity.Username;
9 +
10 +public interface EmployeeMapper {
11 +
12 + /**
13 + * 根据雇员ID查询雇员
14 + * @param emId
15 + * @return
16 + */
17 + Employee selectById(Integer emid);
18 +
19 + /**
20 + * 根据工号,姓名,公司查询雇员信息
21 + * @param emId
22 + * @return
23 + */
24 + Employee selectExitEmp(Employee employee);
25 +
26 + /**
27 + * 添加雇员
28 + * @param employee
29 + * @return
30 + */
31 + int insertEmp(Employee employee);
32 +
33 + /**
34 + * 添加部门
35 + * @param employee
36 + * @return
37 + */
38 + int insertEdept(Employee employee);
39 +
40 + /**
41 + * 添加岗位
42 + * @param employee
43 + * @return
44 + */
45 + int insertEpost(Employee employee);
46 +
47 + /**
48 + * 添加账户用户名
49 + * @param employee
50 + * @return
51 + */
52 + int insertUname(@Param(value = "uname") List<Username> uname,@Param(value = "emid") Integer emid,@Param(value = "usid") Integer usid);
53 +
54 + /**
55 + * 更新雇员
56 + * @param employee
57 + * @return
58 + */
59 + int updateEmp(Employee employee);
60 +
61 + /**
62 + * 更新账户用户名
63 + * @param employee
64 + * @return
65 + */
66 + int updateUname(@Param(value = "uname") List<Username> uname,@Param(value = "usid") Integer usid);
67 +
68 + /**
69 + * 删除雇员信息-部门
70 + * @param id
71 + * @return
72 + */
73 + int deleteDept(Integer id);
74 +
75 + /**
76 + * 删除雇员信息-岗位
77 + * @param id
78 + * @return
79 + */
80 + int deletePost(Integer id);
81 +
82 + /**
83 + * 删除雇员账户用户名
84 + * @param id
85 + * @return
86 + */
87 + int deleteUName(Integer id);
88 +
89 + /**
90 + * 删除雇员
91 + * @param id
92 + * @return
93 + */
94 + int deleteEmp(Integer id);
95 +
96 + /**
97 + * 已创建账户的人员信息不允许删除
98 + * @param id
99 + * @return
100 + */
101 + int existsUsers(Integer id);
102 +
103 + /**
104 + * 根据区ID查询国家省市
105 + * @param id
106 + * @return
107 + */
108 + Employee selectByDiid(Integer id);
109 +
110 + /**
111 + * 根据工号,姓名,公司判断雇员是否重值
112 + * @param id
113 + * @return
114 + */
115 + int existsEmps(Employee employee);
116 +
117 + /**
118 + * 判断工号是否重值
119 + * @param code,coid
120 + * @return
121 + */
122 + int existsCode(@Param("code") String code,@Param("coid") Integer coid);
123 +
124 + /**
125 + * 判断工号全局是否重值
126 + * @param code
127 + * @return
128 + */
129 + int existsCodeAll(@Param("code") String code);
130 +
131 + /**
132 + * 判断工号全局是否与电话号码重值
133 + * @param code
134 + * @return
135 + */
136 + int existsCodeWithPhone(@Param("code") String code);
137 +
138 + /**
139 + * 判断证件号码是否重值
140 + * @param ctcode,coid
141 + * @return
142 + */
143 + int existsCtCode(@Param("ctcode") String ctcode, @Param("coid")Integer coid);
144 +
145 + /**
146 + * 判断同一公司手机号码是否重值
147 + * @param name,coid
148 + * @return
149 + */
150 + int existsNamePhone(@Param("name") String name,@Param("coid") Integer coid);
151 +
152 + /**
153 + * 判断同一公司EMAIL是否重值
154 + * @param name,coid
155 + * @return
156 + */
157 + int existsNameEmail(@Param("name") String name,@Param("coid") Integer coid);
158 +
159 + /**
160 + * 判断不同公司姓名,EMAIL是否重值
161 + * @param name,emname,coid
162 + * @return
163 + */
164 + int existsNameEmailNoCoid(@Param("name") String name,@Param("emname") String emname,@Param("coid") Integer coid);
165 +
166 + /**
167 + * 判断不同公司姓名,手机是否重值
168 + * @param name,emname,coid
169 + * @return
170 + */
171 + int existsNamePhoneNoCoid(@Param("name") String name,@Param("emname") String emname,@Param("coid") Integer coid);
172 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.Excel_error_procedure;
4 +import java.util.List;
5 +import java.util.Map;
6 +
7 +import org.apache.ibatis.annotations.Param;
8 +
9 +public interface ExcelImportMapper {
10 +
11 +// int deleteByGroup(String groupId);
12 + int insertCommon(@Param("groupId")String groupId, @Param("tableName") String tableName, @Param("cols")List<String> cols,@Param("rows")List<List> rows);
13 + int insertCommon( Map map);
14 +
15 + List<Excel_error_procedure> findErrMessage(@Param("groupId") String groupId);
16 +
17 + void pro_TEST_USER( Map map);
18 + void pro_excel_trans(Map map);
19 +
20 + int selectById();
21 +
22 +// int insert(Test_user_excel record);
23 +//
24 +// int insertList(List<Test_user_excel> recordList);
25 +//
26 +// List<Test_user_excel> selectByGroup(String groupId);
27 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.Excel_column;
4 +import java.util.List;
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +public interface Excel_columnMapper {
8 +
9 + Excel_column selectByPrimaryKey(Long rowId);
10 +
11 + List<Excel_column> selectByCondition(Excel_column excel_column);
12 +
13 + int insert(Excel_column record);
14 +
15 + int insertSelective(Excel_column record);
16 +
17 + int deleteByPrimaryKey(Long rowId);
18 +
19 + int updateByPrimaryKey(Excel_column record);
20 +
21 + int updateByPrimaryKeySelective(Excel_column record);
22 +
23 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.MenuAction;
6 +
7 +/*
8 + * runsatony
9 + * menuActionMapper
10 + * 20160225
11 + *
12 + * */
13 +
14 +public interface MenuActionMapper {
15 + /*按menuId获取action*/
16 + public List<MenuAction> selectListByMid(List<Integer> meId);
17 +
18 + /*删除角色动作*/
19 + public int deleteActionByRoleId(Integer roleId);
20 + /*插入角色动作*/
21 + public int insertRoleAction(List<MenuAction> menuAction);
22 +
23 + /*插入菜单动作*/
24 + public int insert(MenuAction menuAction);
25 +
26 +
27 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.Menu;
8 +
9 +/*
10 + * runsatony
11 + * menuMapper
12 + * 20160224
13 + *
14 + * */
15 +
16 +public interface MenuMapper {
17 +
18 + /*按对象查,如果对象为空则查询全部*/
19 + public List<Menu> selectList(Menu menu);
20 + /*根据角色查询菜单*/
21 + public List<Menu> selectByRoleIds(List<Integer> ids);
22 +
23 + /**
24 + * 按用户查询菜单
25 + * @param ids
26 + * @return
27 + */
28 + public List<Menu> selectByUserIds(@Param("array") Integer[] ids,@Param("limitParentId") Integer limitParentId);
29 +
30 + /**
31 + * 按用户查询菜单(包括上级菜单)
32 + * @param userIds
33 + * @return
34 + */
35 + public List<Menu> selectAllByUserIds(Integer[] userIds);
36 +
37 + /**
38 + * 按用户查询菜单(包括上级菜单)
39 + * @param userIds
40 + * @return
41 + */
42 + public List<Menu> selectAllByParent(@Param("userIds") Integer[] userIds,@Param("parent") Integer parent);
43 +
44 +
45 + /**
46 + * 按平台/角色相关信息查询
47 + * @param platType
48 + * @param platId
49 + * @param roleId
50 + * @return
51 + */
52 + public List<Menu> selectByPlatAndRole(@Param("platType") int platType,@Param("platId") int platId,@Param("roleId") Integer roleId);
53 +
54 + /**
55 + * 按类型查询
56 + * @param userId
57 + * @param type
58 + * @return
59 + */
60 + public List<Menu> selectByType(@Param("userId") int userId,@Param("type") int type);
61 +
62 + /*根据父节点查询所有子菜单*/
63 + public List<Menu> selectAllChild(Menu menu);
64 +
65 + /*根据子菜单查询所有父菜单*/
66 + public List<Menu> selectAllParent(Menu menu);
67 +
68 + /*查询单个记录*/
69 + public Menu selectById(Integer id);
70 +
71 + /* 插入记录 */
72 + public int insert(Menu menu);
73 +
74 + /* 修改记录 */
75 + public int update(Menu menu);
76 +
77 + /* 删除明细 */
78 + public int delete(Menu menu);
79 +
80 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.MsgChannel;
8 +
9 +/**
10 + * 推送通道信息 MsgChannelMapper
11 + *
12 + * @author hehongjian
13 + *
14 + */
15 +public interface MsgChannelMapper {
16 +
17 + /**
18 + * 查询推送通道信息
19 + *
20 + * @return List<MsgChannel>
21 + */
22 + List<MsgChannel> findList(MsgChannel msgChannel);
23 +
24 + /**
25 + * 查询短信通道信息
26 + *
27 + * @return List<MsgChannel>
28 + */
29 + List<MsgChannel> findListMsg(MsgChannel msgChannel);
30 +
31 + /**
32 + * 查询总页数
33 + *
34 + * @param MsgChannel
35 + * msgChannel
36 + * @return int
37 + */
38 + int findListCount(MsgChannel msgChannel);
39 +
40 + /**
41 + * 删除推送通道信息
42 + */
43 + void deteleById(Integer id);
44 +
45 + /**
46 + * 按用户查询通知
47 + *
48 + * @param id
49 + * @return
50 + */
51 + List<MsgChannel> findByEmployee(Integer id);
52 +
53 + /**
54 + * 查询单条推送通道信息
55 + */
56 + MsgChannel findById(Integer id);
57 +
58 + /**
59 + * 编辑推送通道信息
60 + */
61 + void update(MsgChannel msgChannel);
62 +
63 + /**
64 + * 新增推送通道经营主体关系
65 + */
66 + int insertBizMsg(MsgChannel msgChannel);
67 +
68 + /**
69 + * 新增推送通道经营主体关系
70 + */
71 + int deteleBizMsg(Integer id);
72 +
73 + /**
74 + * 删除通道与结算主体关系
75 + *
76 + * @param id
77 + * @return
78 + */
79 + int deleteMsgSetOfBook(Integer id);
80 +
81 + /**
82 + * 新增通道于结算主体关系
83 + *
84 + * @param msgChannel
85 + * @return
86 + */
87 + int insertbizSetOfBook(MsgChannel msgChannel);
88 +
89 + /**
90 + * 新增推送通道信息
91 + *
92 + * @param msgChannel
93 + * @return
94 + */
95 + int insert(MsgChannel msgChannel);
96 +
97 + int existsPlatMsg(MsgChannel msgChannel);
98 +
99 + int existsCRM(MsgChannel msgChannel);
100 +
101 + /**
102 + * 推送通道名称校验
103 + * @param name
104 + * @param mcId
105 + * @return
106 + */
107 + boolean existsByName(@Param("name")String name,@Param("mcId")Integer mcId);
108 +
109 + /**
110 + *
111 + * @Description: 根据经营主体、通道类型和服务类型查找适用的通道列表(系统管理平台的经营主体是全部总部主体)
112 + * @param beId
113 + * @param type
114 + * @param protocol
115 + * @return List<MsgChannel>
116 + * @throws
117 + * @author chenchao
118 + * @date 2016年6月15日 下午2:00:24
119 + */
120 + List<MsgChannel> selectAllBybeId(@Param("beId") Integer beId,
121 + @Param("type") Integer type, @Param("protocol") Integer protocol);
122 +
123 + /**
124 + * @Description: 根据用户平台、通道类型和服务类型查找适用的通道列表(系统管理平台的经营主体是全部总部主体)
125 + * @param plId
126 + * @param type
127 + * @param protocol
128 + * @return
129 + */
130 + List<MsgChannel> selectAllByPlId(@Param("plId") Integer plId,
131 + @Param("type") Integer type, @Param("protocol") Integer protocol);
132 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import org.apache.ibatis.annotations.Param;
4 +import org.springframework.stereotype.Repository;
5 +
6 +import cn.runsa.portal.base.entity.OAuth2Client;
7 +
8 +/**
9 + * oauth2
10 + * @author Yijun
11 + *
12 + */
13 +@Repository
14 +public interface OAuth2ClientMapper {
15 +
16 + /**
17 + * 验证客户编号
18 + * @param clientId
19 + * @return
20 + */
21 + boolean exists(@Param("id") String id);
22 +
23 + /**
24 + * 按编号查询
25 + * @param id
26 + * @return
27 + */
28 + OAuth2Client selectById(@Param("id") String id);
29 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.Date;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.OAuth2Secret;
9 +
10 +@Repository
11 +public interface OAuth2SecretMapper {
12 +
13 + /**
14 + * 验证客户密钥
15 + * @param clientId
16 + * @param secret
17 + * @param nowTime
18 + * @return
19 + */
20 + boolean exists(@Param("clientId") String clientId,@Param("secret") String secret,@Param("nowTime") Date nowTime);
21 +
22 + /**
23 + * 验证客户密钥
24 + * @param clientId
25 + * @param secret
26 + * @param nowTime
27 + * @return
28 + */
29 + OAuth2Secret selectById(@Param("clientId") String clientId,@Param("secret") String secret,@Param("nowTime") Date nowTime);
30 +
31 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.PayMent;
4 +
5 +public interface PayMentMapper {
6 + /**
7 + * @mbggenerated
8 + */
9 + int deleteByPrimaryKey(String payId);
10 +
11 + /**
12 + * @mbggenerated
13 + */
14 + int insert(PayMent record);
15 +
16 + /**
17 + * @mbggenerated
18 + */
19 + int insertSelective(PayMent record);
20 +
21 + /**
22 + * @mbggenerated
23 + */
24 + PayMent selectByPrimaryKey(String payId);
25 +
26 + /**
27 + * @mbggenerated
28 + */
29 + int updateByPrimaryKeySelective(PayMent record);
30 +
31 + /**
32 + * @mbggenerated
33 + */
34 + int updateByPrimaryKey(PayMent record);
35 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.PhoneLog;
6 +/**
7 + * 挂失/解挂记录
8 + * @author hehongjian
9 + * @date 2016年3月11日
10 + */
11 +public interface PhoneLogMapper {
12 + int deleteByPrimaryKey(Integer id);
13 +
14 + int insert(PhoneLog record);
15 + /**
16 + * 添加
17 + * @param record
18 + * @return
19 + */
20 + int insertSelective(PhoneLog record);
21 +
22 + PhoneLog selectByEmPhone(String emPhone);
23 + /**
24 + * 修改
25 + * @param record
26 + * @return
27 + */
28 + int updateSelective(PhoneLog record);
29 +
30 + int updateByPrimaryKey(PhoneLog record);
31 + /**
32 + * 挂失解挂记录
33 + * @param phoneLog
34 + * @return
35 + */
36 + List<PhoneLog> findList(PhoneLog phoneLog);
37 + /**
38 + * 检验手机号
39 + * @param phoneLog
40 + * @return
41 + */
42 + int existsByName(PhoneLog phoneLog);
43 + PhoneLog findPhone(PhoneLog phoneLog);
44 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.PlatMsgChannel;
9 +import cn.runsa.portal.base.entity.Username;
10 +
11 +/**
12 + *
13 + * @author Yijun
14 + *
15 + */
16 +@Repository
17 +public interface PlatMsgChannelMapper {
18 +
19 + /**
20 + * 按雇员查询短信通道
21 + * @param id
22 + * @return
23 + */
24 + public List<PlatMsgChannel> selectAllByEmployee(int id);
25 +
26 + /**
27 + * 根据雇员列表和类别随机查询通道
28 + *
29 + * @param list
30 + * @param type
31 + * @return
32 + */
33 + public PlatMsgChannel selectRandomByEmployee(
34 + @Param("list") List<Username> list, @Param("type") Integer type);
35 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.PlatMsgChannel;
8 +import cn.runsa.portal.base.entity.Platform;
9 +
10 +public interface PlatformMapper {
11 +
12 + /**
13 + * 查询用户平台信息List
14 + */
15 + List<Platform> findList(Platform platform);
16 +
17 + /**
18 + * 按编号查询
19 + * @param ids
20 + * @return
21 + */
22 + List<Platform> findListByIds(List<Integer> ids);
23 +
24 + /**
25 + * 查询单条
26 + */
27 + Platform findById(Integer id);
28 +
29 + /**
30 + * 按编号查询
31 + * @param id
32 + * @return
33 + */
34 + Platform findBaseById(int id);
35 +
36 + /**
37 + * 总条数
38 + */
39 + int findListCount(Platform platform);
40 + /**
41 + * 新增用户平台
42 + */
43 + int insert(Platform platform);
44 + /**
45 + * 新增用户平台关联数据
46 + */
47 + int insertPlatMsgChannel(PlatMsgChannel platMsgChannel);
48 + /**
49 + * 删除平台信息
50 + */
51 + int detele(int id);
52 + /**
53 + *
54 + * @Description: 根据平台id删除平台与通道关联关系
55 + * @param plId
56 + * @return int
57 + * @throws
58 + * @author chenchao
59 + * @date 2016年5月21日 下午3:47:06
60 + */
61 + int deteleMsgChannelByPlId(int plId);
62 + /**
63 + * 编辑平台信息
64 + */
65 + int update(Platform platform);
66 +
67 + /**
68 + * 根据经营主体Id删除平台
69 + * @param id
70 + * @return
71 + */
72 + int deteleByBeId(Integer id);
73 +
74 + /**
75 + * 根据网点ID查询平台信息
76 + * @param siid
77 + * @return
78 + */
79 + List<Platform> selectBySiid(Integer siid);
80 +
81 + /**
82 + * 根据网点Id删除平台信息
83 + * @param siid
84 + * @return
85 + */
86 + int deteleBySiid(Integer siid);
87 +
88 + /**
89 + * 根据平台ID更新可用状态为0
90 + * @param id
91 + * @return
92 + */
93 + int updateByPlId(Integer id);
94 +
95 + /**
96 + * 根据平台ID更新可用状态为1
97 + * @param id
98 + * @return
99 + */
100 + int updateByPlIdTrue(Integer id);
101 +
102 + /**
103 + * 根据主体Id和平台类型查询平台信息
104 + * @param siid
105 + * @return
106 + */
107 + Platform selectByBeId(@Param("beId") Integer beId,@Param("pltId") Integer pltId);
108 +
109 + /**
110 + *
111 + * @Description: 判断平台是否被使用过(账户和角色)
112 + * @param plId
113 + * @return boolean
114 + * @throws
115 + * @author chenchao
116 + * @date 2016年6月20日 下午3:43:20
117 + */
118 + boolean isUsedByplId(Integer plId);
119 +
120 + /**
121 + * 根据平台的id获取子平台的平台信息
122 + * @param plId
123 + * @return
124 + */
125 + List<Platform> getSubPlatformByPtfId(Integer plId);
126 +
127 + /**
128 + * 根据平台的id获取父级平台的平台信息
129 + * @param plId
130 + * @return
131 + */
132 + List<Platform> getParentPlatformByPtfId(Integer plId);
133 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.PlatformType;
9 +
10 +/**
11 + * 类型查询
12 + * @author Yijun
13 + *
14 + */
15 +@Repository("platformTypeMapper")
16 +public interface PlatformTypeMapper {
17 +
18 + /**
19 + * 按平台编号查询类型
20 + * @param plId
21 + * @param pltType
22 + * @return
23 + */
24 + public List<PlatformType> selectByPlatId(@Param("plId") int plId,@Param("pltType") Integer[] pltType);
25 +
26 + /**
27 + * 按平台类型查询
28 + * @param pltId
29 + * @return
30 + */
31 + public PlatformType selectByPlatTypeId(@Param("pltId") Integer pltId);
32 +
33 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.PointsType;
6 +
7 +public interface PointsTypeMapper {
8 + /**
9 + *
10 + * @mbggenerated
11 + */
12 + int deleteByPrimaryKey(String pntType);
13 +
14 + /**
15 + *
16 + * @mbggenerated
17 + */
18 + int insert(PointsType record);
19 +
20 + /**
21 + *
22 + * @mbggenerated
23 + */
24 + int insertSelective(PointsType record);
25 +
26 + /**
27 + *
28 + * @mbggenerated
29 + */
30 + PointsType selectByPrimaryKey(String pntType);
31 +
32 + /**
33 + *
34 + * @mbggenerated
35 + */
36 + int updateByPrimaryKeySelective(PointsType record);
37 +
38 + /**
39 + *
40 + * @mbggenerated
41 + */
42 + int updateByPrimaryKey(PointsType record);
43 +
44 + List<PointsType> selectAllTypes();
45 +
46 + List<PointsType> selectAccountAllTypes(Long actId);
47 +
48 + int selectPointsTypeKey(String pntType);
49 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.Post;
8 +
9 +/**
10 + * 岗位信息
11 + *
12 + * @author zhangJian
13 + *
14 + */
15 +public interface PostMapper {
16 +
17 + /**
18 + * 根据部门Id查询岗位信息
19 + *
20 + * @param deid
21 + * @return
22 + */
23 + List<Post> selectByDeId(int[] deid);
24 +
25 + /**
26 + *
27 + * @Description: 根据岗位id删除岗位
28 + * @param id
29 + * @return int
30 + * @throws
31 + * @author chenchao
32 + * @date 2016年5月16日 下午4:35:08
33 + */
34 + int deleteById(Integer id);
35 +
36 + /**
37 + *
38 + * @Description: 新增岗位
39 + * @param post
40 + * @return int
41 + * @throws
42 + * @author chenchao
43 + * @date 2016年5月16日 下午4:36:28
44 + */
45 + int insertPost(Post post);
46 +
47 + /**
48 + *
49 + * @Description: 根据岗位id查询岗位信息
50 + * @param id
51 + * @return Post
52 + * @throws
53 + * @author chenchao
54 + * @date 2016年5月16日 下午4:38:09
55 + */
56 + Post selectById(Integer id);
57 +
58 + /**
59 + *
60 + * @Description: 根据岗位id修改岗位信息
61 + * @param post
62 + * @return int
63 + * @throws
64 + * @author chenchao
65 + * @date 2016年5月16日 下午4:39:12
66 + */
67 + int updateById(Post post);
68 +
69 + /**
70 + *
71 + * @Description: 判断岗位名称在此公司是否重名
72 + * @param post
73 + * @return boolean
74 + * @throws
75 + * @author chenchao
76 + * @date 2016年5月17日 下午8:10:54
77 + */
78 + boolean existsPoName(Post post);
79 +
80 + /**
81 + *
82 + * @Description: 判断岗位编号在此公司是否重名
83 + * @param post
84 + * @return boolean
85 + * @throws
86 + * @author chenchao
87 + * @date 2016年8月17日 上午10:28:54
88 + */
89 + boolean existsPoCode(Post post);
90 +
91 + /**
92 + *
93 + * @Description: 根据岗位id查询该岗位下有无员工
94 + * @param poId
95 + * @return boolean
96 + * @throws
97 + * @author chenchao
98 + * @date 2016年5月17日 下午9:26:13
99 + */
100 + boolean existsEmployee(Integer poId);
101 +
102 + /**
103 + *
104 + * @Description: 判断部门列表下的岗位上是否存在雇员
105 + * @param list
106 + * @return boolean
107 + * @throws
108 + * @author chenchao
109 + * @date 2016年5月18日 上午9:27:26
110 + */
111 + boolean existsEmployeeBydeIds(List<Integer> list);
112 +
113 + /**
114 + *
115 + * @Description: 根据部门查询最大的排序树
116 + * @param deId
117 + * @return Integer
118 + * @throws
119 + * @author chenchao
120 + * @date 2016年5月17日 下午9:39:32
121 + */
122 + Integer selectMaxSort(Integer deId);
123 +
124 + /**
125 + *
126 + * @Description: 根据部门id列表删除其下所有的岗位
127 + * @param list
128 + * @return int
129 + * @throws
130 + * @author chenchao
131 + * @date 2016年5月17日 下午9:53:30
132 + */
133 + int deletePostsBydeIds(List<Integer> list);
134 +
135 + /**
136 + *
137 + * @Description: 排序后查找上一个岗位
138 + * @param post
139 + * @return Post
140 + * @throws
141 + * @author chenchao
142 + * @date 2016年5月18日 上午10:31:53
143 + */
144 + Post selectPreviousPost(Post post);
145 +
146 + /**
147 + *
148 + * @Description: 排序后查找下一个岗位
149 + * @param post
150 + * @return Post
151 + * @throws
152 + * @author chenchao
153 + * @date 2016年5月18日 上午10:37:05
154 + */
155 + Post selectNextPost(Post post);
156 +
157 + /**
158 + *
159 + * @Description: 根据雇员Id和部门id删除雇员和岗位的关系
160 + * @param emId
161 + * @param deId
162 + * @return int
163 + * @throws
164 + * @author chenchao
165 + * @date 2016年5月18日 下午4:16:44
166 + */
167 + int deleteEmployeePostBydeId(@Param("emId") Integer emId,
168 + @Param("deId") Integer deId);
169 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.Province;
6 +
7 +/**
8 + * 省份
9 + * @author zhangJian
10 + *
11 + */
12 +public interface ProvinceMapper {
13 +
14 + /**
15 + * 按国家Id查询省份
16 + * @param coid
17 + * @return
18 + */
19 + List<Province> selectByCoId(Integer coid);
20 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.Role;
8 +
9 +/*
10 + * runsatony
11 + * roleMapper
12 + * 20160223
13 + *
14 + * */
15 +
16 +public interface RoleMapper {
17 + /*分页查询列表*/
18 + public List<Role> selectPageList(Role role) ;
19 +
20 + public Integer selectCount(Role role);
21 +
22 + /*查询单个记录*/
23 + public Role selectById(Integer id);
24 +
25 + /* 插入记录 */
26 + int insert(Role role);
27 +
28 + /* 修改记录 */
29 + int update(Role role);
30 +
31 + /* 删除明细 */
32 + int delete(int id);
33 +
34 + /**
35 + * 判断编号是否存在
36 + * @param code
37 + * @param id
38 + * @return
39 + */
40 + boolean existsCode(@Param("code") String code,@Param("id") Integer id);
41 +
42 + /**
43 + * 判断名称是否存在
44 + * @param name
45 + * @param id
46 + * @return
47 + */
48 + boolean existsName(@Param("name") String name,@Param("id") Integer id);
49 +
50 + /**
51 + * 添加角色的菜单动作
52 + */
53 + void insertMenuAction(Role role);
54 +
55 + /**
56 + * 删除角色的菜单动作
57 + * @param id
58 + */
59 + void deleteMenuAction(int id);
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.SalesType;
4 +import cn.runsa.portal.base.entity.SalesTypeKey;
5 +
6 +public interface SalesTypeMapper {
7 + /**
8 + * @mbggenerated
9 + */
10 + int deleteByPrimaryKey(SalesTypeKey key);
11 +
12 + /**
13 + * @mbggenerated
14 + */
15 + int insert(SalesType record);
16 +
17 + /**
18 + * @mbggenerated
19 + */
20 + int insertSelective(SalesType record);
21 +
22 + /**
23 + * @mbggenerated
24 + */
25 + SalesType selectByPrimaryKey(SalesTypeKey key);
26 +
27 + /**
28 + * @mbggenerated
29 + */
30 + int updateByPrimaryKeySelective(SalesType record);
31 +
32 + /**
33 + * @mbggenerated
34 + */
35 + int updateByPrimaryKey(SalesType record);
36 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +import cn.runsa.portal.base.entity.SensField;
5 +
6 +/*
7 + * runsatony
8 + * SensFieldMapper
9 + * 20160229
10 + *
11 + * */
12 +
13 +public interface SensFieldMapper {
14 + /*按角色查询敏感字段记录数*/
15 + public int selectCountByRid(int roleId);
16 + /*按角色查询敏感字段记录*/
17 + public List<SensField> selectListByRid(int roleId);
18 + /*查询敏感字段*/
19 + public List<SensField> selectList();
20 +
21 + /*更新角色敏感字段*/
22 + public int insert(List<SensField> sensField);
23 +
24 + /*删除*/
25 + public int deleteByRoleId(int roId);
26 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.MsgChannel;
8 +import cn.runsa.portal.base.entity.Site;
9 +import cn.runsa.portal.base.entity.SiteBrand;
10 +import cn.runsa.portal.base.entity.SiteRange;
11 +/**
12 + * 网店 SiteMapper
13 + * @author zhangJian
14 + * @date 2016年5月19日
15 + */
16 +public interface SiteMapper {
17 +
18 + int insert(Site record);
19 +
20 + int insertSelective(Site record);
21 +
22 + Site findById(Integer siid);
23 +
24 + int updateBySelective(Site record);
25 +
26 + int update(Site record);
27 +
28 + Site findByCode(String code);
29 +
30 + //新增网点范围
31 + int insertSiteRange(SiteRange record);
32 +
33 + //新增网点经营品牌
34 + int insertSiteBrand(SiteBrand record);
35 +
36 + //新增店铺付款方式
37 + int insertSitePayway(Site record);
38 +
39 + //根据网点Id查询网点范围Id
40 + List<SiteRange> findSirIdbySiid(Integer siid);
41 +
42 + //删除主网点
43 + int deleteSite(Integer siid);
44 +
45 + //删除网点范围
46 + int deleteSiteRange(Integer siid);
47 +
48 + //删除网点经营品牌
49 + int deleteSiteBrand(Integer sirid);
50 +
51 + //删除店铺付款方式
52 + int deleteSitePayway(Integer siid);
53 +
54 + //编辑时,根据网点Id查询网点信息
55 + Site selectSiteBySiid(Integer siid);
56 +
57 + //编辑时,根据网点Id查询收款信息
58 + Site selectSitePayWayBySiid(Integer siid);
59 +
60 + //判断网点编号是否重复
61 + int existsSiCode(String sicode);
62 +
63 + //根据平台ID查询短信推送通道
64 + List<MsgChannel> findMsgChannel(Integer plId);
65 +
66 + /**
67 + *
68 + * @Description: 根据网点id和渠道id判断网点范围是否存在
69 + * @param siId
70 + * @param chId
71 + * @return Boolean
72 + * @throws
73 + * @author chenchao
74 + * @date 2016年7月5日 下午4:52:26
75 + */
76 + Boolean existsSiteRange(@Param("siId") Integer siId,
77 + @Param("chId") Integer chId);
78 +}
79 +
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.SysSalesType;
6 +
7 +public interface SysSaleTypeMapper {
8 + /**
9 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
10 + */
11 + int deleteByPrimaryKey(String salTypeId);
12 +
13 + /**
14 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
15 + */
16 + int insert(SysSalesType record);
17 +
18 + /**
19 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
20 + */
21 + int insertSelective(SysSalesType record);
22 +
23 + /**
24 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
25 + */
26 + SysSalesType selectByPrimaryKey(String salTypeId);
27 +
28 + /**
29 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
30 + */
31 + int updateByPrimaryKeySelective(SysSalesType record);
32 +
33 + /**
34 + * @mbggenerated Fri Jul 22 17:19:48 CST 2016
35 + */
36 + int updateByPrimaryKey(SysSalesType record);
37 +
38 + List<SysSalesType> selectAll();
39 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.SystemTemplate;
6 +
7 +/**
8 + * 系统模板
9 + * @author Yijun
10 + *
11 + */
12 +public interface SystemTemplateMapper {
13 +
14 + /**
15 + * 按编号查询
16 + * @param ids
17 + * @return
18 + */
19 + public List<SystemTemplate> selectById(String... ids);
20 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import cn.runsa.portal.base.entity.Test_user_excel;
4 +import java.util.List;
5 +
6 +public interface Test_user_excelMapper {
7 +
8 +// int deleteByGroup(String groupId);
9 +
10 + int insert(Test_user_excel record);
11 +
12 + int insertList(List<Test_user_excel> recordList);
13 +
14 + List<Test_user_excel> selectByGroup(String groupId);
15 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.Town;
6 +
7 +/**
8 + * 街道/镇
9 + * @author zhangJian
10 + *
11 + */
12 +public interface TownMapper {
13 +
14 + /**
15 + * 根据县区ID查询街道/镇
16 + * @param diid
17 + * @return
18 + */
19 + List<Town> selectByDiId(Integer diid);
20 +}
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.UsDataItem;
8 +
9 +/**
10 + *
11 + * Title: UsDataItemMapper Description: 数据项限制对应的数据库操作
12 + *
13 + * @author chenchao
14 + * @date 2016年6月14日 上午9:19:38
15 + */
16 +public interface UsDataItemMapper {
17 + /**
18 + *
19 + * @Description: 根据Id删除数据项限制
20 + * @param usdId
21 + * @return int
22 + * @throws
23 + * @author chenchao
24 + * @date 2016年6月14日 上午9:22:39
25 + */
26 + int deleteById(Integer usdId);
27 +
28 + /**
29 + *
30 + * @Description: 新增数据项限制
31 + * @param usDataItem
32 + * @return int
33 + * @throws
34 + * @author chenchao
35 + * @date 2016年6月14日 上午9:24:00
36 + */
37 + int insert(UsDataItem usDataItem);
38 +
39 + /**
40 + *
41 + * @Description: 根据Id查找对应数据项限制
42 + * @param usdId
43 + * @return UsDataItem
44 + * @throws
45 + * @author chenchao
46 + * @date 2016年6月14日 上午9:24:21
47 + */
48 + UsDataItem selectById(Integer usdId);
49 +
50 + /**
51 + *
52 + * @Description: 根据操作账户ID删除数据项限制
53 + * @param usId
54 + * @param usdStatus
55 + * @return int
56 + * @throws
57 + * @author chenchao
58 + * @date 2016年6月14日 下午7:30:13
59 + */
60 + int deleteUsDataByUsId(@Param("usId") Integer usId);
61 +
62 + /**
63 + *
64 + * @Description: 根据操作账户ID查询数据项限制
65 + * @param usId
66 + * @return List<UsDataItem>
67 + * @throws
68 + * @author chenchao
69 + * @date 2016年6月14日 下午3:10:39
70 + */
71 + List<UsDataItem> selectDataItemsByUsId(Integer usId);
72 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import cn.runsa.portal.base.entity.UsPermission;
6 +/**
7 + * 系统帐户操作权限
8 + * @author hehongjian
9 + * @date 2016年3月3日
10 + */
11 +public interface UsPermissionMapper {
12 + /**
13 + * 删除
14 + * @param id
15 + * @return
16 + */
17 + int delete(Integer id);
18 +
19 + int insert(UsPermission record);
20 +
21 + int insertSelective(UsPermission record);
22 +
23 + UsPermission findById(Integer id);
24 +
25 + int updateSelective(UsPermission record);
26 +
27 + int update(UsPermission record);
28 + /**
29 + * 新增系统帐户操作权限 -- 品牌
30 + * @param brandList
31 + * @return
32 + */
33 + int insertPermBrand(UsPermission usPermission);
34 + /**
35 + * 新增系统帐户操作权限 -- 角色
36 + * @param roleList
37 + * @return
38 + */
39 + int insertUsPermRole(UsPermission usPermission);
40 + /**
41 + * 删除系统帐户操作权限 -- 品牌
42 + * @param id
43 + * @return
44 + */
45 + int deletePermBrand(Integer id);
46 + /**
47 + * 删除系统帐户操作权限 -- 角色
48 + * @param id
49 + * @return
50 + */
51 + int deleteUsPermRole(Integer id);
52 + /**
53 + * 查询多条
54 + * @param id
55 + * @return
56 + */
57 + List<UsPermission> findList(Integer id);
58 + /**
59 + * 根据账户ID删除操作权限信息
60 + * @param id
61 + * @return
62 + */
63 + int deleteByUsid(Integer id);
64 + /**
65 + * 删除系统帐户操作权限 -- 品牌(根据账户ID)
66 + * @param id
67 + * @return
68 + */
69 + int deletePermBrandByUsid(Integer id);
70 + /**
71 + * 删除系统帐户操作权限 -- 角色(根据账户ID)
72 + * @param id
73 + * @return
74 + */
75 + int deletePermRoleByUsid(Integer id);
76 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.Username;
9 +
10 +@Repository
11 +public interface UsernameMapper {
12 +
13 + int insert(Username record);
14 +
15 + int insertSelective(Username record);
16 + /**
17 + * 修改有效性
18 + * @param record
19 + * @return
20 + */
21 + int updateValid(Username record);
22 +
23 + /**
24 + * 按类型查询用户名
25 + * @param username
26 + * @param type
27 + * @return
28 + */
29 + List<Username> selectAllByUsername(@Param("username") String username,@Param("type") Integer type);
30 +
31 + /**
32 + * 判断是否已挂失/或解挂
33 + * @param record
34 + * @return
35 + */
36 + int existsByName(Username record);
37 +
38 + /**
39 + *
40 + * @param record
41 + * @return
42 + */
43 + List<Username> selectAll(Username record);
44 +
45 + /**
46 + * 按编号查询
47 + * @param id
48 + * @return
49 + */
50 + Username selectById(Integer id);
51 +
52 + /**
53 + * 根据用户名或者手机号查询用户列表
54 + * @param username
55 + * @return
56 + */
57 + List<Username> selectPhoneOrEmailByUsername(@Param("username") String username);
58 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.Username;
9 +import cn.runsa.portal.base.entity.Users;
10 +
11 +/**
12 + * 系统帐户
13 + *
14 + * @author Yijun
15 + *
16 + */
17 +@Repository("usersDao")
18 +public interface UsersMapper {
19 +
20 + /**
21 + * 判断用户名是否存在
22 + *
23 + * @param username
24 + * @return
25 + */
26 + boolean existsUsername(String username);
27 +
28 + /**
29 + * 登录
30 + *
31 + * @param username
32 + * @param password
33 + * @return
34 + */
35 + List<Users> login(@Param("username") String username,
36 + @Param("password") String password,
37 + @Param("ptValid") Integer ptValid);
38 +
39 + /**
40 + * 删除登录账户
41 + *
42 + * @param id
43 + * @return
44 + */
45 + int delete(Integer id);
46 +
47 + int insert(Users record);
48 +
49 + /**
50 + * 保存用户平台
51 + *
52 + * @param users
53 + * @return
54 + */
55 + int insertSelective(Users record);
56 +
57 + Users selectByPrimaryKey(Integer id);
58 +
59 + int updateSelective(Users record);
60 +
61 + int update(Users record);
62 +
63 + /**
64 + * 登录账户查询
65 + *
66 + * @param record
67 + * @return
68 + */
69 + Users findById(Users record);
70 +
71 + /**
72 + * 按用户名修改冻结状态
73 + * @param username
74 + * @param frozen
75 + * @return
76 + */
77 + int updateFrozenByUsername(@Param("username") String username,@Param("frozen") boolean frozen);
78 +
79 + /**
80 + * 判断否有登录密码
81 + *
82 + * @param id
83 + * @return
84 + */
85 + boolean existsPassword(Integer id);
86 +
87 + /**
88 + * 新增登录密码
89 + *
90 + * @return
91 + */
92 + void insertPassword(@Param("emId") Integer emId,
93 + @Param("password") String password);
94 +
95 + /**
96 + * 修改密码
97 + *
98 + * @param emId
99 + * @param password
100 + */
101 + void updatePassword(@Param("emId") Integer emId,
102 + @Param("password") String password);
103 +
104 + /**
105 + * 修改密码
106 + *
107 + * @param emId
108 + * @param password
109 + */
110 + void updatePasswordByUser(@Param("usId") Integer usId,
111 + @Param("password") String password);
112 +
113 + /**
114 + * 验证密码
115 + *
116 + * @param emId
117 + * @param password
118 + * @return
119 + */
120 + boolean verifyPasswordByUser(@Param("usId") Integer usId,
121 + @Param("password") String password);
122 +
123 + /**
124 + * 检验用户是否登陆过
125 + *
126 + * @param users
127 + * @return
128 + */
129 + Users judgeLogin(Integer id);
130 +
131 + /**
132 + *
133 + * @Description: 查询系统管理员信息
134 + * @return Users
135 + * @throws
136 + * @author chenchao
137 + * @date 2016年5月20日 下午5:14:09
138 + */
139 + Users selectSysManager();
140 +
141 + /**
142 + * 校验用户列表里是否存在该密码
143 + *
144 + * @param list
145 + * @param password
146 + * @return
147 + */
148 + boolean verifyPasswordByUserName(@Param("list") List<Username> list,
149 + @Param("password") String password);
150 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +import java.util.List;
4 +
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import cn.runsa.portal.base.entity.VarItem;
8 +
9 +
10 +public interface VarItemMapper {
11 +
12 + /**
13 + *
14 + * @param vaCode
15 + * @param platId
16 + * @return
17 + */
18 + public List<VarItem> selectByCode(@Param("vaCode") String vaCode,@Param("platId") int platId);
19 +
20 + /*按表头查询明细*/
21 + public List<VarItem> selectListByVarId(Integer vaId);
22 +
23 + /* 插入明细 */
24 + int insertList(@Param("list") List<VarItem> list);
25 + /*修改明细*/
26 + int update(VarItem varItem);
27 + /*按表头删除明细 */
28 + int deleteByVarId(Integer vaId);
29 +
30 + //根据常用变量ID查询列表
31 + public List<VarItem> selectVarItemByVarId(Integer vaId);
32 +
33 + int deleteByVaiId(Integer VaiId);
34 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.dao;
2 +
3 +
4 +import java.util.List;
5 +
6 +import org.springframework.stereotype.Repository;
7 +
8 +import cn.runsa.portal.base.entity.Variable;
9 +
10 +@Repository("mtVariableMapper")
11 +public interface VariableMapper {
12 + /*分页查询表头*/
13 + public List<Variable> selectPageList(Variable variable);
14 + /*查询总记录数量*/
15 + public int selectCount(Variable variable);
16 + /*查询表头总记录*/
17 + public List<Variable> selectList(Variable variable);
18 + /* 插入表头 */
19 + int insert(Variable variable);
20 + /*插入变量平台对应关系*/
21 + int insertVarPlt(Variable variable);
22 + /*修改表头 */
23 + int updateVar(Variable variable);
24 + /* 删除常用变量表 */
25 + int deleteVariable(Integer vaId);
26 + /* 删除常用变量值表 */
27 + int deleteVarItem(Integer vaId);
28 + /* 删除变量平台关系表*/
29 + int deletePlatForm(Integer vaId);
30 + /* 根据常用变量ID查询*/
31 + Variable findById(Integer vaId);
32 + /* 检查常用变量名称是否重复*/
33 + int existsName(String name);
34 + /* 检查常用变量系统ID是否重复*/
35 + int existsCode(String code);
36 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.util.Date;
4 +
5 +public class Account {
6 + private Integer id;
7 +
8 + private Integer beid;
9 +
10 + private String code;
11 +
12 + private String name;
13 +
14 + private String desc;
15 +
16 + private String remark;
17 +
18 + private Short valid;
19 +
20 + private String remark1;
21 +
22 + private String remark2;
23 +
24 + private String remark3;
25 +
26 + private Date uptime;
27 +
28 + private Integer updater;
29 +
30 + public Integer getId() {
31 + return id;
32 + }
33 +
34 + public void setId(Integer id) {
35 + this.id = id;
36 + }
37 +
38 + public Integer getBeid() {
39 + return beid;
40 + }
41 +
42 + public void setBeid(Integer beid) {
43 + this.beid = beid;
44 + }
45 +
46 + public String getCode() {
47 + return code;
48 + }
49 +
50 + public void setCode(String code) {
51 + this.code = code == null ? null : code.trim();
52 + }
53 +
54 + public String getName() {
55 + return name;
56 + }
57 +
58 + public void setName(String name) {
59 + this.name = name == null ? null : name.trim();
60 + }
61 +
62 + public String getDesc() {
63 + return desc;
64 + }
65 +
66 + public void setDesc(String desc) {
67 + this.desc = desc == null ? null : desc.trim();
68 + }
69 +
70 + public String getRemark() {
71 + return remark;
72 + }
73 +
74 + public void setRemark(String remark) {
75 + this.remark = remark == null ? null : remark.trim();
76 + }
77 +
78 + public Short getValid() {
79 + return valid;
80 + }
81 +
82 + public void setValid(Short valid) {
83 + this.valid = valid;
84 + }
85 +
86 + public String getRemark1() {
87 + return remark1;
88 + }
89 +
90 + public void setRemark1(String remark1) {
91 + this.remark1 = remark1 == null ? null : remark1.trim();
92 + }
93 +
94 + public String getRemark2() {
95 + return remark2;
96 + }
97 +
98 + public void setRemark2(String remark2) {
99 + this.remark2 = remark2 == null ? null : remark2.trim();
100 + }
101 +
102 + public String getRemark3() {
103 + return remark3;
104 + }
105 +
106 + public void setRemark3(String remark3) {
107 + this.remark3 = remark3 == null ? null : remark3.trim();
108 + }
109 +
110 + public Date getUptime() {
111 + return uptime;
112 + }
113 +
114 + public void setUptime(Date uptime) {
115 + this.uptime = uptime;
116 + }
117 +
118 + public Integer getUpdater() {
119 + return updater;
120 + }
121 +
122 + public void setUpdater(Integer updater) {
123 + this.updater = updater;
124 + }
125 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.math.BigDecimal;
4 +import java.util.Date;
5 +/**
6 + * 经营主体-结算帐套-常用帐户BizAccount
7 + * @author zhangJian
8 + *
9 + * @date
10 + */
11 +public class BizAccount {
12 + private Integer id;
13 + private Integer bebid;
14 + private String name;
15 + private String code;
16 + private String account;
17 + private BigDecimal rate;
18 + private Integer cuid;
19 + private Short type;
20 + private String source;
21 + private String remark1;
22 + private Date uptime;
23 + private Integer updater;
24 +
25 + private String uuid;
26 + public Integer getId() {
27 + return id;
28 + }
29 +
30 + public void setId(Integer id) {
31 + this.id = id;
32 + }
33 +
34 + public Integer getBebid() {
35 + return bebid;
36 + }
37 +
38 + public void setBebid(Integer bebid) {
39 + this.bebid = bebid;
40 + }
41 +
42 + public String getName() {
43 + return name;
44 + }
45 +
46 + public void setName(String name) {
47 + this.name = name;
48 + }
49 +
50 + public String getCode() {
51 + return code;
52 + }
53 +
54 + public void setCode(String code) {
55 + this.code = code;
56 + }
57 +
58 + public String getAccount() {
59 + return account;
60 + }
61 +
62 + public void setAccount(String account) {
63 + this.account = account;
64 + }
65 +
66 + public BigDecimal getRate() {
67 + return rate;
68 + }
69 +
70 + public void setRate(BigDecimal rate) {
71 + this.rate = rate;
72 + }
73 +
74 + public Integer getCuid() {
75 + return cuid;
76 + }
77 +
78 + public void setCuid(Integer cuid) {
79 + this.cuid = cuid;
80 + }
81 +
82 + public Short getType() {
83 + return type;
84 + }
85 +
86 + public void setType(Short type) {
87 + this.type = type;
88 + }
89 +
90 + public String getSource() {
91 + return source;
92 + }
93 +
94 + public void setSource(String source) {
95 + this.source = source;
96 + }
97 +
98 + public String getRemark1() {
99 + return remark1;
100 + }
101 +
102 + public void setRemark1(String remark1) {
103 + this.remark1 = remark1;
104 + }
105 +
106 + public Date getUptime() {
107 + return uptime;
108 + }
109 +
110 + public void setUptime(Date uptime) {
111 + this.uptime = uptime;
112 + }
113 +
114 + public Integer getUpdater() {
115 + return updater;
116 + }
117 +
118 + public void setUpdater(Integer updater) {
119 + this.updater = updater;
120 + }
121 +
122 + public String getUuid() {
123 + return uuid;
124 + }
125 +
126 + public void setUuid(String uuid) {
127 + this.uuid = uuid;
128 + }
129 +
130 +
131 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.io.Serializable;
4 +
5 +/**
6 + * 经营主体的渠道和品牌的关系
7 + * @author zhangJian
8 + *
9 + */
10 +public class BizBrand implements Serializable{
11 +
12 + private static final long serialVersionUID = 1180440635885936229L;
13 +
14 + private Integer becid;
15 +
16 + private Integer brid;
17 +
18 + public Integer getBecid() {
19 + return becid;
20 + }
21 +
22 + public void setBecid(Integer becid) {
23 + this.becid = becid;
24 + }
25 +
26 + public Integer getBrid() {
27 + return brid;
28 + }
29 +
30 + public void setBrid(Integer brid) {
31 + this.brid = brid;
32 + }
33 +
34 +
35 +}
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.io.Serializable;
4 +import java.util.List;
5 +
6 +/**
7 + * 经营主体和渠道
8 + *
9 + * @author zhangJian
10 + * @date 2016年6月2日
11 + */
12 +public class BizChannel implements Serializable {
13 +
14 + private static final long serialVersionUID = -4689579093613314246L;
15 +
16 + private Integer id;
17 + private Integer beid;
18 + private Integer chid;
19 + private Boolean limit;
20 + private Integer beparent;
21 + private Short valid;
22 + // 经营渠道
23 + private List<Channel> channelList;
24 + // 经营品牌
25 + private List<Brand> brandList;
26 + // 经营品牌id
27 + private String brandId;
28 +
29 + private String chdesc;
30 + private String chname;
31 + private String brname;
32 + private String brid;
33 + private String bename;
34 +
35 + public List<Brand> getBrandList() {
36 + return brandList;
37 + }
38 +
39 + public void setBrandList(List<Brand> brandList) {
40 + this.brandList = brandList;
41 + }
42 +
43 + public List<Channel> getChannelList() {
44 + return channelList;
45 + }
46 +
47 + public void setChannelList(List<Channel> channelList) {
48 + this.channelList = channelList;
49 + }
50 +
51 + public Integer getId() {
52 + return id;
53 + }
54 +
55 + public void setId(Integer id) {
56 + this.id = id;
57 + }
58 +
59 + public Integer getBeid() {
60 + return beid;
61 + }
62 +
63 + public void setBeid(Integer beid) {
64 + this.beid = beid;
65 + }
66 +
67 + public Integer getChid() {
68 + return chid;
69 + }
70 +
71 + public void setChid(Integer chid) {
72 + this.chid = chid;
73 + }
74 +
75 + public Boolean getLimit() {
76 + return limit;
77 + }
78 +
79 + public void setLimit(Boolean limit) {
80 + this.limit = limit;
81 + }
82 +
83 + public Integer getBeparent() {
84 + return beparent;
85 + }
86 +
87 + public void setBeparent(Integer beparent) {
88 + this.beparent = beparent;
89 + }
90 +
91 + public Short getValid() {
92 + return valid;
93 + }
94 +
95 + public void setValid(Short valid) {
96 + this.valid = valid;
97 + }
98 +
99 + public String getBrandId() {
100 + return brandId;
101 + }
102 +
103 + public void setBrandId(String brandId) {
104 + this.brandId = brandId;
105 + }
106 +
107 + public String getChdesc() {
108 + return chdesc;
109 + }
110 +
111 + public void setChdesc(String chdesc) {
112 + this.chdesc = chdesc;
113 + }
114 +
115 + public String getChname() {
116 + return chname;
117 + }
118 +
119 + public void setChname(String chname) {
120 + this.chname = chname;
121 + }
122 +
123 + public String getBrname() {
124 + return brname;
125 + }
126 +
127 + public void setBrname(String brname) {
128 + this.brname = brname;
129 + }
130 +
131 + public String getBrid() {
132 + return brid;
133 + }
134 +
135 + public void setBrid(String brid) {
136 + this.brid = brid;
137 + }
138 +
139 + public String getBename() {
140 + return bename;
141 + }
142 +
143 + public void setBename(String bename) {
144 + this.bename = bename;
145 + }
146 +
147 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.math.BigDecimal;
4 +import java.util.Date;
5 +import java.util.List;
6 +
7 +import com.alibaba.fastjson.annotation.JSONField;
8 +
9 +/**
10 + * 经营主体 BizEntity
11 + *
12 + * @author zhangJian
13 + * @date
14 + */
15 +public class BizEntity {
16 + private Integer id;
17 + private Integer orgType;
18 + private String code;
19 + private String name;
20 + private String desc;
21 + private Short valid;
22 + private String chief;
23 + private String email;
24 + private String post;
25 + private BigDecimal taxrate;
26 + private Integer currency;
27 + private String tphone;
28 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
29 + private Date beginDate;
30 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
31 + private Date endDate;
32 + private Integer diId;
33 + private String addr;
34 + private String phone;
35 + @JSONField(format = "yyyy-MM-dd HH:mm:ss")
36 + private Date anniversary;
37 + private String remark;
38 + private String remark1;
39 + private String remark2;
40 + private String remark3;
41 + private Date uptime;
42 + private Integer updater;
43 + private VarItem varItem;
44 + // 结算账套
45 + private List<BizSetOfBook> bizSetOfBookList;
46 + // 经营渠道
47 + private List<BizChannel> bizChannelList;
48 +
49 + private String editflag;
50 +
51 + private Integer delbebIds[];
52 +
53 + public String getCode() {
54 + return code;
55 + }
56 +
57 + public void setCode(String code) {
58 + this.code = code;
59 + }
60 +
61 + public Integer getId() {
62 + return id;
63 + }
64 +
65 + public void setId(Integer id) {
66 + this.id = id;
67 + }
68 +
69 + public Integer getOrgType() {
70 + return orgType;
71 + }
72 +
73 + public void setOrgType(Integer orgType) {
74 + this.orgType = orgType;
75 + }
76 +
77 + public String getName() {
78 + return name;
79 + }
80 +
81 + public void setName(String name) {
82 + this.name = name;
83 + }
84 +
85 + public String getDesc() {
86 + return desc;
87 + }
88 +
89 + public void setDesc(String desc) {
90 + this.desc = desc;
91 + }
92 +
93 + public Short getValid() {
94 + return valid;
95 + }
96 +
97 + public void setValid(Short valid) {
98 + this.valid = valid;
99 + }
100 +
101 + public String getChief() {
102 + return chief;
103 + }
104 +
105 + public void setChief(String chief) {
106 + this.chief = chief;
107 + }
108 +
109 + public String getEmail() {
110 + return email;
111 + }
112 +
113 + public void setEmail(String email) {
114 + this.email = email;
115 + }
116 +
117 + public String getPost() {
118 + return post;
119 + }
120 +
121 + public void setPost(String post) {
122 + this.post = post;
123 + }
124 +
125 + public BigDecimal getTaxrate() {
126 + return taxrate;
127 + }
128 +
129 + public void setTaxrate(BigDecimal taxrate) {
130 + this.taxrate = taxrate;
131 + }
132 +
133 + public Integer getCurrency() {
134 + return currency;
135 + }
136 +
137 + public void setCurrency(Integer currency) {
138 + this.currency = currency;
139 + }
140 +
141 + public String getTphone() {
142 + return tphone;
143 + }
144 +
145 + public void setTphone(String tphone) {
146 + this.tphone = tphone;
147 + }
148 +
149 + public Date getBeginDate() {
150 + return beginDate;
151 + }
152 +
153 + public void setBeginDate(Date beginDate) {
154 + this.beginDate = beginDate;
155 + }
156 +
157 + public Date getEndDate() {
158 + return endDate;
159 + }
160 +
161 + public void setEndDate(Date endDate) {
162 + this.endDate = endDate;
163 + }
164 +
165 + public Integer getDiId() {
166 + return diId;
167 + }
168 +
169 + public void setDiId(Integer diId) {
170 + this.diId = diId;
171 + }
172 +
173 + public String getAddr() {
174 + return addr;
175 + }
176 +
177 + public void setAddr(String addr) {
178 + this.addr = addr;
179 + }
180 +
181 + public String getPhone() {
182 + return phone;
183 + }
184 +
185 + public void setPhone(String phone) {
186 + this.phone = phone;
187 + }
188 +
189 + public Date getAnniversary() {
190 + return anniversary;
191 + }
192 +
193 + public void setAnniversary(Date anniversary) {
194 + this.anniversary = anniversary;
195 + }
196 +
197 + public String getRemark() {
198 + return remark;
199 + }
200 +
201 + public void setRemark(String remark) {
202 + this.remark = remark;
203 + }
204 +
205 + public String getRemark1() {
206 + return remark1;
207 + }
208 +
209 + public void setRemark1(String remark1) {
210 + this.remark1 = remark1;
211 + }
212 +
213 + public String getRemark2() {
214 + return remark2;
215 + }
216 +
217 + public void setRemark2(String remark2) {
218 + this.remark2 = remark2;
219 + }
220 +
221 + public String getRemark3() {
222 + return remark3;
223 + }
224 +
225 + public void setRemark3(String remark3) {
226 + this.remark3 = remark3;
227 + }
228 +
229 + public Date getUptime() {
230 + return uptime;
231 + }
232 +
233 + public void setUptime(Date uptime) {
234 + this.uptime = uptime;
235 + }
236 +
237 + public Integer getUpdater() {
238 + return updater;
239 + }
240 +
241 + public void setUpdater(Integer updater) {
242 + this.updater = updater;
243 + }
244 +
245 + public List<BizSetOfBook> getBizSetOfBookList() {
246 + return bizSetOfBookList;
247 + }
248 +
249 + public void setBizSetOfBookList(List<BizSetOfBook> bizSetOfBookList) {
250 + this.bizSetOfBookList = bizSetOfBookList;
251 + }
252 +
253 + public VarItem getVarItem() {
254 + return varItem;
255 + }
256 +
257 + public void setVarItem(VarItem varItem) {
258 + this.varItem = varItem;
259 + }
260 +
261 + public List<BizChannel> getBizChannelList() {
262 + return bizChannelList;
263 + }
264 +
265 + public void setBizChannelList(List<BizChannel> bizChannelList) {
266 + this.bizChannelList = bizChannelList;
267 + }
268 +
269 + public String getEditflag() {
270 + return editflag;
271 + }
272 +
273 + public void setEditflag(String editflag) {
274 + this.editflag = editflag;
275 + }
276 +
277 + public Integer[] getDelbebIds() {
278 + return delbebIds;
279 + }
280 +
281 + public void setDelbebIds(Integer[] delbebIds) {
282 + this.delbebIds = delbebIds;
283 + }
284 +
285 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package cn.runsa.portal.base.entity;
2 +
3 +import java.io.Serializable;
4 +
5 +/**
6 + * 所属经营主体上下级关系
7 + * @author zhangJian
8 + *
9 + */
10 +public class BizEntityInfo implements Serializable{
11 +
12 + private static final long serialVersionUID = 8341803722461728233L;
13 +
14 + private Integer beid;
15 +
16 + private Integer chid;
17 +
18 + private Integer beparent;
19 +
20 + private Integer belevel;
21 +
22 + public Integer getBeid() {
23 + return beid;
24 + }
25 +
26 + public void setBeid(Integer beid) {
27 + this.beid = beid;
28 + }
29 +
30 + public Integer getChid() {
31 + return chid;
32 + }
33 +
34 + public void setChid(Integer chid) {
35 + this.chid = chid;
36 + }
37 +
38 + public Integer getBeparent() {
39 + return beparent;
40 + }
41 +
42 + public void setBeparent(Integer beparent) {
43 + this.beparent = beparent;
44 + }
45 +
46 + public Integer getBelevel() {
47 + return belevel;
48 + }
49 +
50 + public void setBelevel(Integer belevel) {
51 + this.belevel = belevel;
52 + }
53 +
54 +}
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.