新增试点单位列表

20240109-yw
anthonywj 1 year ago
parent 704a6d976a
commit 811d5a4472

@ -0,0 +1,9 @@
package com.glxp.api.dao.sup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.sup.UserCompanyPilotEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserCompanyPilotMapper extends BaseMapper<UserCompanyPilotEntity> {
}

@ -4,15 +4,17 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
*/
*
*/
@Data
@Builder
@AllArgsConstructor
@ -44,7 +46,14 @@ public class SupCertTypeEntity implements Serializable {
*
*/
@TableField(value = "enabled")
private Byte enabled;
private Boolean enabled;
/**
*
*/
@TableField(value = "commonUse")
private Boolean commonUse;
private static final long serialVersionUID = 1L;
}

@ -26,6 +26,12 @@ public class UserCompanyOnlineEntity implements Serializable {
@TableField(value = "lastIp")
private String lastIp;
/**
* 线
*/
@TableField(value = "offlineStat")
private String offlineStat;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,101 @@
package com.glxp.api.entity.sup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_company_pilot")
public class UserCompanyPilotEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* Id
*/
@TableField(value = "companyIdFk")
private Long companyIdFk;
/**
*
*/
@TableField(value = "companyName")
private String companyName;
/**
*
*/
@TableField(value = "creditNum")
private Integer creditNum;
/**
*
*/
@TableField(value = "bussinessStatus")
private String bussinessStatus;
/**
*
*/
@TableField(value = "spell")
private String spell;
/**
*
*/
@TableField(value = "addr")
private String addr;
/**
*
*/
@TableField(value = "`status`")
private String status;
/**
*
*/
@TableField(value = "contacts")
private String contacts;
/**
*
*/
@TableField(value = "mobile")
private String mobile;
/**
*
*/
@TableField(value = "remark")
private String remark;
/**
*
*/
@TableField(value = "createTime")
private Date createTime;
/**
*
*/
@TableField(value = "updateTime")
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,10 @@
package com.glxp.api.service.sup;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.sup.UserCompanyPilotEntity;
import com.glxp.api.dao.sup.UserCompanyPilotMapper;
@Service
public class UserCompanyPilotService extends ServiceImpl<UserCompanyPilotMapper, UserCompanyPilotEntity> {
}

@ -1,17 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.purchase.SupCertTypeMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.purchase.SupCertTypeEntity">
<!--@mbg.generated-->
<!--@Table sup_cert_type-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="enabled" jdbcType="TINYINT" property="enabled" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, remark, enabled
</sql>
<resultMap id="BaseResultMap" type="com.glxp.api.entity.purchase.SupCertTypeEntity">
<!--@mbg.generated-->
<!--@Table sup_cert_type-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="enabled" jdbcType="TINYINT" property="enabled"/>
<result column="commonUse" jdbcType="TINYINT" property="commonUse"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, remark, enabled,commonUse
</sql>
</mapper>

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.sup.UserCompanyPilotMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.sup.UserCompanyPilotEntity">
<!--@mbg.generated-->
<!--@Table user_company_pilot-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="companyIdFk" jdbcType="BIGINT" property="companyIdFk" />
<result column="companyName" jdbcType="VARCHAR" property="companyName" />
<result column="creditNum" jdbcType="INTEGER" property="creditNum" />
<result column="bussinessStatus" jdbcType="VARCHAR" property="bussinessStatus" />
<result column="spell" jdbcType="VARCHAR" property="spell" />
<result column="addr" jdbcType="VARCHAR" property="addr" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="contacts" jdbcType="VARCHAR" property="contacts" />
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, companyIdFk, companyName, creditNum, bussinessStatus, spell, addr, `status`,
contacts, mobile, remark, createTime, updateTime
</sql>
</mapper>

@ -344,7 +344,7 @@ CREATE TABLE IF NOT EXISTS `anncmnt_ylqxzczh`
SET FOREIGN_KEY_CHECKS = 1;
CALL Pro_Temp_ColumnWork('user_company_online', 'offlineStat', 'int', 1);

Loading…
Cancel
Save