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>