master:审核档口报错BUG;

pull/1121/head
liujiang 2025-11-19 23:12:45 +08:00
parent 383b3e46c6
commit 70d41d5d6d
2 changed files with 1 additions and 2 deletions

View File

@ -3201,7 +3201,6 @@ CREATE TABLE `store`
`store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档口名称',
`store_weight` int NULL DEFAULT NULL COMMENT '权重',
`store_logo_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT '档口logo',
`brand_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '品牌名称',
`contact_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人',
`contact_phone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`contact_back_phone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备选联系电话',

View File

@ -878,7 +878,7 @@ public class StoreServiceImpl implements IStoreService {
// 默认创建现金客户
this.storeCusMapper.insert(new StoreCustomer().setStoreId(storeId).setPhone(contactPhone).setCusName(Constants.STORE_CUS_CASH));
// 创建默认的工厂
this.storeFactoryMapper.insert(new StoreFactory().setFacName(storeName + "工厂"));
this.storeFactoryMapper.insert(new StoreFactory().setStoreId(storeId).setFacName(storeName + "工厂"));
// 创建默认的需求模板
this.storeTemplateService.initTemplate(storeId);
}