yuxc
2023-04-14 2a55ab04f0b5e324d16b42876dabff47885b28c2
主题库相关的代码实现功能,包括excel导入导出,树形查看等功能
已添加12个文件
804 ■■■■■ 文件已修改
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.dto;
import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ æ•°æ®ä¼ è¾“对象实体类
 *
 * @author yuxc
 * @since 2023-04-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CodeOsbtmtypeattributeDTO extends CodeOsbtmtypeattributeEntity {
    private static final long serialVersionUID = 1L;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,101 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ å®žä½“ç±»
 *
 * @author yuxc
 * @since 2023-04-14
 */
@Data
@TableName("PL_CODE_OSBTMTYPEATTRIBUTE")
@ApiModel(value = "CodeOsbtmtypeattribute对象", description = "业务类型包含的属性")
@EqualsAndHashCode(callSuper = true)
public class CodeOsbtmtypeattributeEntity extends BaseModel {
    /**
     * æ‰€å±žä¸šåŠ¡ç±»åž‹
     */
    @ApiModelProperty(value = "所属业务类型")
    private String pkbtmtype;
    /**
     * å±žæ€§çš„长度
     */
    @ApiModelProperty(value = "属性的长度")
    private String attributelength;
    /**
     * æ•°æ®ç±»åž‹
     */
    @ApiModelProperty(value = "数据类型")
    private String attrdatatype;
    /**
     * æ˜¯å¦å¯ä»¥ä¸ºç©º
     */
    @ApiModelProperty(value = "是否可以为空")
    private String nullableflag;
    /**
     * é»˜è®¤å€¼
     */
    @ApiModelProperty(value = "默认值")
    private String defaultvalue;
    /**
     * å°æ•°ç²¾åº¦ä½æ•°
     */
    @ApiModelProperty(value = "小数精度位数")
    private String precisionlength;
    /**
     * åˆ»åº¦
     */
    @ApiModelProperty(value = "刻度")
    private String scalelength;
    /**
     * å–值范围
     */
    @ApiModelProperty(value = "取值范围")
    private String range;
    /**
     * å‚照业务类型
     */
    @ApiModelProperty(value = "参照业务类型")
    private String referbtmtypeid;
    /**
     * å‚照业务类型名称
     */
    @ApiModelProperty(value = "参照业务类型名称")
    private String referbtmtypename;
    /**
     * æžšä¸¾ç¼–号
     */
    @ApiModelProperty(value = "枚举编号")
    private String enumid;
    /**
     * æžšä¸¾åç§°
     */
    @ApiModelProperty(value = "枚举名称")
    private String enumname;
}
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,112 @@
package com.vci.ubcs.com.vci.starter.web.pagemodel;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class DataGrid<T> implements Serializable {
    private static final long serialVersionUID = -5909212697362510055L;
    private long total = 0L;
    private List<T> data = new ArrayList();
    private int start;
    private int limit;
    private int page;
    private String sort;
    private String order;
    private String msg;
    private int code = 0;
    private String traceId;
    public DataGrid() {
    }
    public DataGrid(String msg) {
        this.msg = msg;
        this.code = 1;
    }
    public long getTotal() {
        return this.total;
    }
    public void setTotal(long total) {
        this.total = total;
    }
    public List<T> getData() {
        return this.data;
    }
    public void setData(List<T> data) {
        this.data = data;
    }
    public int getStart() {
        return this.start;
    }
    public void setStart(int start) {
        this.start = start;
    }
    public int getLimit() {
        return this.limit;
    }
    public void setLimit(int limit) {
        this.limit = limit;
    }
    public int getPage() {
        return this.page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    public String getSort() {
        return this.sort;
    }
    public void setSort(String sort) {
        this.sort = sort;
    }
    public String getOrder() {
        return this.order;
    }
    public void setOrder(String order) {
        this.order = order;
    }
    public String getMsg() {
        return this.msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public int getCode() {
        return this.code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getTraceId() {
        return this.traceId;
    }
    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }
    public String toString() {
        return "DataGrid{total=" + this.total + ", data=" + this.data + ", start=" + this.start + ", limit=" + this.limit + ", page=" + this.page + ", sort='" + this.sort + '\'' + ", order='" + this.order + '\'' + ", msg='" + this.msg + '\'' + ", code=" + this.code + ", traceId='" + this.traceId + '\'' + '}';
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.entity.CodeOsattributeEntity;
import com.vci.ubcs.code.vo.CodeOsattributeVO;
import com.vci.ubcs.code.wrapper.CodeOsattributeWrapper;
import com.vci.ubcs.code.service.ICodeOsattributeService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-04-14
 */
@RestController
@AllArgsConstructor
@RequestMapping("/CodeOsattribute")
@Api(value = "属性显示对象", tags = "属性显示对象接口")
public class CodeOsattributeController extends BladeController {
    private final ICodeOsattributeService CodeOsattributeService;
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入CodeOsattribute")
    public R<CodeOsattributeVO> detail(CodeOsattributeEntity CodeOsattribute) {
        CodeOsattributeEntity detail = CodeOsattributeService.getOne(Condition.getQueryWrapper(CodeOsattribute));
        return R.data(CodeOsattributeWrapper.build().entityVO(detail));
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入CodeOsattribute")
    public R<IPage<CodeOsattributeVO>> list(CodeOsattributeEntity CodeOsattribute, Query query) {
        IPage<CodeOsattributeEntity> pages = CodeOsattributeService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeOsattribute));
        return R.data(CodeOsattributeWrapper.build().pageVO(pages));
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入CodeOsattribute")
    public R<IPage<CodeOsattributeVO>> page(CodeOsattributeVO CodeOsattribute, Query query) {
        IPage<CodeOsattributeVO> pages = CodeOsattributeService.selectCodeOsattributePage(Condition.getPage(query), CodeOsattribute);
        return R.data(pages);
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入CodeOsattribute")
    public R save(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
        return R.status(CodeOsattributeService.save(CodeOsattribute));
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ ä¿®æ”¹
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入CodeOsattribute")
    public R update(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
        return R.status(CodeOsattributeService.updateById(CodeOsattribute));
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入CodeOsattribute")
    public R submit(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
        return R.status(CodeOsattributeService.saveOrUpdate(CodeOsattribute));
    }
    /**
     * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(CodeOsattributeService.removeBatchByIds(Func.toLongList(ids)));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
import com.vci.ubcs.code.wrapper.CodeOsbtmtypeattributeWrapper;
import com.vci.ubcs.code.service.ICodeOsbtmtypeattributeService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ æŽ§åˆ¶å™¨
 *
 * @author yuxc
 * @since 2023-04-14
 */
@RestController
@AllArgsConstructor
@RequestMapping("/CodeOsbtmtypeattribute")
@Api(value = "业务类型包含的属性", tags = "业务类型包含的属性接口")
public class CodeOsbtmtypeattributeController extends BladeController {
    private final ICodeOsbtmtypeattributeService CodeOsbtmtypeattributeService;
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ è¯¦æƒ…
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入CodeOsbtmtypeattribute")
    public R<CodeOsbtmtypeattributeVO> detail(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
        CodeOsbtmtypeattributeEntity detail = CodeOsbtmtypeattributeService.getOne(Condition.getQueryWrapper(CodeOsbtmtypeattribute));
        return R.data(CodeOsbtmtypeattributeWrapper.build().entityVO(detail));
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ åˆ†é¡µ
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入CodeOsbtmtypeattribute")
    public R<IPage<CodeOsbtmtypeattributeVO>> list(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute, Query query) {
        IPage<CodeOsbtmtypeattributeEntity> pages = CodeOsbtmtypeattributeService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeOsbtmtypeattribute));
        return R.data(CodeOsbtmtypeattributeWrapper.build().pageVO(pages));
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ è‡ªå®šä¹‰åˆ†é¡µ
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入CodeOsbtmtypeattribute")
    public R<IPage<CodeOsbtmtypeattributeVO>> page(CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute, Query query) {
        IPage<CodeOsbtmtypeattributeVO> pages = CodeOsbtmtypeattributeService.selectCodeOsbtmtypeattributePage(Condition.getPage(query), CodeOsbtmtypeattribute);
        return R.data(pages);
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ æ–°å¢ž
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入CodeOsbtmtypeattribute")
    public R save(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
        return R.status(CodeOsbtmtypeattributeService.save(CodeOsbtmtypeattribute));
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ ä¿®æ”¹
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入CodeOsbtmtypeattribute")
    public R update(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
        return R.status(CodeOsbtmtypeattributeService.updateById(CodeOsbtmtypeattribute));
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ æ–°å¢žæˆ–修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入CodeOsbtmtypeattribute")
    public R submit(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
        return R.status(CodeOsbtmtypeattributeService.saveOrUpdate(CodeOsbtmtypeattribute));
    }
    /**
     * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ åˆ é™¤
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(CodeOsbtmtypeattributeService.removeBatchByIds(Func.toLongList(ids)));
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.mapper;
import com.vci.ubcs.code.entity.CodeOsattributeEntity;
import com.vci.ubcs.code.vo.CodeOsattributeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-04-14
 */
public interface CodeOsattributeMapper extends BaseMapper<CodeOsattributeEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param CodeOsattribute
     * @return
     */
    List<CodeOsattributeVO> selectCodeOsattributePage(IPage page, CodeOsattributeVO CodeOsattribute);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.mapper;
import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ Mapper æŽ¥å£
 *
 * @author yuxc
 * @since 2023-04-14
 */
public interface CodeOsbtmtypeattributeMapper extends BaseMapper<CodeOsbtmtypeattributeEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param CodeOsbtmtypeattribute
     * @return
     */
    List<CodeOsbtmtypeattributeVO> selectCodeOsbtmtypeattributePage(IPage page, CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ æœåŠ¡ç±»
 *
 * @author yuxc
 * @since 2023-04-14
 */
public interface ICodeOsbtmtypeattributeService extends IService<CodeOsbtmtypeattributeEntity> {
    /**
     * è‡ªå®šä¹‰åˆ†é¡µ
     *
     * @param page
     * @param CodeOsbtmtypeattribute
     * @return
     */
    IPage<CodeOsbtmtypeattributeVO> selectCodeOsbtmtypeattributePage(IPage<CodeOsbtmtypeattributeVO> page, CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute);
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.vci.ubcs.code.entity.CodeOsattributeEntity;
import com.vci.ubcs.code.vo.CodeOsattributeVO;
import java.util.Objects;
/**
 * å±žæ€§æ˜¾ç¤ºå¯¹è±¡ åŒ…装类,返回视图层所需的字段
 *
 * @author yuxc
 * @since 2023-04-14
 */
public class CodeOsattributeWrapper extends BaseEntityWrapper<CodeOsattributeEntity, CodeOsattributeVO>  {
    public static CodeOsattributeWrapper build() {
        return new CodeOsattributeWrapper();
     }
    @Override
    public CodeOsattributeVO entityVO(CodeOsattributeEntity CodeOsattribute) {
        CodeOsattributeVO CodeOsattributeVO = Objects.requireNonNull(BeanUtil.copy(CodeOsattribute, CodeOsattributeVO.class));
        //User createUser = UserCache.getUser(CodeOsattribute.getCreateUser());
        //User updateUser = UserCache.getUser(CodeOsattribute.getUpdateUser());
        //CodeOsattributeVO.setCreateUserName(createUser.getName());
        //CodeOsattributeVO.setUpdateUserName(updateUser.getName());
        return CodeOsattributeVO;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill åº„骞 (smallchill@163.com)
 */
package com.vci.ubcs.code.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
import java.util.Objects;
/**
 * ä¸šåŠ¡ç±»åž‹åŒ…å«çš„å±žæ€§ åŒ…装类,返回视图层所需的字段
 *
 * @author yuxc
 * @since 2023-04-14
 */
public class CodeOsbtmtypeattributeWrapper extends BaseEntityWrapper<CodeOsbtmtypeattributeEntity, CodeOsbtmtypeattributeVO>  {
    public static CodeOsbtmtypeattributeWrapper build() {
        return new CodeOsbtmtypeattributeWrapper();
     }
    @Override
    public CodeOsbtmtypeattributeVO entityVO(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
        CodeOsbtmtypeattributeVO CodeOsbtmtypeattributeVO = Objects.requireNonNull(BeanUtil.copy(CodeOsbtmtypeattribute, CodeOsbtmtypeattributeVO.class));
        //User createUser = UserCache.getUser(CodeOsbtmtypeattribute.getCreateUser());
        //User updateUser = UserCache.getUser(CodeOsbtmtypeattribute.getUpdateUser());
        //CodeOsbtmtypeattributeVO.setCreateUserName(createUser.getName());
        //CodeOsbtmtypeattributeVO.setUpdateUserName(updateUser.getName());
        return CodeOsbtmtypeattributeVO;
    }
}
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,38 @@
<?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.vci.ubcs.code.mapper.CodeOsattributeMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="CodeOsattributeResultMap" type="com.vci.ubcs.code.entity.CodeOsattributeEntity">
        <result column="OID" property="oid"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="ATTRIBUTEDATATYPE" property="attributedatatype"/>
        <result column="ATTRIBUTEDATATYPETEXT" property="attributedatatypetext"/>
        <result column="NULLABLEFLAG" property="nullableflag"/>
        <result column="DEFAULTVALUE" property="defaultvalue"/>
        <result column="ENUMID" property="enumid"/>
        <result column="ENUMNAME" property="enumname"/>
        <result column="BTMTYPEID" property="btmtypeid"/>
        <result column="BTMTYPENAME" property="btmtypename"/>
        <result column="ATTRLENGTH" property="attrlength"/>
        <result column="PRECISIONLENGTH" property="precisionlength"/>
        <result column="SCALELENGTH" property="scalelength"/>
        <result column="RANGE" property="range"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="OWNER" property="owner"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createTime"/>
        <result column="LASTMODIFIER" property="lastModifier"/>
        <result column="LASTMODIFYTIME" property="lastModifyTime"/>
        <result column="TS" property="ts"/>
    </resultMap>
    <select id="selectCodeOsattributePage" resultMap="CodeOsattributeResultMap">
        select * from PL_CODE_OSATTRIBUTE where is_deleted = 0
    </select>
</mapper>
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,38 @@
<?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.vci.ubcs.code.mapper.CodeOsbtmtypeattributeMapper">
    <!-- é€šç”¨æŸ¥è¯¢æ˜ å°„结果 -->
    <resultMap id="CodeOsbtmtypeattributeResultMap" type="com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity">
        <result column="OID" property="oid"/>
        <result column="PKBTMTYPE" property="pkbtmtype"/>
        <result column="ID" property="id"/>
        <result column="NAME" property="name"/>
        <result column="ATTRIBUTELENGTH" property="attributelength"/>
        <result column="DESCRIPTION" property="description"/>
        <result column="ATTRDATATYPE" property="attrdatatype"/>
        <result column="NULLABLEFLAG" property="nullableflag"/>
        <result column="DEFAULTVALUE" property="defaultvalue"/>
        <result column="PRECISIONLENGTH" property="precisionlength"/>
        <result column="SCALELENGTH" property="scalelength"/>
        <result column="RANGE" property="range"/>
        <result column="REFERBTMTYPEID" property="referbtmtypeid"/>
        <result column="REFERBTMTYPENAME" property="referbtmtypename"/>
        <result column="ENUMID" property="enumid"/>
        <result column="ENUMNAME" property="enumname"/>
        <result column="BTMNAME" property="btmname"/>
        <result column="OWNER" property="owner"/>
        <result column="CREATOR" property="creator"/>
        <result column="CREATETIME" property="createTime"/>
        <result column="LASTMODIFIER" property="lastModifier"/>
        <result column="LASTMODIFYTIME" property="lastModifyTime"/>
        <result column="TS" property="ts"/>
    </resultMap>
    <select id="selectCodeOsbtmtypeattributePage" resultMap="CodeOsbtmtypeattributeResultMap">
        select * from PL_CODE_OSBTMTYPEATTRIBUTE where is_deleted = 0
    </select>
</mapper>