diff --git a/src/main/java/com/bonus/aqgqj/basis/controller/CustomController.java b/src/main/java/com/bonus/aqgqj/basis/controller/CustomController.java index 09dcb9c..e1e5525 100644 --- a/src/main/java/com/bonus/aqgqj/basis/controller/CustomController.java +++ b/src/main/java/com/bonus/aqgqj/basis/controller/CustomController.java @@ -106,8 +106,6 @@ public class CustomController { return ServerResponse.createErroe("单位客户名称 “"+data.getData().getCustomName() + "” 已存在"); } customService.add(data.getData()); - Long id = customService.getCustomNewId(data.getData().getCustomName()); - customService.updatePid(id); return ServerResponse.createBySuccessMsg("操作成功"); }catch (Exception e){ log.error(e.toString(),e); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c08e40a..7833be7 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -40,7 +40,7 @@ mybatis.type-aliases-package=com.bonus.aqgqj.*.vo #spring.redis.database=4 spring.redis.host=127.0.0.1 spring.redis.port=6379 -spring.redis.password=123456 +#spring.redis.password=123456 #spring.redis.host=192.168.0.14 #spring.redis.port=2002 diff --git a/src/main/resources/mappers/basis/CustomMapper.xml b/src/main/resources/mappers/basis/CustomMapper.xml index 761f721..3238184 100644 --- a/src/main/resources/mappers/basis/CustomMapper.xml +++ b/src/main/resources/mappers/basis/CustomMapper.xml @@ -92,9 +92,9 @@ - insert into tb_custom(custom_name,dept_id,custom_type,custom_user,custom_phone,create_time,del_flag + insert into tb_custom(custom_name,dept_id,custom_type,custom_user,custom_phone,create_time,del_flag,p_id )values ( - #{customName},0,#{customType},#{customUser},#{customPhone},now(),0 + #{customName},0,#{customType},#{customUser},#{customPhone},now(),0,0 )