feat:新增企业管理添加

dev.vehiclegateway
袁子龙 2024-10-02 14:39:19 +08:00
parent 3393804735
commit 954a8939c6
6 changed files with 26 additions and 1 deletions

View File

@ -67,8 +67,20 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
*/
int insertUser(SysUser user);
/**
*
* @param enterprise
* @return
*/
int enterprise(Enterprise enterprise);
/**
*
* @param enterprise
* @return
*/
int enterPriseAdd(Enterprise enterprise);
/**
*
*

View File

@ -6,6 +6,7 @@ import com.muyu.system.domain.SysConfig;
import java.util.List;
/**
* plus
* @author DongZl
* @description: plus
* @Date 2023-11-13 10:06

View File

@ -18,6 +18,7 @@ import java.util.List;
import java.util.Objects;
/**
* plus
* @author DongZl
* @description: plus
* @Date 2023-11-13 10:06

View File

@ -258,8 +258,14 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
return userMapper.insertUser(user) > 0;
}
/**
*
* @param enterprise
* @return
*/
@Override
public boolean enterprise(Enterprise enterprise){
userMapper.enterPriseAdd(enterprise);
return userMapper.enterprise(enterprise) > 0;
}

View File

@ -224,6 +224,10 @@
<insert id="enterprise">
INSERT INTO `datasource`.`datasource` (`id`, `firm_name`, `database_name`) VALUES (NULL, #{firmName}, #{databaseName});
</insert>
<insert id="enterPriseAdd">
INSERT INTO `saas`.`tb_enterprise` (`enterprise_id`, `enterprise_name`, `enterprise_car_count`, `enterprise_fence_count`, `enterprise_database_name`)
VALUES (NULL, #{firmName}, 0, 0, #{databaseName});
</insert>
<update id="updateUser" parameterType="com.muyu.common.system.domain.SysUser">
update sys_user

View File

@ -17,7 +17,8 @@ import java.util.List;
import java.util.concurrent.ExecutionException;
/**
* @Authorliuxinyue
*
* @author liuxinyue
* @Packagecom.template.controller
* @Projectcloud-server-c
* @nameTemplateController