sanqiang.sql 383 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006
  1. /*
  2. Navicat Premium Dump SQL
  3. Source Server : 47.99.164.66 hn02le.34lkdLKD
  4. Source Server Type : MySQL
  5. Source Server Version : 50736 (5.7.36)
  6. Source Host : 47.99.164.66:3306
  7. Source Schema : sanqiang
  8. Target Server Type : MySQL
  9. Target Server Version : 50736 (5.7.36)
  10. File Encoding : 65001
  11. Date: 03/04/2026 10:45:09
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for bas_address
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `bas_address`;
  19. CREATE TABLE `bas_address` (
  20. `id` varchar(32) NOT NULL COMMENT '主键ID',
  21. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  22. `address_type` varchar(20) NOT NULL COMMENT '地址类型: pickup-取货地址, delivery-配送地址',
  23. `contact_person` varchar(100) NOT NULL COMMENT '联系人',
  24. `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
  25. `province` varchar(50) DEFAULT NULL COMMENT '省份',
  26. `city` varchar(50) DEFAULT NULL COMMENT '城市',
  27. `district` varchar(50) DEFAULT NULL COMMENT '区县',
  28. `detail_address` varchar(500) NOT NULL COMMENT '详细地址',
  29. `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认地址: 0-否, 1-是',
  30. `latitude` varchar(20) DEFAULT NULL COMMENT '纬度',
  31. `longitude` varchar(20) DEFAULT NULL COMMENT '经度',
  32. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  33. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  34. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  35. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  36. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  37. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  38. PRIMARY KEY (`id`),
  39. KEY `idx_user_id` (`user_id`),
  40. KEY `idx_address_type` (`address_type`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商/客户地址表';
  42. -- ----------------------------
  43. -- Records of bas_address
  44. -- ----------------------------
  45. BEGIN;
  46. INSERT INTO `bas_address` (`id`, `user_id`, `address_type`, `contact_person`, `contact_phone`, `province`, `city`, `district`, `detail_address`, `is_default`, `latitude`, `longitude`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ADDR_T_CLI1_D', 'U_CLIENT_20260330001', 'delivery', '演示客户甲', '13900003001', '河南省', '郑州市', '金水区', '文化路66号阳光小区3号楼2单元801', 1, '34.79', '113.67', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  47. INSERT INTO `bas_address` (`id`, `user_id`, `address_type`, `contact_person`, `contact_phone`, `province`, `city`, `district`, `detail_address`, `is_default`, `latitude`, `longitude`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ADDR_T_CLI2_D', 'U_CLIENT_20260330002', 'delivery', '演示客户乙', '13900003002', '河南省', '郑州市', '二七区', '大学路120号学府花园1期5号', 1, '34.72', '113.65', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  48. INSERT INTO `bas_address` (`id`, `user_id`, `address_type`, `contact_person`, `contact_phone`, `province`, `city`, `district`, `detail_address`, `is_default`, `latitude`, `longitude`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ADDR_T_SUP1_D', 'U_SUPPLIER_20260330001', 'delivery', '张仓管', '13900001001', '河南省', '郑州市', '金水区', '农业路88号办公楼前台', 0, '34.78', '113.68', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  49. INSERT INTO `bas_address` (`id`, `user_id`, `address_type`, `contact_person`, `contact_phone`, `province`, `city`, `district`, `detail_address`, `is_default`, `latitude`, `longitude`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ADDR_T_SUP1_P', 'U_SUPPLIER_20260330001', 'pickup', '张仓管', '13900001001', '河南省', '郑州市', '金水区', '农业路88号三强仓储中心A区', 1, '34.78', '113.68', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  50. COMMIT;
  51. -- ----------------------------
  52. -- Table structure for bas_address_his
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS `bas_address_his`;
  55. CREATE TABLE `bas_address_his` (
  56. `id` varchar(32) NOT NULL COMMENT '主键ID',
  57. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  58. `address_type` varchar(20) NOT NULL COMMENT '地址类型',
  59. `contact_person` varchar(100) NOT NULL COMMENT '联系人',
  60. `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
  61. `province` varchar(50) DEFAULT NULL COMMENT '省份',
  62. `city` varchar(50) DEFAULT NULL COMMENT '城市',
  63. `district` varchar(50) DEFAULT NULL COMMENT '区县',
  64. `detail_address` varchar(500) NOT NULL COMMENT '详细地址',
  65. `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认地址',
  66. `latitude` varchar(20) DEFAULT NULL COMMENT '纬度',
  67. `longitude` varchar(20) DEFAULT NULL COMMENT '经度',
  68. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  69. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  70. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  71. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  72. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  73. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='地址历史表';
  75. -- ----------------------------
  76. -- Records of bas_address_his
  77. -- ----------------------------
  78. BEGIN;
  79. COMMIT;
  80. -- ----------------------------
  81. -- Table structure for bas_category_parameter
  82. -- ----------------------------
  83. DROP TABLE IF EXISTS `bas_category_parameter`;
  84. CREATE TABLE `bas_category_parameter` (
  85. `id` varchar(32) NOT NULL COMMENT '主键ID',
  86. `category_id` varchar(32) NOT NULL COMMENT '分类ID',
  87. `parameter_id` varchar(32) NOT NULL COMMENT '参数ID',
  88. `is_required` int(11) DEFAULT '0' COMMENT '该分类下是否必填:0-否, 1-是',
  89. `default_value` varchar(500) DEFAULT NULL COMMENT '默认值',
  90. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  91. `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
  92. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  93. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  94. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  95. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  96. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  97. PRIMARY KEY (`id`),
  98. UNIQUE KEY `uk_category_parameter` (`category_id`,`parameter_id`,`is_del`),
  99. KEY `idx_category_id` (`category_id`),
  100. KEY `idx_parameter_id` (`parameter_id`)
  101. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类-参数关联表';
  102. -- ----------------------------
  103. -- Records of bas_category_parameter
  104. -- ----------------------------
  105. BEGIN;
  106. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('021B1A5C8982451FAF8C3114B30E0127', '8A5361C91778435FBD28D6D65644489C', 'param_003', 0, 'net_weight1', 3, 0, '2026-04-02 11:47:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:04', NULL);
  107. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('045BE625116C4E78A6B6F8ECCE618B74', '53CAED76599C4DA7A917F5AF05E44635', 'param_001', 0, '1', 1, 0, '2026-04-01 17:06:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:09', NULL);
  108. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10538181E74441EA86525A456AEEE8D0', 'A78283EDD93C459F9DC907548552ACF8', 'param_005', 0, '', 4, 0, '2026-04-02 10:42:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:20', NULL);
  109. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('15B00BF93F254FC0BFA7E98EE97BE46F', 'CAT_005', 'param_008', 0, '', 3, 1, '2026-04-01 12:56:43', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 13:03:02', NULL);
  110. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('179EF4608BD3458EBE69D28A2B05A7E5', 'A78283EDD93C459F9DC907548552ACF8', 'param_003', 0, '', 2, 0, '2026-04-02 10:42:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:20', NULL);
  111. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1B9E20C72E6D4259A6E655B410DF126F', '53CAED76599C4DA7A917F5AF05E44635', 'param_007', 0, '5', 7, 0, '2026-04-01 17:06:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:10', NULL);
  112. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1E43621D69384944B54A5EEB7FC6A173', '53CAED76599C4DA7A917F5AF05E44635', 'param_005', 0, '', 5, 0, '2026-04-01 17:06:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:10', NULL);
  113. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('211115EAE87140FEAF6EB139EEFFE6C3', 'CAT_005', 'param_006', 0, '', 5, 1, '2026-04-01 12:56:43', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 13:03:02', NULL);
  114. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('286F7629EF974614B20224B2AB6C021F', '53CAED76599C4DA7A917F5AF05E44635', 'param_003', 0, '3', 3, 0, '2026-04-01 17:06:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:09', NULL);
  115. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('475516195C5F444EA67D972A56E7347A', 'A78283EDD93C459F9DC907548552ACF8', 'param_004', 0, '', 3, 0, '2026-04-02 10:42:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:20', NULL);
  116. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('48AFB18833A34392B32C568E60AB9585', '53CAED76599C4DA7A917F5AF05E44635', 'param_006', 0, '4', 6, 0, '2026-04-01 17:06:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:10', NULL);
  117. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5DCF69689D2D47169549C8A3A495BF8B', '53CAED76599C4DA7A917F5AF05E44635', 'param_004', 0, '保鲜膜包装', 4, 0, '2026-04-01 17:06:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:10', NULL);
  118. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6D3A86D3A9BC4E21A4B6BAB5C9BF7608', '8A5361C91778435FBD28D6D65644489C', 'param_002', 0, 'origin1', 2, 0, '2026-04-02 11:47:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:04', NULL);
  119. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('77BDE4D2C1584336A57093AD967A66EE', '53CAED76599C4DA7A917F5AF05E44635', 'param_002', 0, '2', 2, 0, '2026-04-01 17:06:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:09', NULL);
  120. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('89DA58C9EA824102AFAAD55471FFF9D7', 'CAT_005', 'param_005', 0, '', 1, 1, '2026-04-01 12:56:43', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 13:03:02', NULL);
  121. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8C3F2AFDFD694E81AC76ED09F149E626', 'CAT_005', 'param_006', 0, '', 5, 0, '2026-04-01 14:41:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:12', NULL);
  122. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('92F13257AF494C13809772339C59BFF7', 'A78283EDD93C459F9DC907548552ACF8', 'param_002', 0, '', 1, 0, '2026-04-02 10:42:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:20', NULL);
  123. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9614AF814EB649E4A430B1497368F282', '8A5361C91778435FBD28D6D65644489C', 'param_001', 0, 'brand1', 1, 0, '2026-04-02 11:47:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:04', NULL);
  124. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9A06519DE87D4B8CB484DB0F0AD80085', '8A5361C91778435FBD28D6D65644489C', 'param_053', 0, '树上熟', 5, 0, '2026-04-02 11:47:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:04', NULL);
  125. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A2B4373A88CB4D3CBE6B37F8AE767A99', 'CAT_005', 'param_005', 1, '', 1, 0, '2026-04-01 14:41:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:11', NULL);
  126. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A407E2BE1EA0413FA876007E5D49C4B1', 'CAT_005', 'param_011', 0, '当日达(当天配送)', 4, 0, '2026-04-01 14:41:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:12', NULL);
  127. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C5223374B8034391993F7E7317D6E5A7', 'CAT_005', 'param_020', 0, '牛肉', 5, 0, '2026-04-01 14:41:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:12', NULL);
  128. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E411D0F569444D9C9659B94B25CB9509', 'CAT_005', 'param_008', 1, 'lll', 3, 0, '2026-04-01 14:41:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:11', NULL);
  129. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ED20C34E1ECF429BB825BAE206014266', 'CAT_005', 'param_072', 0, '', 6, 0, '2026-04-01 14:41:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:12', NULL);
  130. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F5DE23C0080E4FC5A41F12BCC8384482', '8A5361C91778435FBD28D6D65644489C', 'param_052', 0, '大果(AAA级)', 4, 0, '2026-04-02 11:47:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:04', NULL);
  131. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F79AC5D10C014D628D2B2E80B01B9466', 'CAT_005', 'param_080', 0, '', 7, 0, '2026-04-01 14:41:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 14:41:12', NULL);
  132. INSERT INTO `bas_category_parameter` (`id`, `category_id`, `parameter_id`, `is_required`, `default_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('FBB75C99041A479C80012B8E27D6111F', '53CAED76599C4DA7A917F5AF05E44635', 'param_008', 0, '6', 8, 0, '2026-04-01 17:06:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:10', NULL);
  133. COMMIT;
  134. -- ----------------------------
  135. -- Table structure for bas_category_parameter_his
  136. -- ----------------------------
  137. DROP TABLE IF EXISTS `bas_category_parameter_his`;
  138. CREATE TABLE `bas_category_parameter_his` (
  139. `id` varchar(32) NOT NULL COMMENT '主键ID',
  140. `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
  141. `parameter_id` varchar(32) DEFAULT NULL COMMENT '参数ID',
  142. `is_required` int(11) DEFAULT '0' COMMENT '是否必填',
  143. `default_value` varchar(500) DEFAULT NULL COMMENT '默认值',
  144. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  145. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  146. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  147. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  148. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  149. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  150. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  151. PRIMARY KEY (`id`)
  152. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类-参数关联表历史表';
  153. -- ----------------------------
  154. -- Records of bas_category_parameter_his
  155. -- ----------------------------
  156. BEGIN;
  157. COMMIT;
  158. -- ----------------------------
  159. -- Table structure for bas_product
  160. -- ----------------------------
  161. DROP TABLE IF EXISTS `bas_product`;
  162. CREATE TABLE `bas_product` (
  163. `id` varchar(32) NOT NULL COMMENT '主键ID',
  164. `name` varchar(200) NOT NULL COMMENT '商品名称',
  165. `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
  166. `unit_id` varchar(32) DEFAULT NULL COMMENT '单位ID',
  167. `measure_value` decimal(12,3) DEFAULT NULL COMMENT '计量数量(与单位组合表示售卖规格,如500克、1个)',
  168. `description` varchar(1000) DEFAULT NULL COMMENT '商品描述',
  169. `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
  170. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
  171. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  172. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  173. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  174. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  175. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  176. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  177. `detail_content` text COMMENT '商品详情富文本内容',
  178. `sku_code` varchar(50) DEFAULT NULL COMMENT '商品SKU编码(唯一标识,用于生成二维码/条形码)',
  179. PRIMARY KEY (`id`),
  180. UNIQUE KEY `uk_sku_code` (`sku_code`),
  181. KEY `idx_category_id` (`category_id`),
  182. KEY `idx_unit_id` (`unit_id`)
  183. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品表';
  184. -- ----------------------------
  185. -- Records of bas_product
  186. -- ----------------------------
  187. BEGIN;
  188. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('0E59F12FB28A488A85DC27CAB3545486', '茄子', 'CAT_005', 'UNIT_002', '123123123', 'http://47.99.164.66:20004/sanqiang/products/202604/01/faf2665495c04a18838413a19cde54aa.jpeg', 1, 0, '2026-04-01 15:08:26', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:37:54', 'SYS_ADMIN_001', NULL, NULL);
  189. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('2183A754E8174A3EB6EC7391779CEFF4', '123', '8A5361C91778435FBD28D6D65644489C', 'UNIT_001', '123123', 'http://47.99.164.66:20004/sanqiang/products/202604/02/12169fd80ba143c0a1044ab1d36d9463.jpeg', 1, 0, '2026-04-02 11:51:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:51:04', NULL, '<p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容</span></p>', 'SQ-MNGXQ8M6-DK4W');
  190. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('34922922693747028FC78BCB4AC0E31C', '大白菜', NULL, NULL, '123', NULL, 1, 0, '2026-03-31 16:22:36', 'SYS_ADMIN_001', '系统管理员', '2026-03-31 16:22:36', NULL, NULL, NULL);
  191. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('4D1F757A5B964123A4162F0439FC52B2', '123', 'A072C766C3024856B86ED00118B23654', 'UNIT_001', '123123', 'http://47.99.164.66:20004/sanqiang/products/202604/02/9daa7aedc3004a8da4999580204aae70.jpeg', 1, 0, '2026-04-02 11:39:24', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:39:24', NULL, NULL, 'SQ-MNGXCL4J-HBJN');
  192. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('F01A31ADD6E0489C80B45F55DAD526D4', '锅', '8A5361C91778435FBD28D6D65644489C', 'UNIT_001', '锅锅锅锅锅锅', 'http://47.99.164.66:20004/sanqiang/products/202604/02/91698700c69c4bc98cc2e516281b42b5.jpeg', 1, 0, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:35', 'SYS_ADMIN_001', '<p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容详情内容详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">详情内容详情内容详情内容详情内容</span></p><p><span style=\"color: rgb(48, 49, 51); background-color: rgb(250, 250, 250); font-size: 14px;\">123123123🙃</span></p>', 'SQ-MNGY6FH6-DC2653B94DDC');
  193. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T001', '西红柿', 'CAT_001', 'UNIT_001', '新鲜西红柿', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  194. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T002', '黄瓜', 'CAT_001', 'UNIT_001', '新鲜黄瓜', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  195. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T003', '土豆', 'CAT_001', 'UNIT_002', '黄心土豆', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  196. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T004', '红富士苹果', 'CAT_002', 'UNIT_003', '苹果', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  197. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T005', '香蕉', 'CAT_002', 'UNIT_002', '进口香蕉', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  198. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T006', '五花肉', 'CAT_003', 'UNIT_002', '冷鲜五花肉', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  199. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T007', '鸡蛋', 'CAT_003', 'UNIT_005', '盒装鸡蛋', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  200. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T008', '抽纸', 'CAT_004', 'UNIT_006', '家用抽纸', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  201. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T009', '保鲜膜', 'CAT_005', 'UNIT_004', '厨房保鲜膜', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  202. INSERT INTO `bas_product` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `detail_content`, `sku_code`) VALUES ('PROD_T010', '大白菜', 'CAT_001', 'UNIT_001', '本地大白菜', NULL, 1, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL, NULL, NULL);
  203. COMMIT;
  204. -- ----------------------------
  205. -- Table structure for bas_product_banner
  206. -- ----------------------------
  207. DROP TABLE IF EXISTS `bas_product_banner`;
  208. CREATE TABLE `bas_product_banner` (
  209. `id` varchar(32) NOT NULL COMMENT '主键ID',
  210. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  211. `media_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '媒体类型:image-图片, video-视频',
  212. `file_url` varchar(500) NOT NULL COMMENT '文件URL地址',
  213. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
  214. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  215. `is_del` int(11) DEFAULT '0' COMMENT '是否删除',
  216. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  217. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  218. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  219. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  220. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  221. PRIMARY KEY (`id`),
  222. KEY `idx_product_id` (`product_id`),
  223. KEY `idx_sort_order` (`sort_order`)
  224. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品轮播图表';
  225. -- ----------------------------
  226. -- Records of bas_product_banner
  227. -- ----------------------------
  228. BEGIN;
  229. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('19AC14AA90964F85BB7B1E977D2106D2', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/ef5962dd9eb0401183929065ff21d698.jpeg', NULL, 3, 0, '2026-04-02 12:02:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  230. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('691CED6B90254A55AE0DEDA70C167CF5', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/53b4ffb7de6d420cb402ed2a540d4f69.jpeg', NULL, 2, 0, '2026-04-02 12:02:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  231. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('B27CC5E50700417FBBF15DB14EB24A1A', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/3a5f8e27772545d1a720fbcae50f5921.jpeg', NULL, 0, 0, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  232. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D05A0ED343704BD0890D640E3634B02E', 'F01A31ADD6E0489C80B45F55DAD526D4', 'video', 'http://47.99.164.66:20004/sanqiang/products/banners/202604/02/340c3ef145214e04980b6b9b814b8edf.mp4', NULL, 5, 0, '2026-04-02 13:58:58', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  233. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DDCFF164427E484AACA1EC8E789319DD', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/61fd155f12d44005997fb4b268ba87d2.jpeg', NULL, 4, 0, '2026-04-02 12:02:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  234. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E6349ED9D91046DFA43E3C3158FB101D', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/092b6b0121a8427ca7abdc217f36cec7.jpeg', NULL, 5, 1, '2026-04-02 12:02:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:56', NULL);
  235. INSERT INTO `bas_product_banner` (`id`, `product_id`, `media_type`, `file_url`, `thumbnail_url`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('FD2F506F94694737AE49AB7E99849548', 'F01A31ADD6E0489C80B45F55DAD526D4', 'image', 'http://47.99.164.66:20004/sanqiang/products/202604/02/6943c56531614024b330df74fb15ae05.jpeg', NULL, 1, 0, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  236. COMMIT;
  237. -- ----------------------------
  238. -- Table structure for bas_product_banner_his
  239. -- ----------------------------
  240. DROP TABLE IF EXISTS `bas_product_banner_his`;
  241. CREATE TABLE `bas_product_banner_his` (
  242. `id` varchar(32) NOT NULL COMMENT '主键ID',
  243. `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
  244. `media_type` varchar(20) DEFAULT 'image' COMMENT '媒体类型',
  245. `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
  246. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
  247. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  248. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  249. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  250. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  251. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  252. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  253. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  254. PRIMARY KEY (`id`)
  255. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品轮播图历史表';
  256. -- ----------------------------
  257. -- Records of bas_product_banner_his
  258. -- ----------------------------
  259. BEGIN;
  260. COMMIT;
  261. -- ----------------------------
  262. -- Table structure for bas_product_category
  263. -- ----------------------------
  264. DROP TABLE IF EXISTS `bas_product_category`;
  265. CREATE TABLE `bas_product_category` (
  266. `id` varchar(32) NOT NULL COMMENT '主键ID',
  267. `name` varchar(100) NOT NULL COMMENT '分类名称',
  268. `parent_id` varchar(32) DEFAULT NULL COMMENT '父分类ID',
  269. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  270. `price_coefficient` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '价格系数(百分比点数,5表示5%)',
  271. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
  272. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  273. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  274. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  275. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  276. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  277. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  278. `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
  279. PRIMARY KEY (`id`),
  280. KEY `idx_parent_id` (`parent_id`)
  281. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类表';
  282. -- ----------------------------
  283. -- Records of bas_product_category
  284. -- ----------------------------
  285. BEGIN;
  286. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('07AA597CBB744198AF85BA5565B896CE', '1', NULL, 0, 1, 1, '2026-04-01 16:40:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:40:39', NULL, NULL);
  287. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('53CAED76599C4DA7A917F5AF05E44635', '蔬菜', NULL, 0, 1, 1, '2026-04-01 16:18:17', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:02:59', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/65cceb7d60144ccca795f7ad6c4ec585.jpeg');
  288. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('5CFCB4050E5D4FD0A767CDC4D28983A7', '生活用品', NULL, 2, 1, 0, '2026-04-02 10:42:47', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:47', NULL, 'http://47.99.164.66:20004/sanqiang/categories/202604/02/fe6e05a837c74680ac12e21185df1d1c.jpg');
  289. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('77CD3EDED1FB4BFB8126C9469E16ADB5', '22', '07AA597CBB744198AF85BA5565B896CE', 0, 1, 1, '2026-04-01 16:40:34', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:40:38', NULL, NULL);
  290. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('8A5361C91778435FBD28D6D65644489C', '家具用品', NULL, 3, 1, 0, '2026-04-02 10:50:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 11:47:03', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/38b395af0d2c48e5a17c613b66986eb8.jpg');
  291. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('926C7BDAE9604DC0965C3DD22CF3B367', '蔬菜1', 'CAT_001', 2, 0, 1, '2026-03-30 23:26:21', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:39:53', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202603/30/41bdf69237e84ee2a1e885e7f77bd6fe.png');
  292. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('A072C766C3024856B86ED00118B23654', '蔬菜', NULL, 0, 1, 0, '2026-04-02 10:21:34', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:21:34', NULL, 'http://47.99.164.66:20004/sanqiang/categories/202604/02/6075a5fe46b5480cb8f2d464ee26948a.jpeg');
  293. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('A78283EDD93C459F9DC907548552ACF8', '厨房用品', NULL, 1, 1, 0, '2026-04-02 10:21:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:42:19', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/9cf3d892a1364d68b5e03c7181e7212a.jpg');
  294. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('CAT_001', '蔬菜', NULL, 1, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 16:18:26', NULL, NULL);
  295. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('CAT_002', '水果', 'CAT_001', 2, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 16:39:50', 'SYS_ADMIN_001', NULL);
  296. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('CAT_003', '肉类', NULL, 3, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-02 10:03:01', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/9b52d117e0a14040af5a154e92ffcd65.png');
  297. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('CAT_004', '生活用品', NULL, 4, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-02 10:03:03', NULL, NULL);
  298. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 16:40:03', 'SYS_ADMIN_001', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/adc7b85e3ded443cb56fc2e0487d9e80.jpeg');
  299. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('D98C7B0C684A4010AD5B0957276E19A1', '测试', NULL, 3, 1, 1, '2026-04-02 10:45:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:49:28', NULL, NULL);
  300. INSERT INTO `bas_product_category` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `image_url`) VALUES ('EDE47EE18D9C4E1592C762E45CC7108F', '123123', 'CAT_001', 11, 1, 1, '2026-03-30 15:49:15', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:40:07', NULL, 'http://47.99.164.66:20004/sanqiang/categories/202603/30/faf8fe975e7346d58bb20f930133db2e.gif');
  301. COMMIT;
  302. -- ----------------------------
  303. -- Table structure for bas_product_category_his
  304. -- ----------------------------
  305. DROP TABLE IF EXISTS `bas_product_category_his`;
  306. CREATE TABLE `bas_product_category_his` (
  307. `id` varchar(32) NOT NULL COMMENT '主键ID',
  308. `name` varchar(100) NOT NULL COMMENT '分类名称',
  309. `parent_id` varchar(32) DEFAULT NULL COMMENT '父分类ID',
  310. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  311. `price_coefficient` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '价格系数(百分比点数,5表示5%)',
  312. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
  313. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  314. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  315. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  316. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  317. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  318. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  319. `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL'
  320. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类历史表';
  321. -- ----------------------------
  322. -- Records of bas_product_category_his
  323. -- ----------------------------
  324. BEGIN;
  325. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('926C7BDAE9604DC0965C3DD22CF3B367', '蔬菜1', 'CAT_001', 1, 1, '2026-03-30 23:26:21', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:26:21', NULL, '2026-03-30 23:26:45', 'http://47.99.164.66:20004/sanqiang/categories/202603/30/41bdf69237e84ee2a1e885e7f77bd6fe.png');
  326. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_002', '水果', NULL, 2, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL, '2026-03-30 23:29:33', NULL);
  327. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_003', '肉类', NULL, 3, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL, '2026-04-01 11:32:05', NULL);
  328. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL, '2026-04-01 12:37:40', NULL);
  329. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:37:40', 'SYS_ADMIN_001', '2026-04-01 12:37:52', NULL);
  330. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:37:52', 'SYS_ADMIN_001', '2026-04-01 12:52:12', NULL);
  331. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:52:11', 'SYS_ADMIN_001', '2026-04-01 12:52:20', NULL);
  332. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:52:20', 'SYS_ADMIN_001', '2026-04-01 12:52:53', NULL);
  333. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:52:53', 'SYS_ADMIN_001', '2026-04-01 12:56:21', NULL);
  334. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:56:20', 'SYS_ADMIN_001', '2026-04-01 12:56:42', NULL);
  335. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 12:56:42', 'SYS_ADMIN_001', '2026-04-01 13:01:32', NULL);
  336. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:01:32', 'SYS_ADMIN_001', '2026-04-01 13:01:58', NULL);
  337. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:01:57', 'SYS_ADMIN_001', '2026-04-01 13:02:48', NULL);
  338. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:02:47', 'SYS_ADMIN_001', '2026-04-01 13:03:02', NULL);
  339. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:03:01', 'SYS_ADMIN_001', '2026-04-01 13:03:45', NULL);
  340. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:03:45', 'SYS_ADMIN_001', '2026-04-01 13:03:58', NULL);
  341. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:03:57', 'SYS_ADMIN_001', '2026-04-01 13:05:41', NULL);
  342. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:05:41', 'SYS_ADMIN_001', '2026-04-01 13:06:02', NULL);
  343. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:06:02', 'SYS_ADMIN_001', '2026-04-01 13:08:46', NULL);
  344. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 13:08:46', 'SYS_ADMIN_001', '2026-04-01 14:41:10', NULL);
  345. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_001', '蔬菜', NULL, 1, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL, '2026-04-01 16:18:26', NULL);
  346. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_002', '水果', 'CAT_001', 2, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-03-30 23:29:32', 'SYS_ADMIN_001', '2026-04-01 16:39:50', NULL);
  347. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('926C7BDAE9604DC0965C3DD22CF3B367', '蔬菜1', 'CAT_001', 2, 0, '2026-03-30 23:26:21', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:26:44', 'SYS_ADMIN_001', '2026-04-01 16:39:53', 'http://47.99.164.66:20004/sanqiang/categories/202603/30/41bdf69237e84ee2a1e885e7f77bd6fe.png');
  348. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_005', '厨房用品', NULL, 5, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 14:41:10', 'SYS_ADMIN_001', '2026-04-01 16:40:03', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/adc7b85e3ded443cb56fc2e0487d9e80.jpeg');
  349. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('EDE47EE18D9C4E1592C762E45CC7108F', '123123', 'CAT_001', 11, 1, '2026-03-30 15:49:15', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 15:49:15', NULL, '2026-04-01 16:40:07', 'http://47.99.164.66:20004/sanqiang/categories/202603/30/faf8fe975e7346d58bb20f930133db2e.gif');
  350. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('77CD3EDED1FB4BFB8126C9469E16ADB5', '22', '07AA597CBB744198AF85BA5565B896CE', 0, 1, '2026-04-01 16:40:34', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:40:34', NULL, '2026-04-01 16:40:38', NULL);
  351. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('07AA597CBB744198AF85BA5565B896CE', '1', NULL, 0, 1, '2026-04-01 16:40:20', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:40:20', NULL, '2026-04-01 16:40:39', NULL);
  352. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('53CAED76599C4DA7A917F5AF05E44635', '蔬菜', NULL, 0, 1, '2026-04-01 16:18:17', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 16:18:17', NULL, '2026-04-01 17:06:09', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/65cceb7d60144ccca795f7ad6c4ec585.jpeg');
  353. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('53CAED76599C4DA7A917F5AF05E44635', '蔬菜', NULL, 0, 1, '2026-04-01 16:18:17', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:06:08', 'SYS_ADMIN_001', '2026-04-02 10:02:59', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/65cceb7d60144ccca795f7ad6c4ec585.jpeg');
  354. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_003', '肉类', NULL, 3, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-04-01 11:32:05', 'SYS_ADMIN_001', '2026-04-02 10:03:01', 'http://47.99.164.66:20004/sanqiang/categories/202604/01/9b52d117e0a14040af5a154e92ffcd65.png');
  355. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('CAT_004', '生活用品', NULL, 4, 1, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL, '2026-04-02 10:03:04', NULL);
  356. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('A78283EDD93C459F9DC907548552ACF8', '厨房用品', NULL, 1, 1, '2026-04-02 10:21:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:21:59', NULL, '2026-04-02 10:42:20', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/9cf3d892a1364d68b5e03c7181e7212a.jpg');
  357. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('D98C7B0C684A4010AD5B0957276E19A1', '测试', NULL, 3, 1, '2026-04-02 10:45:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:45:12', NULL, '2026-04-02 10:49:28', NULL);
  358. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('8A5361C91778435FBD28D6D65644489C', '家具用品', NULL, 3, 1, '2026-04-02 10:50:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:50:11', NULL, '2026-04-02 10:50:46', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/ecd8c9565c0141618ddb0cf955928192.jpeg');
  359. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('8A5361C91778435FBD28D6D65644489C', '家具用品', NULL, 3, 1, '2026-04-02 10:50:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:50:45', 'SYS_ADMIN_001', '2026-04-02 10:51:02', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/ecd8c9565c0141618ddb0cf955928192.jpeg');
  360. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('8A5361C91778435FBD28D6D65644489C', '家具用品', NULL, 3, 1, '2026-04-02 10:50:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:51:01', 'SYS_ADMIN_001', '2026-04-02 10:51:06', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/38b395af0d2c48e5a17c613b66986eb8.jpg');
  361. INSERT INTO `bas_product_category_his` (`id`, `name`, `parent_id`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `image_url`) VALUES ('8A5361C91778435FBD28D6D65644489C', '家具用品', NULL, 3, 0, '2026-04-02 10:50:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:51:06', 'SYS_ADMIN_001', '2026-04-02 11:47:03', 'http://47.99.164.66:20004/sanqiang/categories/202604/02/38b395af0d2c48e5a17c613b66986eb8.jpg');
  362. COMMIT;
  363. -- ----------------------------
  364. -- Table structure for bas_product_detail_media
  365. -- ----------------------------
  366. DROP TABLE IF EXISTS `bas_product_detail_media`;
  367. CREATE TABLE `bas_product_detail_media` (
  368. `id` varchar(32) NOT NULL COMMENT '主键ID',
  369. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  370. `content_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '内容类型:image-图片, video-视频, text-文本',
  371. `content_text` text COMMENT '文本内容',
  372. `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
  373. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
  374. `description` varchar(500) DEFAULT NULL COMMENT '描述',
  375. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  376. `is_del` int(11) DEFAULT '0' COMMENT '是否删除',
  377. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  378. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  379. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  380. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  381. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  382. PRIMARY KEY (`id`),
  383. KEY `idx_product_id` (`product_id`),
  384. KEY `idx_sort_order` (`sort_order`)
  385. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品详情媒体表';
  386. -- ----------------------------
  387. -- Records of bas_product_detail_media
  388. -- ----------------------------
  389. BEGIN;
  390. COMMIT;
  391. -- ----------------------------
  392. -- Table structure for bas_product_detail_media_his
  393. -- ----------------------------
  394. DROP TABLE IF EXISTS `bas_product_detail_media_his`;
  395. CREATE TABLE `bas_product_detail_media_his` (
  396. `id` varchar(32) NOT NULL COMMENT '主键ID',
  397. `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
  398. `content_type` varchar(20) DEFAULT 'image' COMMENT '内容类型',
  399. `content_text` text COMMENT '文本内容',
  400. `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
  401. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
  402. `description` varchar(500) DEFAULT NULL COMMENT '描述',
  403. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  404. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  405. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  406. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  407. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  408. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  409. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  410. PRIMARY KEY (`id`)
  411. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品详情媒体历史表';
  412. -- ----------------------------
  413. -- Records of bas_product_detail_media_his
  414. -- ----------------------------
  415. BEGIN;
  416. COMMIT;
  417. -- ----------------------------
  418. -- Table structure for bas_product_his
  419. -- ----------------------------
  420. DROP TABLE IF EXISTS `bas_product_his`;
  421. CREATE TABLE `bas_product_his` (
  422. `id` varchar(32) NOT NULL COMMENT '主键ID',
  423. `name` varchar(200) NOT NULL COMMENT '商品名称',
  424. `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
  425. `unit_id` varchar(32) DEFAULT NULL COMMENT '单位ID',
  426. `measure_value` decimal(12,3) DEFAULT NULL COMMENT '计量数量(与单位组合表示售卖规格,如500克、1个)',
  427. `description` varchar(1000) DEFAULT NULL COMMENT '商品描述',
  428. `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
  429. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
  430. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  431. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  432. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  433. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  434. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  435. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  436. `detail_content` text COMMENT '商品详情富文本内容',
  437. `sku_code` varchar(50) DEFAULT NULL COMMENT '商品SKU编码'
  438. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品历史表';
  439. -- ----------------------------
  440. -- Records of bas_product_his
  441. -- ----------------------------
  442. BEGIN;
  443. INSERT INTO `bas_product_his` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `detail_content`, `sku_code`) VALUES ('0E59F12FB28A488A85DC27CAB3545486', '茄子', 'CAT_005', 'UNIT_002', '123123123', 'http://47.99.164.66:20004/sanqiang/products/202604/01/faf2665495c04a18838413a19cde54aa.jpeg', 1, '2026-04-01 15:08:26', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 15:08:26', NULL, '2026-04-01 17:37:55', NULL, NULL);
  444. INSERT INTO `bas_product_his` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `detail_content`, `sku_code`) VALUES ('F01A31ADD6E0489C80B45F55DAD526D4', '锅', '8A5361C91778435FBD28D6D65644489C', 'UNIT_001', '锅锅锅锅锅锅', 'http://47.99.164.66:20004/sanqiang/products/202604/02/91698700c69c4bc98cc2e516281b42b5.jpeg', 1, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 12:02:09', NULL, '2026-04-02 13:51:02', NULL, NULL);
  445. INSERT INTO `bas_product_his` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `detail_content`, `sku_code`) VALUES ('F01A31ADD6E0489C80B45F55DAD526D4', '锅', '8A5361C91778435FBD28D6D65644489C', 'UNIT_001', '锅锅锅锅锅锅', 'http://47.99.164.66:20004/sanqiang/products/202604/02/91698700c69c4bc98cc2e516281b42b5.jpeg', 1, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:02', 'SYS_ADMIN_001', '2026-04-02 13:58:58', NULL, NULL);
  446. INSERT INTO `bas_product_his` (`id`, `name`, `category_id`, `unit_id`, `description`, `image_url`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `detail_content`, `sku_code`) VALUES ('F01A31ADD6E0489C80B45F55DAD526D4', '锅', '8A5361C91778435FBD28D6D65644489C', 'UNIT_001', '锅锅锅锅锅锅', 'http://47.99.164.66:20004/sanqiang/products/202604/02/91698700c69c4bc98cc2e516281b42b5.jpeg', 1, '2026-04-02 12:02:09', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:57', 'SYS_ADMIN_001', '2026-04-02 13:59:36', NULL, NULL);
  447. COMMIT;
  448. -- ----------------------------
  449. -- Table structure for bas_product_parameter
  450. -- ----------------------------
  451. DROP TABLE IF EXISTS `bas_product_parameter`;
  452. CREATE TABLE `bas_product_parameter` (
  453. `id` varchar(32) NOT NULL COMMENT '主键ID',
  454. `name` varchar(100) NOT NULL COMMENT '参数名称',
  455. `code` varchar(50) NOT NULL COMMENT '参数编码',
  456. `param_type` varchar(20) NOT NULL DEFAULT 'text' COMMENT '参数类型:text-文本输入, select-单选下拉, multi_select-多选',
  457. `options` text COMMENT '可选值列表,JSON数组',
  458. `placeholder` varchar(100) DEFAULT NULL COMMENT '输入提示文字',
  459. `is_required` int(11) DEFAULT '0' COMMENT '是否必填:0-否, 1-是',
  460. `is_active` int(11) DEFAULT '1' COMMENT '是否启用:0-禁用, 1-启用',
  461. `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
  462. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  463. `remark` varchar(500) DEFAULT NULL COMMENT '备注说明',
  464. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  465. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  466. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  467. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  468. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  469. PRIMARY KEY (`id`),
  470. UNIQUE KEY `uk_code` (`code`)
  471. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数码表';
  472. -- ----------------------------
  473. -- Records of bas_product_parameter
  474. -- ----------------------------
  475. BEGIN;
  476. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_001', '品牌', 'brand', 'text', NULL, '请输入品牌名称', 0, 1, 0, 1, '商品品牌名称,用于品牌筛选和展示', '2026-04-01 11:28:05', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  477. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_002', '产地', 'origin', 'text', NULL, '请输入产地,如:山东寿光、河南双汇', 0, 1, 0, 2, '商品产地来源,体现商品地域特色', '2026-04-01 11:28:05', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  478. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_003', '净含量', 'net_weight', 'text', NULL, '请输入净含量,如:500g、1kg、2.5L', 0, 1, 0, 3, '商品净含量/净体积,是商品的核心规格', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  479. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_004', '包装方式', 'packaging', 'select', '[\"散装\",\"袋装\",\"盒装\",\"瓶装\",\"罐装\",\"真空包装\",\"保鲜膜包装\",\"托盘+保鲜膜\"]', '请选择包装方式', 0, 1, 0, 4, '商品包装形式,影响运输和储存', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  480. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_005', '储存方式', 'storage_method', 'multi_select', '[\"常温保存\",\"冷藏保存(2-8℃)\",\"冷冻保存(-18℃以下)\",\"阴凉干燥处\",\"避光保存\",\"密封保存\"]', '请选择储存方式', 0, 1, 0, 5, '商品储存条件,指导用户正确存放', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  481. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_006', '保质期', 'shelf_life', 'text', NULL, '请输入保质期,如:7天、30天、12个月、常温保存60天', 0, 1, 0, 6, '商品保质期说明,必须标注清楚', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  482. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_007', '商品条码', 'barcode', 'text', NULL, '请输入商品条形码(EAN/UPC码)', 0, 1, 0, 7, '商品条形码,用于库存管理和扫码', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  483. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_008', '生产许可证号', 'production_license', 'text', NULL, '请输入生产许可证号,如:SC101xxxxx', 0, 1, 0, 8, '食品生产许可证编号(SC开头)', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  484. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_010', '品质等级', 'quality_grade', 'select', '[\"特级\",\"一级\",\"二级\",\"三级\",\"普通\",\"优选\",\"精品\",\"出口级\"]', '请选择品质等级', 0, 1, 0, 10, '商品品质等级划分,影响定价', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  485. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_011', '新鲜度等级', 'freshness', 'select', '[\"当日达(当天配送)\",\"次日达(24小时内)\",\"保鲜处理(2-3天)\",\"冷鲜处理\",\"冰鲜处理\"]', '请选择新鲜度', 0, 1, 0, 11, '生鲜商品的新鲜程度保证', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  486. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_020', '肉类品种', 'meat_type', 'select', '[\"猪肉\",\"牛肉\",\"羊肉\",\"鸡肉\",\"鸭肉\",\"鹅肉\",\"兔肉\",\"驴肉\",\"其他\"]', '请选择肉类品种', 0, 1, 0, 20, '肉类商品的具体品种', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  487. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_021', '肉部位', 'cut_type', 'select', '[\"里脊\",\"五花肉\",\"后腿肉\",\"前腿肉\",\"排骨\",\"筒骨\",\"脊骨\",\"肋排\",\"大排\",\"臀尖\",\"黄瓜条\",\"牛腩\",\"腱子肉\",\"肩肉\",\"眼肉\",\"西冷\",\"上脑\",\"肥牛\",\"羊肉卷\",\"羊排\",\"整只\"]', '请选择肉部位', 0, 1, 0, 21, '肉类商品的具体切割部位', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  488. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_022', '肥瘦程度', 'fat_ratio', 'select', '[\"瘦肉型\",\"偏瘦肉\",\"肥瘦相间(3:7)\",\"肥瘦相间(5:5)\",\"偏肥\",\"全肥\",\"带皮\",\"去皮\"]', '请选择肥瘦程度', 0, 1, 0, 22, '肉的肥瘦比例,影响口感和用途', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  489. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_023', '带骨/去骨', 'bone_status', 'select', '[\"带骨\",\"去骨\",\"去骨切块\",\"带骨切块\"]', '请选择', 0, 1, 0, 23, '肉类是否带骨头', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  490. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_024', '切割方式', 'cutting_style', 'select', '[\"整块\",\"切片(厚片)\",\"切片(薄片)\",\"切块(小块)\",\"切块(中块)\",\"切丝\",\"切丁\",\"绞肉馅\",\"原切\",\"调理\"]', '请选择切割方式', 0, 1, 0, 24, '肉类加工切割方式', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  491. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_025', '蛋类品种', 'egg_type', 'select', '[\"鸡蛋\",\"鸭蛋\",\"鹅蛋\",\"鹌鹑蛋\",\"鸵鸟蛋\",\"乌鸡蛋\",\"绿壳蛋\",\"鸽子蛋\"]', '请选择蛋类品种', 0, 1, 0, 25, '蛋类商品的具体品种', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  492. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_026', '鸡蛋规格', 'egg_size', 'select', '[\"特小蛋(<45g)\",\"小蛋(45-50g)\",\"中蛋(50-60g)\",\"大蛋(60-70g)\",\"特大蛋(>70g)\",\"混合规格\"]', '请选择规格', 0, 1, 0, 26, '鸡蛋按重量分级的规格', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  493. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_027', '养殖方式', 'chicken_farming', 'select', '[\"笼养\",\"散养\",\"土鸡\",\"走地鸡\",\"生态养殖\",\"工厂化养殖\"]', '请选择养殖方式', 0, 1, 0, 27, '蛋鸡的养殖方式,影响蛋品品质', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  494. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_030', '水产品种', 'seafood_type', 'select', '[\"鱼类:草鱼\",\"鱼类:鲤鱼\",\"鱼类:鲢鱼\",\"鱼类:鳙鱼\",\"鱼类:鲫鱼\",\"鱼类:黑鱼\",\"鱼类:鲈鱼\",\"鱼类:鳜鱼\",\"鱼类:黄颡鱼\",\"鱼类:武昌鱼\",\"鱼类:罗非鱼\",\"鱼类:鮰鱼\",\"鱼类:龙利鱼\",\"鱼类:巴沙鱼\",\"虾类:基围虾\",\"虾类:对虾\",\"虾类:罗氏虾\",\"虾类:白虾\",\"虾类:青虾\",\"蟹类:大闸蟹\",\"蟹类:梭子蟹\",\"蟹类:青蟹\",\"蟹类:帝王蟹\",\"贝类:蛤蜊\",\"贝类:扇贝\",\"贝类:生蚝\",\"贝类:花甲\",\"贝类:海螺\",\"贝类:鲍鱼\",\"其他水产\"]', '请选择水产品种', 0, 1, 0, 30, '水产商品的具体品种', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  495. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_031', '来源方式', 'aquaculture_type', 'select', '[\"淡水养殖\",\"海水养殖\",\"深海捕捞\",\"近海捕捞\",\"天然野生\",\"人工养殖\"]', '请选择来源方式', 0, 1, 0, 31, '水产品的来源和养殖方式', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  496. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_032', '鲜活状态', 'alive_status', 'select', '[\"活鲜\",\"冰鲜\",\"冷冻(生)\",\"冷冻(熟)\",\"半成品\"]', '请选择鲜活状态', 0, 1, 0, 32, '水产品的鲜活程度', '2026-04-01 11:28:06', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  497. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_033', '加工形态', 'processing_form', 'select', '[\"整条/整只\",\"去鳞去腮\",\"开背去内脏\",\"鱼片\",\"鱼柳\",\"虾仁\",\"虾滑\",\"蟹肉\",\"贝肉\",\"切片\",\"切块\"]', '请选择加工形态', 0, 1, 0, 33, '水产商品的加工处理形态', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  498. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_034', '鱼类规格', 'fish_size', 'select', '[\"小鱼(<0.5kg)\",\"中小鱼(0.5-1kg)\",\"中鱼(1-2kg)\",\"中大鱼(2-3kg)\",\"大鱼(>3kg)\",\"按条称重\"]', '请选择规格', 0, 1, 0, 34, '鱼类按体重大小的规格划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  499. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_035', '虾类规格', 'shrimp_size', 'select', '[\"小虾(100尾/斤以上)\",\"中虾(60-100尾/斤)\",\"大虾(30-60尾/斤)\",\"特大虾(20-30尾/斤)\",\"超大虾(<20尾/斤)\"]', '请选择规格', 0, 1, 0, 35, '虾类按体型大小的规格划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  500. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_040', '蔬菜类别', 'vegetable_category', 'select', '[\"叶菜类\",\"根茎类\",\"瓜果类\",\"豆类\",\"食用菌类\",\"葱蒜类\",\"薯芋类\",\"水生类\",\"芽苗菜类\",\"其他\"]', '请选择蔬菜类别', 0, 1, 0, 40, '蔬菜的大类划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  501. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_041', '蔬菜品种', 'vegetable_variety', 'select', '[\"叶菜类:小白菜\",\"叶菜类:大白菜\",\"叶菜类:菠菜\",\"叶菜类:油菜\",\"叶菜类:生菜\",\"叶菜类:油麦菜\",\"叶菜类:茼蒿\",\"叶菜类:空心菜\",\"叶菜类:苋菜\",\"根茎类:土豆\",\"根茎类:红薯\",\"根茎类:萝卜\",\"根茎类:胡萝卜\",\"根茎类:莲藕\",\"根茎类:山药\",\"瓜果类:黄瓜\",\"瓜果类:西红柿\",\"瓜果类:茄子\",\"瓜果类:青椒\",\"瓜果类:南瓜\",\"瓜果类:冬瓜\",\"瓜果类:苦瓜\",\"豆类:四季豆\",\"豆类:豇豆\",\"豆类:毛豆\",\"豆类:荷兰豆\",\"菌菇类:香菇\",\"菌菇类:平菇\",\"菌菇类:金针菇\",\"菌菇类:杏鲍菇\",\"菌菇类:白玉菇\",\"菌菇类:口蘑\",\"其他\"]', '请选择蔬菜品种', 0, 1, 0, 41, '蔬菜的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  502. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_042', '种植方式', 'farming_method', 'select', '[\"大田种植\",\"大棚种植\",\"无土栽培\",\"水培\",\"有机种植\",\"绿色种植\",\"普通种植\"]', '请选择种植方式', 0, 1, 0, 42, '蔬菜的种植方式,影响品质和价格', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  503. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_043', '处理状态', 'vegetable_processed', 'select', '[\"带根带泥\",\"净菜(去根洗净)\",\"半处理(去根)\",\"切配好的\",\"免洗\"]', '请选择处理状态', 0, 1, 0, 43, '蔬菜的加工处理程度', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  504. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_050', '水果类别', 'fruit_category', 'select', '[\"仁果类(苹果、梨)\",\"核果类(桃、李、杏)\",\"浆果类(葡萄、草莓)\",\"柑橘类\",\"热带水果\",\"瓜果类\",\"干果类\"]', '请选择水果类别', 0, 1, 0, 50, '水果的大类划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  505. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_051', '水果品种', 'fruit_variety', 'select', '[\"苹果:红富士\",\"苹果:花牛\",\"苹果:青苹果\",\"苹果:嘎啦\",\"苹果:秦冠\",\"梨:鸭梨\",\"梨:酥梨\",\"梨:皇冠梨\",\"梨:库尔勒香梨\",\"桃:水蜜桃\",\"桃:黄桃\",\"桃:油桃\",\"桃:蟠桃\",\"葡萄:巨峰\",\"葡萄:夏黑\",\"葡萄:阳光玫瑰\",\"葡萄:红提\",\"草莓:红颜\",\"草莓:章姬\",\"橙子:脐橙\",\"橙子:血橙\",\"橙子:冰糖橙\",\"柚子:蜜柚\",\"柚子:文旦\",\"香蕉:国产\",\"香蕉:进口\",\"菠萝:香水菠萝\",\"菠萝:糖心菠萝\",\"芒果:凯特芒\",\"芒果:金煌芒\",\"芒果:台农芒\",\"西瓜:麒麟瓜\",\"西瓜:黑美人\",\"西瓜:8424\",\"哈密瓜:西州蜜\",\"哈密瓜:网纹瓜\",\"猕猴桃:徐香\",\"猕猴桃:红阳\",\"火龙果:白心\",\"火龙果:红心\",\"其他\"]', '请选择水果品种', 0, 1, 0, 51, '水果的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  506. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_052', '规格等级', 'fruit_grade', 'select', '[\"大果(AAA级)\",\"中果(AA级)\",\"小果(A级)\",\"混级\",\"精选级\",\"普通级\"]', '请选择规格等级', 0, 1, 0, 52, '水果的个头/等级规格', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  507. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_053', '成熟度', 'ripeness', 'select', '[\"树上熟\",\"自然成熟\",\"8-9分熟\",\"催熟\",\"新鲜采摘\"]', '请选择成熟度', 0, 1, 0, 53, '水果的成熟程度', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  508. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_054', '包装形式', 'fruit_packaging', 'select', '[\"散装称重\",\"托盘保鲜膜包装\",\"纸盒包装\",\"网袋包装\",\"礼盒包装\"]', '请选择包装形式', 0, 1, 0, 54, '水果的包装形式', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  509. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_060', '粮油类别', 'grain_oil_category', 'select', '[\"大米\",\"面粉\",\"杂粮\",\"食用油\",\"调味油\",\"挂面\",\"干货\"]', '请选择粮油类别', 0, 1, 0, 60, '米面油的大类划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  510. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_061', '大米品种', 'rice_variety', 'select', '[\"粳米\",\"籼米\",\"糯米\",\"东北大米\",\"五常大米\",\"盘锦大米\",\"稻花香\",\"丝苗米\",\"香米\",\"丝苗米\",\"太粮米饭\",\"其他\"]', '请选择大米品种', 0, 1, 0, 61, '大米的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  511. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_062', '大米等级', 'rice_grade', 'select', '[\"特等米\",\"一等米\",\"二等米\",\"三等米\",\"普通米\"]', '请选择大米等级', 0, 1, 0, 62, '大米的质量等级', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  512. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_063', '面粉类型', 'flour_type', 'select', '[\"高筋面粉\",\"中筋面粉\",\"低筋面粉\",\"全麦面粉\",\"自发粉\",\"面包粉\",\"蛋糕粉\",\"饺子粉\",\"馒头粉\",\"杂粮粉\"]', '请选择面粉类型', 0, 1, 0, 63, '面粉的具体用途类型', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  513. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_064', '食用油类型', 'cooking_oil_type', 'select', '[\"花生油\",\"大豆油\",\"菜籽油\",\"玉米油\",\"葵花籽油\",\"调和油\",\"芝麻油\",\"橄榄油\",\"山茶油\",\"亚麻籽油\",\"核桃油\",\"椰子油\",\"猪油\",\"黄油\"]', '请选择食用油类型', 0, 1, 0, 64, '食用油的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  514. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_065', '压榨工艺', 'pressing_method', 'select', '[\"浸出法\",\"压榨法\",\"冷榨\",\"物理压榨\",\"古法压榨\"]', '请选择压榨工艺', 0, 1, 0, 65, '食用油的加工工艺', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  515. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_066', '杂粮种类', 'grain_variety', 'select', '[\"小米\",\"糯米\",\"黑米\",\"紫米\",\"糙米\",\"薏米\",\"红豆\",\"绿豆\",\"黄豆\",\"黑豆\",\"红芸豆\",\"花生\",\"红枣\",\"枸杞\",\"莲子\",\"芡实\",\"燕麦\",\"荞麦\"]', '请选择杂粮种类', 0, 1, 0, 66, '杂粮的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  516. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_070', '豆制品类别', 'tofu_category', 'select', '[\"生鲜豆制品\",\"豆干类\",\"腐竹类\",\"豆腐皮类\",\"豆浆类\",\"豆奶类\",\"豆腐乳\",\"豆豉类\",\"纳豆类\",\"其他\"]', '请选择豆制品类别', 0, 1, 0, 70, '豆制品的大类划分', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  517. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_071', '豆制品品种', 'tofu_variety', 'select', '[\"嫩豆腐\",\"老豆腐\",\"北豆腐\",\"南豆腐\",\"内酯豆腐\",\"日本豆腐\",\"豆腐干\",\"香干\",\"白干\",\"五香豆腐干\",\"油豆腐\",\"油泡\",\"腐竹\",\"腐皮\",\"豆腐皮\",\"千张\",\"百叶\",\"素鸡\",\"豆泡\",\"豆浆\",\"现磨豆浆\",\"豆花\",\"豆腐脑\",\"腐乳:红腐乳\",\"腐乳:白腐乳\",\"腐乳:糟腐乳\",\"臭豆腐\"]', '请选择豆制品品种', 0, 1, 0, 71, '豆制品的具体品种', '2026-04-01 11:28:07', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  518. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_072', '制作工艺', 'tofu_processing', 'select', '[\"石膏凝固\",\"卤水凝固\",\"葡萄糖酸-δ-内酯凝固\",\"混合凝固\"]', '请选择制作工艺', 0, 1, 0, 72, '豆腐的凝固剂工艺', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  519. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_080', '饮料类别', 'beverage_category', 'select', '[\"碳酸饮料\",\"果汁饮料\",\"茶饮料\",\"乳饮料\",\"植物蛋白饮料\",\"功能性饮料\",\"矿泉水\",\"纯净水\",\"苏打水\",\"酸奶\",\"纯牛奶\",\"风味牛奶\"]', '请选择饮料类别', 0, 1, 0, 80, '饮料的大类划分', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  520. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_081', '容量规格', 'beverage_volume', 'select', '[\"330ml\",\"500ml\",\"550ml\",\"1L\",\"1.5L\",\"2L\",\"250ml(盒装)\",\"200ml(盒装)\",\"180ml(盒装)\"]', '请选择容量规格', 0, 1, 0, 81, '饮料的容量规格', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  521. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_082', '果汁含量', 'juice_content', 'select', '[\"100%纯果汁\",\"≥50%\",\"≥30%\",\"≥10%\",\"低于10%\"]', '请选择果汁含量', 0, 1, 0, 82, '果汁饮料的果汁含量', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  522. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_090', '酒类类别', 'liquor_category', 'select', '[\"白酒\",\"啤酒\",\"红酒/葡萄酒\",\"黄酒\",\"洋酒\",\"果酒\",\"米酒\",\"药酒\"]', '请选择酒类类别', 0, 1, 0, 90, '酒类的大类划分', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  523. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_091', '酒精度数', 'alcohol_content', 'text', NULL, '请输入酒精度数,如:52%vol、4.5%vol', 0, 1, 0, 91, '酒的酒精含量', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  524. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_092', '白酒香型', 'liquor_style', 'select', '[\"酱香型\",\"浓香型\",\"清香型\",\"米香型\",\"凤香型\",\"兼香型\",\"馥郁香型\",\"特香型\",\"芝麻香型\"]', '请选择香型', 0, 1, 0, 92, '白酒的香型分类', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  525. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_093', '容量', 'liquor_volume', 'select', '[\"50ml(品鉴装)\",\"100ml\",\"125ml\",\"250ml\",\"500ml\",\"750ml\",\"1L\",\"1.5L\"]', '请选择容量', 0, 1, 0, 93, '酒类商品的容量', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  526. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_095', '糖茶类别', 'sugar_tea_category', 'select', '[\"茶叶\",\"茶包\",\"蜂蜜\",\"糖类\",\"咖啡\",\"可可\",\"冲调饮品\"]', '请选择糖茶类别', 0, 1, 0, 95, '糖茶的大类划分', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  527. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_096', '茶叶类型', 'tea_type', 'select', '[\"绿茶\",\"红茶\",\"乌龙茶\",\"普洱茶\",\"白茶\",\"黄茶\",\"黑茶\",\"花茶\",\"养生茶\"]', '请选择茶叶类型', 0, 1, 0, 96, '茶叶的发酵类型', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  528. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_097', '茶叶品种', 'tea_variety', 'select', '[\"绿茶:龙井\",\"绿茶:碧螺春\",\"绿茶:安吉白茶\",\"绿茶:黄山毛峰\",\"绿茶:信阳毛尖\",\"红茶:正山小种\",\"红茶:金骏眉\",\"红茶:祁门红茶\",\"红茶:滇红\",\"乌龙茶:铁观音\",\"乌龙茶:大红袍\",\"乌龙茶:凤凰单丛\",\"普洱:生普\",\"普洱:熟普\",\"白茶:白毫银针\",\"白茶:白牡丹\",\"花茶:茉莉花茶\"]', '请选择茶叶品种', 0, 1, 0, 97, '茶叶的具体品种', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  529. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_098', '糖类品种', 'sugar_variety', 'select', '[\"白砂糖\",\"绵白糖\",\"红糖\",\"冰糖\",\"黄糖\",\"黑糖\",\"赤藓糖醇\",\"木糖醇\",\"阿斯巴甜\",\"糖浆\",\"麦芽糖\"]', '请选择糖类品种', 0, 1, 0, 98, '糖类的具体品种', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  530. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_100', '厨房用品类别', 'kitchen_category', 'select', '[\"清洁用品\",\"保鲜用品\",\"厨房工具\",\"一次性用品\",\"调味用品\",\"收纳用品\",\"餐具\",\"炊具\"]', '请选择厨房用品类别', 0, 1, 0, 100, '厨房用品的大类划分', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  531. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_101', '主要材质', 'material', 'select', '[\"塑料\",\"不锈钢\",\"木质\",\"竹质\",\"硅胶\",\"玻璃\",\"陶瓷\",\"铝合金\",\"铁质\",\"纸质\",\"无纺布\",\"锡纸\",\"铝箔\"]', '请选择主要材质', 0, 1, 0, 101, '厨房用品的主要材质', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  532. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_102', '尺寸规格', 'size_spec', 'text', NULL, '请输入尺寸,如:30cm×40cm、Φ25cm', 0, 1, 0, 102, '厨房用品的尺寸规格', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  533. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_103', '数量/片数', 'quantity', 'text', NULL, '请输入数量,如:50片/卷、100只/袋', 0, 1, 0, 103, '商品的数量或片数规格', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  534. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_110', '香烟类型', 'cigarette_type', 'select', '[\"烤烟型\",\"混合型\",\"外香型\",\"雪茄烟\"]', '请选择香烟类型', 0, 1, 0, 110, '香烟的类型', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  535. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_111', '香烟规格', 'cigarette_spec', 'select', '[\"软包\",\"硬盒\",\"细支\",\"中支\",\"粗支\",\"烟支长度:84mm\",\"烟支长度:97mm(长支)\"]', '请选择香烟规格', 0, 1, 0, 111, '香烟的包装和烟支规格', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  536. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_120', '认证标识', 'certification', 'multi_select', '[\"有机食品认证\",\"绿色食品认证\",\"无公害农产品\",\"地理标志产品\",\"ISO9001认证\",\"HACCP认证\",\"FDA认证\",\"清真认证(Halal)\",\"犹太认证(Kosher)\",\"非转基因认证\",\"地理标志保护\",\"中国老字号\"]', '请选择认证标识', 0, 1, 0, 120, '商品获得的认证和标识', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  537. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_121', '是否进口', 'imported', 'select', '[\"国产\",\"一般贸易进口\",\"跨境电商进口\"]', '请选择', 0, 1, 0, 121, '商品是否为进口商品', '2026-04-01 11:28:08', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  538. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_122', '进口来源地', 'imported_from', 'select', '[\"东南亚\",\"日本\",\"韩国\",\"澳大利亚\",\"新西兰\",\"美国\",\"加拿大\",\"欧洲\",\"南美\",\"非洲\",\"泰国\",\"越南\",\"印尼\",\"马来西亚\"]', '请选择进口来源地', 0, 1, 0, 122, '进口商品的来源地区', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  539. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_130', '生产日期', 'production_date', 'text', NULL, '请输入生产日期,如:2026-03-20', 0, 1, 0, 130, '商品的生产日期', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  540. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_131', '生产批次号', 'batch_no', 'text', NULL, '请输入生产批次号', 0, 1, 0, 131, '商品的生产批次号', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  541. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_132', '配料表', 'ingredients', 'text', NULL, '请输入配料成分', 0, 1, 0, 132, '食品的配料成分说明', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  542. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_133', '致敏物质', 'allergen_info', 'multi_select', '[\"含有麸质的谷物\",\"甲壳类及其制品\",\"鱼类及其制品\",\"蛋类及蛋制品\",\"花生及其制品\",\"大豆及其制品\",\"乳及乳制品\",\"坚果及其制品\",\"芝麻及其制品\",\"亚硫酸盐\",\"芹菜及其制品\",\"羽扇豆及其制品\",\"软体动物及其制品\"]', '请选择致敏物质(如无请忽略)', 0, 1, 0, 133, '食品致敏物质信息提示', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  543. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_134', '营养成分表', 'nutrition_facts', 'text', NULL, '请输入营养成分信息,如:能量1520kJ/100g,蛋白质8g/100g...', 0, 1, 0, 134, '食品营养成分表', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  544. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_140', '商品卖点', 'selling_point', 'multi_select', '[\"爆款推荐\",\"今日特价\",\"新品上市\",\"限时秒杀\",\"满减优惠\",\"买一送一\",\"源头直采\",\"厂家直销\",\"精选优品\",\"营养健康\",\"方便快捷\",\"家庭必备\"]', '请选择商品卖点', 0, 1, 0, 140, '商品的营销卖点标签', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  545. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_141', '温馨提示', 'tips', 'text', NULL, '请输入购买/使用提示', 0, 1, 0, 141, '给消费者的温馨提示', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  546. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_142', '适宜人群', 'suitable_for', 'multi_select', '[\"通用\",\"婴幼儿\",\"儿童\",\"青少年\",\"成年人\",\"老年人\",\"孕妇\",\"哺乳期\",\"素食者\",\"健身人群\",\"三高人群\",\"糖尿病患者\",\"海鲜过敏者\"]', '请选择适宜人群', 0, 1, 0, 142, '商品适合的人群', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  547. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_143', '推荐做法', 'recipe', 'text', NULL, '请输入推荐做法或食谱', 0, 1, 0, 143, '生鲜食材的推荐烹饪方式', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  548. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_150', '配送温区', 'delivery_temp_zone', 'select', '[\"常温配送\",\"冷藏配送(0-8℃)\",\"冷冻配送(-18℃以下)\",\"多温区配送\"]', '请选择配送温区要求', 0, 1, 0, 150, '商品配送的温度要求', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  549. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_151', '特殊包装要求', 'special_packaging', 'select', '[\"普通包装\",\"防水包装\",\"保温包装\",\"冰袋配送\",\"周转箱配送\",\"单独隔离包装\"]', '请选择特殊包装要求', 0, 1, 0, 151, '配送时的特殊包装要求', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  550. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_152', '当日达', 'same_day_delivery', 'select', '[\"支持当日达\",\"不支持当日达\",\"部分区域支持\"]', '请选择是否支持当日达', 0, 1, 0, 152, '是否支持当天配送', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  551. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_160', '计价方式', 'pricing_type', 'select', '[\"按重量计价(元/斤)\",\"按重量计价(元/kg)\",\"按件数计价\",\"按规格计价\",\"混合计价\"]', '请选择计价方式', 0, 1, 0, 160, '商品的计价方式', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  552. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_161', '最小起订量', 'min_order', 'text', NULL, '请输入最小起订量,如:1件、2斤', 0, 1, 0, 161, '商品的最小起订数量/重量', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  553. INSERT INTO `bas_product_parameter` (`id`, `name`, `code`, `param_type`, `options`, `placeholder`, `is_required`, `is_active`, `is_del`, `sort_order`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('param_162', '最大购买量', 'max_order', 'text', NULL, '请输入最大购买量限制,如:10件、50斤(无限制请填0)', 0, 1, 0, 162, '商品的限购数量(防止囤货)', '2026-04-01 11:28:09', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  554. COMMIT;
  555. -- ----------------------------
  556. -- Table structure for bas_product_parameter_his
  557. -- ----------------------------
  558. DROP TABLE IF EXISTS `bas_product_parameter_his`;
  559. CREATE TABLE `bas_product_parameter_his` (
  560. `id` varchar(32) NOT NULL COMMENT '主键ID',
  561. `name` varchar(100) DEFAULT NULL COMMENT '参数名称',
  562. `code` varchar(50) DEFAULT NULL COMMENT '参数编码',
  563. `param_type` varchar(20) DEFAULT 'text' COMMENT '参数类型',
  564. `options` text COMMENT '可选值列表',
  565. `placeholder` varchar(100) DEFAULT NULL COMMENT '输入提示文字',
  566. `is_required` int(11) DEFAULT '0' COMMENT '是否必填',
  567. `is_active` int(11) DEFAULT '1' COMMENT '是否启用',
  568. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  569. `remark` varchar(500) DEFAULT NULL COMMENT '备注说明',
  570. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  571. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  572. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  573. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  574. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  575. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  576. PRIMARY KEY (`id`)
  577. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数码表历史表';
  578. -- ----------------------------
  579. -- Records of bas_product_parameter_his
  580. -- ----------------------------
  581. BEGIN;
  582. COMMIT;
  583. -- ----------------------------
  584. -- Table structure for bas_product_parameter_value
  585. -- ----------------------------
  586. DROP TABLE IF EXISTS `bas_product_parameter_value`;
  587. CREATE TABLE `bas_product_parameter_value` (
  588. `id` varchar(32) NOT NULL COMMENT '主键ID',
  589. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  590. `parameter_id` varchar(32) NOT NULL COMMENT '参数ID',
  591. `parameter_name` varchar(100) DEFAULT NULL COMMENT '参数名称快照',
  592. `parameter_code` varchar(50) DEFAULT NULL COMMENT '参数编码快照',
  593. `param_type` varchar(20) DEFAULT NULL COMMENT '参数类型快照',
  594. `param_value` text COMMENT '参数值',
  595. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  596. `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
  597. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  598. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  599. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  600. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  601. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  602. PRIMARY KEY (`id`),
  603. KEY `idx_product_id` (`product_id`),
  604. KEY `idx_parameter_id` (`parameter_id`)
  605. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数值表';
  606. -- ----------------------------
  607. -- Records of bas_product_parameter_value
  608. -- ----------------------------
  609. BEGIN;
  610. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('061BF81D4F21473CA0D73E3ADA8A4376', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_005', '储存方式', 'storage_method', 'multi_select', '阴凉干燥处,冷藏保存(2-8℃),密封保存,避光保存', 6, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  611. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('098D62766A6644518502D3960A8A86BC', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_004', '包装方式', 'packaging', 'select', '托盘+保鲜膜', 5, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  612. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('27D2758AFC634D26B55C026D97A0879C', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_002', '产地', 'origin', 'text', 'origin1', 1, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  613. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('2E021699F0EE46E7896E3EA80AB0C467', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_005', '储存方式', 'storage_method', 'multi_select', '阴凉干燥处,冷藏保存(2-8℃),密封保存,避光保存', 6, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  614. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3037631413994CAF8957B56A3A245770', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_003', '净含量', 'net_weight', 'text', 'net_weight1', 2, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  615. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3BBBBFF226854BD48ED4CA8AD7227460', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_053', '成熟度', 'ripeness', 'select', '树上熟', 4, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  616. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4D07EC28C366447C80E6F98CE8A458EA', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_001', '品牌', 'brand', 'text', 'brand1', 0, 0, '2026-04-02 13:59:36', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  617. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4EE2219602AA45ADA8DB901617C87B95', '0E59F12FB28A488A85DC27CAB3545486', 'param_020', '肉类品种', 'meat_type', 'select', '', 2, 0, '2026-04-01 17:37:56', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:37:56', NULL);
  618. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5278C6A2C4C34CE288D1882774CC86D6', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_002', '产地', 'origin', 'text', 'origin1', 1, 1, '2026-04-02 13:51:03', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  619. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5330F7E5CDBB48DE9F43A2671301CFEA', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_001', '品牌', 'brand', 'text', 'brand1', 0, 1, '2026-04-02 13:58:58', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  620. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('551AA78E37EB4AEF87FE641A49B5ACB6', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_002', '产地', 'origin', 'text', 'origin1', 1, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  621. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('553D7B98C7CB4B4DBFC3362AF0E28E40', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_001', '品牌', 'brand', 'text', 'brand1', 0, 1, '2026-04-02 12:02:10', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  622. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6F7115D94CDE47BCBD7B9FE26B403DAA', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_002', '产地', 'origin', 'text', 'origin1', 1, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  623. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('705C0D0DAE834C519B868628AFEABD52', '0E59F12FB28A488A85DC27CAB3545486', 'param_011', '新鲜度等级', 'freshness', 'select', '', 1, 0, '2026-04-01 17:37:55', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:37:55', NULL);
  624. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('74CB5EF328134DAEA47EFEC9E323E658', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_003', '净含量', 'net_weight', 'text', 'net_weight1', 2, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  625. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('7694EAA7902E4F18B1E479134B2A3834', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_003', '净含量', 'net_weight', 'text', 'net_weight1', 2, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  626. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('7D2A8713DBA840E388E0B70765B28CA5', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_053', '成熟度', 'ripeness', 'select', '树上熟', 4, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  627. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('83213E0564FE484DA55E90D7F7F79D48', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_053', '成熟度', 'ripeness', 'select', '树上熟', 4, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  628. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('89090BED1D034DE9B5EDB1E5C4D01AA5', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_052', '规格等级', 'fruit_grade', 'select', '大果(AAA级)', 3, 1, '2026-04-02 13:51:03', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  629. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8B6CDAE52D054809BEDC934279DDC690', '0E59F12FB28A488A85DC27CAB3545486', 'param_008', '生产许可证号', 'production_license', 'text', '', 0, 0, '2026-04-01 17:37:55', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 17:37:55', NULL);
  630. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8BF096E9884148608F6556C1CE7E5D55', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_003', '净含量', 'net_weight', 'text', 'net_weight1', 2, 1, '2026-04-02 13:51:03', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  631. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('93E9507B88464391A5AAE0FE2A63D3DA', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_007', '商品条码', 'barcode', 'text', '123123123123123', 7, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  632. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('945D6D1B8E744E56B679E0511960323A', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_052', '规格等级', 'fruit_grade', 'select', '大果(AAA级)', 3, 0, '2026-04-02 13:59:37', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:37', NULL);
  633. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('973C66151A0744359FADCBD509B8539B', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_004', '包装方式', 'packaging', 'select', '托盘+保鲜膜', 5, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  634. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('B7493FCF707446358023C1C2660DF2E9', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_052', '规格等级', 'fruit_grade', 'select', '大果(AAA级)', 3, 1, '2026-04-02 13:58:59', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:59:36', NULL);
  635. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CD937C671CAD4623B892920D930A6175', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_004', '包装方式', 'packaging', 'select', '托盘+保鲜膜', 5, 1, '2026-04-02 13:51:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  636. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CF9F05BAFE6F4362B01132180BA6E018', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_053', '成熟度', 'ripeness', 'select', '树上熟', 4, 1, '2026-04-02 13:51:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  637. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DDCE6EA8E8744B57A90267C2A305C647', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_005', '储存方式', 'storage_method', 'multi_select', '阴凉干燥处,冷藏保存(2-8℃),密封保存,避光保存', 6, 1, '2026-04-02 13:51:04', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  638. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E6B5F308A9764FCAB3AE41626DDC3BAF', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_052', '规格等级', 'fruit_grade', 'select', '大果(AAA级)', 3, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  639. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('EB8613DF5F544A919409699E0F43C99A', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_001', '品牌', 'brand', 'text', 'brand1', 0, 1, '2026-04-02 13:51:03', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:58:58', NULL);
  640. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ECEA466C1FDA4ECBBB241361E5901C77', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_008', '生产许可证号', 'production_license', 'text', '123123123123123', 8, 1, '2026-04-02 12:02:12', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  641. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F6CC0F6B7D214108B87BAC9B0942272B', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_006', '保质期', 'shelf_life', 'text', '1个月', 6, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  642. INSERT INTO `bas_product_parameter_value` (`id`, `product_id`, `parameter_id`, `parameter_name`, `parameter_code`, `param_type`, `param_value`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F9CA52B9A6C1459BACE3FA65A3610B62', 'F01A31ADD6E0489C80B45F55DAD526D4', 'param_005', '储存方式', 'storage_method', 'multi_select', '避光保存,冷冻保存(-18℃以下),常温保存', 5, 1, '2026-04-02 12:02:11', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 13:51:03', NULL);
  643. COMMIT;
  644. -- ----------------------------
  645. -- Table structure for bas_product_parameter_value_his
  646. -- ----------------------------
  647. DROP TABLE IF EXISTS `bas_product_parameter_value_his`;
  648. CREATE TABLE `bas_product_parameter_value_his` (
  649. `id` varchar(32) NOT NULL COMMENT '主键ID',
  650. `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
  651. `parameter_id` varchar(32) DEFAULT NULL COMMENT '参数ID',
  652. `parameter_name` varchar(100) DEFAULT NULL COMMENT '参数名称快照',
  653. `parameter_code` varchar(50) DEFAULT NULL COMMENT '参数编码快照',
  654. `param_type` varchar(20) DEFAULT NULL COMMENT '参数类型快照',
  655. `param_value` text COMMENT '参数值',
  656. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  657. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  658. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  659. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  660. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  661. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  662. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  663. PRIMARY KEY (`id`)
  664. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数值表历史表';
  665. -- ----------------------------
  666. -- Records of bas_product_parameter_value_his
  667. -- ----------------------------
  668. BEGIN;
  669. COMMIT;
  670. -- ----------------------------
  671. -- Table structure for bas_product_unit
  672. -- ----------------------------
  673. DROP TABLE IF EXISTS `bas_product_unit`;
  674. CREATE TABLE `bas_product_unit` (
  675. `id` varchar(32) NOT NULL COMMENT '主键ID',
  676. `name` varchar(50) NOT NULL COMMENT '单位名称(如:斤、kg、个、箱)',
  677. `code` varchar(20) NOT NULL COMMENT '单位编码',
  678. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
  679. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段,数值越小越靠前',
  680. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  681. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  682. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  683. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  684. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  685. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  686. PRIMARY KEY (`id`),
  687. UNIQUE KEY `uk_code` (`code`)
  688. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品单位码表';
  689. -- ----------------------------
  690. -- Records of bas_product_unit
  691. -- ----------------------------
  692. BEGIN;
  693. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1372062CCCDE4EAD80451411F480DDC0', '扎', 'zha', 1, 23, 0, '2026-04-02 10:41:28', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:41:28', NULL);
  694. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_001', '斤', 'jin', 1, 1, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', '2026-03-31 16:14:55', 'SYS_ADMIN_001');
  695. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_002', '公斤', 'gongjin', 1, 2, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  696. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_003', '克', 'ke', 1, 3, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  697. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_004', '千克', 'qianke', 1, 4, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  698. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_005', '个', 'ge', 1, 5, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  699. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_006', '只', 'zhi', 1, 6, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  700. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_007', '尾', 'wei', 1, 7, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  701. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_008', '块', 'kuai', 1, 8, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  702. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_009', '把', 'ba', 1, 9, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  703. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_010', '份', 'fen', 1, 10, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  704. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_011', '箱', 'xiang', 1, 11, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  705. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_012', '盒', 'he', 1, 12, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  706. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_013', '袋', 'dai', 1, 13, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  707. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_014', '包', 'bao', 1, 14, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  708. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_015', '瓶', 'ping', 1, 15, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  709. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_016', '罐', 'guan', 1, 16, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  710. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_017', '桶', 'tong', 1, 17, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  711. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_018', '杯', 'bei', 1, 18, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  712. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_019', '条', 'tiao', 1, 19, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  713. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_020', '套', 'tao', 1, 20, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  714. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_021', '升', 'sheng', 1, 21, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  715. INSERT INTO `bas_product_unit` (`id`, `name`, `code`, `is_active`, `sort_order`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('UNIT_022', '毫升', 'haosheng', 1, 22, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  716. COMMIT;
  717. -- ----------------------------
  718. -- Table structure for bas_product_unit_his
  719. -- ----------------------------
  720. DROP TABLE IF EXISTS `bas_product_unit_his`;
  721. CREATE TABLE `bas_product_unit_his` (
  722. `id` varchar(32) NOT NULL COMMENT '主键ID',
  723. `name` varchar(50) NOT NULL COMMENT '单位名称',
  724. `code` varchar(20) NOT NULL COMMENT '单位编码',
  725. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
  726. `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段,数值越小越靠前',
  727. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  728. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  729. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  730. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  731. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  732. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  733. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品单位历史表';
  734. -- ----------------------------
  735. -- Records of bas_product_unit_his
  736. -- ----------------------------
  737. BEGIN;
  738. INSERT INTO `bas_product_unit_his` (`id`, `name`, `code`, `is_active`, `sort_order`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('A3B5858CB7544195864EAFB194372048', '两', 'liang', 1, 0, '2026-03-31 15:46:09', 'SYS_ADMIN_001', '系统管理员', '2026-03-31 15:46:09', NULL, '2026-03-31 15:46:21');
  739. INSERT INTO `bas_product_unit_his` (`id`, `name`, `code`, `is_active`, `sort_order`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('UNIT_001', '斤', 'jin', 1, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', NULL, NULL, '2026-03-31 16:14:51');
  740. INSERT INTO `bas_product_unit_his` (`id`, `name`, `code`, `is_active`, `sort_order`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('UNIT_001', '斤', 'jin', 0, 0, '2026-03-31 16:11:35', 'SYS_ADMIN_001', '系统管理员', '2026-03-31 16:14:51', 'SYS_ADMIN_001', '2026-03-31 16:14:55');
  741. COMMIT;
  742. -- ----------------------------
  743. -- Table structure for biz_attachment
  744. -- ----------------------------
  745. DROP TABLE IF EXISTS `biz_attachment`;
  746. CREATE TABLE `biz_attachment` (
  747. `id` varchar(32) NOT NULL COMMENT '主键ID',
  748. `business_type` varchar(50) NOT NULL COMMENT '业务类型: delivery_pickup-取货凭证, delivery_delivery-送达凭证, settlement_file-结算文件, refund_file-退款凭证',
  749. `business_id` varchar(32) NOT NULL COMMENT '业务ID',
  750. `file_name` varchar(200) NOT NULL COMMENT '文件名称',
  751. `file_url` varchar(500) NOT NULL COMMENT '文件URL',
  752. `file_size` bigint(20) DEFAULT NULL COMMENT '文件大小(字节)',
  753. `file_type` varchar(50) DEFAULT NULL COMMENT '文件类型',
  754. `upload_by` varchar(32) DEFAULT NULL COMMENT '上传人ID',
  755. `upload_by_name` varchar(100) DEFAULT NULL COMMENT '上传人姓名',
  756. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  757. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  758. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  759. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  760. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  761. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  762. PRIMARY KEY (`id`),
  763. KEY `idx_business` (`business_type`,`business_id`)
  764. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='附件表';
  765. -- ----------------------------
  766. -- Records of biz_attachment
  767. -- ----------------------------
  768. BEGIN;
  769. INSERT INTO `biz_attachment` (`id`, `business_type`, `business_id`, `file_name`, `file_url`, `file_size`, `file_type`, `upload_by`, `upload_by_name`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ATT_T_001', 'delivery_pickup', 'TASK_T_006', 'pickup-demo.jpg', 'https://example.com/attachments/pickup-demo.jpg', 102400, 'image/jpeg', 'U_DELIVER_20260330001', '演示配送员甲', 0, '2026-03-30 13:30:00', 'U_DELIVER_20260330001', '演示配送员甲', NULL, NULL);
  770. INSERT INTO `biz_attachment` (`id`, `business_type`, `business_id`, `file_name`, `file_url`, `file_size`, `file_type`, `upload_by`, `upload_by_name`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ATT_T_002', 'settlement_file', 'SET_T_001', 'transfer-voucher.png', 'https://example.com/attachments/transfer-voucher.png', 204800, 'image/png', 'SYS_ADMIN_001', '系统管理员', 0, '2026-03-29 18:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  771. COMMIT;
  772. -- ----------------------------
  773. -- Table structure for biz_attachment_his
  774. -- ----------------------------
  775. DROP TABLE IF EXISTS `biz_attachment_his`;
  776. CREATE TABLE `biz_attachment_his` (
  777. `id` varchar(32) NOT NULL COMMENT '主键ID',
  778. `business_type` varchar(50) NOT NULL COMMENT '业务类型',
  779. `business_id` varchar(32) NOT NULL COMMENT '业务ID',
  780. `file_name` varchar(200) NOT NULL COMMENT '文件名称',
  781. `file_url` varchar(500) NOT NULL COMMENT '文件URL',
  782. `file_size` bigint(20) DEFAULT NULL COMMENT '文件大小',
  783. `file_type` varchar(50) DEFAULT NULL COMMENT '文件类型',
  784. `upload_by` varchar(32) DEFAULT NULL COMMENT '上传人ID',
  785. `upload_by_name` varchar(100) DEFAULT NULL COMMENT '上传人姓名',
  786. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  787. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  788. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  789. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  790. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  791. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  792. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='附件历史表';
  793. -- ----------------------------
  794. -- Records of biz_attachment_his
  795. -- ----------------------------
  796. BEGIN;
  797. COMMIT;
  798. -- ----------------------------
  799. -- Table structure for biz_client_cart
  800. -- ----------------------------
  801. DROP TABLE IF EXISTS `biz_client_cart`;
  802. CREATE TABLE `biz_client_cart` (
  803. `id` varchar(32) NOT NULL COMMENT '主键ID',
  804. `client_id` varchar(32) NOT NULL COMMENT '客户用户ID',
  805. `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
  806. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  807. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  808. `quantity` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT '数量',
  809. `unit_price` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '单价(元)',
  810. `amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '行金额(元)',
  811. `product_name` varchar(200) DEFAULT NULL COMMENT '商品名称快照',
  812. `unit_name` varchar(50) DEFAULT NULL COMMENT '单位名称快照',
  813. `category_name` varchar(100) DEFAULT NULL COMMENT '分类名称快照',
  814. `image_url` varchar(500) DEFAULT NULL COMMENT '图片',
  815. `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除',
  816. `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  817. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  818. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  819. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  820. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  821. PRIMARY KEY (`id`),
  822. KEY `idx_cart_client` (`client_id`,`is_del`)
  823. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户购物车';
  824. -- ----------------------------
  825. -- Records of biz_client_cart
  826. -- ----------------------------
  827. BEGIN;
  828. INSERT INTO `biz_client_cart` (`id`, `client_id`, `price_list_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `product_name`, `unit_name`, `category_name`, `image_url`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CART_T_001', 'U_CLIENT_20260330001', 'PL_T_001', 'PROD_T002', 'UNIT_001', 2.0000, 4.20, 8.40, '黄瓜', '斤', '蔬菜', NULL, 0, '2026-03-30 15:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  829. INSERT INTO `biz_client_cart` (`id`, `client_id`, `price_list_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `product_name`, `unit_name`, `category_name`, `image_url`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CART_T_002', 'U_CLIENT_20260330001', 'PL_T_001', 'PROD_T004', 'UNIT_003', 3.0000, 6.50, 19.50, '红富士苹果', '个', '水果', NULL, 0, '2026-03-30 15:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  830. COMMIT;
  831. -- ----------------------------
  832. -- Table structure for biz_client_cart_his
  833. -- ----------------------------
  834. DROP TABLE IF EXISTS `biz_client_cart_his`;
  835. CREATE TABLE `biz_client_cart_his` (
  836. `id` varchar(32) NOT NULL COMMENT '主键ID',
  837. `client_id` varchar(32) NOT NULL COMMENT '客户用户ID',
  838. `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
  839. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  840. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  841. `quantity` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT '数量',
  842. `unit_price` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '单价(元)',
  843. `amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '行金额(元)',
  844. `product_name` varchar(200) DEFAULT NULL COMMENT '商品名称快照',
  845. `unit_name` varchar(50) DEFAULT NULL COMMENT '单位名称快照',
  846. `category_name` varchar(100) DEFAULT NULL COMMENT '分类名称快照',
  847. `image_url` varchar(500) DEFAULT NULL COMMENT '图片',
  848. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  849. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  850. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  851. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  852. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  853. `his_create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  854. KEY `idx_cart_his_client` (`client_id`)
  855. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户购物车历史';
  856. -- ----------------------------
  857. -- Records of biz_client_cart_his
  858. -- ----------------------------
  859. BEGIN;
  860. COMMIT;
  861. -- ----------------------------
  862. -- Table structure for biz_deliverer_review
  863. -- ----------------------------
  864. DROP TABLE IF EXISTS `biz_deliverer_review`;
  865. CREATE TABLE `biz_deliverer_review` (
  866. `id` varchar(32) NOT NULL COMMENT '主键ID',
  867. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  868. `task_id` varchar(32) DEFAULT NULL COMMENT '配送任务ID',
  869. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  870. `deliverer_id` varchar(32) NOT NULL COMMENT '配送员ID',
  871. `score` int(11) NOT NULL COMMENT '评分(1-5)',
  872. `tags` varchar(500) DEFAULT NULL COMMENT '评价标签,逗号分隔',
  873. `content` varchar(1000) DEFAULT NULL COMMENT '评价内容',
  874. `is_anonymous` tinyint(1) DEFAULT '0' COMMENT '是否匿名',
  875. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
  876. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  877. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  878. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  879. `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  880. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  881. PRIMARY KEY (`id`),
  882. KEY `idx_order_id` (`order_id`),
  883. KEY `idx_task_id` (`task_id`),
  884. KEY `idx_deliverer_id` (`deliverer_id`),
  885. KEY `idx_score` (`score`),
  886. KEY `idx_create_at` (`create_at`)
  887. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送员评价表';
  888. -- ----------------------------
  889. -- Records of biz_deliverer_review
  890. -- ----------------------------
  891. BEGIN;
  892. INSERT INTO `biz_deliverer_review` (`id`, `order_id`, `task_id`, `client_id`, `deliverer_id`, `score`, `tags`, `content`, `is_anonymous`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DRV_T_001', 'ORD_T_006', 'TASK_T_006', 'U_CLIENT_20260330001', 'U_DELIVER_20260330001', 5, '准时,态度好', '送货很快,商品完好。', 0, 0, '2026-03-30 14:05:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  893. COMMIT;
  894. -- ----------------------------
  895. -- Table structure for biz_deliverer_review_his
  896. -- ----------------------------
  897. DROP TABLE IF EXISTS `biz_deliverer_review_his`;
  898. CREATE TABLE `biz_deliverer_review_his` (
  899. `id` varchar(32) NOT NULL COMMENT '主键ID',
  900. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  901. `task_id` varchar(32) DEFAULT NULL COMMENT '配送任务ID',
  902. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  903. `deliverer_id` varchar(32) NOT NULL COMMENT '配送员ID',
  904. `score` int(11) NOT NULL COMMENT '评分(1-5)',
  905. `tags` varchar(500) DEFAULT NULL COMMENT '评价标签,逗号分隔',
  906. `content` varchar(1000) DEFAULT NULL COMMENT '评价内容',
  907. `is_anonymous` tinyint(1) DEFAULT '0' COMMENT '是否匿名',
  908. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  909. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  910. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  911. `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  912. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  913. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  914. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送员评价历史表';
  915. -- ----------------------------
  916. -- Records of biz_deliverer_review_his
  917. -- ----------------------------
  918. BEGIN;
  919. COMMIT;
  920. -- ----------------------------
  921. -- Table structure for biz_delivery_task
  922. -- ----------------------------
  923. DROP TABLE IF EXISTS `biz_delivery_task`;
  924. CREATE TABLE `biz_delivery_task` (
  925. `id` varchar(32) NOT NULL COMMENT '主键ID',
  926. `task_no` varchar(50) NOT NULL COMMENT '配送单编号',
  927. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  928. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  929. `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
  930. `deliver_id` varchar(32) DEFAULT NULL COMMENT '配送员ID',
  931. `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待取货, picking-取货中, delivering-配送中, completed-已完成, cancelled-已取消',
  932. `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
  933. `pickup_remark` varchar(500) DEFAULT NULL COMMENT '取货备注',
  934. `pickup_image_url` varchar(500) DEFAULT NULL COMMENT '取货凭证图片',
  935. `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
  936. `delivery_remark` varchar(500) DEFAULT NULL COMMENT '送达备注',
  937. `delivery_image_url` varchar(500) DEFAULT NULL COMMENT '送达凭证图片',
  938. `expire_warning_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送过期预警',
  939. `effective_time` datetime DEFAULT NULL COMMENT '生效时间/配送截止时间',
  940. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  941. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  942. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  943. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  944. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  945. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  946. PRIMARY KEY (`id`),
  947. UNIQUE KEY `uk_task_no` (`task_no`),
  948. KEY `idx_order_id` (`order_id`),
  949. KEY `idx_deliver_id` (`deliver_id`),
  950. KEY `idx_status` (`status`),
  951. KEY `idx_delivery_task_status` (`status`)
  952. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务表';
  953. -- ----------------------------
  954. -- Records of biz_delivery_task
  955. -- ----------------------------
  956. BEGIN;
  957. INSERT INTO `biz_delivery_task` (`id`, `task_no`, `order_id`, `region_id`, `supplier_id`, `deliver_id`, `status`, `pickup_time`, `pickup_remark`, `pickup_image_url`, `delivery_time`, `delivery_remark`, `delivery_image_url`, `expire_warning_sent`, `effective_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('TASK_T_002', 'DT20260330T00000002', 'ORD_T_002', 'REGION_001', 'U_SUPPLIER_20260330001', NULL, 'pending', NULL, NULL, NULL, NULL, NULL, NULL, 0, '2026-04-01 15:41:59', 0, '2026-03-30 11:06:00', 'SYS_ADMIN_001', '系统管理员', '2026-04-01 11:41:59', NULL);
  958. INSERT INTO `biz_delivery_task` (`id`, `task_no`, `order_id`, `region_id`, `supplier_id`, `deliver_id`, `status`, `pickup_time`, `pickup_remark`, `pickup_image_url`, `delivery_time`, `delivery_remark`, `delivery_image_url`, `expire_warning_sent`, `effective_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('TASK_T_003', 'DT20260330T00000003', 'ORD_T_003', 'REGION_001', 'U_SUPPLIER_20260330001', 'U_DELIVER_20260330001', 'delivering', '2026-03-30 13:00:00', '已取货', NULL, NULL, NULL, NULL, 0, NULL, 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  959. INSERT INTO `biz_delivery_task` (`id`, `task_no`, `order_id`, `region_id`, `supplier_id`, `deliver_id`, `status`, `pickup_time`, `pickup_remark`, `pickup_image_url`, `delivery_time`, `delivery_remark`, `delivery_image_url`, `expire_warning_sent`, `effective_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('TASK_T_004', 'DT20260330T00000004', 'ORD_T_004', 'REGION_001', 'U_SUPPLIER_20260330001', 'U_DELIVER_20260330001', 'delivering', '2026-03-30 13:10:00', '部分取货', NULL, NULL, NULL, NULL, 0, NULL, 0, '2026-03-30 11:16:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  960. INSERT INTO `biz_delivery_task` (`id`, `task_no`, `order_id`, `region_id`, `supplier_id`, `deliver_id`, `status`, `pickup_time`, `pickup_remark`, `pickup_image_url`, `delivery_time`, `delivery_remark`, `delivery_image_url`, `expire_warning_sent`, `effective_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('TASK_T_005', 'DT20260330T00000005', 'ORD_T_005', 'REGION_001', 'U_SUPPLIER_20260330001', 'U_DELIVER_20260330002', 'delivering', '2026-03-30 13:20:00', '已取货', NULL, NULL, NULL, NULL, 0, NULL, 0, '2026-03-30 11:22:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  961. INSERT INTO `biz_delivery_task` (`id`, `task_no`, `order_id`, `region_id`, `supplier_id`, `deliver_id`, `status`, `pickup_time`, `pickup_remark`, `pickup_image_url`, `delivery_time`, `delivery_remark`, `delivery_image_url`, `expire_warning_sent`, `effective_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('TASK_T_006', 'DT20260330T00000006', 'ORD_T_006', 'REGION_001', 'U_SUPPLIER_20260330001', 'U_DELIVER_20260330001', 'completed', '2026-03-30 13:30:00', '取货完成', NULL, '2026-03-30 13:50:00', '客户已签收', NULL, 0, NULL, 0, '2026-03-30 11:26:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  962. COMMIT;
  963. -- ----------------------------
  964. -- Table structure for biz_delivery_task_his
  965. -- ----------------------------
  966. DROP TABLE IF EXISTS `biz_delivery_task_his`;
  967. CREATE TABLE `biz_delivery_task_his` (
  968. `id` varchar(32) NOT NULL COMMENT '主键ID',
  969. `task_no` varchar(50) NOT NULL COMMENT '配送单编号',
  970. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  971. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  972. `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
  973. `deliver_id` varchar(32) DEFAULT NULL COMMENT '配送员ID',
  974. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  975. `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
  976. `pickup_remark` varchar(500) DEFAULT NULL COMMENT '取货备注',
  977. `pickup_image_url` varchar(500) DEFAULT NULL COMMENT '取货凭证图片',
  978. `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
  979. `delivery_remark` varchar(500) DEFAULT NULL COMMENT '送达备注',
  980. `delivery_image_url` varchar(500) DEFAULT NULL COMMENT '送达凭证图片',
  981. `expire_warning_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送过期预警',
  982. `effective_time` datetime DEFAULT NULL COMMENT '生效时间/配送截止时间',
  983. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  984. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  985. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  986. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  987. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  988. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  989. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务历史表';
  990. -- ----------------------------
  991. -- Records of biz_delivery_task_his
  992. -- ----------------------------
  993. BEGIN;
  994. COMMIT;
  995. -- ----------------------------
  996. -- Table structure for biz_delivery_task_item
  997. -- ----------------------------
  998. DROP TABLE IF EXISTS `biz_delivery_task_item`;
  999. CREATE TABLE `biz_delivery_task_item` (
  1000. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1001. `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
  1002. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1003. `order_item_id` varchar(32) NOT NULL COMMENT '订单项ID',
  1004. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1005. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  1006. `delivery_address` varchar(500) NOT NULL COMMENT '配送地址',
  1007. `contact_person` varchar(100) NOT NULL COMMENT '联系人',
  1008. `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
  1009. `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '配送数量',
  1010. `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已送达数量',
  1011. `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待配送, picking-取货中, picked-已取货, delivering-配送中, delivered-已送达',
  1012. `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
  1013. `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
  1014. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1015. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1016. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1017. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1018. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1019. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1020. PRIMARY KEY (`id`),
  1021. KEY `idx_task_id` (`task_id`),
  1022. KEY `idx_order_id` (`order_id`),
  1023. KEY `idx_client_id` (`client_id`)
  1024. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务明细表';
  1025. -- ----------------------------
  1026. -- Records of biz_delivery_task_item
  1027. -- ----------------------------
  1028. BEGIN;
  1029. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_002_1', 'TASK_T_002', 'ORD_T_002', 'OI_T_002_01', 'PROD_T003', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 20.0000, 0.0000, 'pending', NULL, NULL, 0, '2026-03-30 11:06:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1030. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_002_2', 'TASK_T_002', 'ORD_T_002', 'OI_T_002_02', 'PROD_T006', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 2.4300, 0.0000, 'pending', NULL, NULL, 0, '2026-03-30 11:06:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1031. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_003_1', 'TASK_T_003', 'ORD_T_003', 'OI_T_003_01', 'PROD_T004', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 4.0000, 4.0000, 'delivering', '2026-03-30 13:00:00', NULL, 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1032. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_003_2', 'TASK_T_003', 'ORD_T_003', 'OI_T_003_02', 'PROD_T005', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 3.3100, 3.3100, 'delivering', '2026-03-30 13:00:00', NULL, 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1033. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_004_1', 'TASK_T_004', 'ORD_T_004', 'OI_T_004_01', 'PROD_T001', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 10.0000, 6.0000, 'delivering', '2026-03-30 13:10:00', NULL, 0, '2026-03-30 11:16:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1034. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_005_1', 'TASK_T_005', 'ORD_T_005', 'OI_T_005_01', 'PROD_T002', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 8.0000, 8.0000, 'delivered', '2026-03-30 13:20:00', '2026-03-30 13:45:00', 0, '2026-03-30 11:22:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1035. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_005_2', 'TASK_T_005', 'ORD_T_005', 'OI_T_005_02', 'PROD_T008', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 3.0000, 3.0000, 'delivered', '2026-03-30 13:20:00', '2026-03-30 13:45:00', 0, '2026-03-30 11:22:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1036. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_006_1', 'TASK_T_006', 'ORD_T_006', 'OI_T_006_01', 'PROD_T006', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 3.0000, 3.0000, 'delivered', '2026-03-30 13:30:00', '2026-03-30 13:50:00', 0, '2026-03-30 11:26:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1037. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_006_2', 'TASK_T_006', 'ORD_T_006', 'OI_T_006_02', 'PROD_T005', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 5.0000, 5.0000, 'delivered', '2026-03-30 13:30:00', '2026-03-30 13:50:00', 0, '2026-03-30 11:26:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1038. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_006_3', 'TASK_T_006', 'ORD_T_006', 'OI_T_006_03', 'PROD_T007', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 3.0000, 3.0000, 'delivered', '2026-03-30 13:30:00', '2026-03-30 13:50:00', 0, '2026-03-30 11:26:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1039. INSERT INTO `biz_delivery_task_item` (`id`, `task_id`, `order_id`, `order_item_id`, `product_id`, `client_id`, `delivery_address`, `contact_person`, `contact_phone`, `quantity`, `delivered_quantity`, `status`, `pickup_time`, `delivery_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DTI_T_006_4', 'TASK_T_006', 'ORD_T_006', 'OI_T_006_04', 'PROD_T009', 'U_CLIENT_20260330001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '演示客户甲', '13900003001', 1.0000, 1.0000, 'delivered', '2026-03-30 13:30:00', '2026-03-30 13:50:00', 0, '2026-03-30 11:26:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1040. COMMIT;
  1041. -- ----------------------------
  1042. -- Table structure for biz_delivery_task_item_his
  1043. -- ----------------------------
  1044. DROP TABLE IF EXISTS `biz_delivery_task_item_his`;
  1045. CREATE TABLE `biz_delivery_task_item_his` (
  1046. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1047. `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
  1048. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1049. `order_item_id` varchar(32) NOT NULL COMMENT '订单项ID',
  1050. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1051. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  1052. `delivery_address` varchar(500) NOT NULL COMMENT '配送地址',
  1053. `contact_person` varchar(100) NOT NULL COMMENT '联系人',
  1054. `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
  1055. `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '配送数量',
  1056. `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已送达数量',
  1057. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  1058. `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
  1059. `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
  1060. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1061. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1062. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1063. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1064. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1065. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1066. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务明细历史表';
  1067. -- ----------------------------
  1068. -- Records of biz_delivery_task_item_his
  1069. -- ----------------------------
  1070. BEGIN;
  1071. COMMIT;
  1072. -- ----------------------------
  1073. -- Table structure for biz_delivery_warning
  1074. -- ----------------------------
  1075. DROP TABLE IF EXISTS `biz_delivery_warning`;
  1076. CREATE TABLE `biz_delivery_warning` (
  1077. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1078. `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
  1079. `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
  1080. `warning_type` varchar(20) NOT NULL COMMENT '预警类型: timeout-超时, urgent-紧急, critical-危急',
  1081. `urgency_level` varchar(20) NOT NULL COMMENT '紧急程度: critical-危急, urgent-较急, normal-正常',
  1082. `remaining_minutes` int(11) DEFAULT NULL COMMENT '剩余分钟数',
  1083. `message` varchar(500) DEFAULT NULL COMMENT '预警消息',
  1084. `is_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送通知',
  1085. `sent_time` datetime DEFAULT NULL COMMENT '发送时间',
  1086. `is_resolved` tinyint(1) DEFAULT '0' COMMENT '是否已解决',
  1087. `resolved_time` datetime DEFAULT NULL COMMENT '解决时间',
  1088. `resolved_by` varchar(32) DEFAULT NULL COMMENT '解决人ID',
  1089. `resolved_note` varchar(500) DEFAULT NULL COMMENT '解决备注',
  1090. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
  1091. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1092. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1093. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1094. `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1095. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1096. PRIMARY KEY (`id`),
  1097. KEY `idx_task_id` (`task_id`),
  1098. KEY `idx_order_id` (`order_id`),
  1099. KEY `idx_warning_type` (`warning_type`),
  1100. KEY `idx_urgency_level` (`urgency_level`),
  1101. KEY `idx_is_sent` (`is_sent`),
  1102. KEY `idx_create_at` (`create_at`)
  1103. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送时效预警表';
  1104. -- ----------------------------
  1105. -- Records of biz_delivery_warning
  1106. -- ----------------------------
  1107. BEGIN;
  1108. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0087B23349E449928704557BFF6C36B1', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:33:53', 'system', '系统', '2026-04-01 16:33:53', NULL);
  1109. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0113FC5337834E02A5365497CEAEE843', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:48:13', 'system', '系统', '2026-04-02 00:48:13', NULL);
  1110. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0321708253B74FA59FBF4DB106E05E1E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 09:56:33', 'system', '系统', '2026-04-02 09:56:33', NULL);
  1111. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('05852873A8E74F7DB572FA39AAE73FA5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:23:53', 'system', '系统', '2026-04-01 16:23:53', NULL);
  1112. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0A91E470FCDB4D9C9FDB95F446F9F319', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:59:11', 'system', '系统', '2026-04-01 20:59:11', NULL);
  1113. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0E2F468227BB4BC2878E0B60A265C38D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:25:33', 'system', '系统', '2026-04-02 15:25:33', NULL);
  1114. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0ECF854AB2954C7A894FC2CBEFC4D9FE', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:53:46', 'system', '系统', '2026-04-02 00:53:46', NULL);
  1115. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1ADCE7739F824A29851BF876E1A6AD49', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:18:13', 'system', '系统', '2026-04-01 21:18:13', NULL);
  1116. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1B2876F07A4548529E7AF3426E548E85', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:07:43', 'system', '系统', '2026-04-02 10:07:43', NULL);
  1117. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1B9FCE61C4244C398624D02F647EE8EF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:02:18', 'system', '系统', '2026-04-02 12:02:18', NULL);
  1118. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1E61D63166CC4163B4DEFF51EBACD13E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:45:33', 'system', '系统', '2026-04-02 14:45:33', NULL);
  1119. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('20388D348B5C4B9CB9E583E62FAEEA48', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:23:18', 'system', '系统', '2026-04-01 23:23:18', NULL);
  1120. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('223C99DDD99641078CCF84C21CC52D68', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:44:54', 'system', '系统', '2026-04-02 11:44:54', NULL);
  1121. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('225A5EF185114072B54E6C05A061D44B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:38:53', 'system', '系统', '2026-04-01 16:38:53', NULL);
  1122. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('23C126A83C864DA38ACF0BAD417A1A81', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:53:26', 'system', '系统', '2026-04-01 23:53:26', NULL);
  1123. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('25733FD1A52B4434BA30A1FCDB22D3EF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:38:44', 'system', '系统', '2026-04-01 23:38:44', NULL);
  1124. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('26B19FAB51194FE38A168F83A69283B5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:32:55', 'system', '系统', '2026-04-01 22:32:55', NULL);
  1125. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('29D516B1F2A64DEEA892370F2EB5B918', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:40:33', 'system', '系统', '2026-04-02 14:40:33', NULL);
  1126. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('2D9958FD53674A30AC06CDF6BFE36FE1', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:39:54', 'system', '系统', '2026-04-02 11:39:54', NULL);
  1127. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3028242EFFBC4968A09BEC35518732E5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:48:14', 'system', '系统', '2026-04-01 23:48:14', NULL);
  1128. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('374B5419914247949B69B9E78C315EE9', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:48:14', 'system', '系统', '2026-04-01 20:48:14', NULL);
  1129. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('37AF365657584773AC47F6AF03C3DCC4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 16:05:33', 'system', '系统', '2026-04-02 16:05:33', NULL);
  1130. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3856B07B6F684411ACB7D23FF4343361', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:38:26', 'system', '系统', '2026-04-03 10:38:26', NULL);
  1131. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3B9EF979D4CE4FF3919CA9C286EF7D87', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:18:14', 'system', '系统', '2026-04-02 00:18:14', NULL);
  1132. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3C6D60A3C77A42EF956364B9A2E2D7FD', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:58:35', 'system', '系统', '2026-04-02 00:58:35', NULL);
  1133. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3CC7238206EB4EE196C0DDF59DE16B42', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:37:43', 'system', '系统', '2026-04-02 10:37:43', NULL);
  1134. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3CDA8E0674E6401C87FA1E01C85A680B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:33:02', 'system', '系统', '2026-04-02 10:33:02', NULL);
  1135. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3D0175EFEF4544BBBCB0C403B5FCF27B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:30:59', 'system', '系统', '2026-04-02 15:30:59', NULL);
  1136. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4450120CE85D48148292E48004FABD16', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:22:55', 'system', '系统', '2026-04-01 18:22:55', NULL);
  1137. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('460A4E2AB51B467BBAF98BFD18C95026', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:27:43', 'system', '系统', '2026-04-02 10:27:43', NULL);
  1138. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4963B44E4E204404BCA3C583FAF4FEBD', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:42:55', 'system', '系统', '2026-04-01 22:42:55', NULL);
  1139. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4BB31412BEF0402186A7A48FF8B7847D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:04:57', 'system', '系统', '2026-04-01 17:04:57', NULL);
  1140. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4CC0F089411F4F2BB090F68111AC970C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:06:11', 'system', '系统', '2026-04-03 10:06:11', NULL);
  1141. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4D8D5212F17E43ECB3B21C816BCAEB0E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:40:33', 'system', '系统', '2026-04-02 15:40:33', NULL);
  1142. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4DAE13E5EBD24749A0398BBBF79BF08A', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:42:55', 'system', '系统', '2026-04-01 18:42:55', NULL);
  1143. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('4FF5AF33110448B58C7235BD3049E370', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:27:55', 'system', '系统', '2026-04-01 22:27:55', NULL);
  1144. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('524998CC2EEE4CCC81ECCEEFCB189E3C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:49:11', 'system', '系统', '2026-04-01 16:49:11', NULL);
  1145. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('549115A7EE35426391419995FD3AE695', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:21:24', 'system', '系统', '2026-04-02 14:21:24', NULL);
  1146. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('58603EDB25C44F47902A44464106BD0B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:35:33', 'system', '系统', '2026-04-02 15:35:33', NULL);
  1147. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5CB8361D11E844ACB5D899A83E33EE29', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 09:51:33', 'system', '系统', '2026-04-02 09:51:33', NULL);
  1148. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5CEC95F6116D4BB7919F54208453E377', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:55:33', 'system', '系统', '2026-04-02 14:55:33', NULL);
  1149. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5DB1410231BC40B58FE24B0110EDF483', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:28:29', 'system', '系统', '2026-04-01 18:28:29', NULL);
  1150. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5E0E9893F3B149F892AA4E7D5A1A3C83', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:21:11', 'system', '系统', '2026-04-03 10:21:11', NULL);
  1151. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5F441D47B7EB4570AEEB48232151558D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:28:24', 'system', '系统', '2026-04-01 21:28:24', NULL);
  1152. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5F89DFBB5C8E42C686C4CBCF6D5268E6', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:44:07', 'system', '系统', '2026-04-01 17:44:07', NULL);
  1153. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5FD631CA33594A0CB409F974DD989E8D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:28:45', 'system', '系统', '2026-04-02 00:28:45', NULL);
  1154. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('61793FCAEDA240578DB1D34798DF94B3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:43:53', 'system', '系统', '2026-04-01 16:43:53', NULL);
  1155. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('640D307BAE5D4495AC673710FB508076', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:29:53', 'system', '系统', '2026-04-01 16:29:53', NULL);
  1156. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('646182A9756E46CB9C4B442B15AEBAD3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:13:16', 'system', '系统', '2026-04-01 20:13:16', NULL);
  1157. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('64B65766182D41F1BCBCB121E1ABB51B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:34:54', 'system', '系统', '2026-04-02 11:34:54', NULL);
  1158. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('64F0941A73BF4F6087046C272E273109', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:57:55', 'system', '系统', '2026-04-01 22:57:55', NULL);
  1159. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('693FBA912AC44A3DB4A6FCA0DD4BD965', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:11:12', 'system', '系统', '2026-04-03 10:11:12', NULL);
  1160. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6BC46F938C4C4E58B9EAD589CFFA62DF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:09:57', 'system', '系统', '2026-04-01 17:09:57', NULL);
  1161. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6C9B1995450B408FBD5AA1EDC46C9932', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:16:11', 'system', '系统', '2026-04-03 10:16:11', NULL);
  1162. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6CAE76A7000C4BE2B729ADEC97CF11A0', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:28:24', 'system', '系统', '2026-04-02 12:28:24', NULL);
  1163. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6D135A327D124C6BAFD70042EEC219A7', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:54:54', 'system', '系统', '2026-04-02 10:54:54', NULL);
  1164. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6D81A5A983DB4C7F94E5A8DC6135C8A5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:23:14', 'system', '系统', '2026-04-01 21:23:14', NULL);
  1165. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6D84A79A5DA8480D8ADA72C12278B47D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:13:14', 'system', '系统', '2026-04-01 22:13:14', NULL);
  1166. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6F1B33D629024B1AAEF8FCA2E93DEE6F', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:47:18', 'system', '系统', '2026-04-02 12:47:18', NULL);
  1167. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('6FC94F2CE5174F12A9609F2097960096', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:12:55', 'system', '系统', '2026-04-01 23:12:55', NULL);
  1168. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('707CACF65B0842579158B1205A3EFE2E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:12:55', 'system', '系统', '2026-04-01 18:12:55', NULL);
  1169. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('71BD9C39DF4848C0BAFE2C6E0C743023', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:45:33', 'system', '系统', '2026-04-02 15:45:33', NULL);
  1170. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('722F9FA7919F4ACB9AF7D8E96389DA48', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:17:55', 'system', '系统', '2026-04-01 18:17:55', NULL);
  1171. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('735B784ADBF148EAA6293A7F28086DE5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:33:33', 'system', '系统', '2026-04-02 00:33:33', NULL);
  1172. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('759E6E2A44A94366AF799F96848361EC', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:19:54', 'system', '系统', '2026-04-02 11:19:54', NULL);
  1173. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('79D9E232AD7449EB93476D1373CFAE7E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:54:35', 'system', '系统', '2026-04-01 17:54:35', NULL);
  1174. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('7AAAD605EA764E13B9BFBD282BE7C4D9', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:50:55', 'system', '系统', '2026-04-02 14:50:55', NULL);
  1175. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('7CC3B781AD3049D88C38574BC5E4C1D2', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 01:02:55', 'system', '系统', '2026-04-02 01:02:55', NULL);
  1176. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8047D5C3297C44969F7C534E113DF6DF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:57:55', 'system', '系统', '2026-04-01 18:57:55', NULL);
  1177. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8454FFD92233468CA2BF191F71F66B98', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:38:14', 'system', '系统', '2026-04-02 00:38:14', NULL);
  1178. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('86810116DBFE4B49ACD69A902FFB192B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:08:14', 'system', '系统', '2026-04-02 00:08:14', NULL);
  1179. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('884478C9EFEB45CAAA6C0EE631FB7D8F', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:12:43', 'system', '系统', '2026-04-02 10:12:43', NULL);
  1180. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('89FC9155B06249498CD976AF616E587A', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:32:55', 'system', '系统', '2026-04-01 18:32:55', NULL);
  1181. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8ABE267040E84903BBD9C114444A6C70', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:22:55', 'system', '系统', '2026-04-01 22:22:55', NULL);
  1182. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8BF20B3A36F843478F0D55D82BC95EB1', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 13:55:33', 'system', '系统', '2026-04-02 13:55:33', NULL);
  1183. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8CA6781CB49B4324B2AED085F522DCA4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:02:55', 'system', '系统', '2026-04-01 20:02:55', NULL);
  1184. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8D315CE3CE9648D988B8D89CF648A498', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:13:17', 'system', '系统', '2026-04-01 21:13:17', NULL);
  1185. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8E0F329CE3804571A8A5DF712FC0B205', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:53:14', 'system', '系统', '2026-04-01 20:53:14', NULL);
  1186. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('8E384C4BF42842C2AF77ECD3F6C023FE', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:09:54', 'system', '系统', '2026-04-02 11:09:54', NULL);
  1187. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9003DCD7F3C84471B05C265348BF85D4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:42:36', 'system', '系统', '2026-04-02 12:42:36', NULL);
  1188. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('932C0587A01C41DA9277F5F34C91EB75', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:00:34', 'system', '系统', '2026-04-02 14:00:34', NULL);
  1189. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('95715CC9E9F34F87856A21285133DDF7', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:59:07', 'system', '系统', '2026-04-01 17:59:07', NULL);
  1190. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9690035700074EC589903D71A222DBFA', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:49:07', 'system', '系统', '2026-04-01 17:49:07', NULL);
  1191. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9781CFEF09B24BF29AC11C824A09F840', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:20:15', 'system', '系统', '2026-04-01 17:20:15', NULL);
  1192. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9ADA96EA371543E386F9E3007960A264', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:47:55', 'system', '系统', '2026-04-01 18:47:55', NULL);
  1193. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9B93981D43574545935BEDF98BDF687B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:49:54', 'system', '系统', '2026-04-02 11:49:54', NULL);
  1194. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9D81E110DFE3470486BDA84E8F3056D7', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:15:13', 'system', '系统', '2026-04-01 17:15:13', NULL);
  1195. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('9EA5A593FD214270B7CEFE230AE6FBE3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:37:55', 'system', '系统', '2026-04-01 22:37:55', NULL);
  1196. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A190EDC4BC584D0EA73AC9A1C0CED593', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:02:56', 'system', '系统', '2026-04-01 23:02:56', NULL);
  1197. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A452BC53F0B64EAFA5288B6845649D10', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:05:33', 'system', '系统', '2026-04-02 14:05:33', NULL);
  1198. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A5FB2C842AD34AF6AD7D2D241610E64C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:07:55', 'system', '系统', '2026-04-01 20:07:55', NULL);
  1199. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A6603E58DF754478BCCA499CB115B595', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:07:55', 'system', '系统', '2026-04-01 23:07:55', NULL);
  1200. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A76CF3CFFACE4341BA71ADF0FA4C70EF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-03 10:41:11', 'system', '系统', '2026-04-03 10:41:11', NULL);
  1201. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A8522052B4B6409C9D9BCF84979A0A09', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:52:55', 'system', '系统', '2026-04-01 22:52:55', NULL);
  1202. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AA2A365C7CB94A7C80E24D4BABF11FC4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:02:44', 'system', '系统', '2026-04-02 10:02:44', NULL);
  1203. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AA458F522B9F4C46B96B685C3F166F5F', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:29:54', 'system', '系统', '2026-04-02 11:29:54', NULL);
  1204. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AB8BC4A1D26D44E6B49E5AED2518FD57', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:10:33', 'system', '系统', '2026-04-02 15:10:33', NULL);
  1205. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AB8C47E9E089447484344F1E9D0E443A', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:52:55', 'system', '系统', '2026-04-01 18:52:55', NULL);
  1206. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AC5B91717738471A98161A9CB270171F', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:13:14', 'system', '系统', '2026-04-02 00:13:14', NULL);
  1207. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AD0367384561488A97D348FDEAE86A2C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:37:18', 'system', '系统', '2026-04-02 12:37:18', NULL);
  1208. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AE79E38CBF8D444EA5BB7976EC7020CB', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:47:55', 'system', '系统', '2026-04-01 22:47:55', NULL);
  1209. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('B1504E3834D5424C8FCA79D49BB63179', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:07:55', 'system', '系统', '2026-04-01 18:07:55', NULL);
  1210. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('B5F90F97C3534AEDB1C3788B6302110E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:28:13', 'system', '系统', '2026-04-01 23:28:13', NULL);
  1211. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('B75AB4BA67F548FF9DBA1312E0D132B5', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 15:51:05', 'system', '系统', '2026-04-01 15:51:05', NULL);
  1212. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('BA73F65AB1F241D8A1A2967B9B8C3760', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:24:54', 'system', '系统', '2026-04-02 11:24:54', NULL);
  1213. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('BB2F2C0FA71B44FB9EB09248CA3D4334', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:18:14', 'system', '系统', '2026-04-01 22:18:14', NULL);
  1214. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C04B64C33D49425D9465775AF25D5440', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:57:01', 'system', '系统', '2026-04-02 15:57:01', NULL);
  1215. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C0542AFFDC474401B4A0E64E699759DF', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:15:33', 'system', '系统', '2026-04-02 14:15:33', NULL);
  1216. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C2C2A152CE904D01A2980003E07CD13E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:58:53', 'system', '系统', '2026-04-01 16:58:53', NULL);
  1217. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C52F8674D70F48DF9DC87F5A228641A1', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 20:18:32', 'system', '系统', '2026-04-01 20:18:32', NULL);
  1218. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C72C6DF537E04FDFAE8B0CD3963D518C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:02:55', 'system', '系统', '2026-04-02 00:02:55', NULL);
  1219. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C7B5970925B547A4AC53A43C21C69A6A', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 15:46:46', 'system', '系统', '2026-04-01 15:46:46', NULL);
  1220. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C8047CAFE27D432F9A1EFAD59FBCA95C', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:53:53', 'system', '系统', '2026-04-01 16:53:53', NULL);
  1221. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C8AAC664F7414308AE3B6558DA6CBCC7', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:03:50', 'system', '系统', '2026-04-01 22:03:50', NULL);
  1222. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('C975A79F25834259A9FE116468B09436', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:10:33', 'system', '系统', '2026-04-02 14:10:33', NULL);
  1223. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CB050EABA2324C4AB157DF5D4CE4E1D6', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:43:14', 'system', '系统', '2026-04-02 00:43:14', NULL);
  1224. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CB8829D7C00F435BBF35C826377B439D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:35:33', 'system', '系统', '2026-04-02 14:35:33', NULL);
  1225. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CC8165AE0E394C9481ED8A2435B48F63', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:18:14', 'system', '系统', '2026-04-01 23:18:14', NULL);
  1226. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CC9D8DCCBBDC42559C74E44FA3BDBB8D', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:02:55', 'system', '系统', '2026-04-01 21:02:55', NULL);
  1227. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CF544BDB544848C9A27971947E04DCA6', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:59:27', 'system', '系统', '2026-04-01 23:59:27', NULL);
  1228. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFCDAD8B8DD34836862D20D6AF21B0EB', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:17:43', 'system', '系统', '2026-04-02 10:17:43', NULL);
  1229. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D0609A33513543AEA79A849C44333449', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:24:57', 'system', '系统', '2026-04-01 17:24:57', NULL);
  1230. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D1169E64175D481E88CEDBA7255CEF22', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:15:33', 'system', '系统', '2026-04-02 15:15:33', NULL);
  1231. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D29AD9BED05948FCADAC1CE0648944EA', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 21:08:48', 'system', '系统', '2026-04-01 21:08:48', NULL);
  1232. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D516500F4F2144A4A6D22184A25349F4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:20:33', 'system', '系统', '2026-04-02 15:20:33', NULL);
  1233. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D6BA91CB8E8644D8ABE5743F5A1702E3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 15:41:05', 'system', '系统', '2026-04-01 15:41:05', NULL);
  1234. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D783B8DAD8C548E6AE26489FECA54FC9', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:50:33', 'system', '系统', '2026-04-02 15:50:33', NULL);
  1235. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('D946404FC0CB47169BB23A495D0456B4', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 12:32:18', 'system', '系统', '2026-04-02 12:32:18', NULL);
  1236. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DA5C5FD4DB5140BD967AAF91E82FB46B', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:43:39', 'system', '系统', '2026-04-01 23:43:39', NULL);
  1237. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DFCFF94FB91949249E7408E564CB66C6', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 23:33:14', 'system', '系统', '2026-04-01 23:33:14', NULL);
  1238. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DW_T_001', 'TASK_T_003', 'ORD_T_003', 'urgent', 'urgent', 12, '配送时效预警:剩余时间不足', 1, '2026-03-30 13:40:00', 0, NULL, NULL, NULL, 0, '2026-03-30 13:40:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1239. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('DW_T_002', 'TASK_T_004', 'ORD_T_004', 'timeout', 'normal', 3, '请关注部分送达订单进度', 1, '2026-03-30 13:45:00', 1, '2026-03-30 14:00:00', 'SYS_ADMIN_001', '已联系配送员', 0, '2026-03-30 13:45:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1240. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E58AAF4C2E2248C8889849544012D8E3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:25:33', 'system', '系统', '2026-04-02 14:25:33', NULL);
  1241. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E7A9B7A220234FC69EE9B395B1EB6B8E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:14:54', 'system', '系统', '2026-04-02 11:14:54', NULL);
  1242. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ECCF47852A3349608B841A83D9FA0C49', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 17:39:07', 'system', '系统', '2026-04-01 17:39:07', NULL);
  1243. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ECD87E00C8C84E6E8F7FCE6CDB3647C0', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 14:30:33', 'system', '系统', '2026-04-02 14:30:33', NULL);
  1244. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ED00B60E10FE418DAD7212576A1FAA80', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 16:18:53', 'system', '系统', '2026-04-01 16:18:53', NULL);
  1245. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('EFAA9A6DBA1149D9BB47EA859B051FDC', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:00:12', 'system', '系统', '2026-04-02 11:00:12', NULL);
  1246. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F0013F87D63B498C9AC71D9E237E7766', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:44:54', 'system', '系统', '2026-04-02 10:44:54', NULL);
  1247. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F30C14EFBD454AB092745B92FBC05E5E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 18:37:55', 'system', '系统', '2026-04-01 18:37:55', NULL);
  1248. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F3B91C02DD2D4535A19B34855BD76E89', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:22:43', 'system', '系统', '2026-04-02 10:22:43', NULL);
  1249. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F3BEC8E5996E44D8A22C4095DFDF3A0E', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:00:33', 'system', '系统', '2026-04-02 15:00:33', NULL);
  1250. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F561BF7F9A6F4BF9AAA9B2FD2B7984C0', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 15:06:07', 'system', '系统', '2026-04-02 15:06:07', NULL);
  1251. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F5AC2D67D1EB4498AF65D23B1D663D47', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 00:23:13', 'system', '系统', '2026-04-02 00:23:13', NULL);
  1252. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F83739A7471E47E5ACA985F216B8C9B5', 'TASK_T_002', NULL, 'critical', '紧急', 30, '距离配送截止还有30分钟', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 15:11:05', 'system', '系统', '2026-04-01 15:11:05', NULL);
  1253. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F8782164EDD04A5C90496632CD2FE4DB', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 10:49:54', 'system', '系统', '2026-04-02 10:49:54', NULL);
  1254. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F9E084BEA4B14368A6C148D1AA0172D3', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 16:00:34', 'system', '系统', '2026-04-02 16:00:34', NULL);
  1255. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('FAC82A20A54B4168A55B1919C1040EAD', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-02 11:04:54', 'system', '系统', '2026-04-02 11:04:54', NULL);
  1256. INSERT INTO `biz_delivery_warning` (`id`, `task_id`, `order_id`, `warning_type`, `urgency_level`, `remaining_minutes`, `message`, `is_sent`, `sent_time`, `is_resolved`, `resolved_time`, `resolved_by`, `resolved_note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('FD1243BEB89F4C21A8BAD879DCB6D871', 'TASK_T_002', NULL, 'timeout', 'timeout', 0, '配送任务已超时', 0, NULL, 0, NULL, NULL, NULL, 0, '2026-04-01 22:08:26', 'system', '系统', '2026-04-01 22:08:26', NULL);
  1257. COMMIT;
  1258. -- ----------------------------
  1259. -- Table structure for biz_delivery_warning_his
  1260. -- ----------------------------
  1261. DROP TABLE IF EXISTS `biz_delivery_warning_his`;
  1262. CREATE TABLE `biz_delivery_warning_his` (
  1263. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1264. `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
  1265. `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
  1266. `warning_type` varchar(20) NOT NULL COMMENT '预警类型: timeout-超时, urgent-紧急, critical-危急',
  1267. `urgency_level` varchar(20) NOT NULL COMMENT '紧急程度: critical-危急, urgent-较急, normal-正常',
  1268. `remaining_minutes` int(11) DEFAULT NULL COMMENT '剩余分钟数',
  1269. `message` varchar(500) DEFAULT NULL COMMENT '预警消息',
  1270. `is_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送通知',
  1271. `sent_time` datetime DEFAULT NULL COMMENT '发送时间',
  1272. `is_resolved` tinyint(1) DEFAULT '0' COMMENT '是否已解决',
  1273. `resolved_time` datetime DEFAULT NULL COMMENT '解决时间',
  1274. `resolved_by` varchar(32) DEFAULT NULL COMMENT '解决人ID',
  1275. `resolved_note` varchar(500) DEFAULT NULL COMMENT '解决备注',
  1276. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1277. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1278. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1279. `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1280. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1281. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1282. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送时效预警历史表';
  1283. -- ----------------------------
  1284. -- Records of biz_delivery_warning_his
  1285. -- ----------------------------
  1286. BEGIN;
  1287. COMMIT;
  1288. -- ----------------------------
  1289. -- Table structure for biz_inquiry
  1290. -- ----------------------------
  1291. DROP TABLE IF EXISTS `biz_inquiry`;
  1292. CREATE TABLE `biz_inquiry` (
  1293. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1294. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1295. `title` varchar(200) NOT NULL COMMENT '询价单标题',
  1296. `status` varchar(20) DEFAULT 'draft' COMMENT '状态: draft-草稿, published-已发布, closed-已关闭',
  1297. `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
  1298. `close_time` datetime DEFAULT NULL COMMENT '关闭时间',
  1299. `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
  1300. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1301. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1302. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1303. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1304. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1305. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1306. PRIMARY KEY (`id`),
  1307. KEY `idx_region_id` (`region_id`),
  1308. KEY `idx_status` (`status`)
  1309. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单表';
  1310. -- ----------------------------
  1311. -- Records of biz_inquiry
  1312. -- ----------------------------
  1313. BEGIN;
  1314. INSERT INTO `biz_inquiry` (`id`, `region_id`, `title`, `status`, `publish_time`, `close_time`, `remark`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('INQ_T_001', 'REGION_001', '2026年3月春季蔬菜询价', 'published', '2026-03-25 09:00:00', NULL, '测试询价单', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1315. COMMIT;
  1316. -- ----------------------------
  1317. -- Table structure for biz_inquiry_his
  1318. -- ----------------------------
  1319. DROP TABLE IF EXISTS `biz_inquiry_his`;
  1320. CREATE TABLE `biz_inquiry_his` (
  1321. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1322. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1323. `title` varchar(200) NOT NULL COMMENT '询价单标题',
  1324. `status` varchar(20) DEFAULT 'draft' COMMENT '状态',
  1325. `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
  1326. `close_time` datetime DEFAULT NULL COMMENT '关闭时间',
  1327. `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
  1328. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1329. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1330. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1331. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1332. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1333. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1334. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单历史表';
  1335. -- ----------------------------
  1336. -- Records of biz_inquiry_his
  1337. -- ----------------------------
  1338. BEGIN;
  1339. COMMIT;
  1340. -- ----------------------------
  1341. -- Table structure for biz_inquiry_item
  1342. -- ----------------------------
  1343. DROP TABLE IF EXISTS `biz_inquiry_item`;
  1344. CREATE TABLE `biz_inquiry_item` (
  1345. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1346. `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
  1347. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1348. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1349. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1350. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1351. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1352. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1353. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1354. PRIMARY KEY (`id`),
  1355. KEY `idx_inquiry_id` (`inquiry_id`)
  1356. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单项表';
  1357. -- ----------------------------
  1358. -- Records of biz_inquiry_item
  1359. -- ----------------------------
  1360. BEGIN;
  1361. INSERT INTO `biz_inquiry_item` (`id`, `inquiry_id`, `product_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('INQI_T_01', 'INQ_T_001', 'PROD_T001', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1362. INSERT INTO `biz_inquiry_item` (`id`, `inquiry_id`, `product_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('INQI_T_02', 'INQ_T_001', 'PROD_T002', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1363. INSERT INTO `biz_inquiry_item` (`id`, `inquiry_id`, `product_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('INQI_T_03', 'INQ_T_001', 'PROD_T003', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1364. INSERT INTO `biz_inquiry_item` (`id`, `inquiry_id`, `product_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('INQI_T_04', 'INQ_T_001', 'PROD_T010', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1365. COMMIT;
  1366. -- ----------------------------
  1367. -- Table structure for biz_inquiry_item_his
  1368. -- ----------------------------
  1369. DROP TABLE IF EXISTS `biz_inquiry_item_his`;
  1370. CREATE TABLE `biz_inquiry_item_his` (
  1371. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1372. `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
  1373. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1374. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1375. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1376. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1377. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1378. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1379. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1380. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单项历史表';
  1381. -- ----------------------------
  1382. -- Records of biz_inquiry_item_his
  1383. -- ----------------------------
  1384. BEGIN;
  1385. COMMIT;
  1386. -- ----------------------------
  1387. -- Table structure for biz_message
  1388. -- ----------------------------
  1389. DROP TABLE IF EXISTS `biz_message`;
  1390. CREATE TABLE `biz_message` (
  1391. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1392. `receiver_id` varchar(32) NOT NULL COMMENT '接收人ID',
  1393. `receiver_name` varchar(100) DEFAULT NULL COMMENT '接收人姓名',
  1394. `message_type` varchar(20) NOT NULL COMMENT '消息类型: system/order/delivery/payment',
  1395. `title` varchar(200) NOT NULL COMMENT '消息标题',
  1396. `content` text COMMENT '消息内容',
  1397. `is_read` tinyint(1) DEFAULT '0' COMMENT '是否已读: 0-未读, 1-已读',
  1398. `read_time` datetime DEFAULT NULL COMMENT '阅读时间',
  1399. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1400. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1401. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1402. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1403. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1404. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1405. PRIMARY KEY (`id`),
  1406. KEY `idx_receiver_id` (`receiver_id`),
  1407. KEY `idx_message_type` (`message_type`),
  1408. KEY `idx_is_read` (`is_read`),
  1409. KEY `idx_create_at` (`create_at`),
  1410. KEY `idx_is_del` (`is_del`)
  1411. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知表';
  1412. -- ----------------------------
  1413. -- Records of biz_message
  1414. -- ----------------------------
  1415. BEGIN;
  1416. INSERT INTO `biz_message` (`id`, `receiver_id`, `receiver_name`, `message_type`, `title`, `content`, `is_read`, `read_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('MSG001', 'SYS_ADMIN_001', '系统管理员', 'system', '系统通知', '欢迎使用叁强鲜配管理系统!', 1, NULL, 0, '2026-03-28 09:16:10', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1417. INSERT INTO `biz_message` (`id`, `receiver_id`, `receiver_name`, `message_type`, `title`, `content`, `is_read`, `read_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('MSG002', 'SYS_ADMIN_001', '系统管理员', 'order', '新订单提醒', '您有一笔新订单待处理。', 0, NULL, 0, '2026-03-28 09:16:10', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1418. INSERT INTO `biz_message` (`id`, `receiver_id`, `receiver_name`, `message_type`, `title`, `content`, `is_read`, `read_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('MSG_T_003', 'U_SUPPLIER_20260330001', '演示供应商甲', 'delivery', '配送任务提醒', '您有新的配送任务 DT20260330T00000003 待处理。', 0, NULL, 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1419. INSERT INTO `biz_message` (`id`, `receiver_id`, `receiver_name`, `message_type`, `title`, `content`, `is_read`, `read_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('MSG_T_004', 'U_DELIVER_20260330001', '演示配送员甲', 'delivery', '取货通知', '请前往农业路88号三强仓储中心A区取货。', 1, '2026-03-30 13:05:00', 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1420. COMMIT;
  1421. -- ----------------------------
  1422. -- Table structure for biz_message_his
  1423. -- ----------------------------
  1424. DROP TABLE IF EXISTS `biz_message_his`;
  1425. CREATE TABLE `biz_message_his` (
  1426. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1427. `receiver_id` varchar(32) NOT NULL COMMENT '接收人ID',
  1428. `receiver_name` varchar(100) DEFAULT NULL COMMENT '接收人姓名',
  1429. `message_type` varchar(20) NOT NULL COMMENT '消息类型',
  1430. `title` varchar(200) NOT NULL COMMENT '消息标题',
  1431. `content` text COMMENT '消息内容',
  1432. `is_read` tinyint(1) DEFAULT '0' COMMENT '是否已读',
  1433. `read_time` datetime DEFAULT NULL COMMENT '阅读时间',
  1434. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1435. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1436. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1437. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1438. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1439. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1440. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知历史表';
  1441. -- ----------------------------
  1442. -- Records of biz_message_his
  1443. -- ----------------------------
  1444. BEGIN;
  1445. COMMIT;
  1446. -- ----------------------------
  1447. -- Table structure for biz_order
  1448. -- ----------------------------
  1449. DROP TABLE IF EXISTS `biz_order`;
  1450. CREATE TABLE `biz_order` (
  1451. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1452. `order_no` varchar(50) NOT NULL COMMENT '订单编号',
  1453. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1454. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  1455. `price_list_id` varchar(32) NOT NULL COMMENT '使用的价格清单ID',
  1456. `price_version` int(11) NOT NULL COMMENT '价格版本号',
  1457. `status` varchar(30) NOT NULL DEFAULT 'pending_payment' COMMENT '订单状态',
  1458. `payment_method` varchar(20) DEFAULT NULL COMMENT '支付方式: wechat-微信, offline-线下',
  1459. `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '订单总金额',
  1460. `paid_amount` decimal(12,2) DEFAULT '0.00' COMMENT '已付金额',
  1461. `receivable_amount` decimal(12,2) DEFAULT '0.00' COMMENT '应收金额',
  1462. `refund_amount` decimal(12,2) DEFAULT '0.00' COMMENT '退款金额',
  1463. `contact_person` varchar(100) DEFAULT NULL COMMENT '联系人',
  1464. `contact_phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
  1465. `delivery_address` varchar(500) DEFAULT NULL COMMENT '配送地址',
  1466. `cancel_reason` varchar(500) DEFAULT NULL COMMENT '取消原因',
  1467. `cancel_review_time` datetime DEFAULT NULL COMMENT '取消审核时间',
  1468. `cancel_reviewed_by` varchar(32) DEFAULT NULL COMMENT '取消审核人ID',
  1469. `cancel_review_note` varchar(500) DEFAULT NULL COMMENT '取消审核备注',
  1470. `completed_time` datetime DEFAULT NULL COMMENT '完结时间',
  1471. `completed_by` varchar(32) DEFAULT NULL COMMENT '完结人ID',
  1472. `remark` text COMMENT '订单备注',
  1473. `payment_time` datetime DEFAULT NULL COMMENT '支付时间',
  1474. `delivery_assign_time` datetime DEFAULT NULL COMMENT '配送分配时间',
  1475. `lock_operator_id` varchar(32) DEFAULT NULL COMMENT '锁定操作人ID',
  1476. `lock_time` datetime DEFAULT NULL COMMENT '锁定时间',
  1477. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1478. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1479. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1480. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1481. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1482. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1483. PRIMARY KEY (`id`),
  1484. UNIQUE KEY `uk_order_no` (`order_no`),
  1485. KEY `idx_region_id` (`region_id`),
  1486. KEY `idx_client_id` (`client_id`),
  1487. KEY `idx_status` (`status`),
  1488. KEY `idx_order_status` (`status`),
  1489. KEY `idx_order_client_status` (`client_id`,`status`),
  1490. KEY `idx_order_create_at` (`create_at`)
  1491. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单主表';
  1492. -- ----------------------------
  1493. -- Records of biz_order
  1494. -- ----------------------------
  1495. BEGIN;
  1496. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_001', 'SQ20260330T00000001', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'pending_payment', NULL, 88.40, 0.00, 88.40, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, NULL, NULL, '测试:待支付', NULL, NULL, NULL, NULL, 0, '2026-03-30 11:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1497. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_002', 'SQ20260330T00000002', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'pending_delivery', 'offline', 120.04, 120.04, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, NULL, NULL, '测试:待分配配送(线下已付)', '2026-03-30 11:05:00', '2026-03-30 11:06:00', NULL, NULL, 0, '2026-03-30 11:05:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1498. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_003', 'SQ20260330T00000003', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'delivering', 'wechat', 45.20, 45.20, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, NULL, NULL, '测试:配送中', '2026-03-30 11:10:00', '2026-03-30 11:12:00', NULL, NULL, 0, '2026-03-30 11:10:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1499. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_004', 'SQ20260330T00000004', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'partial_delivered', 'wechat', 86.00, 86.00, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, NULL, NULL, '测试:部分送达', '2026-03-30 11:15:00', '2026-03-30 11:16:00', NULL, NULL, 0, '2026-03-30 11:15:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1500. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_005', 'SQ20260330T00000005', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'pending_confirm', 'wechat', 62.40, 62.40, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, NULL, NULL, '测试:待确认收货', '2026-03-30 11:20:00', '2026-03-30 11:22:00', NULL, NULL, 0, '2026-03-30 11:20:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1501. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_006', 'SQ20260330T00000006', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'completed', 'wechat', 156.80, 156.80, 0.00, 10.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, '2026-03-30 14:00:00', 'SYS_ADMIN_001', '测试:已完结(含部分退款)', '2026-03-30 11:25:00', '2026-03-30 11:26:00', NULL, NULL, 0, '2026-03-30 11:25:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1502. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_007', 'SQ20260330T00000007', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'cancelled', NULL, 30.00, 0.00, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', '客户临时不需要', '2026-03-30 12:00:00', 'SYS_ADMIN_001', '同意取消', NULL, NULL, '测试:已取消', NULL, NULL, NULL, NULL, 0, '2026-03-30 10:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1503. INSERT INTO `biz_order` (`id`, `order_no`, `region_id`, `client_id`, `price_list_id`, `price_version`, `status`, `payment_method`, `total_amount`, `paid_amount`, `receivable_amount`, `refund_amount`, `contact_person`, `contact_phone`, `delivery_address`, `cancel_reason`, `cancel_review_time`, `cancel_reviewed_by`, `cancel_review_note`, `completed_time`, `completed_by`, `remark`, `payment_time`, `delivery_assign_time`, `lock_operator_id`, `lock_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ORD_T_008', 'SQ20260330T00000008', 'REGION_001', 'U_CLIENT_20260330001', 'PL_T_001', 1, 'completed', 'offline', 54.00, 54.00, 0.00, 0.00, '演示客户甲', '13900003001', '河南省郑州市金水区文化路66号阳光小区3号楼2单元801', NULL, NULL, NULL, NULL, '2026-03-29 18:00:00', 'SYS_ADMIN_001', '测试:线下结算完成', '2026-03-29 17:00:00', '2026-03-29 17:05:00', NULL, NULL, 0, '2026-03-29 16:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1504. COMMIT;
  1505. -- ----------------------------
  1506. -- Table structure for biz_order_adjust
  1507. -- ----------------------------
  1508. DROP TABLE IF EXISTS `biz_order_adjust`;
  1509. CREATE TABLE `biz_order_adjust` (
  1510. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1511. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1512. `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID(调整项)',
  1513. `adjust_type` varchar(20) NOT NULL COMMENT '调整类型: reduce-减量, delete-删除, substitute-替代, add-补录',
  1514. `before_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整前数量',
  1515. `after_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整后数量',
  1516. `before_amount` decimal(12,2) DEFAULT NULL COMMENT '调整前金额',
  1517. `after_amount` decimal(12,2) DEFAULT NULL COMMENT '调整后金额',
  1518. `difference_amount` decimal(12,2) DEFAULT '0.00' COMMENT '差异金额(正数为增加,负数为退还)',
  1519. `reason` varchar(500) NOT NULL COMMENT '调整原因',
  1520. `snapshot_items_json` text COMMENT '调整后订单商品快照(JSON)',
  1521. `substitute_product_id` varchar(32) DEFAULT NULL COMMENT '替代商品ID(substitute类型时)',
  1522. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  1523. `operator_name` varchar(100) NOT NULL COMMENT '操作人姓名',
  1524. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1525. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1526. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1527. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1528. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1529. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1530. PRIMARY KEY (`id`),
  1531. KEY `idx_order_id` (`order_id`),
  1532. KEY `idx_order_item_id` (`order_item_id`)
  1533. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单调整记录表';
  1534. -- ----------------------------
  1535. -- Records of biz_order_adjust
  1536. -- ----------------------------
  1537. BEGIN;
  1538. INSERT INTO `biz_order_adjust` (`id`, `order_id`, `order_item_id`, `adjust_type`, `before_quantity`, `after_quantity`, `before_amount`, `after_amount`, `difference_amount`, `reason`, `substitute_product_id`, `operator_id`, `operator_name`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('ADJ_T_001', 'ORD_T_002', 'OI_T_002_02', 'reduce', 3.0000, 2.4300, 84.00, 68.04, -15.96, '备货不足,按实发减量', NULL, 'SYS_ADMIN_001', '系统管理员', 0, '2026-03-30 11:08:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1539. COMMIT;
  1540. -- ----------------------------
  1541. -- Table structure for biz_order_adjust_his
  1542. -- ----------------------------
  1543. DROP TABLE IF EXISTS `biz_order_adjust_his`;
  1544. CREATE TABLE `biz_order_adjust_his` (
  1545. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1546. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1547. `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
  1548. `adjust_type` varchar(20) NOT NULL COMMENT '调整类型',
  1549. `before_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整前数量',
  1550. `after_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整后数量',
  1551. `before_amount` decimal(12,2) DEFAULT NULL COMMENT '调整前金额',
  1552. `after_amount` decimal(12,2) DEFAULT NULL COMMENT '调整后金额',
  1553. `difference_amount` decimal(12,2) DEFAULT '0.00' COMMENT '差异金额',
  1554. `reason` varchar(500) NOT NULL COMMENT '调整原因',
  1555. `snapshot_items_json` text COMMENT '调整后订单商品快照(JSON)',
  1556. `substitute_product_id` varchar(32) DEFAULT NULL COMMENT '替代商品ID',
  1557. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  1558. `operator_name` varchar(100) NOT NULL COMMENT '操作人姓名',
  1559. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1560. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1561. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1562. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1563. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1564. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1565. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单调整记录历史表';
  1566. -- ----------------------------
  1567. -- Records of biz_order_adjust_his
  1568. -- ----------------------------
  1569. BEGIN;
  1570. COMMIT;
  1571. -- ----------------------------
  1572. -- Table structure for biz_order_his
  1573. -- ----------------------------
  1574. DROP TABLE IF EXISTS `biz_order_his`;
  1575. CREATE TABLE `biz_order_his` (
  1576. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1577. `order_no` varchar(50) NOT NULL COMMENT '订单编号',
  1578. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1579. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  1580. `price_list_id` varchar(32) NOT NULL COMMENT '使用的价格清单ID',
  1581. `price_version` int(11) NOT NULL COMMENT '价格版本号',
  1582. `status` varchar(30) NOT NULL DEFAULT 'pending_payment' COMMENT '订单状态',
  1583. `payment_method` varchar(20) DEFAULT NULL COMMENT '支付方式',
  1584. `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '订单总金额',
  1585. `paid_amount` decimal(12,2) DEFAULT '0.00' COMMENT '已付金额',
  1586. `receivable_amount` decimal(12,2) DEFAULT '0.00' COMMENT '应收金额',
  1587. `refund_amount` decimal(12,2) DEFAULT '0.00' COMMENT '退款金额',
  1588. `contact_person` varchar(100) DEFAULT NULL COMMENT '联系人',
  1589. `contact_phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
  1590. `delivery_address` varchar(500) DEFAULT NULL COMMENT '配送地址',
  1591. `cancel_reason` varchar(500) DEFAULT NULL COMMENT '取消原因',
  1592. `cancel_review_time` datetime DEFAULT NULL COMMENT '取消审核时间',
  1593. `cancel_reviewed_by` varchar(32) DEFAULT NULL COMMENT '取消审核人ID',
  1594. `cancel_review_note` varchar(500) DEFAULT NULL COMMENT '取消审核备注',
  1595. `completed_time` datetime DEFAULT NULL COMMENT '完结时间',
  1596. `completed_by` varchar(32) DEFAULT NULL COMMENT '完结人ID',
  1597. `remark` text COMMENT '订单备注',
  1598. `payment_time` datetime DEFAULT NULL COMMENT '支付时间',
  1599. `delivery_assign_time` datetime DEFAULT NULL COMMENT '配送分配时间',
  1600. `lock_operator_id` varchar(32) DEFAULT NULL COMMENT '锁定操作人ID',
  1601. `lock_time` datetime DEFAULT NULL COMMENT '锁定时间',
  1602. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1603. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1604. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1605. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1606. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1607. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1608. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单主表历史表';
  1609. -- ----------------------------
  1610. -- Records of biz_order_his
  1611. -- ----------------------------
  1612. BEGIN;
  1613. COMMIT;
  1614. -- ----------------------------
  1615. -- Table structure for biz_order_item
  1616. -- ----------------------------
  1617. DROP TABLE IF EXISTS `biz_order_item`;
  1618. CREATE TABLE `biz_order_item` (
  1619. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1620. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1621. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1622. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  1623. `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '数量',
  1624. `unit_price` decimal(10,2) NOT NULL COMMENT '单价',
  1625. `amount` decimal(12,2) DEFAULT '0.00' COMMENT '金额',
  1626. `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已配送数量',
  1627. `status` varchar(20) DEFAULT 'normal' COMMENT '项状态: normal-正常, reduced-已减量, deleted-已删除, substituted-已替代',
  1628. `note` varchar(500) DEFAULT NULL COMMENT '备注(如缺货原因)',
  1629. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1630. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1631. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1632. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1633. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1634. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1635. PRIMARY KEY (`id`),
  1636. KEY `idx_order_id` (`order_id`)
  1637. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单项表';
  1638. -- ----------------------------
  1639. -- Records of biz_order_item
  1640. -- ----------------------------
  1641. BEGIN;
  1642. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_001_01', 'ORD_T_001', 'PROD_T001', 'UNIT_001', 10.0000, 3.80, 38.00, 0.0000, 'normal', NULL, 0, '2026-03-30 11:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1643. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_001_02', 'ORD_T_001', 'PROD_T002', 'UNIT_001', 12.0000, 4.20, 50.40, 0.0000, 'normal', NULL, 0, '2026-03-30 11:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1644. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_002_01', 'ORD_T_002', 'PROD_T003', 'UNIT_002', 20.0000, 2.60, 52.00, 0.0000, 'normal', NULL, 0, '2026-03-30 11:05:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1645. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_002_02', 'ORD_T_002', 'PROD_T006', 'UNIT_002', 2.4300, 28.00, 68.04, 0.0000, 'normal', NULL, 0, '2026-03-30 11:05:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1646. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_003_01', 'ORD_T_003', 'PROD_T004', 'UNIT_003', 4.0000, 6.50, 26.00, 4.0000, 'normal', NULL, 0, '2026-03-30 11:10:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1647. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_003_02', 'ORD_T_003', 'PROD_T005', 'UNIT_002', 3.3100, 5.80, 19.20, 3.3100, 'normal', NULL, 0, '2026-03-30 11:10:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1648. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_004_01', 'ORD_T_004', 'PROD_T001', 'UNIT_001', 10.0000, 3.80, 38.00, 6.0000, 'normal', NULL, 0, '2026-03-30 11:15:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1649. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_004_02', 'ORD_T_004', 'PROD_T010', 'UNIT_001', 20.0000, 1.20, 24.00, 20.0000, 'normal', NULL, 0, '2026-03-30 11:15:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1650. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_004_03', 'ORD_T_004', 'PROD_T007', 'UNIT_005', 2.0000, 12.00, 24.00, 0.0000, 'normal', NULL, 0, '2026-03-30 11:15:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1651. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_005_01', 'ORD_T_005', 'PROD_T002', 'UNIT_001', 8.0000, 4.20, 33.60, 8.0000, 'normal', NULL, 0, '2026-03-30 11:20:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1652. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_005_02', 'ORD_T_005', 'PROD_T008', 'UNIT_006', 3.0000, 9.60, 28.80, 3.0000, 'normal', NULL, 0, '2026-03-30 11:20:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1653. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_006_01', 'ORD_T_006', 'PROD_T006', 'UNIT_002', 3.0000, 28.00, 84.00, 3.0000, 'normal', NULL, 0, '2026-03-30 11:25:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1654. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_006_02', 'ORD_T_006', 'PROD_T005', 'UNIT_002', 5.0000, 5.80, 29.00, 5.0000, 'normal', NULL, 0, '2026-03-30 11:25:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1655. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_006_03', 'ORD_T_006', 'PROD_T007', 'UNIT_005', 3.0000, 12.00, 36.00, 3.0000, 'normal', NULL, 0, '2026-03-30 11:25:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1656. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_006_04', 'ORD_T_006', 'PROD_T009', 'UNIT_004', 1.0000, 7.80, 7.80, 1.0000, 'normal', NULL, 0, '2026-03-30 11:25:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1657. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_007_01', 'ORD_T_007', 'PROD_T004', 'UNIT_003', 4.0000, 6.50, 26.00, 0.0000, 'normal', NULL, 0, '2026-03-30 10:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1658. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_007_02', 'ORD_T_007', 'PROD_T005', 'UNIT_002', 0.6900, 5.80, 4.00, 0.0000, 'normal', NULL, 0, '2026-03-30 10:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1659. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_008_01', 'ORD_T_008', 'PROD_T001', 'UNIT_001', 10.0000, 3.80, 38.00, 10.0000, 'normal', NULL, 0, '2026-03-29 16:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1660. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_008_02', 'ORD_T_008', 'PROD_T010', 'UNIT_001', 10.0000, 1.20, 12.00, 10.0000, 'normal', NULL, 0, '2026-03-29 16:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1661. INSERT INTO `biz_order_item` (`id`, `order_id`, `product_id`, `unit_id`, `quantity`, `unit_price`, `amount`, `delivered_quantity`, `status`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OI_T_008_03', 'ORD_T_008', 'PROD_T003', 'UNIT_002', 1.5400, 2.60, 4.00, 1.5400, 'normal', NULL, 0, '2026-03-29 16:30:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1662. COMMIT;
  1663. -- ----------------------------
  1664. -- Table structure for biz_order_item_his
  1665. -- ----------------------------
  1666. DROP TABLE IF EXISTS `biz_order_item_his`;
  1667. CREATE TABLE `biz_order_item_his` (
  1668. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1669. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1670. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1671. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  1672. `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '数量',
  1673. `unit_price` decimal(10,2) NOT NULL COMMENT '单价',
  1674. `amount` decimal(12,2) DEFAULT '0.00' COMMENT '金额',
  1675. `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已配送数量',
  1676. `status` varchar(20) DEFAULT 'normal' COMMENT '项状态',
  1677. `note` varchar(500) DEFAULT NULL COMMENT '备注',
  1678. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1679. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1680. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1681. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1682. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1683. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1684. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单项历史表';
  1685. -- ----------------------------
  1686. -- Records of biz_order_item_his
  1687. -- ----------------------------
  1688. BEGIN;
  1689. COMMIT;
  1690. -- ----------------------------
  1691. -- Table structure for biz_order_status_log
  1692. -- ----------------------------
  1693. DROP TABLE IF EXISTS `biz_order_status_log`;
  1694. CREATE TABLE `biz_order_status_log` (
  1695. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1696. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1697. `from_status` varchar(30) DEFAULT NULL COMMENT '变更前状态',
  1698. `to_status` varchar(30) NOT NULL COMMENT '变更后状态',
  1699. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  1700. `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
  1701. `reason` varchar(500) DEFAULT NULL COMMENT '变更原因',
  1702. `note` varchar(1000) DEFAULT NULL COMMENT '备注',
  1703. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1704. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1705. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1706. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1707. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1708. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1709. PRIMARY KEY (`id`),
  1710. KEY `idx_order_id` (`order_id`)
  1711. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单状态变更日志表';
  1712. -- ----------------------------
  1713. -- Records of biz_order_status_log
  1714. -- ----------------------------
  1715. BEGIN;
  1716. INSERT INTO `biz_order_status_log` (`id`, `order_id`, `from_status`, `to_status`, `operator_id`, `operator_role`, `reason`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OSL_T_001', 'ORD_T_001', NULL, 'pending_payment', 'U_CLIENT_20260330001', 'client', NULL, '下单', 0, '2026-03-30 11:00:00', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  1717. INSERT INTO `biz_order_status_log` (`id`, `order_id`, `from_status`, `to_status`, `operator_id`, `operator_role`, `reason`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OSL_T_002', 'ORD_T_002', 'pending_payment', 'pending_delivery', 'SYS_ADMIN_001', 'admin', NULL, '线下收款确认', 0, '2026-03-30 11:06:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1718. INSERT INTO `biz_order_status_log` (`id`, `order_id`, `from_status`, `to_status`, `operator_id`, `operator_role`, `reason`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OSL_T_003', 'ORD_T_003', 'pending_delivery', 'delivering', 'SYS_ADMIN_001', 'admin', NULL, '分配配送员', 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1719. INSERT INTO `biz_order_status_log` (`id`, `order_id`, `from_status`, `to_status`, `operator_id`, `operator_role`, `reason`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OSL_T_004', 'ORD_T_006', 'pending_confirm', 'completed', 'SYS_ADMIN_001', 'admin', NULL, '订单完结', 0, '2026-03-30 14:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1720. INSERT INTO `biz_order_status_log` (`id`, `order_id`, `from_status`, `to_status`, `operator_id`, `operator_role`, `reason`, `note`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('OSL_T_005', 'ORD_T_007', 'pending_payment', 'cancelled', 'SYS_ADMIN_001', 'admin', '用户申请', '审核通过', 0, '2026-03-30 12:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  1721. COMMIT;
  1722. -- ----------------------------
  1723. -- Table structure for biz_order_status_log_his
  1724. -- ----------------------------
  1725. DROP TABLE IF EXISTS `biz_order_status_log_his`;
  1726. CREATE TABLE `biz_order_status_log_his` (
  1727. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1728. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  1729. `from_status` varchar(30) DEFAULT NULL COMMENT '变更前状态',
  1730. `to_status` varchar(30) NOT NULL COMMENT '变更后状态',
  1731. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  1732. `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
  1733. `reason` varchar(500) DEFAULT NULL COMMENT '变更原因',
  1734. `note` varchar(1000) DEFAULT NULL COMMENT '备注',
  1735. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1736. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1737. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1738. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1739. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1740. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1741. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单状态变更日志历史表';
  1742. -- ----------------------------
  1743. -- Records of biz_order_status_log_his
  1744. -- ----------------------------
  1745. BEGIN;
  1746. COMMIT;
  1747. -- ----------------------------
  1748. -- Table structure for biz_price_list
  1749. -- ----------------------------
  1750. DROP TABLE IF EXISTS `biz_price_list`;
  1751. CREATE TABLE `biz_price_list` (
  1752. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1753. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1754. `supplier_id` varchar(32) NOT NULL COMMENT '选用供应商ID',
  1755. `version` int(11) DEFAULT '1' COMMENT '版本号',
  1756. `status` varchar(20) DEFAULT 'draft' COMMENT '状态: draft-草稿, pending-待生效, active-生效中, inactive-已失效',
  1757. `effective_time` datetime DEFAULT NULL COMMENT '生效时间',
  1758. `published_by` varchar(32) DEFAULT NULL COMMENT '发布人ID',
  1759. `published_time` datetime DEFAULT NULL COMMENT '发布时间',
  1760. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  1761. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1762. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1763. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1764. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1765. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1766. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1767. PRIMARY KEY (`id`),
  1768. KEY `idx_region_id` (`region_id`),
  1769. KEY `idx_status` (`status`)
  1770. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域价格清单表';
  1771. -- ----------------------------
  1772. -- Records of biz_price_list
  1773. -- ----------------------------
  1774. BEGIN;
  1775. INSERT INTO `biz_price_list` (`id`, `region_id`, `supplier_id`, `version`, `status`, `effective_time`, `published_by`, `published_time`, `remark`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PL_T_001', 'REGION_001', 'U_SUPPLIER_20260330001', 1, 'active', '2026-03-01 08:00:00', 'SYS_ADMIN_001', '2026-03-01 09:00:00', '测试用生效价格清单', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1776. COMMIT;
  1777. -- ----------------------------
  1778. -- Table structure for biz_price_list_his
  1779. -- ----------------------------
  1780. DROP TABLE IF EXISTS `biz_price_list_his`;
  1781. CREATE TABLE `biz_price_list_his` (
  1782. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1783. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1784. `supplier_id` varchar(32) NOT NULL COMMENT '选用供应商ID',
  1785. `version` int(11) DEFAULT '1' COMMENT '版本号',
  1786. `status` varchar(20) DEFAULT 'draft' COMMENT '状态',
  1787. `effective_time` datetime DEFAULT NULL COMMENT '生效时间',
  1788. `published_by` varchar(32) DEFAULT NULL COMMENT '发布人ID',
  1789. `published_time` datetime DEFAULT NULL COMMENT '发布时间',
  1790. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  1791. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1792. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1793. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1794. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1795. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1796. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1797. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域价格清单历史表';
  1798. -- ----------------------------
  1799. -- Records of biz_price_list_his
  1800. -- ----------------------------
  1801. BEGIN;
  1802. COMMIT;
  1803. -- ----------------------------
  1804. -- Table structure for biz_price_list_item
  1805. -- ----------------------------
  1806. DROP TABLE IF EXISTS `biz_price_list_item`;
  1807. CREATE TABLE `biz_price_list_item` (
  1808. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1809. `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
  1810. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1811. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  1812. `price` decimal(10,2) NOT NULL COMMENT '单价',
  1813. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1814. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1815. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1816. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1817. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  1818. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1819. PRIMARY KEY (`id`),
  1820. KEY `idx_price_list_id` (`price_list_id`)
  1821. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='价格清单项表';
  1822. -- ----------------------------
  1823. -- Records of biz_price_list_item
  1824. -- ----------------------------
  1825. BEGIN;
  1826. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_001', 'PL_T_001', 'PROD_T001', 'UNIT_001', 3.80, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1827. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_002', 'PL_T_001', 'PROD_T002', 'UNIT_001', 4.20, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1828. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_003', 'PL_T_001', 'PROD_T003', 'UNIT_002', 2.60, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1829. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_004', 'PL_T_001', 'PROD_T004', 'UNIT_003', 6.50, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1830. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_005', 'PL_T_001', 'PROD_T005', 'UNIT_002', 5.80, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1831. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_006', 'PL_T_001', 'PROD_T006', 'UNIT_002', 28.00, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1832. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_007', 'PL_T_001', 'PROD_T007', 'UNIT_005', 12.00, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1833. INSERT INTO `biz_price_list_item` (`id`, `price_list_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('PLI_T_008', 'PL_T_001', 'PROD_T010', 'UNIT_001', 1.20, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  1834. COMMIT;
  1835. -- ----------------------------
  1836. -- Table structure for biz_price_list_item_his
  1837. -- ----------------------------
  1838. DROP TABLE IF EXISTS `biz_price_list_item_his`;
  1839. CREATE TABLE `biz_price_list_item_his` (
  1840. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1841. `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
  1842. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1843. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  1844. `price` decimal(10,2) NOT NULL COMMENT '单价',
  1845. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1846. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1847. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1848. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1849. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1850. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  1851. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='价格清单项历史表';
  1852. -- ----------------------------
  1853. -- Records of biz_price_list_item_his
  1854. -- ----------------------------
  1855. BEGIN;
  1856. COMMIT;
  1857. -- ----------------------------
  1858. -- Table structure for biz_product_review
  1859. -- ----------------------------
  1860. DROP TABLE IF EXISTS `biz_product_review`;
  1861. CREATE TABLE `biz_product_review` (
  1862. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1863. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  1864. `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
  1865. `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
  1866. `user_id` varchar(32) NOT NULL COMMENT '评价用户ID',
  1867. `user_name` varchar(100) DEFAULT NULL COMMENT '评价用户姓名',
  1868. `rating` tinyint(4) NOT NULL DEFAULT '5' COMMENT '评分(1-5星)',
  1869. `rating_tags` varchar(500) DEFAULT NULL COMMENT '评价标签,多个逗号分隔',
  1870. `content` text COMMENT '评价内容',
  1871. `is_anonymous` int(11) DEFAULT '0' COMMENT '是否匿名:0-否, 1-是',
  1872. `reply_content` text COMMENT '商家回复内容',
  1873. `reply_time` datetime DEFAULT NULL COMMENT '商家回复时间',
  1874. `reply_by` varchar(32) DEFAULT NULL COMMENT '回复人ID',
  1875. `reply_by_name` varchar(100) DEFAULT NULL COMMENT '回复人姓名',
  1876. `like_count` int(11) DEFAULT '0' COMMENT '点赞数',
  1877. `is_top` int(11) DEFAULT '0' COMMENT '是否置顶:0-否, 1-是',
  1878. `status` varchar(20) DEFAULT 'pending' COMMENT '状态:pending-待审核, approved-已通过, rejected-已拒绝',
  1879. `reject_reason` varchar(500) DEFAULT NULL COMMENT '拒绝原因',
  1880. `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
  1881. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1882. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1883. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1884. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1885. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1886. PRIMARY KEY (`id`),
  1887. KEY `idx_product_id` (`product_id`),
  1888. KEY `idx_order_id` (`order_id`),
  1889. KEY `idx_user_id` (`user_id`),
  1890. KEY `idx_rating` (`rating`),
  1891. KEY `idx_status` (`status`),
  1892. KEY `idx_create_at` (`create_at`)
  1893. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品售后评价表';
  1894. -- ----------------------------
  1895. -- Records of biz_product_review
  1896. -- ----------------------------
  1897. BEGIN;
  1898. COMMIT;
  1899. -- ----------------------------
  1900. -- Table structure for biz_product_review_his
  1901. -- ----------------------------
  1902. DROP TABLE IF EXISTS `biz_product_review_his`;
  1903. CREATE TABLE `biz_product_review_his` (
  1904. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1905. `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
  1906. `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
  1907. `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
  1908. `user_id` varchar(32) DEFAULT NULL COMMENT '评价用户ID',
  1909. `user_name` varchar(100) DEFAULT NULL COMMENT '评价用户姓名',
  1910. `rating` tinyint(4) DEFAULT '5' COMMENT '评分',
  1911. `rating_tags` varchar(500) DEFAULT NULL COMMENT '评价标签',
  1912. `content` text COMMENT '评价内容',
  1913. `is_anonymous` int(11) DEFAULT '0' COMMENT '是否匿名',
  1914. `reply_content` text COMMENT '商家回复内容',
  1915. `reply_time` datetime DEFAULT NULL COMMENT '商家回复时间',
  1916. `reply_by` varchar(32) DEFAULT NULL COMMENT '回复人ID',
  1917. `reply_by_name` varchar(100) DEFAULT NULL COMMENT '回复人姓名',
  1918. `like_count` int(11) DEFAULT '0' COMMENT '点赞数',
  1919. `is_top` int(11) DEFAULT '0' COMMENT '是否置顶',
  1920. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  1921. `reject_reason` varchar(500) DEFAULT NULL COMMENT '拒绝原因',
  1922. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  1923. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1924. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1925. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1926. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1927. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  1928. PRIMARY KEY (`id`)
  1929. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品售后评价历史表';
  1930. -- ----------------------------
  1931. -- Records of biz_product_review_his
  1932. -- ----------------------------
  1933. BEGIN;
  1934. COMMIT;
  1935. -- ----------------------------
  1936. -- Table structure for biz_product_review_media
  1937. -- ----------------------------
  1938. DROP TABLE IF EXISTS `biz_product_review_media`;
  1939. CREATE TABLE `biz_product_review_media` (
  1940. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1941. `review_id` varchar(32) NOT NULL COMMENT '评价ID',
  1942. `media_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '媒体类型:image-图片, video-视频',
  1943. `file_url` varchar(500) NOT NULL COMMENT '文件URL地址',
  1944. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL(视频时使用)',
  1945. `sort_order` int(11) DEFAULT '0' COMMENT '排序(数字越小越靠前)',
  1946. `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
  1947. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1948. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1949. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1950. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1951. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1952. PRIMARY KEY (`id`),
  1953. KEY `idx_review_id` (`review_id`),
  1954. KEY `idx_sort_order` (`sort_order`)
  1955. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品评价媒体表';
  1956. -- ----------------------------
  1957. -- Records of biz_product_review_media
  1958. -- ----------------------------
  1959. BEGIN;
  1960. COMMIT;
  1961. -- ----------------------------
  1962. -- Table structure for biz_product_review_media_his
  1963. -- ----------------------------
  1964. DROP TABLE IF EXISTS `biz_product_review_media_his`;
  1965. CREATE TABLE `biz_product_review_media_his` (
  1966. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1967. `review_id` varchar(32) DEFAULT NULL COMMENT '评价ID',
  1968. `media_type` varchar(20) DEFAULT 'image' COMMENT '媒体类型',
  1969. `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
  1970. `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
  1971. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  1972. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  1973. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  1974. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  1975. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  1976. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  1977. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  1978. PRIMARY KEY (`id`)
  1979. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品评价媒体历史表';
  1980. -- ----------------------------
  1981. -- Records of biz_product_review_media_his
  1982. -- ----------------------------
  1983. BEGIN;
  1984. COMMIT;
  1985. -- ----------------------------
  1986. -- Table structure for biz_quotation
  1987. -- ----------------------------
  1988. DROP TABLE IF EXISTS `biz_quotation`;
  1989. CREATE TABLE `biz_quotation` (
  1990. `id` varchar(32) NOT NULL COMMENT '主键ID',
  1991. `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
  1992. `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
  1993. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  1994. `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待审核, approved-已通过, rejected-已拒绝',
  1995. `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '报价总金额',
  1996. `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
  1997. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  1998. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1999. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2000. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2001. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2002. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2003. PRIMARY KEY (`id`),
  2004. KEY `idx_inquiry_id` (`inquiry_id`),
  2005. KEY `idx_supplier_id` (`supplier_id`),
  2006. KEY `idx_region_id` (`region_id`)
  2007. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商报价单表';
  2008. -- ----------------------------
  2009. -- Records of biz_quotation
  2010. -- ----------------------------
  2011. BEGIN;
  2012. INSERT INTO `biz_quotation` (`id`, `inquiry_id`, `supplier_id`, `region_id`, `status`, `total_amount`, `submit_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUO_T_001', 'INQ_T_001', 'U_SUPPLIER_20260330001', 'REGION_001', 'selected', 11.80, '2026-03-26 10:00:00', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', '2026-03-30 13:48:42', NULL);
  2013. INSERT INTO `biz_quotation` (`id`, `inquiry_id`, `supplier_id`, `region_id`, `status`, `total_amount`, `submit_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUO_T_002', 'INQ_T_001', 'U_SUPPLIER_20260330002', 'REGION_002', 'submitted', 8.40, '2026-03-28 11:00:00', 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', '2026-03-30 13:48:42', NULL);
  2014. COMMIT;
  2015. -- ----------------------------
  2016. -- Table structure for biz_quotation_his
  2017. -- ----------------------------
  2018. DROP TABLE IF EXISTS `biz_quotation_his`;
  2019. CREATE TABLE `biz_quotation_his` (
  2020. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2021. `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
  2022. `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
  2023. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  2024. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  2025. `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '报价总金额',
  2026. `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
  2027. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2028. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2029. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2030. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2031. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2032. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2033. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商报价单历史表';
  2034. -- ----------------------------
  2035. -- Records of biz_quotation_his
  2036. -- ----------------------------
  2037. BEGIN;
  2038. COMMIT;
  2039. -- ----------------------------
  2040. -- Table structure for biz_quotation_item
  2041. -- ----------------------------
  2042. DROP TABLE IF EXISTS `biz_quotation_item`;
  2043. CREATE TABLE `biz_quotation_item` (
  2044. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2045. `quotation_id` varchar(32) NOT NULL COMMENT '报价单ID',
  2046. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  2047. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  2048. `price` decimal(10,2) NOT NULL COMMENT '单价',
  2049. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2050. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2051. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2052. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2053. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2054. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2055. PRIMARY KEY (`id`),
  2056. KEY `idx_quotation_id` (`quotation_id`)
  2057. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='报价单项表';
  2058. -- ----------------------------
  2059. -- Records of biz_quotation_item
  2060. -- ----------------------------
  2061. BEGIN;
  2062. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_01', 'QUO_T_001', 'PROD_T001', 'UNIT_001', 3.80, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2063. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_02', 'QUO_T_001', 'PROD_T002', 'UNIT_001', 4.20, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2064. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_03', 'QUO_T_001', 'PROD_T003', 'UNIT_002', 2.60, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2065. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_04', 'QUO_T_001', 'PROD_T010', 'UNIT_001', 1.20, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2066. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_05', 'QUO_T_002', 'PROD_T001', 'UNIT_001', 3.90, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2067. INSERT INTO `biz_quotation_item` (`id`, `quotation_id`, `product_id`, `unit_id`, `price`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('QUOI_T_06', 'QUO_T_002', 'PROD_T002', 'UNIT_001', 4.50, 0, '2026-03-30 10:00:00', 'SYS_ADMIN_001', 'SQL测试数据', NULL, NULL);
  2068. COMMIT;
  2069. -- ----------------------------
  2070. -- Table structure for biz_quotation_item_his
  2071. -- ----------------------------
  2072. DROP TABLE IF EXISTS `biz_quotation_item_his`;
  2073. CREATE TABLE `biz_quotation_item_his` (
  2074. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2075. `quotation_id` varchar(32) NOT NULL COMMENT '报价单ID',
  2076. `product_id` varchar(32) NOT NULL COMMENT '商品ID',
  2077. `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
  2078. `price` decimal(10,2) NOT NULL COMMENT '单价',
  2079. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2080. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2081. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2082. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2083. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2084. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2085. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='报价单项历史表';
  2086. -- ----------------------------
  2087. -- Records of biz_quotation_item_his
  2088. -- ----------------------------
  2089. BEGIN;
  2090. COMMIT;
  2091. -- ----------------------------
  2092. -- Table structure for biz_refund
  2093. -- ----------------------------
  2094. DROP TABLE IF EXISTS `biz_refund`;
  2095. CREATE TABLE `biz_refund` (
  2096. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2097. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2098. `refund_no` varchar(50) NOT NULL COMMENT '退款单编号',
  2099. `refund_amount` decimal(12,2) NOT NULL COMMENT '退款金额',
  2100. `refund_method` varchar(20) NOT NULL COMMENT '退款方式: wechat-微信原路退回, offline-线下冲销',
  2101. `refund_no_wechat` varchar(100) DEFAULT NULL COMMENT '微信退款单号',
  2102. `refund_time` datetime DEFAULT NULL COMMENT '退款时间',
  2103. `refund_result` varchar(20) DEFAULT 'success' COMMENT '退款结果: success-成功, failed-失败, processing-处理中',
  2104. `refund_fail_reason` varchar(500) DEFAULT NULL COMMENT '退款失败原因',
  2105. `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待处理, success-成功, failed-失败',
  2106. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2107. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2108. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2109. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2110. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2111. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2112. PRIMARY KEY (`id`),
  2113. UNIQUE KEY `uk_refund_no` (`refund_no`),
  2114. KEY `idx_order_id` (`order_id`)
  2115. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='退款记录表';
  2116. -- ----------------------------
  2117. -- Records of biz_refund
  2118. -- ----------------------------
  2119. BEGIN;
  2120. INSERT INTO `biz_refund` (`id`, `order_id`, `refund_no`, `refund_amount`, `refund_method`, `refund_no_wechat`, `refund_time`, `refund_result`, `refund_fail_reason`, `status`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('REF_T_001', 'ORD_T_006', 'REF20260330T00000001', 10.00, 'wechat', 'WX_REFUND_DEMO_001', '2026-03-30 14:10:00', 'success', NULL, 'success', 0, '2026-03-30 14:10:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2121. COMMIT;
  2122. -- ----------------------------
  2123. -- Table structure for biz_refund_his
  2124. -- ----------------------------
  2125. DROP TABLE IF EXISTS `biz_refund_his`;
  2126. CREATE TABLE `biz_refund_his` (
  2127. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2128. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2129. `refund_no` varchar(50) NOT NULL COMMENT '退款单编号',
  2130. `refund_amount` decimal(12,2) NOT NULL COMMENT '退款金额',
  2131. `refund_method` varchar(20) NOT NULL COMMENT '退款方式',
  2132. `refund_no_wechat` varchar(100) DEFAULT NULL COMMENT '微信退款单号',
  2133. `refund_time` datetime DEFAULT NULL COMMENT '退款时间',
  2134. `refund_result` varchar(20) DEFAULT 'success' COMMENT '退款结果',
  2135. `refund_fail_reason` varchar(500) DEFAULT NULL COMMENT '退款失败原因',
  2136. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  2137. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2138. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2139. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2140. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2141. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2142. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2143. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='退款记录历史表';
  2144. -- ----------------------------
  2145. -- Records of biz_refund_his
  2146. -- ----------------------------
  2147. BEGIN;
  2148. COMMIT;
  2149. -- ----------------------------
  2150. -- Table structure for biz_settlement
  2151. -- ----------------------------
  2152. DROP TABLE IF EXISTS `biz_settlement`;
  2153. CREATE TABLE `biz_settlement` (
  2154. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2155. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2156. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  2157. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  2158. `amount` decimal(12,2) NOT NULL COMMENT '结算金额',
  2159. `settlement_method` varchar(20) NOT NULL COMMENT '结算方式: transfer-转账, cash-现金, other-其他',
  2160. `settlement_time` datetime DEFAULT NULL COMMENT '结算时间',
  2161. `settlement_file_url` varchar(500) DEFAULT NULL COMMENT '结算凭证文件URL',
  2162. `settlement_note` varchar(500) DEFAULT NULL COMMENT '结算备注',
  2163. `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待确认, completed-已完成',
  2164. `reviewed_by` varchar(32) DEFAULT NULL COMMENT '审核人ID',
  2165. `reviewed_time` datetime DEFAULT NULL COMMENT '审核时间',
  2166. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2167. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2168. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2169. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2170. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2171. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2172. PRIMARY KEY (`id`),
  2173. KEY `idx_order_id` (`order_id`),
  2174. KEY `idx_client_id` (`client_id`),
  2175. KEY `idx_status` (`status`)
  2176. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='线下结算记录表';
  2177. -- ----------------------------
  2178. -- Records of biz_settlement
  2179. -- ----------------------------
  2180. BEGIN;
  2181. INSERT INTO `biz_settlement` (`id`, `order_id`, `client_id`, `region_id`, `amount`, `settlement_method`, `settlement_time`, `settlement_file_url`, `settlement_note`, `status`, `reviewed_by`, `reviewed_time`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('SET_T_001', 'ORD_T_008', 'U_CLIENT_20260330001', 'REGION_001', 54.00, 'transfer', '2026-03-29 18:00:00', 'https://example.com/files/settlement-demo.png', '对公转账已到账', 'completed', 'SYS_ADMIN_001', '2026-03-29 18:00:00', 0, '2026-03-29 18:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2182. COMMIT;
  2183. -- ----------------------------
  2184. -- Table structure for biz_settlement_his
  2185. -- ----------------------------
  2186. DROP TABLE IF EXISTS `biz_settlement_his`;
  2187. CREATE TABLE `biz_settlement_his` (
  2188. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2189. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2190. `client_id` varchar(32) NOT NULL COMMENT '客户ID',
  2191. `region_id` varchar(32) NOT NULL COMMENT '区域ID',
  2192. `amount` decimal(12,2) NOT NULL COMMENT '结算金额',
  2193. `settlement_method` varchar(20) NOT NULL COMMENT '结算方式',
  2194. `settlement_time` datetime DEFAULT NULL COMMENT '结算时间',
  2195. `settlement_file_url` varchar(500) DEFAULT NULL COMMENT '结算凭证文件URL',
  2196. `settlement_note` varchar(500) DEFAULT NULL COMMENT '结算备注',
  2197. `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
  2198. `reviewed_by` varchar(32) DEFAULT NULL COMMENT '审核人ID',
  2199. `reviewed_time` datetime DEFAULT NULL COMMENT '审核时间',
  2200. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2201. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2202. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2203. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2204. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2205. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2206. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='线下结算记录历史表';
  2207. -- ----------------------------
  2208. -- Records of biz_settlement_his
  2209. -- ----------------------------
  2210. BEGIN;
  2211. COMMIT;
  2212. -- ----------------------------
  2213. -- Table structure for biz_system_config
  2214. -- ----------------------------
  2215. DROP TABLE IF EXISTS `biz_system_config`;
  2216. CREATE TABLE `biz_system_config` (
  2217. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2218. `config_key` varchar(100) NOT NULL COMMENT '配置键',
  2219. `config_value` text COMMENT '配置值',
  2220. `config_type` varchar(50) DEFAULT 'string' COMMENT '配置类型: string, number, boolean, json',
  2221. `config_name` varchar(100) NOT NULL COMMENT '配置名称',
  2222. `config_group` varchar(50) DEFAULT NULL COMMENT '配置分组',
  2223. `description` varchar(500) DEFAULT NULL COMMENT '描述',
  2224. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-禁用, 1-启用',
  2225. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2226. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2227. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2228. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2229. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2230. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2231. PRIMARY KEY (`id`),
  2232. UNIQUE KEY `uk_config_key` (`config_key`),
  2233. KEY `idx_config_group` (`config_group`),
  2234. KEY `idx_is_del` (`is_del`)
  2235. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统配置表';
  2236. -- ----------------------------
  2237. -- Records of biz_system_config
  2238. -- ----------------------------
  2239. BEGIN;
  2240. INSERT INTO `biz_system_config` (`id`, `config_key`, `config_value`, `config_type`, `config_name`, `config_group`, `description`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFG004', 'estimated_delivery_minutes', '60', 'number', '预计配送时长', 'delivery', '预计配送完成时间(分钟)', 1, 0, '2026-03-28 08:43:55', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2241. INSERT INTO `biz_system_config` (`id`, `config_key`, `config_value`, `config_type`, `config_name`, `config_group`, `description`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFG005', 'warning_minutes', '15', 'number', '预警提前时间', 'delivery', '配送时效预警提前时间(分钟)', 1, 0, '2026-03-28 08:43:55', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2242. INSERT INTO `biz_system_config` (`id`, `config_key`, `config_value`, `config_type`, `config_name`, `config_group`, `description`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFG008', 'auto_cancel_minutes', '30', 'number', '订单自动取消时间', 'order', '超时未支付自动取消订单(分钟)', 1, 0, '2026-03-28 08:43:55', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2243. INSERT INTO `biz_system_config` (`id`, `config_key`, `config_value`, `config_type`, `config_name`, `config_group`, `description`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFG_MAP_001', 'china_map_geojson', '{\"type\":\"FeatureCollection\",\"features\":[]}', 'json', '中国地图GeoJSON数据', 'map', 'ECharts地图渲染所需的GeoJSON数据', 1, 0, '2026-03-28 09:29:26', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2244. INSERT INTO `biz_system_config` (`id`, `config_key`, `config_value`, `config_type`, `config_name`, `config_group`, `description`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CFG_VER_001', 'system_version', 'v1.0.0', 'string', '系统版本号', 'system', '当前系统版本号', 1, 0, '2026-03-28 09:29:26', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2245. COMMIT;
  2246. -- ----------------------------
  2247. -- Table structure for biz_system_config_his
  2248. -- ----------------------------
  2249. DROP TABLE IF EXISTS `biz_system_config_his`;
  2250. CREATE TABLE `biz_system_config_his` (
  2251. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2252. `config_key` varchar(100) NOT NULL COMMENT '配置键',
  2253. `config_value` text COMMENT '配置值',
  2254. `config_type` varchar(50) DEFAULT 'string' COMMENT '配置类型',
  2255. `config_name` varchar(100) NOT NULL COMMENT '配置名称',
  2256. `config_group` varchar(50) DEFAULT NULL COMMENT '配置分组',
  2257. `description` varchar(500) DEFAULT NULL COMMENT '描述',
  2258. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
  2259. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
  2260. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2261. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2262. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2263. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2264. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2265. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2266. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统配置历史表';
  2267. -- ----------------------------
  2268. -- Records of biz_system_config_his
  2269. -- ----------------------------
  2270. BEGIN;
  2271. COMMIT;
  2272. -- ----------------------------
  2273. -- Table structure for biz_wechat_pay
  2274. -- ----------------------------
  2275. DROP TABLE IF EXISTS `biz_wechat_pay`;
  2276. CREATE TABLE `biz_wechat_pay` (
  2277. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2278. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2279. `out_trade_no` varchar(64) NOT NULL COMMENT '商户订单号',
  2280. `transaction_id` varchar(64) DEFAULT NULL COMMENT '微信支付订单号',
  2281. `total_fee` int(11) NOT NULL COMMENT '支付金额(分)',
  2282. `cash_fee` int(11) DEFAULT NULL COMMENT '现金支付金额(分)',
  2283. `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
  2284. `trade_state` varchar(20) DEFAULT NULL COMMENT '交易状态: SUCCESS-支付成功, REFUND-转入退款, NOTPAY-未支付, CLOSED-已关闭, PAYERROR-支付失败',
  2285. `trade_state_desc` varchar(200) DEFAULT NULL COMMENT '交易状态描述',
  2286. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2287. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2288. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2289. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2290. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2291. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2292. PRIMARY KEY (`id`),
  2293. UNIQUE KEY `uk_out_trade_no` (`out_trade_no`),
  2294. KEY `idx_order_id` (`order_id`),
  2295. KEY `idx_trade_state` (`trade_state`)
  2296. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信支付订单表';
  2297. -- ----------------------------
  2298. -- Records of biz_wechat_pay
  2299. -- ----------------------------
  2300. BEGIN;
  2301. INSERT INTO `biz_wechat_pay` (`id`, `order_id`, `out_trade_no`, `transaction_id`, `total_fee`, `cash_fee`, `pay_time`, `trade_state`, `trade_state_desc`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('WXP_T_001', 'ORD_T_003', 'OUT20260330T00000003', 'WX42000020260330123456789012', 4520, 4520, '2026-03-30 11:10:30', 'SUCCESS', '支付成功', 0, '2026-03-30 11:10:30', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  2302. INSERT INTO `biz_wechat_pay` (`id`, `order_id`, `out_trade_no`, `transaction_id`, `total_fee`, `cash_fee`, `pay_time`, `trade_state`, `trade_state_desc`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('WXP_T_002', 'ORD_T_004', 'OUT20260330T00000004', 'WX42000020260330123456789014', 8600, 8600, '2026-03-30 11:15:20', 'SUCCESS', '支付成功', 0, '2026-03-30 11:15:20', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  2303. INSERT INTO `biz_wechat_pay` (`id`, `order_id`, `out_trade_no`, `transaction_id`, `total_fee`, `cash_fee`, `pay_time`, `trade_state`, `trade_state_desc`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('WXP_T_003', 'ORD_T_005', 'OUT20260330T00000005', 'WX42000020260330123456789015', 6240, 6240, '2026-03-30 11:20:20', 'SUCCESS', '支付成功', 0, '2026-03-30 11:20:20', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  2304. INSERT INTO `biz_wechat_pay` (`id`, `order_id`, `out_trade_no`, `transaction_id`, `total_fee`, `cash_fee`, `pay_time`, `trade_state`, `trade_state_desc`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('WXP_T_004', 'ORD_T_006', 'OUT20260330T00000006', 'WX42000020260330123456789013', 15680, 15680, '2026-03-30 11:25:30', 'SUCCESS', '支付成功', 0, '2026-03-30 11:25:30', 'U_CLIENT_20260330001', '演示客户甲', NULL, NULL);
  2305. COMMIT;
  2306. -- ----------------------------
  2307. -- Table structure for biz_wechat_pay_his
  2308. -- ----------------------------
  2309. DROP TABLE IF EXISTS `biz_wechat_pay_his`;
  2310. CREATE TABLE `biz_wechat_pay_his` (
  2311. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2312. `order_id` varchar(32) NOT NULL COMMENT '订单ID',
  2313. `out_trade_no` varchar(64) NOT NULL COMMENT '商户订单号',
  2314. `transaction_id` varchar(64) DEFAULT NULL COMMENT '微信支付订单号',
  2315. `total_fee` int(11) NOT NULL COMMENT '支付金额(分)',
  2316. `cash_fee` int(11) DEFAULT NULL COMMENT '现金支付金额(分)',
  2317. `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
  2318. `trade_state` varchar(20) DEFAULT NULL COMMENT '交易状态',
  2319. `trade_state_desc` varchar(200) DEFAULT NULL COMMENT '交易状态描述',
  2320. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2321. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2322. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2323. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2324. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2325. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2326. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信支付订单历史表';
  2327. -- ----------------------------
  2328. -- Records of biz_wechat_pay_his
  2329. -- ----------------------------
  2330. BEGIN;
  2331. COMMIT;
  2332. -- ----------------------------
  2333. -- Table structure for sys_audit_log
  2334. -- ----------------------------
  2335. DROP TABLE IF EXISTS `sys_audit_log`;
  2336. CREATE TABLE `sys_audit_log` (
  2337. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2338. `module` varchar(50) NOT NULL COMMENT '模块: user-用户, region-区域, inquiry-询价, quotation-报价, price-价格, order-订单, delivery-配送, settlement-结算',
  2339. `operation` varchar(50) NOT NULL COMMENT '操作类型: create-创建, update-更新, delete-删除, login-登录, logout-登出, publish-发布, cancel-取消, refund-退款, settle-结算等',
  2340. `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
  2341. `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
  2342. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  2343. `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
  2344. `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
  2345. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2346. `request_method` varchar(10) DEFAULT NULL COMMENT '请求方法',
  2347. `request_url` varchar(500) DEFAULT NULL COMMENT '请求URL',
  2348. `request_params` text COMMENT '请求参数',
  2349. `response_result` text COMMENT '响应结果',
  2350. `error_message` varchar(1000) DEFAULT NULL COMMENT '错误信息',
  2351. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2352. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2353. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2354. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2355. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2356. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2357. PRIMARY KEY (`id`),
  2358. KEY `idx_module` (`module`),
  2359. KEY `idx_operation` (`operation`),
  2360. KEY `idx_target_id` (`target_id`),
  2361. KEY `idx_operator_id` (`operator_id`),
  2362. KEY `idx_create_at` (`create_at`)
  2363. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='审计日志表';
  2364. -- ----------------------------
  2365. -- Records of sys_audit_log
  2366. -- ----------------------------
  2367. BEGIN;
  2368. INSERT INTO `sys_audit_log` (`id`, `module`, `operation`, `target_id`, `target_type`, `operator_id`, `operator_name`, `operator_role`, `ip_address`, `request_method`, `request_url`, `request_params`, `response_result`, `error_message`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AUD_T_001', 'order', 'publish', 'PL_T_001', 'price_list', 'SYS_ADMIN_001', '系统管理员', 'admin', '127.0.0.1', 'POST', '/api/web/price-list/publish', NULL, NULL, NULL, 0, '2026-03-01 09:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2369. INSERT INTO `sys_audit_log` (`id`, `module`, `operation`, `target_id`, `target_type`, `operator_id`, `operator_name`, `operator_role`, `ip_address`, `request_method`, `request_url`, `request_params`, `response_result`, `error_message`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AUD_T_002', 'order', 'update', 'ORD_T_006', 'order', 'SYS_ADMIN_001', '系统管理员', 'admin', '127.0.0.1', 'PATCH', '/api/web/orders/ORD_T_006', NULL, NULL, NULL, 0, '2026-03-30 14:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2370. INSERT INTO `sys_audit_log` (`id`, `module`, `operation`, `target_id`, `target_type`, `operator_id`, `operator_name`, `operator_role`, `ip_address`, `request_method`, `request_url`, `request_params`, `response_result`, `error_message`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('AUD_T_003', 'delivery', 'create', 'TASK_T_003', 'delivery_task', 'SYS_ADMIN_001', '系统管理员', 'admin', '127.0.0.1', 'POST', '/api/web/delivery-tasks', NULL, NULL, NULL, 0, '2026-03-30 11:12:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2371. COMMIT;
  2372. -- ----------------------------
  2373. -- Table structure for sys_audit_log_his
  2374. -- ----------------------------
  2375. DROP TABLE IF EXISTS `sys_audit_log_his`;
  2376. CREATE TABLE `sys_audit_log_his` (
  2377. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2378. `module` varchar(50) NOT NULL COMMENT '模块: user-用户, region-区域, inquiry-询价, quotation-报价, price-价格, order-订单, delivery-配送, settlement-结算',
  2379. `operation` varchar(50) NOT NULL COMMENT '操作类型: create-创建, update-更新, delete-删除, login-登录, logout-登出, publish-发布, cancel-取消, refund-退款, settle-结算等',
  2380. `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
  2381. `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
  2382. `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
  2383. `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
  2384. `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
  2385. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2386. `request_method` varchar(10) DEFAULT NULL COMMENT '请求方法',
  2387. `request_url` varchar(500) DEFAULT NULL COMMENT '请求URL',
  2388. `request_params` text COMMENT '请求参数',
  2389. `response_result` text COMMENT '响应结果',
  2390. `error_message` varchar(1000) DEFAULT NULL COMMENT '错误信息',
  2391. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2392. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2393. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2394. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2395. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2396. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2397. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='审计日志历史表';
  2398. -- ----------------------------
  2399. -- Records of sys_audit_log_his
  2400. -- ----------------------------
  2401. BEGIN;
  2402. COMMIT;
  2403. -- ----------------------------
  2404. -- Table structure for sys_comment
  2405. -- ----------------------------
  2406. DROP TABLE IF EXISTS `sys_comment`;
  2407. CREATE TABLE `sys_comment` (
  2408. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2409. `parent_id` varchar(32) DEFAULT NULL COMMENT '父评论ID',
  2410. `author` varchar(100) NOT NULL COMMENT '评论者',
  2411. `author_id` varchar(32) DEFAULT NULL COMMENT '评论者ID',
  2412. `content` varchar(1000) NOT NULL COMMENT '评论内容',
  2413. `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
  2414. `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
  2415. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2416. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2417. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2418. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2419. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2420. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2421. PRIMARY KEY (`id`),
  2422. KEY `idx_parent_id` (`parent_id`),
  2423. KEY `idx_target` (`target_type`,`target_id`),
  2424. KEY `idx_create_at` (`create_at`)
  2425. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统评论表';
  2426. -- ----------------------------
  2427. -- Records of sys_comment
  2428. -- ----------------------------
  2429. BEGIN;
  2430. INSERT INTO `sys_comment` (`id`, `parent_id`, `author`, `author_id`, `content`, `target_type`, `target_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CMT_001', NULL, '白夜', 'USR_001', '系统上线测试评论,期待使用!', 'system', 'feedback', 0, '2026-03-28 10:00:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2431. INSERT INTO `sys_comment` (`id`, `parent_id`, `author`, `author_id`, `content`, `target_type`, `target_id`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('CMT_002', 'CMT_001', '星河', 'USR_002', '确实很好用!', 'system', 'feedback', 0, '2026-03-28 10:15:00', 'SYS_ADMIN_001', '系统管理员', NULL, NULL);
  2432. COMMIT;
  2433. -- ----------------------------
  2434. -- Table structure for sys_login_log
  2435. -- ----------------------------
  2436. DROP TABLE IF EXISTS `sys_login_log`;
  2437. CREATE TABLE `sys_login_log` (
  2438. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2439. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  2440. `username` varchar(50) NOT NULL COMMENT '用户名',
  2441. `role` varchar(20) DEFAULT NULL COMMENT '用户角色',
  2442. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2443. `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理',
  2444. `login_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  2445. `logout_time` datetime DEFAULT NULL COMMENT '登出时间',
  2446. `login_result` varchar(20) DEFAULT 'success' COMMENT '登录结果: success-成功, failed-失败',
  2447. `fail_reason` varchar(200) DEFAULT NULL COMMENT '失败原因',
  2448. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2449. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2450. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2451. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2452. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2453. PRIMARY KEY (`id`),
  2454. KEY `idx_user_id` (`user_id`),
  2455. KEY `idx_login_time` (`login_time`)
  2456. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='登录日志表';
  2457. -- ----------------------------
  2458. -- Records of sys_login_log
  2459. -- ----------------------------
  2460. BEGIN;
  2461. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('003B5BF1E48B446586E1E05D61B1E531', 'U_CLIENT_20260330002', 'client02', 'client', '127.0.0.1', NULL, '2026-03-30 12:20:25', NULL, 'success', NULL, '2026-03-30 12:20:25', NULL, NULL, '2026-03-30 12:20:25', NULL);
  2462. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('01C49289C131480EB786B9311A02DECD', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-30 23:25:21', NULL, 'success', NULL, '2026-03-30 23:25:21', NULL, NULL, '2026-03-30 23:25:21', NULL);
  2463. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('03141D61E56E4D00A68D50707812BB3F', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 10:49:52', NULL, 'success', NULL, '2026-03-27 10:49:52', NULL, NULL, '2026-03-27 10:49:52', NULL);
  2464. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0CC0A0D5980D48E8BAC620DDB88BDF9F', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 13:20:09', NULL, 'success', NULL, '2026-03-27 13:20:09', NULL, NULL, '2026-03-27 13:20:09', NULL);
  2465. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1E054F9A611C421689E3422664946AB7', 'U_SUPPLIER_20260330001', 'supplier01', 'supplier', '127.0.0.1', NULL, '2026-03-30 12:19:47', NULL, 'success', NULL, '2026-03-30 12:19:47', NULL, NULL, '2026-03-30 12:19:47', NULL);
  2466. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('296833C387FA4BF5A9E57799E2116967', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 10:40:11', NULL, 'success', NULL, '2026-03-27 10:40:11', NULL, NULL, '2026-03-27 10:40:11', NULL);
  2467. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('30572AC2721546E3B6C111B66A40592B', 'U_CLIENT_20260330002', 'client02', 'client', '127.0.0.1', NULL, '2026-03-30 13:40:22', NULL, 'success', NULL, '2026-03-30 13:40:22', NULL, NULL, '2026-03-30 13:40:22', NULL);
  2468. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5E8A8F24C8A347BF95576CF62B006E01', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-04-02 09:54:54', NULL, 'success', NULL, '2026-04-02 09:54:54', NULL, NULL, '2026-04-02 09:54:54', NULL);
  2469. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('5F9194B434094BA1942A19F7F7ABB4EB', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-30 11:24:00', NULL, 'success', NULL, '2026-03-30 11:24:00', NULL, NULL, '2026-03-30 11:24:00', NULL);
  2470. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('715F60B050DB4AAFABE3890B367A6451', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 10:49:46', NULL, 'success', NULL, '2026-03-27 10:49:46', NULL, NULL, '2026-03-27 10:49:46', NULL);
  2471. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('87A69B615F86402484DC468BDCA4957D', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-04-01 10:43:16', NULL, 'success', NULL, '2026-04-01 10:43:16', NULL, NULL, '2026-04-01 10:43:16', NULL);
  2472. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('95B8BF8EE802401AA59DF0E2455AF5BD', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 10:50:55', NULL, 'success', NULL, '2026-03-27 10:50:55', NULL, NULL, '2026-03-27 10:50:55', NULL);
  2473. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('987E6861C92C4B7FBBB0C83A159B41EC', 'U_DELIVER_20260330001', 'deliver01', 'deliver', '127.0.0.1', NULL, '2026-03-30 12:20:08', NULL, 'success', NULL, '2026-03-30 12:20:08', NULL, NULL, '2026-03-30 12:20:08', NULL);
  2474. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A2B3E07F0186455CBF33B4AFAAA84E49', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 13:34:38', NULL, 'success', NULL, '2026-03-27 13:34:38', NULL, NULL, '2026-03-27 13:34:38', NULL);
  2475. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('A40851F5033747BB8093081D9FC68774', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 13:23:39', NULL, 'success', NULL, '2026-03-27 13:23:39', NULL, NULL, '2026-03-27 13:23:39', NULL);
  2476. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E6AE050EF3B042F3BEE8217328AE5A14', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 13:39:48', NULL, 'success', NULL, '2026-03-27 13:39:48', NULL, NULL, '2026-03-27 13:39:48', NULL);
  2477. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F0517B587E024A7CA08387D4AA963412', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-31 15:45:35', NULL, 'success', NULL, '2026-03-31 15:45:35', NULL, NULL, '2026-03-31 15:45:35', NULL);
  2478. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('F31BE0299C4A45DF96AC5C9791897B57', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-04-03 10:01:47', NULL, 'success', NULL, '2026-04-03 10:01:47', NULL, NULL, '2026-04-03 10:01:47', NULL);
  2479. INSERT INTO `sys_login_log` (`id`, `user_id`, `username`, `role`, `ip_address`, `user_agent`, `login_time`, `logout_time`, `login_result`, `fail_reason`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('FCF974981197428CA10EF089519F2EF7', 'SYS_ADMIN_001', 'admin', 'admin', '127.0.0.1', NULL, '2026-03-27 13:30:09', NULL, 'success', NULL, '2026-03-27 13:30:09', NULL, NULL, '2026-03-27 13:30:09', NULL);
  2480. COMMIT;
  2481. -- ----------------------------
  2482. -- Table structure for sys_login_log_his
  2483. -- ----------------------------
  2484. DROP TABLE IF EXISTS `sys_login_log_his`;
  2485. CREATE TABLE `sys_login_log_his` (
  2486. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2487. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  2488. `username` varchar(50) NOT NULL COMMENT '用户名',
  2489. `role` varchar(20) DEFAULT NULL COMMENT '用户角色',
  2490. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2491. `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理',
  2492. `login_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  2493. `logout_time` datetime DEFAULT NULL COMMENT '登出时间',
  2494. `login_result` varchar(20) DEFAULT 'success' COMMENT '登录结果: success-成功, failed-失败',
  2495. `fail_reason` varchar(200) DEFAULT NULL COMMENT '失败原因',
  2496. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2497. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2498. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2499. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2500. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2501. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2502. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='登录日志历史表';
  2503. -- ----------------------------
  2504. -- Records of sys_login_log_his
  2505. -- ----------------------------
  2506. BEGIN;
  2507. COMMIT;
  2508. -- ----------------------------
  2509. -- Table structure for sys_menu
  2510. -- ----------------------------
  2511. DROP TABLE IF EXISTS `sys_menu`;
  2512. CREATE TABLE `sys_menu` (
  2513. `id` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键ID',
  2514. `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单名称',
  2515. `code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单编码(唯一标识)',
  2516. `path` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '路由路径',
  2517. `component` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件路径',
  2518. `icon` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '菜单图标',
  2519. `parent_id` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父菜单ID',
  2520. `sort_order` int(11) DEFAULT '0' COMMENT '排序(数字越小越靠前)',
  2521. `redirect` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '重定向路径',
  2522. `menu_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'menu' COMMENT '菜单类型: menu-菜单, button-按钮',
  2523. `is_visible` tinyint(4) DEFAULT '1' COMMENT '是否显示: 0-隐藏, 1-显示',
  2524. `is_cache` tinyint(4) DEFAULT '0' COMMENT '是否缓存: 0-不缓存, 1-缓存',
  2525. `is_active` tinyint(4) DEFAULT '1' COMMENT '是否启用: 0-禁用, 1-启用',
  2526. `is_del` tinyint(4) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2527. `remark` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
  2528. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2529. `create_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人ID',
  2530. `create_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人姓名',
  2531. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2532. `update_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修改人ID',
  2533. PRIMARY KEY (`id`),
  2534. UNIQUE KEY `uk_code` (`code`),
  2535. KEY `idx_parent_id` (`parent_id`),
  2536. KEY `idx_is_del` (`is_del`)
  2537. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='菜单表';
  2538. -- ----------------------------
  2539. -- Records of sys_menu
  2540. -- ----------------------------
  2541. BEGIN;
  2542. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000001', '工作台', 'dashboard', '/dashboard', 'dashboard/index', 'Odometer', NULL, 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2543. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000002', '基础数据', 'base', '', '', NULL, NULL, 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2544. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000003', '区域管理', 'region', '/region', 'region/index', 'MapLocation', '10000000000000000000000000000002', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2545. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000004', '商品分类', 'category', '/category', 'category/index', 'Grid', '10000000000000000000000000000002', 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2546. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000005', '商品单位', 'unit', '/unit', 'unit/index', 'ScaleToOriginal', '10000000000000000000000000000002', 3, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2547. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000006', '商品管理', 'product', '/product', 'product/index', 'Goods', '10000000000000000000000000000002', 4, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2548. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000007', '用户管理', 'user', '/user', 'user/index', 'User', '10000000000000000000000000000002', 5, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2549. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000008', '参数模板', 'parameter', '/parameter', 'parameter/index', 'Operation', '10000000000000000000000000000002', 6, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-31 10:00:00', 'system', '系统', NULL, NULL);
  2550. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000010', '询价报价', 'inquiry', '', '', NULL, NULL, 3, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2551. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000011', '询价管理', 'inquiry_list', '/inquiry', 'inquiry/index', 'ChatLineSquare', '10000000000000000000000000000010', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2552. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000012', '报价管理', 'quotation', '/quotation', 'quotation/index', 'Tickets', '10000000000000000000000000000010', 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2553. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000013', '报价对比', 'quotation_compare', '/quotation-compare', 'quotation/compare', 'DataAnalysis', '10000000000000000000000000000010', 3, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2554. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000014', '价格清单', 'price_list', '/price-list', 'price-list/index', 'PriceTag', '10000000000000000000000000000010', 4, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2555. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000015', '价格版本', 'price_list_version', '/price-list-version', 'price-list/version', 'Collection', '10000000000000000000000000000010', 5, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2556. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000020', '订单管理', 'order', '', '', NULL, NULL, 4, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2557. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000021', '订单列表', 'order_list', '/order', 'order/index', 'ShoppingCart', '10000000000000000000000000000020', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2558. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000022', '订单调整', 'order_adjust', '/order-adjust', 'order-adjust/index', 'Edit', '10000000000000000000000000000020', 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2559. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000023', '结算管理', 'settlement', '/settlement', 'settlement/index', 'Money', '10000000000000000000000000000020', 3, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2560. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000024', '退款管理', 'refund', '/refund', 'refund/index', 'RefreshLeft', '10000000000000000000000000000020', 4, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2561. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000026', '商家结算管理', 'supplier_settlement', '/supplier-settlement', 'system/supplier-settlement/index', 'Wallet', '10000000000000000000000000000020', 5, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-04-14 10:00:00', 'system', '系统', NULL, NULL);
  2562. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000027', '客户结算管理', 'client_settlement', '/client-settlement', 'system/client-settlement/index', 'UserFilled', '10000000000000000000000000000020', 6, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-04-14 10:00:00', 'system', '系统', NULL, NULL);
  2563. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000030', '配送管理', 'delivery', '', '', NULL, NULL, 5, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2564. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000031', '配送列表', 'delivery_list', '/delivery', 'delivery/index', 'Van', '10000000000000000000000000000030', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2565. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000032', '时效预警', 'delivery_warning', '/delivery-warning', 'delivery-warning/index', 'Bell', '10000000000000000000000000000030', 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2566. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000040', '系统管理', 'system', '', '', NULL, NULL, 6, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2567. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000041', '系统设置', 'system_config', '/system-config', 'system-config/index', 'Setting', '10000000000000000000000000000040', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2568. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000051', '接口日志', 'api_request_log', '/api-request-log', 'api-request-log/index', 'DataLine', '10000000000000000000000000000040', 2, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2569. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000060', '数据统计', 'statistics', '/statistics', 'statistics/index', 'DataLine', NULL, 8, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-27 10:58:25', 'system', '系统', NULL, NULL);
  2570. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000070', '售后管理', 'after_sale', '', '', NULL, NULL, 8, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-31 10:00:00', 'system', '系统', NULL, NULL);
  2571. INSERT INTO `sys_menu` (`id`, `name`, `code`, `path`, `component`, `icon`, `parent_id`, `sort_order`, `redirect`, `menu_type`, `is_visible`, `is_cache`, `is_active`, `is_del`, `remark`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('10000000000000000000000000000071', '售后评价', 'review', '/review', 'review/index', 'Star', '10000000000000000000000000000070', 1, NULL, 'menu', 1, 0, 1, 0, NULL, '2026-03-31 10:00:00', 'system', '系统', NULL, NULL);
  2572. COMMIT;
  2573. -- ----------------------------
  2574. -- Table structure for sys_menu_his
  2575. -- ----------------------------
  2576. DROP TABLE IF EXISTS `sys_menu_his`;
  2577. CREATE TABLE `sys_menu_his` (
  2578. `id` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键ID',
  2579. `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单名称',
  2580. `code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单编码',
  2581. `path` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '路由路径',
  2582. `component` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件路径',
  2583. `icon` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '菜单图标',
  2584. `parent_id` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父菜单ID',
  2585. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  2586. `redirect` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '重定向路径',
  2587. `menu_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'menu' COMMENT '菜单类型',
  2588. `is_visible` tinyint(4) DEFAULT '1' COMMENT '是否显示',
  2589. `is_cache` tinyint(4) DEFAULT '0' COMMENT '是否缓存',
  2590. `is_active` tinyint(4) DEFAULT '1' COMMENT '是否启用',
  2591. `remark` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
  2592. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  2593. `create_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人ID',
  2594. `create_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人姓名',
  2595. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2596. `update_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修改人ID',
  2597. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2598. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='菜单历史表';
  2599. -- ----------------------------
  2600. -- Records of sys_menu_his
  2601. -- ----------------------------
  2602. BEGIN;
  2603. COMMIT;
  2604. -- ----------------------------
  2605. -- Table structure for sys_password_history
  2606. -- ----------------------------
  2607. DROP TABLE IF EXISTS `sys_password_history`;
  2608. CREATE TABLE `sys_password_history` (
  2609. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2610. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  2611. `operation_type` varchar(20) NOT NULL COMMENT '操作类型: modify-自主修改, reset-重置',
  2612. `operator_id` varchar(32) DEFAULT NULL COMMENT '操作人ID(重置时)',
  2613. `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
  2614. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2615. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2616. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2617. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2618. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2619. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2620. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2621. PRIMARY KEY (`id`),
  2622. KEY `idx_user_id` (`user_id`)
  2623. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='密码修改历史表';
  2624. -- ----------------------------
  2625. -- Records of sys_password_history
  2626. -- ----------------------------
  2627. BEGIN;
  2628. COMMIT;
  2629. -- ----------------------------
  2630. -- Table structure for sys_password_history_his
  2631. -- ----------------------------
  2632. DROP TABLE IF EXISTS `sys_password_history_his`;
  2633. CREATE TABLE `sys_password_history_his` (
  2634. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2635. `user_id` varchar(32) NOT NULL COMMENT '用户ID',
  2636. `operation_type` varchar(20) NOT NULL COMMENT '操作类型: modify-自主修改, reset-重置',
  2637. `operator_id` varchar(32) DEFAULT NULL COMMENT '操作人ID(重置时)',
  2638. `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
  2639. `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  2640. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2641. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2642. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2643. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2644. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2645. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2646. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='密码修改历史表';
  2647. -- ----------------------------
  2648. -- Records of sys_password_history_his
  2649. -- ----------------------------
  2650. BEGIN;
  2651. COMMIT;
  2652. -- ----------------------------
  2653. -- Table structure for sys_region
  2654. -- ----------------------------
  2655. DROP TABLE IF EXISTS `sys_region`;
  2656. CREATE TABLE `sys_region` (
  2657. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2658. `name` varchar(100) NOT NULL COMMENT '区域名称',
  2659. `code` varchar(50) NOT NULL COMMENT '区域编码',
  2660. `description` varchar(500) DEFAULT NULL COMMENT '区域描述',
  2661. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  2662. `expected_delivery_minutes` int(11) DEFAULT NULL COMMENT '预计配送时长(分钟)',
  2663. `delivery_warn_advance_minutes` int(11) DEFAULT NULL COMMENT '计划到货前未送达时预警提前时间(分钟)',
  2664. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
  2665. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2666. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2667. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2668. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2669. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2670. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2671. PRIMARY KEY (`id`),
  2672. UNIQUE KEY `uk_code` (`code`)
  2673. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域表';
  2674. -- ----------------------------
  2675. -- Records of sys_region
  2676. -- ----------------------------
  2677. BEGIN;
  2678. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('0F3EFFC104EA429BAA3B7F62FD849746', '测试分区1', 'csfq1', '测试分区测试分区1', 5, 1, 0, '2026-04-02 10:33:39', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:33:45', 'SYS_ADMIN_001');
  2679. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('1A632F3CD4364598AD80AD65DEBAF0CC', '兰州东区', 'lzdq', '兰州东区', 0, 0, 0, '2026-03-30 23:17:26', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 14:45:43', 'SYS_ADMIN_001');
  2680. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('3349ED3D7C2B44A6B944AA2916542785', '兰州西区1', 'lzxq1', '兰州西区1', 0, 1, 0, '2026-03-30 23:17:38', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:43', 'SYS_ADMIN_001');
  2681. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('381CC5BDADB145EE96479B65714A0531', '2', '2', '2', 0, 1, 1, '2026-03-30 23:25:27', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:25:45', NULL);
  2682. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('992B8FF9DD8F473CBEBD1B8EEE6695DB', '2', '22', '2', 1, 0, 1, '2026-03-30 23:25:34', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:25:43', 'SYS_ADMIN_001');
  2683. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('BD1FFC0B66664737829D0AB1F12C727F', '1', '1', '1', 0, 1, 1, '2026-03-30 23:21:55', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:58', NULL);
  2684. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('REGION_001', '城东区域', 'CD', '城东配送区域', 1, 1, 0, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2685. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('REGION_002', '城西区域', 'CX', '城西配送区域', 2, 1, 0, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2686. INSERT INTO `sys_region` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('REGION_003', '城南区域', 'CN', '城南配送区域', 3, 1, 0, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2687. COMMIT;
  2688. -- ----------------------------
  2689. -- Table structure for sys_region_his
  2690. -- ----------------------------
  2691. DROP TABLE IF EXISTS `sys_region_his`;
  2692. CREATE TABLE `sys_region_his` (
  2693. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2694. `name` varchar(100) NOT NULL COMMENT '区域名称',
  2695. `code` varchar(50) NOT NULL COMMENT '区域编码',
  2696. `description` varchar(500) DEFAULT NULL COMMENT '区域描述',
  2697. `sort_order` int(11) DEFAULT '0' COMMENT '排序',
  2698. `expected_delivery_minutes` int(11) DEFAULT NULL COMMENT '预计配送时长(分钟)',
  2699. `delivery_warn_advance_minutes` int(11) DEFAULT NULL COMMENT '计划到货前未送达时预警提前时间(分钟)',
  2700. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
  2701. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2702. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2703. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2704. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2705. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2706. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2707. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域历史表';
  2708. -- ----------------------------
  2709. -- Records of sys_region_his
  2710. -- ----------------------------
  2711. BEGIN;
  2712. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('3349ED3D7C2B44A6B944AA2916542785', '兰州西区', 'lzxq', '兰州西区', 0, 1, '2026-03-30 23:17:38', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:17:38', NULL, '2026-03-30 23:21:26');
  2713. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('3349ED3D7C2B44A6B944AA2916542785', '兰州西区', 'lzxq', '兰州西区', 0, 1, '2026-03-30 23:17:38', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:25', 'SYS_ADMIN_001', '2026-03-30 23:21:34');
  2714. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('3349ED3D7C2B44A6B944AA2916542785', '兰州西区1', 'lzxq1', '兰州西区1', 0, 1, '2026-03-30 23:17:38', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:33', 'SYS_ADMIN_001', '2026-03-30 23:21:38');
  2715. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('3349ED3D7C2B44A6B944AA2916542785', '兰州西区1', 'lzxq1', '兰州西区1', 0, 1, '2026-03-30 23:17:38', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:38', 'SYS_ADMIN_001', '2026-03-30 23:21:43');
  2716. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('BD1FFC0B66664737829D0AB1F12C727F', '1', '1', '1', 0, 1, '2026-03-30 23:21:55', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:21:55', NULL, '2026-03-30 23:21:58');
  2717. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('992B8FF9DD8F473CBEBD1B8EEE6695DB', '2', '22', '2', 2, 1, '2026-03-30 23:25:34', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:25:34', NULL, '2026-03-30 23:25:40');
  2718. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('992B8FF9DD8F473CBEBD1B8EEE6695DB', '2', '22', '2', 1, 0, '2026-03-30 23:25:34', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:25:39', 'SYS_ADMIN_001', '2026-03-30 23:25:43');
  2719. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('381CC5BDADB145EE96479B65714A0531', '2', '2', '2', 0, 1, '2026-03-30 23:25:27', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:25:27', NULL, '2026-03-30 23:25:45');
  2720. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('0F3EFFC104EA429BAA3B7F62FD849746', '测试分区', 'csfq', '测试分区测试分区', 4, 1, '2026-04-02 10:33:39', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 10:33:39', NULL, '2026-04-02 10:33:46');
  2721. INSERT INTO `sys_region_his` (`id`, `name`, `code`, `description`, `sort_order`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`) VALUES ('1A632F3CD4364598AD80AD65DEBAF0CC', '兰州东区', 'lzdq', '兰州东区', 0, 1, '2026-03-30 23:17:26', 'SYS_ADMIN_001', '系统管理员', '2026-03-30 23:17:26', NULL, '2026-04-02 14:45:43');
  2722. COMMIT;
  2723. -- ----------------------------
  2724. -- Table structure for sys_upgrade_log
  2725. -- ----------------------------
  2726. DROP TABLE IF EXISTS `sys_upgrade_log`;
  2727. CREATE TABLE `sys_upgrade_log` (
  2728. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2729. `version` varchar(50) NOT NULL COMMENT '版本号',
  2730. `title` varchar(200) NOT NULL COMMENT '更新标题',
  2731. `date` datetime NOT NULL COMMENT '更新日期',
  2732. `detail` text COMMENT '更新详情(JSON数组)',
  2733. `require_re_login` tinyint(1) DEFAULT '0' COMMENT '是否需要重新登录: 0-否, 1-是',
  2734. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  2735. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2736. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2737. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2738. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2739. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2740. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2741. PRIMARY KEY (`id`),
  2742. KEY `idx_version` (`version`),
  2743. KEY `idx_date` (`date`)
  2744. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统更新日志表';
  2745. -- ----------------------------
  2746. -- Records of sys_upgrade_log
  2747. -- ----------------------------
  2748. BEGIN;
  2749. INSERT INTO `sys_upgrade_log` (`id`, `version`, `title`, `date`, `detail`, `require_re_login`, `remark`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('LOG_001', 'v1.0.0', '系统正式上线', '2026-03-28 00:00:00', '[\"系统正式上线运营\"]', 0, NULL, 0, '2026-03-28 00:00:00', 'SYS_ADMIN_001', '系统初始化', NULL, NULL);
  2750. COMMIT;
  2751. -- ----------------------------
  2752. -- Table structure for sys_upgrade_log_his
  2753. -- ----------------------------
  2754. DROP TABLE IF EXISTS `sys_upgrade_log_his`;
  2755. CREATE TABLE `sys_upgrade_log_his` (
  2756. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2757. `version` varchar(50) NOT NULL COMMENT '版本号',
  2758. `title` varchar(200) NOT NULL COMMENT '更新标题',
  2759. `date` datetime NOT NULL COMMENT '更新日期',
  2760. `detail` text COMMENT '更新详情(JSON数组)',
  2761. `require_re_login` tinyint(1) DEFAULT '0' COMMENT '是否需要重新登录',
  2762. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  2763. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2764. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2765. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2766. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2767. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2768. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
  2769. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统更新日志历史表';
  2770. -- ----------------------------
  2771. -- Records of sys_upgrade_log_his
  2772. -- ----------------------------
  2773. BEGIN;
  2774. COMMIT;
  2775. -- ----------------------------
  2776. -- Table structure for sys_user
  2777. -- ----------------------------
  2778. DROP TABLE IF EXISTS `sys_user`;
  2779. CREATE TABLE `sys_user` (
  2780. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2781. `username` varchar(50) NOT NULL COMMENT '用户名',
  2782. `password_hash` varchar(255) NOT NULL COMMENT '密码哈希',
  2783. `real_name` varchar(100) DEFAULT NULL COMMENT '真实姓名',
  2784. `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
  2785. `wx_mini_openid` varchar(64) DEFAULT NULL COMMENT '微信小程序openid',
  2786. `role` varchar(20) NOT NULL COMMENT '角色: admin-运营, supplier-供应商, client-客户, deliver-配送员',
  2787. `region_id` varchar(32) DEFAULT NULL COMMENT '所属区域ID',
  2788. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活: 0-否, 1-是',
  2789. `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
  2790. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2791. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2792. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2793. `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  2794. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2795. PRIMARY KEY (`id`),
  2796. UNIQUE KEY `uk_username` (`username`),
  2797. UNIQUE KEY `uk_sys_user_wx_mini_openid` (`wx_mini_openid`),
  2798. KEY `idx_role` (`role`),
  2799. KEY `idx_region_id` (`region_id`)
  2800. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
  2801. -- ----------------------------
  2802. -- Records of sys_user
  2803. -- ----------------------------
  2804. BEGIN;
  2805. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('E2D91D4D490741428C3A21124D49AB04', 'yunying001', '$2b$12$TuZXp3Kw.zdl5YXg6c5IF.Tf/5Eneg0UFdZmc0VUwEPYuDE/DooAu', '运营人员0011', '17900992222', NULL, 'client', 'REGION_001', 1, 0, '2026-04-02 14:42:08', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 14:45:33', 'SYS_ADMIN_001');
  2806. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('SYS_ADMIN_001', 'admin', '$2b$12$lhZuxF6WrSStlI/wGkU/VeoBcalM8SJD4qBmp04NlTturE2T8PXEW', '系统管理员', '13800000000', NULL, 'admin', NULL, 1, 0, '2026-03-26 15:00:38', 'SYS_ADMIN_001', '系统初始化', '2026-03-27 10:39:33', NULL);
  2807. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_CLIENT_20260330001', 'client01', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示客户甲', '13900003001', NULL, 'client', 'REGION_001', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2808. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_CLIENT_20260330002', 'client02', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示客户乙', '13900003002', NULL, 'client', 'REGION_003', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2809. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_DELIVER_20260330001', 'deliver01', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示配送员甲', '13900002001', NULL, 'deliver', 'REGION_001', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2810. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_DELIVER_20260330002', 'deliver02', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示配送员乙', '13900002002', NULL, 'deliver', 'REGION_002', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2811. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_SUPPLIER_20260330001', 'supplier01', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示供应商甲', '13900001001', NULL, 'supplier', 'REGION_001', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2812. INSERT INTO `sys_user` (`id`, `username`, `password_hash`, `real_name`, `phone`, `wx_mini_openid`, `role`, `region_id`, `is_active`, `is_del`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`) VALUES ('U_SUPPLIER_20260330002', 'supplier02', '$2b$12$ddm59EvRMpBVZN3OPiiMCOouK2Tqevi.FXze64/vygnbr7gfkLJSO', '演示供应商乙', '13900001002', NULL, 'supplier', 'REGION_002', 1, 0, '2026-03-30 12:19:36', 'SYS_ADMIN_001', 'SQL初始化', NULL, NULL);
  2813. COMMIT;
  2814. -- ----------------------------
  2815. -- Table structure for sys_user_his
  2816. -- ----------------------------
  2817. DROP TABLE IF EXISTS `sys_user_his`;
  2818. CREATE TABLE `sys_user_his` (
  2819. `id` varchar(32) NOT NULL COMMENT '主键ID',
  2820. `username` varchar(50) NOT NULL COMMENT '用户名',
  2821. `password_hash` varchar(255) NOT NULL COMMENT '密码哈希',
  2822. `real_name` varchar(100) DEFAULT NULL COMMENT '真实姓名',
  2823. `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
  2824. `role` varchar(20) NOT NULL COMMENT '角色',
  2825. `region_id` varchar(32) DEFAULT NULL COMMENT '所属区域ID',
  2826. `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活',
  2827. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  2828. `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
  2829. `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
  2830. `update_at` datetime DEFAULT NULL COMMENT '修改时间',
  2831. `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
  2832. `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
  2833. `wx_mini_openid` varchar(64) DEFAULT NULL COMMENT '微信小程序openid'
  2834. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户历史表';
  2835. -- ----------------------------
  2836. -- Records of sys_user_his
  2837. -- ----------------------------
  2838. BEGIN;
  2839. INSERT INTO `sys_user_his` (`id`, `username`, `password_hash`, `real_name`, `phone`, `role`, `region_id`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `wx_mini_openid`) VALUES ('E2D91D4D490741428C3A21124D49AB04', 'yunying001', '$2b$12$TuZXp3Kw.zdl5YXg6c5IF.Tf/5Eneg0UFdZmc0VUwEPYuDE/DooAu', '运营人员001', '17900992211', 'admin', 'REGION_001', 1, '2026-04-02 14:42:08', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 14:42:08', NULL, '2026-04-02 14:45:16', NULL);
  2840. INSERT INTO `sys_user_his` (`id`, `username`, `password_hash`, `real_name`, `phone`, `role`, `region_id`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `wx_mini_openid`) VALUES ('E2D91D4D490741428C3A21124D49AB04', 'yunying001', '$2b$12$TuZXp3Kw.zdl5YXg6c5IF.Tf/5Eneg0UFdZmc0VUwEPYuDE/DooAu', '运营人员001', '17900992211', 'admin', 'REGION_001', 1, '2026-04-02 14:42:08', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 14:45:16', 'SYS_ADMIN_001', '2026-04-02 14:45:20', NULL);
  2841. INSERT INTO `sys_user_his` (`id`, `username`, `password_hash`, `real_name`, `phone`, `role`, `region_id`, `is_active`, `create_at`, `create_by`, `create_name`, `update_at`, `update_by`, `his_create_at`, `wx_mini_openid`) VALUES ('E2D91D4D490741428C3A21124D49AB04', 'yunying001', '$2b$12$TuZXp3Kw.zdl5YXg6c5IF.Tf/5Eneg0UFdZmc0VUwEPYuDE/DooAu', '运营人员001', '17900992211', 'supplier', 'REGION_001', 1, '2026-04-02 14:42:08', 'SYS_ADMIN_001', '系统管理员', '2026-04-02 14:45:20', 'SYS_ADMIN_001', '2026-04-02 14:45:33', NULL);
  2842. COMMIT;
  2843. SET FOREIGN_KEY_CHECKS = 1;