| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006 |
- /*
- Navicat Premium Dump SQL
- Source Server : 47.99.164.66 hn02le.34lkdLKD
- Source Server Type : MySQL
- Source Server Version : 50736 (5.7.36)
- Source Host : 47.99.164.66:3306
- Source Schema : sanqiang
- Target Server Type : MySQL
- Target Server Version : 50736 (5.7.36)
- File Encoding : 65001
- Date: 03/04/2026 10:45:09
- */
- SET NAMES utf8mb4;
- SET FOREIGN_KEY_CHECKS = 0;
- -- ----------------------------
- -- Table structure for bas_address
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_address`;
- CREATE TABLE `bas_address` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `address_type` varchar(20) NOT NULL COMMENT '地址类型: pickup-取货地址, delivery-配送地址',
- `contact_person` varchar(100) NOT NULL COMMENT '联系人',
- `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
- `province` varchar(50) DEFAULT NULL COMMENT '省份',
- `city` varchar(50) DEFAULT NULL COMMENT '城市',
- `district` varchar(50) DEFAULT NULL COMMENT '区县',
- `detail_address` varchar(500) NOT NULL COMMENT '详细地址',
- `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认地址: 0-否, 1-是',
- `latitude` varchar(20) DEFAULT NULL COMMENT '纬度',
- `longitude` varchar(20) DEFAULT NULL COMMENT '经度',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_user_id` (`user_id`),
- KEY `idx_address_type` (`address_type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商/客户地址表';
- -- ----------------------------
- -- Records of bas_address
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_address_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_address_his`;
- CREATE TABLE `bas_address_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `address_type` varchar(20) NOT NULL COMMENT '地址类型',
- `contact_person` varchar(100) NOT NULL COMMENT '联系人',
- `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
- `province` varchar(50) DEFAULT NULL COMMENT '省份',
- `city` varchar(50) DEFAULT NULL COMMENT '城市',
- `district` varchar(50) DEFAULT NULL COMMENT '区县',
- `detail_address` varchar(500) NOT NULL COMMENT '详细地址',
- `is_default` tinyint(1) DEFAULT '0' COMMENT '是否默认地址',
- `latitude` varchar(20) DEFAULT NULL COMMENT '纬度',
- `longitude` varchar(20) DEFAULT NULL COMMENT '经度',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='地址历史表';
- -- ----------------------------
- -- Records of bas_address_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_category_parameter
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_category_parameter`;
- CREATE TABLE `bas_category_parameter` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `category_id` varchar(32) NOT NULL COMMENT '分类ID',
- `parameter_id` varchar(32) NOT NULL COMMENT '参数ID',
- `is_required` int(11) DEFAULT '0' COMMENT '该分类下是否必填:0-否, 1-是',
- `default_value` varchar(500) DEFAULT NULL COMMENT '默认值',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_category_parameter` (`category_id`,`parameter_id`,`is_del`),
- KEY `idx_category_id` (`category_id`),
- KEY `idx_parameter_id` (`parameter_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类-参数关联表';
- -- ----------------------------
- -- Records of bas_category_parameter
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_category_parameter_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_category_parameter_his`;
- CREATE TABLE `bas_category_parameter_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
- `parameter_id` varchar(32) DEFAULT NULL COMMENT '参数ID',
- `is_required` int(11) DEFAULT '0' COMMENT '是否必填',
- `default_value` varchar(500) DEFAULT NULL COMMENT '默认值',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类-参数关联表历史表';
- -- ----------------------------
- -- Records of bas_category_parameter_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product`;
- CREATE TABLE `bas_product` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(200) NOT NULL COMMENT '商品名称',
- `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
- `unit_id` varchar(32) DEFAULT NULL COMMENT '单位ID',
- `measure_value` decimal(12,3) DEFAULT NULL COMMENT '计量数量(与单位组合表示售卖规格,如500克、1个)',
- `description` varchar(1000) DEFAULT NULL COMMENT '商品描述',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `detail_content` text COMMENT '商品详情富文本内容',
- `sku_code` varchar(50) DEFAULT NULL COMMENT '商品SKU编码(唯一标识,用于生成二维码/条形码)',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_sku_code` (`sku_code`),
- KEY `idx_category_id` (`category_id`),
- KEY `idx_unit_id` (`unit_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品表';
- -- ----------------------------
- -- Records of bas_product
- -- ----------------------------
- BEGIN;
- 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);
- 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');
- 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);
- 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');
- 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');
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_banner
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_banner`;
- CREATE TABLE `bas_product_banner` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `media_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '媒体类型:image-图片, video-视频',
- `file_url` varchar(500) NOT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_product_id` (`product_id`),
- KEY `idx_sort_order` (`sort_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品轮播图表';
- -- ----------------------------
- -- Records of bas_product_banner
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_banner_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_banner_his`;
- CREATE TABLE `bas_product_banner_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
- `media_type` varchar(20) DEFAULT 'image' COMMENT '媒体类型',
- `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品轮播图历史表';
- -- ----------------------------
- -- Records of bas_product_banner_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_category
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_category`;
- CREATE TABLE `bas_product_category` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) NOT NULL COMMENT '分类名称',
- `parent_id` varchar(32) DEFAULT NULL COMMENT '父分类ID',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `price_coefficient` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '价格系数(百分比点数,5表示5%)',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
- PRIMARY KEY (`id`),
- KEY `idx_parent_id` (`parent_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类表';
- -- ----------------------------
- -- Records of bas_product_category
- -- ----------------------------
- BEGIN;
- 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);
- 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');
- 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');
- 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);
- 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');
- 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');
- 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');
- 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');
- 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);
- 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);
- 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');
- 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);
- 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');
- 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);
- 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');
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_category_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_category_his`;
- CREATE TABLE `bas_product_category_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) NOT NULL COMMENT '分类名称',
- `parent_id` varchar(32) DEFAULT NULL COMMENT '父分类ID',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `price_coefficient` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '价格系数(百分比点数,5表示5%)',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品分类历史表';
- -- ----------------------------
- -- Records of bas_product_category_his
- -- ----------------------------
- BEGIN;
- 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');
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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');
- 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');
- 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');
- 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);
- 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);
- 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');
- 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');
- 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');
- 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);
- 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');
- 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);
- 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');
- 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');
- 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');
- 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');
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_detail_media
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_detail_media`;
- CREATE TABLE `bas_product_detail_media` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `content_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '内容类型:image-图片, video-视频, text-文本',
- `content_text` text COMMENT '文本内容',
- `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
- `description` varchar(500) DEFAULT NULL COMMENT '描述',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_product_id` (`product_id`),
- KEY `idx_sort_order` (`sort_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品详情媒体表';
- -- ----------------------------
- -- Records of bas_product_detail_media
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_detail_media_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_detail_media_his`;
- CREATE TABLE `bas_product_detail_media_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
- `content_type` varchar(20) DEFAULT 'image' COMMENT '内容类型',
- `content_text` text COMMENT '文本内容',
- `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
- `description` varchar(500) DEFAULT NULL COMMENT '描述',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品详情媒体历史表';
- -- ----------------------------
- -- Records of bas_product_detail_media_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_his`;
- CREATE TABLE `bas_product_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(200) NOT NULL COMMENT '商品名称',
- `category_id` varchar(32) DEFAULT NULL COMMENT '分类ID',
- `unit_id` varchar(32) DEFAULT NULL COMMENT '单位ID',
- `measure_value` decimal(12,3) DEFAULT NULL COMMENT '计量数量(与单位组合表示售卖规格,如500克、1个)',
- `description` varchar(1000) DEFAULT NULL COMMENT '商品描述',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片URL',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- `detail_content` text COMMENT '商品详情富文本内容',
- `sku_code` varchar(50) DEFAULT NULL COMMENT '商品SKU编码'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品历史表';
- -- ----------------------------
- -- Records of bas_product_his
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_parameter
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_parameter`;
- CREATE TABLE `bas_product_parameter` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) NOT NULL COMMENT '参数名称',
- `code` varchar(50) NOT NULL COMMENT '参数编码',
- `param_type` varchar(20) NOT NULL DEFAULT 'text' COMMENT '参数类型:text-文本输入, select-单选下拉, multi_select-多选',
- `options` text COMMENT '可选值列表,JSON数组',
- `placeholder` varchar(100) DEFAULT NULL COMMENT '输入提示文字',
- `is_required` int(11) DEFAULT '0' COMMENT '是否必填:0-否, 1-是',
- `is_active` int(11) DEFAULT '1' COMMENT '是否启用:0-禁用, 1-启用',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注说明',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_code` (`code`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数码表';
- -- ----------------------------
- -- Records of bas_product_parameter
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_parameter_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_parameter_his`;
- CREATE TABLE `bas_product_parameter_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) DEFAULT NULL COMMENT '参数名称',
- `code` varchar(50) DEFAULT NULL COMMENT '参数编码',
- `param_type` varchar(20) DEFAULT 'text' COMMENT '参数类型',
- `options` text COMMENT '可选值列表',
- `placeholder` varchar(100) DEFAULT NULL COMMENT '输入提示文字',
- `is_required` int(11) DEFAULT '0' COMMENT '是否必填',
- `is_active` int(11) DEFAULT '1' COMMENT '是否启用',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注说明',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数码表历史表';
- -- ----------------------------
- -- Records of bas_product_parameter_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_parameter_value
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_parameter_value`;
- CREATE TABLE `bas_product_parameter_value` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `parameter_id` varchar(32) NOT NULL COMMENT '参数ID',
- `parameter_name` varchar(100) DEFAULT NULL COMMENT '参数名称快照',
- `parameter_code` varchar(50) DEFAULT NULL COMMENT '参数编码快照',
- `param_type` varchar(20) DEFAULT NULL COMMENT '参数类型快照',
- `param_value` text COMMENT '参数值',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_product_id` (`product_id`),
- KEY `idx_parameter_id` (`parameter_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数值表';
- -- ----------------------------
- -- Records of bas_product_parameter_value
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_parameter_value_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_parameter_value_his`;
- CREATE TABLE `bas_product_parameter_value_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
- `parameter_id` varchar(32) DEFAULT NULL COMMENT '参数ID',
- `parameter_name` varchar(100) DEFAULT NULL COMMENT '参数名称快照',
- `parameter_code` varchar(50) DEFAULT NULL COMMENT '参数编码快照',
- `param_type` varchar(20) DEFAULT NULL COMMENT '参数类型快照',
- `param_value` text COMMENT '参数值',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品参数值表历史表';
- -- ----------------------------
- -- Records of bas_product_parameter_value_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_unit
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_unit`;
- CREATE TABLE `bas_product_unit` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(50) NOT NULL COMMENT '单位名称(如:斤、kg、个、箱)',
- `code` varchar(20) NOT NULL COMMENT '单位编码',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
- `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段,数值越小越靠前',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_code` (`code`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品单位码表';
- -- ----------------------------
- -- Records of bas_product_unit
- -- ----------------------------
- BEGIN;
- 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);
- 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');
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for bas_product_unit_his
- -- ----------------------------
- DROP TABLE IF EXISTS `bas_product_unit_his`;
- CREATE TABLE `bas_product_unit_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(50) NOT NULL COMMENT '单位名称',
- `code` varchar(20) NOT NULL COMMENT '单位编码',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
- `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '排序字段,数值越小越靠前',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品单位历史表';
- -- ----------------------------
- -- Records of bas_product_unit_his
- -- ----------------------------
- BEGIN;
- 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');
- 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');
- 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');
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_attachment
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_attachment`;
- CREATE TABLE `biz_attachment` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `business_type` varchar(50) NOT NULL COMMENT '业务类型: delivery_pickup-取货凭证, delivery_delivery-送达凭证, settlement_file-结算文件, refund_file-退款凭证',
- `business_id` varchar(32) NOT NULL COMMENT '业务ID',
- `file_name` varchar(200) NOT NULL COMMENT '文件名称',
- `file_url` varchar(500) NOT NULL COMMENT '文件URL',
- `file_size` bigint(20) DEFAULT NULL COMMENT '文件大小(字节)',
- `file_type` varchar(50) DEFAULT NULL COMMENT '文件类型',
- `upload_by` varchar(32) DEFAULT NULL COMMENT '上传人ID',
- `upload_by_name` varchar(100) DEFAULT NULL COMMENT '上传人姓名',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_business` (`business_type`,`business_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='附件表';
- -- ----------------------------
- -- Records of biz_attachment
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_attachment_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_attachment_his`;
- CREATE TABLE `biz_attachment_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `business_type` varchar(50) NOT NULL COMMENT '业务类型',
- `business_id` varchar(32) NOT NULL COMMENT '业务ID',
- `file_name` varchar(200) NOT NULL COMMENT '文件名称',
- `file_url` varchar(500) NOT NULL COMMENT '文件URL',
- `file_size` bigint(20) DEFAULT NULL COMMENT '文件大小',
- `file_type` varchar(50) DEFAULT NULL COMMENT '文件类型',
- `upload_by` varchar(32) DEFAULT NULL COMMENT '上传人ID',
- `upload_by_name` varchar(100) DEFAULT NULL COMMENT '上传人姓名',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='附件历史表';
- -- ----------------------------
- -- Records of biz_attachment_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_client_cart
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_client_cart`;
- CREATE TABLE `biz_client_cart` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户用户ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `quantity` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT '数量',
- `unit_price` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '单价(元)',
- `amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '行金额(元)',
- `product_name` varchar(200) DEFAULT NULL COMMENT '商品名称快照',
- `unit_name` varchar(50) DEFAULT NULL COMMENT '单位名称快照',
- `category_name` varchar(100) DEFAULT NULL COMMENT '分类名称快照',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片',
- `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_cart_client` (`client_id`,`is_del`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户购物车';
- -- ----------------------------
- -- Records of biz_client_cart
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_client_cart_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_client_cart_his`;
- CREATE TABLE `biz_client_cart_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户用户ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `quantity` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT '数量',
- `unit_price` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '单价(元)',
- `amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '行金额(元)',
- `product_name` varchar(200) DEFAULT NULL COMMENT '商品名称快照',
- `unit_name` varchar(50) DEFAULT NULL COMMENT '单位名称快照',
- `category_name` varchar(100) DEFAULT NULL COMMENT '分类名称快照',
- `image_url` varchar(500) DEFAULT NULL COMMENT '图片',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- KEY `idx_cart_his_client` (`client_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户购物车历史';
- -- ----------------------------
- -- Records of biz_client_cart_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_deliverer_review
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_deliverer_review`;
- CREATE TABLE `biz_deliverer_review` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `task_id` varchar(32) DEFAULT NULL COMMENT '配送任务ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `deliverer_id` varchar(32) NOT NULL COMMENT '配送员ID',
- `score` int(11) NOT NULL COMMENT '评分(1-5)',
- `tags` varchar(500) DEFAULT NULL COMMENT '评价标签,逗号分隔',
- `content` varchar(1000) DEFAULT NULL COMMENT '评价内容',
- `is_anonymous` tinyint(1) DEFAULT '0' COMMENT '是否匿名',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_task_id` (`task_id`),
- KEY `idx_deliverer_id` (`deliverer_id`),
- KEY `idx_score` (`score`),
- KEY `idx_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送员评价表';
- -- ----------------------------
- -- Records of biz_deliverer_review
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_deliverer_review_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_deliverer_review_his`;
- CREATE TABLE `biz_deliverer_review_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `task_id` varchar(32) DEFAULT NULL COMMENT '配送任务ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `deliverer_id` varchar(32) NOT NULL COMMENT '配送员ID',
- `score` int(11) NOT NULL COMMENT '评分(1-5)',
- `tags` varchar(500) DEFAULT NULL COMMENT '评价标签,逗号分隔',
- `content` varchar(1000) DEFAULT NULL COMMENT '评价内容',
- `is_anonymous` tinyint(1) DEFAULT '0' COMMENT '是否匿名',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送员评价历史表';
- -- ----------------------------
- -- Records of biz_deliverer_review_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_task
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_task`;
- CREATE TABLE `biz_delivery_task` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_no` varchar(50) NOT NULL COMMENT '配送单编号',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
- `deliver_id` varchar(32) DEFAULT NULL COMMENT '配送员ID',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待取货, picking-取货中, delivering-配送中, completed-已完成, cancelled-已取消',
- `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
- `pickup_remark` varchar(500) DEFAULT NULL COMMENT '取货备注',
- `pickup_image_url` varchar(500) DEFAULT NULL COMMENT '取货凭证图片',
- `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
- `delivery_remark` varchar(500) DEFAULT NULL COMMENT '送达备注',
- `delivery_image_url` varchar(500) DEFAULT NULL COMMENT '送达凭证图片',
- `expire_warning_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送过期预警',
- `effective_time` datetime DEFAULT NULL COMMENT '生效时间/配送截止时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_task_no` (`task_no`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_deliver_id` (`deliver_id`),
- KEY `idx_status` (`status`),
- KEY `idx_delivery_task_status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务表';
- -- ----------------------------
- -- Records of biz_delivery_task
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_task_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_task_his`;
- CREATE TABLE `biz_delivery_task_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_no` varchar(50) NOT NULL COMMENT '配送单编号',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
- `deliver_id` varchar(32) DEFAULT NULL COMMENT '配送员ID',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
- `pickup_remark` varchar(500) DEFAULT NULL COMMENT '取货备注',
- `pickup_image_url` varchar(500) DEFAULT NULL COMMENT '取货凭证图片',
- `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
- `delivery_remark` varchar(500) DEFAULT NULL COMMENT '送达备注',
- `delivery_image_url` varchar(500) DEFAULT NULL COMMENT '送达凭证图片',
- `expire_warning_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送过期预警',
- `effective_time` datetime DEFAULT NULL COMMENT '生效时间/配送截止时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务历史表';
- -- ----------------------------
- -- Records of biz_delivery_task_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_task_item
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_task_item`;
- CREATE TABLE `biz_delivery_task_item` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) NOT NULL COMMENT '订单项ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `delivery_address` varchar(500) NOT NULL COMMENT '配送地址',
- `contact_person` varchar(100) NOT NULL COMMENT '联系人',
- `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
- `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '配送数量',
- `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已送达数量',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待配送, picking-取货中, picked-已取货, delivering-配送中, delivered-已送达',
- `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
- `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_task_id` (`task_id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_client_id` (`client_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务明细表';
- -- ----------------------------
- -- Records of biz_delivery_task_item
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_task_item_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_task_item_his`;
- CREATE TABLE `biz_delivery_task_item_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) NOT NULL COMMENT '订单项ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `delivery_address` varchar(500) NOT NULL COMMENT '配送地址',
- `contact_person` varchar(100) NOT NULL COMMENT '联系人',
- `contact_phone` varchar(20) NOT NULL COMMENT '联系电话',
- `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '配送数量',
- `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已送达数量',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `pickup_time` datetime DEFAULT NULL COMMENT '取货时间',
- `delivery_time` datetime DEFAULT NULL COMMENT '送达时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送任务明细历史表';
- -- ----------------------------
- -- Records of biz_delivery_task_item_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_warning
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_warning`;
- CREATE TABLE `biz_delivery_warning` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
- `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
- `warning_type` varchar(20) NOT NULL COMMENT '预警类型: timeout-超时, urgent-紧急, critical-危急',
- `urgency_level` varchar(20) NOT NULL COMMENT '紧急程度: critical-危急, urgent-较急, normal-正常',
- `remaining_minutes` int(11) DEFAULT NULL COMMENT '剩余分钟数',
- `message` varchar(500) DEFAULT NULL COMMENT '预警消息',
- `is_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送通知',
- `sent_time` datetime DEFAULT NULL COMMENT '发送时间',
- `is_resolved` tinyint(1) DEFAULT '0' COMMENT '是否已解决',
- `resolved_time` datetime DEFAULT NULL COMMENT '解决时间',
- `resolved_by` varchar(32) DEFAULT NULL COMMENT '解决人ID',
- `resolved_note` varchar(500) DEFAULT NULL COMMENT '解决备注',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_task_id` (`task_id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_warning_type` (`warning_type`),
- KEY `idx_urgency_level` (`urgency_level`),
- KEY `idx_is_sent` (`is_sent`),
- KEY `idx_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送时效预警表';
- -- ----------------------------
- -- Records of biz_delivery_warning
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_delivery_warning_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_delivery_warning_his`;
- CREATE TABLE `biz_delivery_warning_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `task_id` varchar(32) NOT NULL COMMENT '配送任务ID',
- `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
- `warning_type` varchar(20) NOT NULL COMMENT '预警类型: timeout-超时, urgent-紧急, critical-危急',
- `urgency_level` varchar(20) NOT NULL COMMENT '紧急程度: critical-危急, urgent-较急, normal-正常',
- `remaining_minutes` int(11) DEFAULT NULL COMMENT '剩余分钟数',
- `message` varchar(500) DEFAULT NULL COMMENT '预警消息',
- `is_sent` tinyint(1) DEFAULT '0' COMMENT '是否已发送通知',
- `sent_time` datetime DEFAULT NULL COMMENT '发送时间',
- `is_resolved` tinyint(1) DEFAULT '0' COMMENT '是否已解决',
- `resolved_time` datetime DEFAULT NULL COMMENT '解决时间',
- `resolved_by` varchar(32) DEFAULT NULL COMMENT '解决人ID',
- `resolved_note` varchar(500) DEFAULT NULL COMMENT '解决备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配送时效预警历史表';
- -- ----------------------------
- -- Records of biz_delivery_warning_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_inquiry
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_inquiry`;
- CREATE TABLE `biz_inquiry` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `title` varchar(200) NOT NULL COMMENT '询价单标题',
- `status` varchar(20) DEFAULT 'draft' COMMENT '状态: draft-草稿, published-已发布, closed-已关闭',
- `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
- `close_time` datetime DEFAULT NULL COMMENT '关闭时间',
- `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_region_id` (`region_id`),
- KEY `idx_status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单表';
- -- ----------------------------
- -- Records of biz_inquiry
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_inquiry_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_inquiry_his`;
- CREATE TABLE `biz_inquiry_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `title` varchar(200) NOT NULL COMMENT '询价单标题',
- `status` varchar(20) DEFAULT 'draft' COMMENT '状态',
- `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
- `close_time` datetime DEFAULT NULL COMMENT '关闭时间',
- `remark` varchar(1000) DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单历史表';
- -- ----------------------------
- -- Records of biz_inquiry_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_inquiry_item
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_inquiry_item`;
- CREATE TABLE `biz_inquiry_item` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_inquiry_id` (`inquiry_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单项表';
- -- ----------------------------
- -- Records of biz_inquiry_item
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_inquiry_item_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_inquiry_item_his`;
- CREATE TABLE `biz_inquiry_item_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='询价单项历史表';
- -- ----------------------------
- -- Records of biz_inquiry_item_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_message
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_message`;
- CREATE TABLE `biz_message` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `receiver_id` varchar(32) NOT NULL COMMENT '接收人ID',
- `receiver_name` varchar(100) DEFAULT NULL COMMENT '接收人姓名',
- `message_type` varchar(20) NOT NULL COMMENT '消息类型: system/order/delivery/payment',
- `title` varchar(200) NOT NULL COMMENT '消息标题',
- `content` text COMMENT '消息内容',
- `is_read` tinyint(1) DEFAULT '0' COMMENT '是否已读: 0-未读, 1-已读',
- `read_time` datetime DEFAULT NULL COMMENT '阅读时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_receiver_id` (`receiver_id`),
- KEY `idx_message_type` (`message_type`),
- KEY `idx_is_read` (`is_read`),
- KEY `idx_create_at` (`create_at`),
- KEY `idx_is_del` (`is_del`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知表';
- -- ----------------------------
- -- Records of biz_message
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_message_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_message_his`;
- CREATE TABLE `biz_message_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `receiver_id` varchar(32) NOT NULL COMMENT '接收人ID',
- `receiver_name` varchar(100) DEFAULT NULL COMMENT '接收人姓名',
- `message_type` varchar(20) NOT NULL COMMENT '消息类型',
- `title` varchar(200) NOT NULL COMMENT '消息标题',
- `content` text COMMENT '消息内容',
- `is_read` tinyint(1) DEFAULT '0' COMMENT '是否已读',
- `read_time` datetime DEFAULT NULL COMMENT '阅读时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知历史表';
- -- ----------------------------
- -- Records of biz_message_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order`;
- CREATE TABLE `biz_order` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_no` varchar(50) NOT NULL COMMENT '订单编号',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '使用的价格清单ID',
- `price_version` int(11) NOT NULL COMMENT '价格版本号',
- `status` varchar(30) NOT NULL DEFAULT 'pending_payment' COMMENT '订单状态',
- `payment_method` varchar(20) DEFAULT NULL COMMENT '支付方式: wechat-微信, offline-线下',
- `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '订单总金额',
- `paid_amount` decimal(12,2) DEFAULT '0.00' COMMENT '已付金额',
- `receivable_amount` decimal(12,2) DEFAULT '0.00' COMMENT '应收金额',
- `refund_amount` decimal(12,2) DEFAULT '0.00' COMMENT '退款金额',
- `contact_person` varchar(100) DEFAULT NULL COMMENT '联系人',
- `contact_phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
- `delivery_address` varchar(500) DEFAULT NULL COMMENT '配送地址',
- `cancel_reason` varchar(500) DEFAULT NULL COMMENT '取消原因',
- `cancel_review_time` datetime DEFAULT NULL COMMENT '取消审核时间',
- `cancel_reviewed_by` varchar(32) DEFAULT NULL COMMENT '取消审核人ID',
- `cancel_review_note` varchar(500) DEFAULT NULL COMMENT '取消审核备注',
- `completed_time` datetime DEFAULT NULL COMMENT '完结时间',
- `completed_by` varchar(32) DEFAULT NULL COMMENT '完结人ID',
- `remark` text COMMENT '订单备注',
- `payment_time` datetime DEFAULT NULL COMMENT '支付时间',
- `delivery_assign_time` datetime DEFAULT NULL COMMENT '配送分配时间',
- `lock_operator_id` varchar(32) DEFAULT NULL COMMENT '锁定操作人ID',
- `lock_time` datetime DEFAULT NULL COMMENT '锁定时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_order_no` (`order_no`),
- KEY `idx_region_id` (`region_id`),
- KEY `idx_client_id` (`client_id`),
- KEY `idx_status` (`status`),
- KEY `idx_order_status` (`status`),
- KEY `idx_order_client_status` (`client_id`,`status`),
- KEY `idx_order_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单主表';
- -- ----------------------------
- -- Records of biz_order
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_adjust
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_adjust`;
- CREATE TABLE `biz_order_adjust` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID(调整项)',
- `adjust_type` varchar(20) NOT NULL COMMENT '调整类型: reduce-减量, delete-删除, substitute-替代, add-补录',
- `before_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整前数量',
- `after_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整后数量',
- `before_amount` decimal(12,2) DEFAULT NULL COMMENT '调整前金额',
- `after_amount` decimal(12,2) DEFAULT NULL COMMENT '调整后金额',
- `difference_amount` decimal(12,2) DEFAULT '0.00' COMMENT '差异金额(正数为增加,负数为退还)',
- `reason` varchar(500) NOT NULL COMMENT '调整原因',
- `snapshot_items_json` text COMMENT '调整后订单商品快照(JSON)',
- `substitute_product_id` varchar(32) DEFAULT NULL COMMENT '替代商品ID(substitute类型时)',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_name` varchar(100) NOT NULL COMMENT '操作人姓名',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_order_item_id` (`order_item_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单调整记录表';
- -- ----------------------------
- -- Records of biz_order_adjust
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_adjust_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_adjust_his`;
- CREATE TABLE `biz_order_adjust_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
- `adjust_type` varchar(20) NOT NULL COMMENT '调整类型',
- `before_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整前数量',
- `after_quantity` decimal(12,4) DEFAULT NULL COMMENT '调整后数量',
- `before_amount` decimal(12,2) DEFAULT NULL COMMENT '调整前金额',
- `after_amount` decimal(12,2) DEFAULT NULL COMMENT '调整后金额',
- `difference_amount` decimal(12,2) DEFAULT '0.00' COMMENT '差异金额',
- `reason` varchar(500) NOT NULL COMMENT '调整原因',
- `snapshot_items_json` text COMMENT '调整后订单商品快照(JSON)',
- `substitute_product_id` varchar(32) DEFAULT NULL COMMENT '替代商品ID',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_name` varchar(100) NOT NULL COMMENT '操作人姓名',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单调整记录历史表';
- -- ----------------------------
- -- Records of biz_order_adjust_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_his`;
- CREATE TABLE `biz_order_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_no` varchar(50) NOT NULL COMMENT '订单编号',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '使用的价格清单ID',
- `price_version` int(11) NOT NULL COMMENT '价格版本号',
- `status` varchar(30) NOT NULL DEFAULT 'pending_payment' COMMENT '订单状态',
- `payment_method` varchar(20) DEFAULT NULL COMMENT '支付方式',
- `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '订单总金额',
- `paid_amount` decimal(12,2) DEFAULT '0.00' COMMENT '已付金额',
- `receivable_amount` decimal(12,2) DEFAULT '0.00' COMMENT '应收金额',
- `refund_amount` decimal(12,2) DEFAULT '0.00' COMMENT '退款金额',
- `contact_person` varchar(100) DEFAULT NULL COMMENT '联系人',
- `contact_phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
- `delivery_address` varchar(500) DEFAULT NULL COMMENT '配送地址',
- `cancel_reason` varchar(500) DEFAULT NULL COMMENT '取消原因',
- `cancel_review_time` datetime DEFAULT NULL COMMENT '取消审核时间',
- `cancel_reviewed_by` varchar(32) DEFAULT NULL COMMENT '取消审核人ID',
- `cancel_review_note` varchar(500) DEFAULT NULL COMMENT '取消审核备注',
- `completed_time` datetime DEFAULT NULL COMMENT '完结时间',
- `completed_by` varchar(32) DEFAULT NULL COMMENT '完结人ID',
- `remark` text COMMENT '订单备注',
- `payment_time` datetime DEFAULT NULL COMMENT '支付时间',
- `delivery_assign_time` datetime DEFAULT NULL COMMENT '配送分配时间',
- `lock_operator_id` varchar(32) DEFAULT NULL COMMENT '锁定操作人ID',
- `lock_time` datetime DEFAULT NULL COMMENT '锁定时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单主表历史表';
- -- ----------------------------
- -- Records of biz_order_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_item
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_item`;
- CREATE TABLE `biz_order_item` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '数量',
- `unit_price` decimal(10,2) NOT NULL COMMENT '单价',
- `amount` decimal(12,2) DEFAULT '0.00' COMMENT '金额',
- `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已配送数量',
- `status` varchar(20) DEFAULT 'normal' COMMENT '项状态: normal-正常, reduced-已减量, deleted-已删除, substituted-已替代',
- `note` varchar(500) DEFAULT NULL COMMENT '备注(如缺货原因)',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单项表';
- -- ----------------------------
- -- Records of biz_order_item
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_item_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_item_his`;
- CREATE TABLE `biz_order_item_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '数量',
- `unit_price` decimal(10,2) NOT NULL COMMENT '单价',
- `amount` decimal(12,2) DEFAULT '0.00' COMMENT '金额',
- `delivered_quantity` decimal(12,4) DEFAULT '0.0000' COMMENT '已配送数量',
- `status` varchar(20) DEFAULT 'normal' COMMENT '项状态',
- `note` varchar(500) DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单项历史表';
- -- ----------------------------
- -- Records of biz_order_item_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_status_log
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_status_log`;
- CREATE TABLE `biz_order_status_log` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `from_status` varchar(30) DEFAULT NULL COMMENT '变更前状态',
- `to_status` varchar(30) NOT NULL COMMENT '变更后状态',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
- `reason` varchar(500) DEFAULT NULL COMMENT '变更原因',
- `note` varchar(1000) DEFAULT NULL COMMENT '备注',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单状态变更日志表';
- -- ----------------------------
- -- Records of biz_order_status_log
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_order_status_log_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_order_status_log_his`;
- CREATE TABLE `biz_order_status_log_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `from_status` varchar(30) DEFAULT NULL COMMENT '变更前状态',
- `to_status` varchar(30) NOT NULL COMMENT '变更后状态',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
- `reason` varchar(500) DEFAULT NULL COMMENT '变更原因',
- `note` varchar(1000) DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单状态变更日志历史表';
- -- ----------------------------
- -- Records of biz_order_status_log_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_price_list
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_price_list`;
- CREATE TABLE `biz_price_list` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '选用供应商ID',
- `version` int(11) DEFAULT '1' COMMENT '版本号',
- `status` varchar(20) DEFAULT 'draft' COMMENT '状态: draft-草稿, pending-待生效, active-生效中, inactive-已失效',
- `effective_time` datetime DEFAULT NULL COMMENT '生效时间',
- `published_by` varchar(32) DEFAULT NULL COMMENT '发布人ID',
- `published_time` datetime DEFAULT NULL COMMENT '发布时间',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_region_id` (`region_id`),
- KEY `idx_status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域价格清单表';
- -- ----------------------------
- -- Records of biz_price_list
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_price_list_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_price_list_his`;
- CREATE TABLE `biz_price_list_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '选用供应商ID',
- `version` int(11) DEFAULT '1' COMMENT '版本号',
- `status` varchar(20) DEFAULT 'draft' COMMENT '状态',
- `effective_time` datetime DEFAULT NULL COMMENT '生效时间',
- `published_by` varchar(32) DEFAULT NULL COMMENT '发布人ID',
- `published_time` datetime DEFAULT NULL COMMENT '发布时间',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域价格清单历史表';
- -- ----------------------------
- -- Records of biz_price_list_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_price_list_item
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_price_list_item`;
- CREATE TABLE `biz_price_list_item` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `price` decimal(10,2) NOT NULL COMMENT '单价',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_price_list_id` (`price_list_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='价格清单项表';
- -- ----------------------------
- -- Records of biz_price_list_item
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_price_list_item_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_price_list_item_his`;
- CREATE TABLE `biz_price_list_item_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `price_list_id` varchar(32) NOT NULL COMMENT '价格清单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `price` decimal(10,2) NOT NULL COMMENT '单价',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='价格清单项历史表';
- -- ----------------------------
- -- Records of biz_price_list_item_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_product_review
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_product_review`;
- CREATE TABLE `biz_product_review` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
- `user_id` varchar(32) NOT NULL COMMENT '评价用户ID',
- `user_name` varchar(100) DEFAULT NULL COMMENT '评价用户姓名',
- `rating` tinyint(4) NOT NULL DEFAULT '5' COMMENT '评分(1-5星)',
- `rating_tags` varchar(500) DEFAULT NULL COMMENT '评价标签,多个逗号分隔',
- `content` text COMMENT '评价内容',
- `is_anonymous` int(11) DEFAULT '0' COMMENT '是否匿名:0-否, 1-是',
- `reply_content` text COMMENT '商家回复内容',
- `reply_time` datetime DEFAULT NULL COMMENT '商家回复时间',
- `reply_by` varchar(32) DEFAULT NULL COMMENT '回复人ID',
- `reply_by_name` varchar(100) DEFAULT NULL COMMENT '回复人姓名',
- `like_count` int(11) DEFAULT '0' COMMENT '点赞数',
- `is_top` int(11) DEFAULT '0' COMMENT '是否置顶:0-否, 1-是',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态:pending-待审核, approved-已通过, rejected-已拒绝',
- `reject_reason` varchar(500) DEFAULT NULL COMMENT '拒绝原因',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_product_id` (`product_id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_user_id` (`user_id`),
- KEY `idx_rating` (`rating`),
- KEY `idx_status` (`status`),
- KEY `idx_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品售后评价表';
- -- ----------------------------
- -- Records of biz_product_review
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_product_review_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_product_review_his`;
- CREATE TABLE `biz_product_review_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `product_id` varchar(32) DEFAULT NULL COMMENT '商品ID',
- `order_id` varchar(32) DEFAULT NULL COMMENT '订单ID',
- `order_item_id` varchar(32) DEFAULT NULL COMMENT '订单项ID',
- `user_id` varchar(32) DEFAULT NULL COMMENT '评价用户ID',
- `user_name` varchar(100) DEFAULT NULL COMMENT '评价用户姓名',
- `rating` tinyint(4) DEFAULT '5' COMMENT '评分',
- `rating_tags` varchar(500) DEFAULT NULL COMMENT '评价标签',
- `content` text COMMENT '评价内容',
- `is_anonymous` int(11) DEFAULT '0' COMMENT '是否匿名',
- `reply_content` text COMMENT '商家回复内容',
- `reply_time` datetime DEFAULT NULL COMMENT '商家回复时间',
- `reply_by` varchar(32) DEFAULT NULL COMMENT '回复人ID',
- `reply_by_name` varchar(100) DEFAULT NULL COMMENT '回复人姓名',
- `like_count` int(11) DEFAULT '0' COMMENT '点赞数',
- `is_top` int(11) DEFAULT '0' COMMENT '是否置顶',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `reject_reason` varchar(500) DEFAULT NULL COMMENT '拒绝原因',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品售后评价历史表';
- -- ----------------------------
- -- Records of biz_product_review_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_product_review_media
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_product_review_media`;
- CREATE TABLE `biz_product_review_media` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `review_id` varchar(32) NOT NULL COMMENT '评价ID',
- `media_type` varchar(20) NOT NULL DEFAULT 'image' COMMENT '媒体类型:image-图片, video-视频',
- `file_url` varchar(500) NOT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL(视频时使用)',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序(数字越小越靠前)',
- `is_del` int(11) DEFAULT '0' COMMENT '是否删除:0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_review_id` (`review_id`),
- KEY `idx_sort_order` (`sort_order`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品评价媒体表';
- -- ----------------------------
- -- Records of biz_product_review_media
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_product_review_media_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_product_review_media_his`;
- CREATE TABLE `biz_product_review_media_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `review_id` varchar(32) DEFAULT NULL COMMENT '评价ID',
- `media_type` varchar(20) DEFAULT 'image' COMMENT '媒体类型',
- `file_url` varchar(500) DEFAULT NULL COMMENT '文件URL地址',
- `thumbnail_url` varchar(500) DEFAULT NULL COMMENT '缩略图URL',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品评价媒体历史表';
- -- ----------------------------
- -- Records of biz_product_review_media_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_quotation
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_quotation`;
- CREATE TABLE `biz_quotation` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待审核, approved-已通过, rejected-已拒绝',
- `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '报价总金额',
- `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_inquiry_id` (`inquiry_id`),
- KEY `idx_supplier_id` (`supplier_id`),
- KEY `idx_region_id` (`region_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商报价单表';
- -- ----------------------------
- -- Records of biz_quotation
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_quotation_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_quotation_his`;
- CREATE TABLE `biz_quotation_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `inquiry_id` varchar(32) NOT NULL COMMENT '询价单ID',
- `supplier_id` varchar(32) NOT NULL COMMENT '供应商ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `total_amount` decimal(12,2) DEFAULT '0.00' COMMENT '报价总金额',
- `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='供应商报价单历史表';
- -- ----------------------------
- -- Records of biz_quotation_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_quotation_item
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_quotation_item`;
- CREATE TABLE `biz_quotation_item` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `quotation_id` varchar(32) NOT NULL COMMENT '报价单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `price` decimal(10,2) NOT NULL COMMENT '单价',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_quotation_id` (`quotation_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='报价单项表';
- -- ----------------------------
- -- Records of biz_quotation_item
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_quotation_item_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_quotation_item_his`;
- CREATE TABLE `biz_quotation_item_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `quotation_id` varchar(32) NOT NULL COMMENT '报价单ID',
- `product_id` varchar(32) NOT NULL COMMENT '商品ID',
- `unit_id` varchar(32) NOT NULL COMMENT '单位ID',
- `price` decimal(10,2) NOT NULL COMMENT '单价',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='报价单项历史表';
- -- ----------------------------
- -- Records of biz_quotation_item_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_refund
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_refund`;
- CREATE TABLE `biz_refund` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `refund_no` varchar(50) NOT NULL COMMENT '退款单编号',
- `refund_amount` decimal(12,2) NOT NULL COMMENT '退款金额',
- `refund_method` varchar(20) NOT NULL COMMENT '退款方式: wechat-微信原路退回, offline-线下冲销',
- `refund_no_wechat` varchar(100) DEFAULT NULL COMMENT '微信退款单号',
- `refund_time` datetime DEFAULT NULL COMMENT '退款时间',
- `refund_result` varchar(20) DEFAULT 'success' COMMENT '退款结果: success-成功, failed-失败, processing-处理中',
- `refund_fail_reason` varchar(500) DEFAULT NULL COMMENT '退款失败原因',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待处理, success-成功, failed-失败',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_refund_no` (`refund_no`),
- KEY `idx_order_id` (`order_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='退款记录表';
- -- ----------------------------
- -- Records of biz_refund
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_refund_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_refund_his`;
- CREATE TABLE `biz_refund_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `refund_no` varchar(50) NOT NULL COMMENT '退款单编号',
- `refund_amount` decimal(12,2) NOT NULL COMMENT '退款金额',
- `refund_method` varchar(20) NOT NULL COMMENT '退款方式',
- `refund_no_wechat` varchar(100) DEFAULT NULL COMMENT '微信退款单号',
- `refund_time` datetime DEFAULT NULL COMMENT '退款时间',
- `refund_result` varchar(20) DEFAULT 'success' COMMENT '退款结果',
- `refund_fail_reason` varchar(500) DEFAULT NULL COMMENT '退款失败原因',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='退款记录历史表';
- -- ----------------------------
- -- Records of biz_refund_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_settlement
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_settlement`;
- CREATE TABLE `biz_settlement` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `amount` decimal(12,2) NOT NULL COMMENT '结算金额',
- `settlement_method` varchar(20) NOT NULL COMMENT '结算方式: transfer-转账, cash-现金, other-其他',
- `settlement_time` datetime DEFAULT NULL COMMENT '结算时间',
- `settlement_file_url` varchar(500) DEFAULT NULL COMMENT '结算凭证文件URL',
- `settlement_note` varchar(500) DEFAULT NULL COMMENT '结算备注',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态: pending-待确认, completed-已完成',
- `reviewed_by` varchar(32) DEFAULT NULL COMMENT '审核人ID',
- `reviewed_time` datetime DEFAULT NULL COMMENT '审核时间',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_client_id` (`client_id`),
- KEY `idx_status` (`status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='线下结算记录表';
- -- ----------------------------
- -- Records of biz_settlement
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_settlement_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_settlement_his`;
- CREATE TABLE `biz_settlement_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `client_id` varchar(32) NOT NULL COMMENT '客户ID',
- `region_id` varchar(32) NOT NULL COMMENT '区域ID',
- `amount` decimal(12,2) NOT NULL COMMENT '结算金额',
- `settlement_method` varchar(20) NOT NULL COMMENT '结算方式',
- `settlement_time` datetime DEFAULT NULL COMMENT '结算时间',
- `settlement_file_url` varchar(500) DEFAULT NULL COMMENT '结算凭证文件URL',
- `settlement_note` varchar(500) DEFAULT NULL COMMENT '结算备注',
- `status` varchar(20) DEFAULT 'pending' COMMENT '状态',
- `reviewed_by` varchar(32) DEFAULT NULL COMMENT '审核人ID',
- `reviewed_time` datetime DEFAULT NULL COMMENT '审核时间',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='线下结算记录历史表';
- -- ----------------------------
- -- Records of biz_settlement_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_system_config
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_system_config`;
- CREATE TABLE `biz_system_config` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `config_key` varchar(100) NOT NULL COMMENT '配置键',
- `config_value` text COMMENT '配置值',
- `config_type` varchar(50) DEFAULT 'string' COMMENT '配置类型: string, number, boolean, json',
- `config_name` varchar(100) NOT NULL COMMENT '配置名称',
- `config_group` varchar(50) DEFAULT NULL COMMENT '配置分组',
- `description` varchar(500) DEFAULT NULL COMMENT '描述',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-禁用, 1-启用',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_config_key` (`config_key`),
- KEY `idx_config_group` (`config_group`),
- KEY `idx_is_del` (`is_del`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统配置表';
- -- ----------------------------
- -- Records of biz_system_config
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_system_config_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_system_config_his`;
- CREATE TABLE `biz_system_config_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `config_key` varchar(100) NOT NULL COMMENT '配置键',
- `config_value` text COMMENT '配置值',
- `config_type` varchar(50) DEFAULT 'string' COMMENT '配置类型',
- `config_name` varchar(100) NOT NULL COMMENT '配置名称',
- `config_group` varchar(50) DEFAULT NULL COMMENT '配置分组',
- `description` varchar(500) DEFAULT NULL COMMENT '描述',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统配置历史表';
- -- ----------------------------
- -- Records of biz_system_config_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_wechat_pay
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_wechat_pay`;
- CREATE TABLE `biz_wechat_pay` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `out_trade_no` varchar(64) NOT NULL COMMENT '商户订单号',
- `transaction_id` varchar(64) DEFAULT NULL COMMENT '微信支付订单号',
- `total_fee` int(11) NOT NULL COMMENT '支付金额(分)',
- `cash_fee` int(11) DEFAULT NULL COMMENT '现金支付金额(分)',
- `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
- `trade_state` varchar(20) DEFAULT NULL COMMENT '交易状态: SUCCESS-支付成功, REFUND-转入退款, NOTPAY-未支付, CLOSED-已关闭, PAYERROR-支付失败',
- `trade_state_desc` varchar(200) DEFAULT NULL COMMENT '交易状态描述',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_out_trade_no` (`out_trade_no`),
- KEY `idx_order_id` (`order_id`),
- KEY `idx_trade_state` (`trade_state`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信支付订单表';
- -- ----------------------------
- -- Records of biz_wechat_pay
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for biz_wechat_pay_his
- -- ----------------------------
- DROP TABLE IF EXISTS `biz_wechat_pay_his`;
- CREATE TABLE `biz_wechat_pay_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `order_id` varchar(32) NOT NULL COMMENT '订单ID',
- `out_trade_no` varchar(64) NOT NULL COMMENT '商户订单号',
- `transaction_id` varchar(64) DEFAULT NULL COMMENT '微信支付订单号',
- `total_fee` int(11) NOT NULL COMMENT '支付金额(分)',
- `cash_fee` int(11) DEFAULT NULL COMMENT '现金支付金额(分)',
- `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
- `trade_state` varchar(20) DEFAULT NULL COMMENT '交易状态',
- `trade_state_desc` varchar(200) DEFAULT NULL COMMENT '交易状态描述',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信支付订单历史表';
- -- ----------------------------
- -- Records of biz_wechat_pay_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_audit_log
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_audit_log`;
- CREATE TABLE `sys_audit_log` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `module` varchar(50) NOT NULL COMMENT '模块: user-用户, region-区域, inquiry-询价, quotation-报价, price-价格, order-订单, delivery-配送, settlement-结算',
- `operation` varchar(50) NOT NULL COMMENT '操作类型: create-创建, update-更新, delete-删除, login-登录, logout-登出, publish-发布, cancel-取消, refund-退款, settle-结算等',
- `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
- `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
- `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `request_method` varchar(10) DEFAULT NULL COMMENT '请求方法',
- `request_url` varchar(500) DEFAULT NULL COMMENT '请求URL',
- `request_params` text COMMENT '请求参数',
- `response_result` text COMMENT '响应结果',
- `error_message` varchar(1000) DEFAULT NULL COMMENT '错误信息',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_module` (`module`),
- KEY `idx_operation` (`operation`),
- KEY `idx_target_id` (`target_id`),
- KEY `idx_operator_id` (`operator_id`),
- KEY `idx_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='审计日志表';
- -- ----------------------------
- -- Records of sys_audit_log
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_audit_log_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_audit_log_his`;
- CREATE TABLE `sys_audit_log_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `module` varchar(50) NOT NULL COMMENT '模块: user-用户, region-区域, inquiry-询价, quotation-报价, price-价格, order-订单, delivery-配送, settlement-结算',
- `operation` varchar(50) NOT NULL COMMENT '操作类型: create-创建, update-更新, delete-删除, login-登录, logout-登出, publish-发布, cancel-取消, refund-退款, settle-结算等',
- `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
- `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
- `operator_id` varchar(32) NOT NULL COMMENT '操作人ID',
- `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
- `operator_role` varchar(20) NOT NULL COMMENT '操作人角色',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `request_method` varchar(10) DEFAULT NULL COMMENT '请求方法',
- `request_url` varchar(500) DEFAULT NULL COMMENT '请求URL',
- `request_params` text COMMENT '请求参数',
- `response_result` text COMMENT '响应结果',
- `error_message` varchar(1000) DEFAULT NULL COMMENT '错误信息',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='审计日志历史表';
- -- ----------------------------
- -- Records of sys_audit_log_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_comment
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_comment`;
- CREATE TABLE `sys_comment` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `parent_id` varchar(32) DEFAULT NULL COMMENT '父评论ID',
- `author` varchar(100) NOT NULL COMMENT '评论者',
- `author_id` varchar(32) DEFAULT NULL COMMENT '评论者ID',
- `content` varchar(1000) NOT NULL COMMENT '评论内容',
- `target_type` varchar(50) DEFAULT NULL COMMENT '目标类型',
- `target_id` varchar(32) DEFAULT NULL COMMENT '目标ID',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_parent_id` (`parent_id`),
- KEY `idx_target` (`target_type`,`target_id`),
- KEY `idx_create_at` (`create_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统评论表';
- -- ----------------------------
- -- Records of sys_comment
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_login_log
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_login_log`;
- CREATE TABLE `sys_login_log` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `username` varchar(50) NOT NULL COMMENT '用户名',
- `role` varchar(20) DEFAULT NULL COMMENT '用户角色',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理',
- `login_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
- `logout_time` datetime DEFAULT NULL COMMENT '登出时间',
- `login_result` varchar(20) DEFAULT 'success' COMMENT '登录结果: success-成功, failed-失败',
- `fail_reason` varchar(200) DEFAULT NULL COMMENT '失败原因',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_user_id` (`user_id`),
- KEY `idx_login_time` (`login_time`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='登录日志表';
- -- ----------------------------
- -- Records of sys_login_log
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_login_log_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_login_log_his`;
- CREATE TABLE `sys_login_log_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `username` varchar(50) NOT NULL COMMENT '用户名',
- `role` varchar(20) DEFAULT NULL COMMENT '用户角色',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `user_agent` varchar(500) DEFAULT NULL COMMENT '用户代理',
- `login_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
- `logout_time` datetime DEFAULT NULL COMMENT '登出时间',
- `login_result` varchar(20) DEFAULT 'success' COMMENT '登录结果: success-成功, failed-失败',
- `fail_reason` varchar(200) DEFAULT NULL COMMENT '失败原因',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='登录日志历史表';
- -- ----------------------------
- -- Records of sys_login_log_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_menu
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_menu`;
- CREATE TABLE `sys_menu` (
- `id` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键ID',
- `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单名称',
- `code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单编码(唯一标识)',
- `path` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '路由路径',
- `component` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件路径',
- `icon` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '菜单图标',
- `parent_id` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父菜单ID',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序(数字越小越靠前)',
- `redirect` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '重定向路径',
- `menu_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'menu' COMMENT '菜单类型: menu-菜单, button-按钮',
- `is_visible` tinyint(4) DEFAULT '1' COMMENT '是否显示: 0-隐藏, 1-显示',
- `is_cache` tinyint(4) DEFAULT '0' COMMENT '是否缓存: 0-不缓存, 1-缓存',
- `is_active` tinyint(4) DEFAULT '1' COMMENT '是否启用: 0-禁用, 1-启用',
- `is_del` tinyint(4) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `remark` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_code` (`code`),
- KEY `idx_parent_id` (`parent_id`),
- KEY `idx_is_del` (`is_del`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='菜单表';
- -- ----------------------------
- -- Records of sys_menu
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_menu_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_menu_his`;
- CREATE TABLE `sys_menu_his` (
- `id` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '主键ID',
- `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单名称',
- `code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单编码',
- `path` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '路由路径',
- `component` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件路径',
- `icon` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '菜单图标',
- `parent_id` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父菜单ID',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `redirect` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '重定向路径',
- `menu_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'menu' COMMENT '菜单类型',
- `is_visible` tinyint(4) DEFAULT '1' COMMENT '是否显示',
- `is_cache` tinyint(4) DEFAULT '0' COMMENT '是否缓存',
- `is_active` tinyint(4) DEFAULT '1' COMMENT '是否启用',
- `remark` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT NULL COMMENT '创建时间',
- `create_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='菜单历史表';
- -- ----------------------------
- -- Records of sys_menu_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_password_history
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_password_history`;
- CREATE TABLE `sys_password_history` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `operation_type` varchar(20) NOT NULL COMMENT '操作类型: modify-自主修改, reset-重置',
- `operator_id` varchar(32) DEFAULT NULL COMMENT '操作人ID(重置时)',
- `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_user_id` (`user_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='密码修改历史表';
- -- ----------------------------
- -- Records of sys_password_history
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_password_history_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_password_history_his`;
- CREATE TABLE `sys_password_history_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `user_id` varchar(32) NOT NULL COMMENT '用户ID',
- `operation_type` varchar(20) NOT NULL COMMENT '操作类型: modify-自主修改, reset-重置',
- `operator_id` varchar(32) DEFAULT NULL COMMENT '操作人ID(重置时)',
- `operator_name` varchar(100) DEFAULT NULL COMMENT '操作人姓名',
- `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='密码修改历史表';
- -- ----------------------------
- -- Records of sys_password_history_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_region
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_region`;
- CREATE TABLE `sys_region` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) NOT NULL COMMENT '区域名称',
- `code` varchar(50) NOT NULL COMMENT '区域编码',
- `description` varchar(500) DEFAULT NULL COMMENT '区域描述',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `expected_delivery_minutes` int(11) DEFAULT NULL COMMENT '预计配送时长(分钟)',
- `delivery_warn_advance_minutes` int(11) DEFAULT NULL COMMENT '计划到货前未送达时预警提前时间(分钟)',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用: 0-否, 1-是',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_code` (`code`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域表';
- -- ----------------------------
- -- Records of sys_region
- -- ----------------------------
- BEGIN;
- 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');
- 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');
- 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');
- 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);
- 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');
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_region_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_region_his`;
- CREATE TABLE `sys_region_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `name` varchar(100) NOT NULL COMMENT '区域名称',
- `code` varchar(50) NOT NULL COMMENT '区域编码',
- `description` varchar(500) DEFAULT NULL COMMENT '区域描述',
- `sort_order` int(11) DEFAULT '0' COMMENT '排序',
- `expected_delivery_minutes` int(11) DEFAULT NULL COMMENT '预计配送时长(分钟)',
- `delivery_warn_advance_minutes` int(11) DEFAULT NULL COMMENT '计划到货前未送达时预警提前时间(分钟)',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否启用',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域历史表';
- -- ----------------------------
- -- Records of sys_region_his
- -- ----------------------------
- BEGIN;
- 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');
- 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');
- 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');
- 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');
- 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');
- 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');
- 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');
- 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');
- 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');
- 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');
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_upgrade_log
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_upgrade_log`;
- CREATE TABLE `sys_upgrade_log` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `version` varchar(50) NOT NULL COMMENT '版本号',
- `title` varchar(200) NOT NULL COMMENT '更新标题',
- `date` datetime NOT NULL COMMENT '更新日期',
- `detail` text COMMENT '更新详情(JSON数组)',
- `require_re_login` tinyint(1) DEFAULT '0' COMMENT '是否需要重新登录: 0-否, 1-是',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- KEY `idx_version` (`version`),
- KEY `idx_date` (`date`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统更新日志表';
- -- ----------------------------
- -- Records of sys_upgrade_log
- -- ----------------------------
- BEGIN;
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_upgrade_log_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_upgrade_log_his`;
- CREATE TABLE `sys_upgrade_log_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `version` varchar(50) NOT NULL COMMENT '版本号',
- `title` varchar(200) NOT NULL COMMENT '更新标题',
- `date` datetime NOT NULL COMMENT '更新日期',
- `detail` text COMMENT '更新详情(JSON数组)',
- `require_re_login` tinyint(1) DEFAULT '0' COMMENT '是否需要重新登录',
- `remark` varchar(500) DEFAULT NULL COMMENT '备注',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统更新日志历史表';
- -- ----------------------------
- -- Records of sys_upgrade_log_his
- -- ----------------------------
- BEGIN;
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_user
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_user`;
- CREATE TABLE `sys_user` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `username` varchar(50) NOT NULL COMMENT '用户名',
- `password_hash` varchar(255) NOT NULL COMMENT '密码哈希',
- `real_name` varchar(100) DEFAULT NULL COMMENT '真实姓名',
- `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
- `wx_mini_openid` varchar(64) DEFAULT NULL COMMENT '微信小程序openid',
- `role` varchar(20) NOT NULL COMMENT '角色: admin-运营, supplier-供应商, client-客户, deliver-配送员',
- `region_id` varchar(32) DEFAULT NULL COMMENT '所属区域ID',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活: 0-否, 1-是',
- `is_del` tinyint(1) DEFAULT '0' COMMENT '是否删除: 0-否, 1-是',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_username` (`username`),
- UNIQUE KEY `uk_sys_user_wx_mini_openid` (`wx_mini_openid`),
- KEY `idx_role` (`role`),
- KEY `idx_region_id` (`region_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
- -- ----------------------------
- -- Records of sys_user
- -- ----------------------------
- BEGIN;
- 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');
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- 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);
- COMMIT;
- -- ----------------------------
- -- Table structure for sys_user_his
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_user_his`;
- CREATE TABLE `sys_user_his` (
- `id` varchar(32) NOT NULL COMMENT '主键ID',
- `username` varchar(50) NOT NULL COMMENT '用户名',
- `password_hash` varchar(255) NOT NULL COMMENT '密码哈希',
- `real_name` varchar(100) DEFAULT NULL COMMENT '真实姓名',
- `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
- `role` varchar(20) NOT NULL COMMENT '角色',
- `region_id` varchar(32) DEFAULT NULL COMMENT '所属区域ID',
- `is_active` tinyint(1) DEFAULT '1' COMMENT '是否激活',
- `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_by` varchar(32) DEFAULT NULL COMMENT '创建人ID',
- `create_name` varchar(100) DEFAULT NULL COMMENT '创建人姓名',
- `update_at` datetime DEFAULT NULL COMMENT '修改时间',
- `update_by` varchar(32) DEFAULT NULL COMMENT '修改人ID',
- `his_create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '历史记录创建时间',
- `wx_mini_openid` varchar(64) DEFAULT NULL COMMENT '微信小程序openid'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户历史表';
- -- ----------------------------
- -- Records of sys_user_his
- -- ----------------------------
- BEGIN;
- 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);
- 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);
- 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);
- COMMIT;
- SET FOREIGN_KEY_CHECKS = 1;
|