parent
dc94199a1e
commit
35db5e8282
9 changed files with 445 additions and 268 deletions
@ -0,0 +1,15 @@ |
|||||||
|
package org.jeecg.modules.tablex.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import org.apache.ibatis.annotations.Mapper; |
||||||
|
import org.jeecg.modules.tablex.vo.TablexVo; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Administrator |
||||||
|
* @description 针对表【tablex_vo】的数据库操作Mapper |
||||||
|
* @createDate 2023-07-10 19:52:43 |
||||||
|
* @Entity generator.domain.TablexVo |
||||||
|
*/ |
||||||
|
@Mapper |
||||||
|
public interface TablexVoMapper extends BaseMapper<TablexVo> { |
||||||
|
} |
@ -1,5 +1,5 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
<mapper namespace=".tablex.mapper.TablexMapper"> |
<mapper namespace="org.jeecg.modules.tablex.mapper.TablexMapper"> |
||||||
|
|
||||||
</mapper> |
</mapper> |
@ -0,0 +1,5 @@ |
|||||||
|
<?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="org.jeecg.modules.tablex.mapper.TablexVoMapper"> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,27 @@ |
|||||||
|
package org.jeecg.modules.tablex.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
|
||||||
|
import org.jeecg.modules.tablex.entity.Tablex; |
||||||
|
import org.jeecg.modules.tablex.mapper.TablexVoMapper; |
||||||
|
import org.jeecg.modules.tablex.service.ITablexVoService; |
||||||
|
import org.jeecg.modules.tablex.vo.TablexVo; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Administrator |
||||||
|
* @description 针对表【tablex_vo】的数据库操作Service实现 |
||||||
|
* @createDate 2023-07-10 19:52:43 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class ITablexVoServiceImpl extends ServiceImpl<TablexVoMapper, TablexVo> implements ITablexVoService{ |
||||||
|
|
||||||
|
@Override |
||||||
|
public void removeAll(List<TablexVo> voList) { |
||||||
|
for (TablexVo tablexVo : voList){ |
||||||
|
removeById(tablexVo.getId()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,90 @@ |
|||||||
|
package org.jeecg.modules.tablex.vo; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.io.UnsupportedEncodingException; |
||||||
|
import java.util.Date; |
||||||
|
import java.math.BigDecimal; |
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import lombok.Data; |
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel; |
||||||
|
import org.jeecg.common.aspect.annotation.Dict; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import lombok.experimental.Accessors; |
||||||
|
|
||||||
|
/** |
||||||
|
* @Description: 实体表 |
||||||
|
* @Author: jeecg-boot |
||||||
|
* @Date: 2023-04-10 |
||||||
|
* @Version: V1.0 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("tablex_vo") |
||||||
|
@Accessors(chain = true) |
||||||
|
@EqualsAndHashCode(callSuper = false) |
||||||
|
public class TablexVo implements Serializable { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/**主键*/ |
||||||
|
@TableId(type = IdType.ASSIGN_ID) |
||||||
|
@ApiModelProperty(value = "主键") |
||||||
|
private java.lang.String id; |
||||||
|
/**对应模块id*/ |
||||||
|
@Excel(name = "对应模块id", width = 15, dictTable = "modulex", dicText = "module_name", dicCode = "id") |
||||||
|
@Dict(dictTable = "modulex", dicText = "module_name", dicCode = "id") |
||||||
|
@ApiModelProperty(value = "对应模块id") |
||||||
|
private java.lang.String moduleId; |
||||||
|
/**中文名称*/ |
||||||
|
@Excel(name = "中文名称", width = 15) |
||||||
|
@ApiModelProperty(value = "中文名称") |
||||||
|
private java.lang.String tableName; |
||||||
|
/**英文名称*/ |
||||||
|
@Excel(name = "英文名称", width = 15) |
||||||
|
@ApiModelProperty(value = "英文名称") |
||||||
|
private java.lang.String tableEnName; |
||||||
|
/**表结构SQL*/ |
||||||
|
@Excel(name = "表结构SQL", width = 15) |
||||||
|
@ApiModelProperty(value = "表结构SQL") |
||||||
|
private java.lang.String tableStructure; |
||||||
|
/**结构图*/ |
||||||
|
@Excel(name = "结构图", width = 15) |
||||||
|
@ApiModelProperty(value = "结构图") |
||||||
|
private java.lang.String structuralDiagram; |
||||||
|
/**创建人*/ |
||||||
|
@ApiModelProperty(value = "创建人") |
||||||
|
@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id") |
||||||
|
private java.lang.String createBy; |
||||||
|
/**创建时间*/ |
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
||||||
|
@ApiModelProperty(value = "创建时间") |
||||||
|
private java.lang.String createTime; |
||||||
|
/**修改人*/ |
||||||
|
@ApiModelProperty(value = "修改人") |
||||||
|
@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id") |
||||||
|
private java.lang.String updateBy; |
||||||
|
/**修改时间*/ |
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
||||||
|
@ApiModelProperty(value = "修改时间") |
||||||
|
private java.lang.String updateTime; |
||||||
|
/**实体状态*/ |
||||||
|
@Excel(name = "实体状态", width = 15,dicCode = "a_status") |
||||||
|
@Dict(dicCode = "a_status") |
||||||
|
@ApiModelProperty(value = "实体状态") |
||||||
|
private java.lang.String status; |
||||||
|
/**版本状态*/ |
||||||
|
@Excel(name = "版本状态", width = 15,dicCode = "verison_status") |
||||||
|
@Dict(dicCode = "verison_status") |
||||||
|
@ApiModelProperty(value = "版本状态") |
||||||
|
private java.lang.String verisonStatus; |
||||||
|
/**版本号*/ |
||||||
|
@Excel(name = "版本号", width = 15) |
||||||
|
@ApiModelProperty(value = "版本号") |
||||||
|
private java.lang.String verison; |
||||||
|
} |
Loading…
Reference in new issue