org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'platform_fee' at row 1
### The error may exist in com/etotem/cfc/mapper/TaskTemplatePackageMapper.java (best guess)
### The error may involve com.etotem.cfc.mapper.TaskTemplatePackageMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO task_template_packages ( creator_id, name, description, cycle_days, price, platform_fee, is_public, share_code, status, created_at, updated_at ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'platform_fee' at row 1
; Data truncation: Out of range value for column 'platform_fee' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'platform_fee' at row 1
at com.etotem.cfc.integration.GuideModuleIntegrationTest.testGuidePackageCreationFlow(GuideModuleIntegrationTest.java:63)
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'platform_fee' at row 1
at com.etotem.cfc.integration.GuideModuleIntegrationTest.testGuidePackageCreationFlow(GuideModuleIntegrationTest.java:63)
Preparing: INSERT INTO service_types ( name, icon, description, status ) VALUES ( ?, ?, ?, ? )
2026-11-05 06:55:46.435 DEBUG 15436 --- [ main] c.e.cfc.mapper.ServiceTypeMapper.insert : ==> Parameters: DAN测评(String), ?(String), DAN发展评估服务(String), ACTIVE(String)
2026-11-05 06:55:46.465 DEBUG 15436 --- [ main] c.e.cfc.mapper.ServiceTypeMapper.insert : <== Updates: 1
2026-11-05 06:55:46.466 DEBUG 15436 --- [ main] c.e.c.m.ServiceContentMapper.insert : ==> Preparing: INSERT INTO service_contents ( type_id, title, content, duration, age_range, price, status ) VALUES ( ?, ?, ?, ?, ?, ?, ? )
2026-11-05 06:55:46.466 DEBUG 15436 --- [ main] c.e.c.m.ServiceContentMapper.insert : ==> Parameters: 442(Long), 1对1 DAN测评(String), 服务介绍
全面评估孩子发展水平
(String), 60(Integer), 3-12岁(String), 80000(Integer), ACTIVE(String)
2026-11-05 06:55:46.499 DEBUG 15436 --- [ main] c.e.c.m.ServiceContentMapper.insert : <== Updates: 1
2026-11-05 06:55:46.514 DEBUG 15436 --- [ main] c.e.c.m.T.selectList : ==> Preparing: SELECT id,creator_id,name,description,cycle_days,category,tags,price,platform_fee,is_public,share_code,cover_image,status,reviewer_id,reviewed_at,reject_reason,created_at,updated_at FROM task_template_packages WHERE (share_code = ?)
2026-11-05 06:55:46.515 DEBUG 15436 --- [ main] c.e.c.m.T.selectList : ==> Parameters: F3F3AAA8(String)
2026-11-05 06:55:46.517 DEBUG 15436 --- [ main] c.e.c.m.T.selectList : <== Total: 0
2026-11-05 06:55:46.521 DEBUG 15436 --- [ main] c.e.c.m.T.insert : ==> Preparing: INSERT INTO task_template_packages ( creator_id, name, description, cycle_days, price, platform_fee, is_public, share_code, status, created_at, updated_at ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
2026-11-05 06:55:46.521 DEBUG 15436 --- [ main] c.e.c.m.T.insert : ==> Parameters: 1(Long), 年度旗舰版(String), 全年度服务(String), 365(Integer), 198000(Integer), 19800(Integer), 0(Integer), F3F3AAA8(String), draft(String), 2026-11-05 06:55:46.518(Timestamp), 2026-11-05 06:55:46.518(Timestamp)
]]>