chore:修改企业管理字段
parent
954a8939c6
commit
ba8009fd8d
|
@ -1,6 +1,8 @@
|
|||
package com.muyu.common.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
@ -20,17 +22,27 @@ public class Enterprise {
|
|||
/**
|
||||
* 企业编号
|
||||
*/
|
||||
@Excel(name = "企业编号")
|
||||
private Integer enterpriseId;
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
@Excel(name = "企业名称")
|
||||
private String enterpriseName;
|
||||
/**
|
||||
* 企业车辆数量
|
||||
*/
|
||||
@Excel(name = "企业拥有车辆数据")
|
||||
private Integer enterpriseCarCount;
|
||||
/**
|
||||
* 企业电子围栏数量
|
||||
*/
|
||||
@Excel(name = "企业所属电子围栏")
|
||||
private Integer enterpriseFenceCount;
|
||||
|
||||
/**
|
||||
* 企业数据库名称
|
||||
*/
|
||||
@Excel(name = "企业所属数据库")
|
||||
private String enterpriseDatabaseName;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,8 @@ import lombok.experimental.SuperBuilder;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author:liuxinyue
|
||||
* 报文模版
|
||||
* @author liuxinyue
|
||||
* @Package:com.sheep.message.domain
|
||||
* @Project:cloud-server-c
|
||||
* @name:MessageTemplateType
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
package com.muyu.common.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* 企业信息 sys_car_enterprise
|
||||
* @author 袁子龙
|
||||
* @package com.muyu.breakdown.domain
|
||||
* @name: SysCarEnterprise
|
||||
* @date: 2024/9/26 19:54
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Setter
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("sys_car_enterprise")
|
||||
public class SysCarEnterprise extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 企业名称*/
|
||||
@Excel(name = "企业名称")
|
||||
private String enterpriseName;
|
||||
/** 用户姓名 */
|
||||
@Excel(name = "用户姓名")
|
||||
private String name;
|
||||
|
||||
@Excel(name = "用户职位")
|
||||
private String position;
|
||||
|
||||
@Excel(name = "公司所在省")
|
||||
private String province;
|
||||
|
||||
@Excel(name = "公司所在市")
|
||||
private String city;
|
||||
|
||||
@Excel(name = "公司所在县/区")
|
||||
private String county;
|
||||
|
||||
@Excel(name = "公司详细地址")
|
||||
private String address;
|
||||
|
||||
@Excel(name = "统一社会信用代码")
|
||||
private String creditCode;
|
||||
|
||||
@Excel(name = "营业执照")
|
||||
private String businessLicense;
|
||||
|
||||
}
|
|
@ -22,4 +22,7 @@ public class InsertEnterprise {
|
|||
|
||||
@NotNull(message = "enterpriseFenceCount企业围栏组不能为空")
|
||||
private Integer enterpriseFenceCount;
|
||||
|
||||
@NotNull(message = "enterpriseDatabaseName企业数据库名称不能为空")
|
||||
private String enterpriseDatabaseName;
|
||||
}
|
||||
|
|
|
@ -28,4 +28,7 @@ public class UpdateEnterprise {
|
|||
|
||||
@NotNull(message = "enterpriseFenceCount企业围栏组不能为空")
|
||||
private Integer enterpriseFenceCount;
|
||||
|
||||
@NotNull(message = "enterpriseDatabaseName企业数据库名称不能为空")
|
||||
private String enterpriseDatabaseName;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.muyu.server.mapper;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* kafka
|
||||
* @author liuxinyue
|
||||
* @Package:com.muyu.server.mapper
|
||||
* @name:KafkaMapper
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
insert into tb_enterprise
|
||||
set enterprise_name = #{enterpriseName},
|
||||
enterprise_car_count = #{enterpriseCarCount},
|
||||
enterprise_fence_count = #{enterpriseFenceCount}
|
||||
enterprise_fence_count = #{enterpriseFenceCount},
|
||||
enterprise_database_name=#{enterpriseDatabaseName}
|
||||
</insert>
|
||||
|
||||
|
||||
|
@ -47,7 +48,8 @@
|
|||
update tb_enterprise
|
||||
set enterprise_name = #{enterpriseName},
|
||||
enterprise_car_count = #{enterpriseCarCount},
|
||||
enterprise_fence_count = #{enterpriseFenceCount}
|
||||
enterprise_fence_count = #{enterpriseFenceCount},
|
||||
enterprise_database_name=#{enterpriseDatabaseName}
|
||||
where enterprise_id = #{enterpriseId} and enterprise_id != 0
|
||||
</update>
|
||||
|
||||
|
|
Loading…
Reference in New Issue