生产企业字典相关代码

dev2.0
anthonywj 2 years ago
parent 98951a39f0
commit 795cd78540

@ -0,0 +1,13 @@
package com.glxp.api.controller.basic;
import com.glxp.api.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@Slf4j
@RestController
public class BasicManufacturerController extends BaseController {
}

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

@ -0,0 +1,132 @@
package com.glxp.api.entity.basic;
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.Data;
@Data
@TableName(value = "basic_manufacturer")
public class BasicManufacturerEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Long id;
/**
*
*/
@TableField(value = "code")
private String code;
/**
*
*/
@TableField(value = "`name`")
private String name;
/**
*
*/
@TableField(value = "spell")
private String spell;
/**
*
*/
@TableField(value = "addr")
private String addr;
/**
*
*/
@TableField(value = "`status`")
private String status;
/**
*
*/
@TableField(value = "`type`")
private String type;
/**
*
*/
@TableField(value = "contact")
private String contact;
/**
*
*/
@TableField(value = "mobile")
private String mobile;
/**
*
*/
@TableField(value = "creditCode")
private String creditCode;
/**
*
*/
@TableField(value = "remark")
private String remark;
/**
* ID
*/
@TableField(value = "thirdId")
private String thirdId;
/**
* ID
*/
@TableField(value = "thirdId1")
private String thirdId1;
/**
* ID
*/
@TableField(value = "thirdId2")
private String thirdId2;
/**
* ID
*/
@TableField(value = "thirdId3")
private String thirdId3;
/**
* ID
*/
@TableField(value = "thirdId4")
private String thirdId4;
/**
*
*/
@TableField(value = "`createUser`")
private String createUser;
/**
*
*/
@TableField(value = "createTime")
private Date createTime;
/**
*
*/
@TableField(value = "updateUser")
private String updateUser;
/**
*
*/
@TableField(value = "updateTime")
private Date updateTime;
private static final long serialVersionUID = 1L;
}

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

@ -0,0 +1,34 @@
<?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.basic.BasicManufacturerMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicManufacturerEntity">
<!--@mbg.generated-->
<!--@Table basic_manufacturer-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="spell" jdbcType="VARCHAR" property="spell" />
<result column="addr" jdbcType="VARCHAR" property="addr" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="contact" jdbcType="VARCHAR" property="contact" />
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
<result column="creditCode" jdbcType="VARCHAR" property="creditCode" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="thirdId" jdbcType="VARCHAR" property="thirdId" />
<result column="thirdId1" jdbcType="VARCHAR" property="thirdId1" />
<result column="thirdId2" jdbcType="VARCHAR" property="thirdId2" />
<result column="thirdId3" jdbcType="VARCHAR" property="thirdId3" />
<result column="thirdId4" jdbcType="VARCHAR" property="thirdId4" />
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, spell, addr, `status`, `type`, contact, mobile, creditCode, remark,
thirdId, thirdId1, thirdId2, thirdId3, thirdId4, `createUser`, createTime, updateUser,
updateTime
</sql>
</mapper>
Loading…
Cancel
Save