修改客户管理

This commit is contained in:
haozq 2024-07-27 14:35:18 +08:00
parent 22bb82236d
commit e3f2272685
3 changed files with 3 additions and 5 deletions

View File

@ -106,8 +106,6 @@ public class CustomController {
return ServerResponse.createErroe("单位客户名称 “"+data.getData().getCustomName() + "” 已存在"); return ServerResponse.createErroe("单位客户名称 “"+data.getData().getCustomName() + "” 已存在");
} }
customService.add(data.getData()); customService.add(data.getData());
Long id = customService.getCustomNewId(data.getData().getCustomName());
customService.updatePid(id);
return ServerResponse.createBySuccessMsg("操作成功"); return ServerResponse.createBySuccessMsg("操作成功");
}catch (Exception e){ }catch (Exception e){
log.error(e.toString(),e); log.error(e.toString(),e);

View File

@ -40,7 +40,7 @@ mybatis.type-aliases-package=com.bonus.aqgqj.*.vo
#spring.redis.database=4 #spring.redis.database=4
spring.redis.host=127.0.0.1 spring.redis.host=127.0.0.1
spring.redis.port=6379 spring.redis.port=6379
spring.redis.password=123456 #spring.redis.password=123456
#spring.redis.host=192.168.0.14 #spring.redis.host=192.168.0.14
#spring.redis.port=2002 #spring.redis.port=2002

View File

@ -92,9 +92,9 @@
</update> </update>
<insert id="add" parameterType="com.bonus.aqgqj.basis.entity.vo.BaseCustom" useGeneratedKeys="true" keyProperty="id,p_id" > <insert id="add" parameterType="com.bonus.aqgqj.basis.entity.vo.BaseCustom" useGeneratedKeys="true" keyProperty="id,p_id" >
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 ( )values (
#{customName},0,#{customType},#{customUser},#{customPhone},now(),0 #{customName},0,#{customType},#{customUser},#{customPhone},now(),0,0
) )
</insert> </insert>